mrk-its / bevy_webgl2

WebGL2 renderer plugin for Bevy game engine
MIT License
172 stars 46 forks source link

Panic on Firefox #34

Closed intendednull closed 3 years ago

intendednull commented 3 years ago

Getting this error when trying to run examples on firefox:

'called `Result::unwrap()` on an `Err` value: "ERROR: 0:346: \'for\' : Invalid condition\n"', /home/intendednull/.cargo/git/checkouts/bevy_webgl2-bb0e279954ae087c/33dda29/src/renderer/webgl2_render_resource_context.rs:77:81

sprite.rs works, however 3d_scene.rs and breakout.rs do not. Let me know if I should test any other examples. Problem is present on latest release, master, and dev branch.

It was working until FF updated, so maybe a configuration setting was tweaked? Tried toggling every webgl2 setting I could find with no luck. Also tried a fresh install of both FF developer and stable.

System details:

$ screenfetch -n
 OS: Manjaro 21.0 Ornara
 Kernel: x86_64 Linux 5.10.23-1-MANJARO
 Shell: fish 3.1.2
 WM: XMonad
 CPU: AMD Ryzen 7 3700X 8-Core @ 16x 3.6GHz
 GPU: GeForce GTX 1070 Ti
 RAM: 10674MiB / 24034MiB
$ firefox-developer-edition --version
Mozilla Firefox 87.0b9

WebGL2 does appear to be enabled on my system: image

billyb2 commented 3 years ago

Hey, are you still having this issue?

intendednull commented 3 years ago

@billyb2 yes, also had a few updates from firefox with no change

billyb2 commented 3 years ago

@intendednull that's very strange. I'm using Arch and the latest version of Firefox with no issue (and way less RAM then you :( )What version of Firefox did it work in, and when did it stop? Could be a bug with Firefox itself. Also, have you tried using a Chromium based browser to see if it works there?

intendednull commented 3 years ago

@billyb2 agreed, not completely sure on the version, think the one I posted above is pretty close. Does work on chromium, which is what I've been using since.

I even tried a switching from developer edition to stable with no luck. So it seems specific version doesn't matter. Makes me think my installation is corrupt, but a fresh install should have fixed that :/

billyb2 commented 3 years ago

Have you made sure to clear all configurations when doing a fresh install? Or what about booting off a live stick w. Firefox on it and seeing if it'll run.

intendednull commented 3 years ago

Thanks for the suggestions, will try and get back to you.

NiklasEi commented 3 years ago

I am getting a very similar error in both Firefox and Google Chrome. It has a different error message, but comes from the same point in bevy_webgl2:

panicked at 'called `Result::unwrap()` on an `Err` value: "ERROR: 0:1: '\n' : invalid version directive\nERROR: 0:5: 'layout' : syntax error\n\u{0}"', /home/niklas/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_webgl2-0.5.2/src/renderer/webgl2_render_resource_context.rs:77:81
intendednull commented 3 years ago

A completely fresh reinstall of firefox fixed this issue for me. Seems like bad cache maybe.

Had to manually wipe everything, package manager uninstall didn't work.

billyb2 commented 3 years ago

@intendednull Are you gonna close this? That's a weird issue for sure though.

intendednull commented 3 years ago

Might as well. If @NiklasEi's problem isn't fixed with a fresh install, they can open a new issue, as it would seem to be unrelated.