Repository navigation
Closed
Labels
Description
➜ servo git:(scissor) ✗ ./mach run -d https://www.khronos.org/registry/webgl/sdk/tests/conformance/attribs/gl-matrix-attributes.html\?webglVersion\=1\&quiet\=0
thread '<unnamed>' panicked at 'arithmetic operation overflowed', /Users/dzbarsky/mozilla/servo/components/compositing/scrolling.rs:60
stack backtrace:
1: 0x10b1318e8 - sys::backtrace::tracing::imp::write::hca66179add43b2e5lLt
2: 0x10b1339af - panicking::log_panic::_<closure>::closure.40842
3: 0x10b133452 - panicking::log_panic::h7a04edac7e1f2797HEx
4: 0x10b11f266 - sys_common::unwind::begin_unwind_inner::h39a94087039ae0efnOs
5: 0x10b11f64e - sys_common::unwind::begin_unwind_fmt::h7be0824d83765cd5tNs
6: 0x10b130f07 - rust_begin_unwind
7: 0x10b156010 - panicking::panic_fmt::h871c0ef100fda9e9LFK
8: 0x10b15630c - panicking::panic::hbe2e3a5159c3d178iEK
9: 0x109d88096 - scrolling::_<impl>::run::h8d99d47b851932a5yZg
10: 0x109d87c9d - scrolling::_<impl>::new::_<closure>::closure.33728
11: 0x109d876df - std::thread::_<impl>::spawn::_<closure>::_<closure>::closure.33717
12: 0x109d87669 - sys_common::unwind::try::try_fn::try_fn::h12018874347137073100
13: 0x10b130d28 - __rust_try
14: 0x10b12de2e - sys_common::unwind::try::inner_try::h819d2da8e3dc4516VKs
15: 0x109d875d2 - sys_common::unwind::try::try::h14640882492384793102
16: 0x109d8740b - std::thread::_<impl>::spawn::_<closure>::closure.33714
17: 0x109d87ee0 - boxed::_<impl>::call_box::call_box::h6108671541456513336
18: 0x10b132c3d - sys::thread::_<impl>::new::thread_start::h328957c252b95d3cOYw
19: 0x7fff9f31dc12 - _pthread_body
20: 0x7fff9f31db8f - _pthread_start
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', ../src/libcore/result.rs:741
stack backtrace:
1: 0x10b1318e8 - sys::backtrace::tracing::imp::write::hca66179add43b2e5lLt
2: 0x10b1339af - panicking::log_panic::_<closure>::closure.40842
3: 0x10b133452 - panicking::log_panic::h7a04edac7e1f2797HEx
4: 0x10b11f266 - sys_common::unwind::begin_unwind_inner::h39a94087039ae0efnOs
5: 0x10b11f64e - sys_common::unwind::begin_unwind_fmt::h7be0824d83765cd5tNs
6: 0x10b130f07 - rust_begin_unwind
7: 0x10b156010 - panicking::panic_fmt::h871c0ef100fda9e9LFK
8: 0x109d882d2 - result::_<impl>::unwrap::unwrap::h5866065750796944517
9: 0x109d8ab72 - scrolling::_<impl>::shutdown::hc9e090c277b2c1e3kZg
10: 0x108702545 - compositor::_<impl>::finish_shutting_down::finish_shutting_down::h12203205293516776426
11: 0x1086f43d6 - compositor::_<impl>::handle_browser_message::handle_browser_message::h11774076941811829808
12: 0x1086f3de2 - compositor::_<impl>::handle_events::handle_events::h12047551615251732495
13: 0x10883a748 - _<impl>::handle_events::h1169c8c565313f92Tda
14: 0x1086b7fec - main::hb77cfbfb032d8741Laa
15: 0x10b1331d2 - sys_common::unwind::try::try_fn::h9781900235654175042
16: 0x10b130d28 - __rust_try
17: 0x10b133079 - rt::lang_start::h7f8cb47bb0ba3293PBx
18: 0x1087ab3e9 - main
Servo exited with return value 101
(Loaded the page and scrolled down)
Activity
jdm commentedon Dec 17, 2015
It's unclear to me why overflow occurred!
jdm commentedon Dec 17, 2015
I guess if a ScrollEventProcessedMsg is received with a timestamp that is more than TIMEOUT ns in the past?
njskalski commentedon Dec 25, 2015
well, I tried to reproduce, and received something different: https://paste.ee/p/n6B2T
I trired to add some println to .cargo/git/checkouts/rust-offscreen-rendering-context-49a578ae84e64b98/master/src/draw_buffer.rs
and then rebuilt servo, but either stdout is dropped or println in unsafe doesn't work, or - most probably - it hasn't rebuilt "rust-offscreen-rendering". How to force a rebuild?
dzbarsky commentedon Dec 25, 2015
Did you update .cargo/config? See "Working on a crate" at https://github.com/antrik/servo/blob/dac4056d60c459784c6471af1a3afa30210b792e/HACKING_QUICKSTART.md
njskalski commentedon Dec 27, 2015
Hi, I started to investigate the issue (on Linux) and I added a XErrorHandler to offscreen rendering. Here it is
https://github.com/askalski/rust-offscreen-rendering-context/tree/add_error_naming_to_glx
if someone finds it helpful
njskalski commentedon Dec 27, 2015
and for some reason my attempt to add error handler was unsuccessful - for some reason it's never called. Any clues will be appreciated.
emilio commentedon Dec 27, 2015
Hi @askalski,
The callback provided to
XSetErrorHandleris only executed on protocol errors I think, not on other kind of errors.Also, glutin already adds a custom error handler (see https://github.com/servo/glutin/blob/servo/src/api/x11/xdisplay.rs#L34), and even more info will be available when upstream is merged again (see rust-windowing/glutin#675 and potentially rust-windowing/glutin#679).
I think this error is not related to X errors though. If you're having issues with the WebGL implementation it's probably a different issue, and I'd like to hear about it :).
njskalski commentedon Dec 31, 2015
@ecoal95
The reason I attempted to add XSetErrorHandler is that on my machine, I have different run result : https://paste.ee/p/LhdcQ , most notably, the assertion that fails is:
this, as far as I understand your code, points to failed glx::MakeCurrent call, which has like 7 possible reasons to check. I attempted to figure out which one was that.
Can somebody try to reproduce? I don't even know if it's the same bug.
emilio commentedon Jan 1, 2016
Hum... It definitely isn't the same bug, and I can't reproduce it.
I think I know what may cause it, even though it'd be really weird (rebinding the context to another thread returns an error in your glx implementation).
May you apply this patch and tell me if it solves that issue?
njskalski commentedon Jan 8, 2016
@ecoal95 after applying this patch to today's upstream/master and clean build, I have no crash, and all tests succeed. So again, unable to reproduce original bug :).
my stuff: Ubuntu Mate 14.04 LTS on Lenovo Thinkpad W530, so intel i7, nvidia quadro M2000 (proprietary drivers from Ubuntu's repo)
webgl: Create the paint task object in the thread
Auto merge of #9210 - ecoal95:webgl-task-in-thread, r=jdm
jrasanen commentedon Mar 29, 2016
I can reproduce this on OS X (video):
Note: Crash only happens when browserhtml is enabled.
servo: Merge #9210 - webgl: Create the paint task object in the threa…
mrobinson commentedon Jan 17, 2018
The final backtrace that reproduced an issue like this referred to the old pre-WebRender compositor, so I feel pretty confident about closing this issue.
servo: Merge #9210 - webgl: Create the paint task object in the threa…
servo: Merge #9210 - webgl: Create the paint task object in the threa…
servo: Merge #9210 - webgl: Create the paint task object in the threa…