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

S3TC compressed textures not supported. #21077

Closed
hgallagher1993 opened this issue Jun 21, 2018 · 7 comments
Closed

S3TC compressed textures not supported. #21077

hgallagher1993 opened this issue Jun 21, 2018 · 7 comments

Comments

@hgallagher1993
Copy link
Contributor

@hgallagher1993 hgallagher1993 commented Jun 21, 2018

Was looking at #21057 and tried running http://www.fishgl.com/ twice. The first time it started to load a bit and then the screen just went black and came back with

THREE.WebGLRenderer
66
THREE.WebGLRenderer: S3TC compressed textures not supported.
ERROR 2018-06-21T12:08:18Z: script::dom::bindings::error: Error at http://cdnjs.cloudflare.com/ajax/libs/three.js/r66/three.min.js:508:229 Value is not an object.

Second time it crashed completely.

THREE.WebGLRenderer
66
THREE.WebGLRenderer: S3TC compressed textures not supported.
Stack trace for thread "WebGLThread"
stack backtrace:
   0:     0x56422abe1a3c - backtrace::backtrace::trace::h771ec7e4a16b9188
   1:     0x56422abe11e2 - <backtrace::capture::Backtrace as core::default::Default>::default::ha7872455e6e477e3
   2:     0x56422abe1228 - backtrace::capture::Backtrace::new::h7a84dd53000abc29
   3:     0x5642282ac96a - servo::install_crash_handler::handler::h26c503f26429cb1c
   4:     0x56422a8c2043 - AsmJSFaultHandler
                        at /home/hugh/.cargo/registry/src/github.com-1ecc6299db9ec823/mozjs_sys-0.51.2/mozjs/js/src/asmjs/WasmSignalHandlers.cpp:1171
   5:     0x7f34388e638f - <unknown>
   6:     0x7f3431c62670 - <unknown>
   7:     0x7f3431c2678c - <unknown>
   8:     0x7f3431c636bd - <unknown>
   9:     0x7f3431c329bd - <unknown>
  10:     0x7f3431d1ee7b - <unknown>
  11:     0x7f3431c21a2d - <unknown>
  12:     0x564229a6ac41 - canvas::webgl_thread::WebGLImpl::apply::h2211b83633a2694f
  13:     0x564229a66743 - <canvas::webgl_thread::WebGLThread<VR, OB>>::handle_webgl_command::h3844398db1e8b318
  14:     0x564229a7f20b - _ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hee8a769f635be5d5E.llvm.16666124742980333505
  15:     0x564229a42908 - _ZN3std9panicking3try7do_call17ha408d1d317ff6081E.llvm.5047223168149118022
  16:     0x56422ac1d089 - __rust_maybe_catch_panic
                        at libpanic_unwind/lib.rs:105
  17:     0x5642299de396 - <F as alloc::boxed::FnBox<A>>::call_box::h26142975ccb3da54
  18:     0x56422ac0a14a - <alloc::boxed::Box<alloc::boxed::FnBox<A, Output$u3d$R$GT$$u20$$u2b$$u20$$u27$a$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h33f7750e60f08706
                        at /checkout/src/liballoc/boxed.rs:650
                         - std::sys_common::thread::start_thread::h6388563430773280
                        at libstd/sys_common/thread.rs:24
  19:     0x56422abf4aa5 - std::sys::unix::thread::Thread::new::thread_start::h1f8b132362b26e8b
                        at libstd/sys/unix/thread.rs:90
  20:     0x7f34388dc6b9 - start_thread
  21:     0x7f343717841c - clone
  22:                0x0 - <unknown>
