Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample doesn't work on Edge #54

Closed
ssylvan opened this issue Nov 26, 2020 · 3 comments
Closed

Sample doesn't work on Edge #54

ssylvan opened this issue Nov 26, 2020 · 3 comments
Labels
bug Something is broken help wanted Extra attention is needed web Related to running Egui on the web

Comments

@ssylvan
Copy link

ssylvan commented Nov 26, 2020

This shows a blank page on Edge: https://emilk.github.io/egui/index.html

Should probably at least show some kind of error message if it isn't supported on Edge (or better yet, fix whatever prevents it from working).

@emilk
Copy link
Owner

emilk commented Nov 27, 2020

Thanks for the report!

I don't have a Windows machine, so it is hard for me to debug. Does the developer console say anything helpful?

@emilk emilk added web Related to running Egui on the web bug Something is broken help wanted Extra attention is needed labels Nov 27, 2020
@ssylvan
Copy link
Author

ssylvan commented Nov 27, 2020

It says:

RuntimeError: unreachable
at __rust_start_panic (:wasm-function[1651]:0xe9459)
at rust_panic (:wasm-function[1330]:0xe7dde)
at std::panicking::rust_panic_with_hook::hc3afc981c0e7d6a8 (:wasm-function[998]:0xde523)
at std::panicking::begin_panic_handler::{{closure}}::hefb02c9f4c7b9e72 (:wasm-function[1290]:0xe76d3)
at std::sys_common::backtrace::__rust_end_short_backtrace::h3f57de3f451b589e (:wasm-function[1300]:0xe789c)
at rust_begin_unwind (:wasm-function[1259]:0xe705c)
at core::panicking::panic_fmt::he8b4f848efb7b83f (:wasm-function[1301]:0xe78d2)
at core::panicking::panic::h54d056b62390c882 (:wasm-function[1249]:0xe6dc9)
at egui_web::webgl::Painter::new::h6e457df76159f1af (:wasm-function[228]:0x58ba8)
at egui_web::backend::WebBackend::new::h280b638dcbcdba4a (:wasm-function[1003]:0xde8e7)

So I guess something unreachable in webgl is in fact reached? Sorry, web stuff is very much outside my wheel house so I'm not sure how to debug stuff like this.

@ssylvan
Copy link
Author

ssylvan commented Nov 27, 2020

Update: this went away after restarting Edge. So my hypothesis is that something in my browser session (probably up for days) caused a GPU hang in the past, which (I believe) causes edge to disable using the GPU from then on. Which in turn would disable things like WebGL.

So I think this is really more of "show error message if webgl fails to load" rather than an actual persistent issue on Edge.

@emilk emilk closed this as completed Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken help wanted Extra attention is needed web Related to running Egui on the web
Projects
None yet
Development

No branches or pull requests

2 participants