wonderunit / storyboarder

✏️ Storyboarder makes it easy to visualize a story as fast you can draw stick figures.
https://wonderunit.com/storyboarder
3.19k stars 297 forks source link

Storyboarder constantly crashing with "unexpected WebGL error" #1701

Open justmystro opened 5 years ago

justmystro commented 5 years ago

Hi! I'm an animation student currently in thesis, and since downloading Storyboarder, making a storyboard has never been more fun!

However, on many instances of using Storyboarder, like drawing or moving boards around, I get this message: "An unexpected WebGL error occurred and Storyboarder could not continue."

This wouldn't be much of a problem if this didn't occur every 5 minutes D: Is there some way I can resolve the issue, and is this common within users?

Thank you for taking the time to read this, I'm looking very forward to the upcoming updates of Storyboarder, I love this program to bits!

audionerd commented 5 years ago

Can you tell us more about your computer and graphics card? You might try closing all other apps when Storyboarder is running. It sounds like you’re running out of graphics card memory.

justmystro commented 5 years ago

Here are the specs of the computer: Win10 Intel Core i3-3210 @ 3.20GHz, 2 Cores 4 Threads DDR3 8GB RAM NVIDIA GeForce GTX 660, 2GB, GDDR5

I closed Maya, and any other programs I've got open-- but it still crashes, mostly from going left and right between boards. Anything else I can try doing other than getting a new graphics card?

Thanks for responding!

audionerd commented 5 years ago

Hmm. You could maybe try reducing the number of image layers in your boards and/or having fewer total boards in the scene?

Some technical details:

When the system tells Storyboarder that the WebGL context is no longer available, Storyboarder basically doesn't know how to recover from that. It's possible that some code could be written for Storyboarder to pause, wait for a WebGL context to be available again, and restart, which would be a little better than the current situation (where Storyboarder just closes the window!). But that code doesn't exist yet.

It's also very possible that Storyboarder is inefficient at managing resources when switching between boards, and might be holding onto more GPU RAM than it needs to. We haven't looked into optimizing that very much. I think it probably stores more undo image data in RAM than it needs to, that could be optimized further.

Chris-Harn commented 5 years ago

I've been getting this pretty bad since last month when I got a Cintiq Pro 16. I can't recall seeing it before. I have two ways that it happens. Specs first...

Laptop with Windows 10. Intel 8hth Gen Core I7-8750H Nvidia Geforce GTX 1060 - 6 GB GDDR5 16 GB DDR4 - 2666 MHz


The first way I've found to make the exact error message happen is... click in the frame for the picture(one that isn't locked due to editing in photoshop), and use the left and right arrow keys to move back and forth across the entire length of the list of boards. If I do this with Storyboarder being viewed on my Cintiq, it will crash with the "Storyboarder An unexpected WebGL error occurred and Storyboarder could not continue" really quickly. Now if I keep Storyboarder open on my laptop screen(not positioned on the Cintiq), I can go back and forth for a while without the error popping up.


The second way it happens is when I've been drawing. I'll be 3-5 minutes in to a board with just the pencil(1) or pen(7) tool, and it will crash with the same exact error as this topic is about. Usually a lot of erasing too. This is with Storyboarder open on the Cintiq. I don't know if it's running out of memory or because I have the fleshy part of my hand resting on the screen when I draw(touch options are turned off). It happens often-every 5-20 minutes.

Sometimes, I get a second error when this happens, "Uncaught TypeError: Cannot read property 'resolution' of undefined In file: C:\Program Files\Storyboarder\resources\app.asar\node_modules\pixi.js\lib\extract\webgl\WebGLExt...:40"


I can't recall if I got this while using a regular wacom tablet(not a cintiq) on the laptop screen. I will give it a try this weekend to see if it happens.

Hope this gives you some insight. I don't know if the other person is using a mouse, a wacom, or a Cintiq. Might be worth following up with justmystro since they are doing animation-willing to bet if you're not seeing it, that it's a tablet issue.

I noticed my drivers are for my GPU are a bit old(4-5 months). I'm going to update those and see what happens.

Thanks again for all your work on this program.

RaykWashington commented 4 years ago

I'm getting the same problem, even on version 1.15 Win 10 AMD FX 8300 eight core AMD Radeon RX 570 - 8GB GDDR5 8GB DDR3

uchuman commented 4 years ago

storyboarder pencil is laggy during quick movements. and the same error message keeps popping after 5 min use. just reinstalled the 1.17 update, but same problem exists. is there any minimum requirement of this software. my specs are: intel i3 7100, integrated graphics only, 8gb ram

drkobyspirit commented 2 weeks ago

Hi, this issue still exists in 2024, after i drew 20 boards, it crashed after every time I did anything. I have a Geforce driver, I updated it it hasn't crashed since. I think updating your driver will help, I don't know if it fixes the issue completely, but it worked for me. Also updating it makes your PC run smoother anyways so its always good to keep it up to date.