p5.glitch icon indicating copy to clipboard operation
p5.glitch copied to clipboard

preventing crashes in webgl mode

Open lee2sman opened this issue 8 months ago • 2 comments

Hi, I'd doing some experiments using p5.glitch as a texture on a webgl 3d primitive but am getting pretty consistent crashing. I tried reducing load quality thinking that would prevent the crashes but didn't see much change in results. Do you have any suggestions?

Here's an example test.

lee2sman avatar Feb 28 '25 06:02 lee2sman

Hmm what OS + browser are you using? Just tested your example with Chrome (and Firefox) on MacOS and no problems.

One gotcha, be sure to manually load in the latest release from github – since there was one bug in randomByte() – but you're not using that function. (I lost access to my NPM account to update it there...)

ffd8 avatar Feb 28 '25 23:02 ffd8

Yes, I'm running latest p5.glitch <script src="https://cdn.jsdelivr.net/npm/p5.glitch@latest/p5.glitch.js"></script>.

On my laptop I'm running Linux. With Firefox 135.0.1 it crashes for me every time. With Chromium it does not crash. On iOS it crashes for me on both Safari and Firefox.

lee2sman avatar Mar 01 '25 03:03 lee2sman