Stack trace for thread "WebGLThread"
stack backtrace:
   0:     0x56422abe1a3c - backtrace::backtrace::trace::h771ec7e4a16b9188
   1:     0x56422abe11e2 - <backtrace::capture::Backtrace as core::default::Default>::default::ha7872455e6e477e3
   2:     0x56422abe1228 - backtrace::capture::Backtrace::new::h7a84dd53000abc29
   3:     0x5642282ac96a - servo::install_crash_handler::handler::h26c503f26429cb1c
   4:     0x7f34370a64af - <unknown>
   5:     0x5642282ac9f2 - servo::install_crash_handler::handler::h26c503f26429cb1c
   6:     0x56422a8c2043 - AsmJSFaultHandler
                        at /home/hugh/.cargo/registry/src/github.com-1ecc6299db9ec823/mozjs_sys-0.51.2/mozjs/js/src/asmjs/WasmSignalHandlers.cpp:1171
   7:     0x7f34388e638f - <unknown>
   8:     0x7f3431c62670 - <unknown>
   9:     0x7f3431c2678c - <unknown>
  10:     0x7f3431c636bd - <unknown>
  11:     0x7f3431c329bd - <unknown>
  12:     0x7f3431d1ee7b - <unknown>
  13:     0x7f3431c21a2d - <unknown>
  14:     0x564229a6ac41 - canvas::webgl_thread::WebGLImpl::apply::h2211b83633a2694f
  15:     0x564229a66743 - <canvas::webgl_thread::WebGLThread<VR, OB>>::handle_webgl_command::h3844398db1e8b318
  16:     0x564229a7f20b - _ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hee8a769f635be5d5E.llvm.16666124742980333505
  17:     0x564229a42908 - _ZN3std9panicking3try7do_call17ha408d1d317ff6081E.llvm.5047223168149118022
  18:     0x56422ac1d089 - __rust_maybe_catch_panic
                        at libpanic_unwind/lib.rs:105
  19:     0x5642299de396 - <F as alloc::boxed::FnBox<A>>::call_box::h26142975ccb3da54
  20:     0x56422ac0a14a - <alloc::boxed::Box<alloc::boxed::FnBox<A, Output$u3d$R$GT$$u20$$u2b$$u20$$u27$a$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h33f7750e60f08706
                        at /checkout/src/liballoc/boxed.rs:650
                         - std::sys_common::thread::start_thread::h6388563430773280
                        at libstd/sys_common/thread.rs:24
  21:     0x56422abf4aa5 - std::sys::unix::thread::Thread::new::thread_start::h1f8b132362b26e8b
                        at libstd/sys/unix/thread.rs:90
  22:     0x7f34388dc6b9 - start_thread
  23:     0x7f343717841c - clone
  24:                0x0 - <unknown>
Servo exited with return value -4

@emilio
Copy link
Member

@emilio emilio commented Jun 21, 2018

FWIW both Gecko and Chromium force-enable compression in mesa at startup.

Of course not sure whether that's the cause of the crash. The crash looks like a driver bug.

@hgallagher1993
Copy link
Contributor Author

@hgallagher1993 hgallagher1993 commented Jun 21, 2018

It works perfectly in Firefox (nightly) and Chrome (stable) for me, no errors so could it still be a driver bug if it's only Servo that doesn't?

@emilio
Copy link
Member

@emilio emilio commented Jun 21, 2018

Yeah, potentially, all browsers have different WebGL architecture, so it may make the driver take different code paths. Does Servo crash on your machine running it with:

$ force_s3tc_enable=true ./mach run

?

@hgallagher1993
Copy link
Contributor Author

@hgallagher1993 hgallagher1993 commented Jun 21, 2018

Nope no crash, loads the Servo home page straight away, no warnings or anything.

@emilio
Copy link
Member

@emilio emilio commented Jun 21, 2018

Well, I meant running http://www.fishgl.com/, that is:

$ force_s3tc_enable=true ./mach run http://www.fishgl.com
@hgallagher1993
Copy link
Contributor Author

@hgallagher1993 hgallagher1993 commented Jun 22, 2018

Sorry I should've said I ran that as well it didn't crash either it basically just froze, like it loaded to 100% and went to the next screen but the fish tank never loaded. I can see the door and shelves and the red alarm and whatever else but just no fish tank.

@nox nox added the A-content/webgl label Oct 25, 2018
@jdm
Copy link
Member

@jdm jdm commented Nov 20, 2019

FishGL now works fine!

@jdm jdm closed this Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.