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

called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }" #13867

Closed
yangsibai opened this issue Oct 21, 2016 · 4 comments
Closed

called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }" #13867

yangsibai opened this issue Oct 21, 2016 · 4 comments

Comments

@yangsibai
Copy link

@yangsibai yangsibai commented Oct 21, 2016

called Result::unwrap() on an Err value: "PoisonError { inner: .. }"

URL:

Servo Version:

Servo 0.0.1-99ad367

Backtrace:


ERROR: called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"

stack backtrace:
   0:        0x10660b39e - backtrace::backtrace::trace::h6ac07ced1b846a59
   1:        0x10660b68c - backtrace::capture::Backtrace::new::h1d3339ed08c7f861
   2:        0x1053f9da5 - constellation::constellation::log_entry::hc92ce9b47dde5c21
   3:        0x1053f8c72 - _<constellation..constellation..FromCompositorLogger as log..Log>::log::h27ef5afa70002f0a
   4:        0x106ab19c1 - log::__log::hf7539da7e3bbacdb
   5:        0x10520b980 - servo::main::_{{closure}}::h70a6b1b48115735a
   6:        0x106ac9433 - std::panicking::rust_panic_with_hook::hcd9d05f53fa0dafc
   7:        0x106ac9304 - std::panicking::begin_panic::hf6c488cee66e7f17
   8:        0x106ac9222 - std::panicking::begin_panic_fmt::hb0a7126ee57cdd27
   9:        0x106ac9187 - rust_begin_unwind
  10:        0x106af5f50 - core::panicking::panic_fmt::h9af671b78898cdba
  11:        0x106343ba8 - core::result::unwrap_failed::h93c17432aa2e2e22
  12:        0x10638c61c - _<layout..query..LayoutRPCImpl as script_layout_interface..rpc..LayoutRPC>::hit_test::hb8f859aa0d0f1667
  13:        0x10592cac9 - script::dom::document::Document::handle_mouse_move_event::h901384708297c5de
  14:        0x105b127d2 - script::script_thread::ScriptThread::handle_event::hfe2ff93951e452ca
  15:        0x105aed8f6 - script::script_thread::ScriptThread::handle_msg_from_constellation::hf1ffcabf4a69cb0b
  16:        0x105c97c6c - script::script_thread::ScriptThread::handle_msgs::_{{closure}}::h88b2cc62dda1cfcf
  17:        0x105ae8507 - script::script_thread::ScriptThread::handle_msgs::he9b827863d7f1f94
  18:        0x105659e57 - std::panicking::try::do_call::h17c16b73648098a9
  19:        0x106aca45a - __rust_maybe_catch_panic
  20:        0x10582ee96 - _<F as alloc..boxed..FnBox<A>>::call_box::ha39817cf138bfefc
  21:        0x106ac8364 - std::sys::thread::Thread::new::thread_start::h50b05608a499d2b2
  22:     0x7fffeb707aba - _pthread_body
  23:     0x7fffeb707a06 - _pthread_start

This report was generated by the browser.html issue reporter.

@jdm
Copy link
Member

@jdm jdm commented Dec 13, 2016

@yangsibai Any idea what page you were looking at when this happened?

@jdm jdm added the C-clarifying label Dec 13, 2016
@yangsibai
Copy link
Author

@yangsibai yangsibai commented Dec 14, 2016

@jdm
Copy link
Member

@jdm jdm commented Dec 14, 2016

When moving my mouse over the page, I get:

called `Option::unwrap()` on a `None` value (thread LayoutThread PipelineId { namespace_id: PipelineNamespaceId(0), index: PipelineIndex(1) }, at ../src/libcore/option.rs:323)
(lldb) bt
error: need to add support for DW_TAG_base_type '()' encoded with DW_ATE = 0x7, bit_size = 0
* thread #25: tid = 0x293616, 0x00000001056c42a4 servo`std::panicking::rust_panic + 4 at panicking.rs:482, stop reason = breakpoint 1.1
  * frame #0: 0x00000001056c42a4 servo`std::panicking::rust_panic + 4 at panicking.rs:482
    frame #1: 0x00000001056c4275 servo`std::panicking::rust_panic_with_hook + 437 at panicking.rs:467
    frame #2: 0x00000001056c40b5 servo`std::panicking::begin_panic<collections::string::String> + 101 at panicking.rs:413
    frame #3: 0x00000001056c3fd3 servo`std::panicking::begin_panic_fmt + 147 at panicking.rs:397
    frame #4: 0x00000001056c3f38 servo`std::panicking::rust_begin_panic + 56 at panicking.rs:373
    frame #5: 0x00000001056f1e31 servo`core::panicking::panic_fmt + 129 at panicking.rs:69
    frame #6: 0x00000001056f1d35 servo`core::panicking::panic + 101 at panicking.rs:49
    frame #7: 0x000000010332d3dd servo`core::option::{{impl}}::unwrap<euclid::matrix4d::TypedMatrix4D<f32, euclid::UnknownUnit, euclid::UnknownUnit>>(self=Option<euclid::matrix4d::TypedMatrix4D<f32, euclid::UnknownUnit, euclid::UnknownUnit>> at 0x0000000122257788) + 205 at macros.rs:21
    frame #8: 0x00000001033cef84 servo`gfx::display_list::{{impl}}::hit_test_stacking_context(self=0x0000000124045580, traversal=0x00000001222584e8, stacking_context=0x0000000124ac3460, translated_point=0x0000000122257c58, client_point=0x00000001222588a0, scroll_offsets=0x0000000126a13db0, result=0x0000000122258508) + 436 at mod.rs:137
    frame #9: 0x00000001033ceaf5 servo`gfx::display_list::{{impl}}::hit_test_contents(self=0x0000000124045580, traversal=0x00000001222584e8, translated_point=0x0000000122257c58, client_point=0x00000001222588a0, scroll_offsets=0x0000000126a13db0, result=0x0000000122258508) + 357 at mod.rs:77
    frame #10: 0x00000001033cf0ba servo`gfx::display_list::{{impl}}::hit_test_stacking_context(self=0x0000000124045580, traversal=0x00000001222584e8, stacking_context=0x0000000124ac2e60, translated_point=0x0000000122257f88, client_point=0x00000001222588a0, scroll_offsets=0x0000000126a13db0, result=0x0000000122258508) + 746 at mod.rs:143
    frame #11: 0x00000001033ceaf5 servo`gfx::display_list::{{impl}}::hit_test_contents(self=0x0000000124045580, traversal=0x00000001222584e8, translated_point=0x0000000122257f88, client_point=0x00000001222588a0, scroll_offsets=0x0000000126a13db0, result=0x0000000122258508) + 357 at mod.rs:77
    frame #12: 0x00000001033cf0ba servo`gfx::display_list::{{impl}}::hit_test_stacking_context(self=0x0000000124045580, traversal=0x00000001222584e8, stacking_context=0x000000012365c7e0, translated_point=0x00000001222582b8, client_point=0x00000001222588a0, scroll_offsets=0x0000000126a13db0, result=0x0000000122258508) + 746 at mod.rs:143
    frame #13: 0x00000001033ceaf5 servo`gfx::display_list::{{impl}}::hit_test_contents(self=0x0000000124045580, traversal=0x00000001222584e8, translated_point=0x00000001222582b8, client_point=0x00000001222588a0, scroll_offsets=0x0000000126a13db0, result=0x0000000122258508) + 357 at mod.rs:77
    frame #14: 0x00000001033cf0ba servo`gfx::display_list::{{impl}}::hit_test_stacking_context(self=0x0000000124045580, traversal=0x00000001222584e8, stacking_context=0x00000001248771e0, translated_point=0x00000001222588b8, client_point=0x00000001222588a0, scroll_offsets=0x0000000126a13db0, result=0x0000000122258508) + 746 at mod.rs:143
    frame #15: 0x00000001033ceaf5 servo`gfx::display_list::{{impl}}::hit_test_contents(self=0x0000000124045580, traversal=0x00000001222584e8, translated_point=0x00000001222588b8, client_point=0x00000001222588a0, scroll_offsets=0x0000000126a13db0, result=0x0000000122258508) + 357 at mod.rs:77
    frame #16: 0x00000001033ce8f9 servo`gfx::display_list::{{impl}}::hit_test(self=0x0000000124045580, translated_point=0x00000001222588b8, client_point=0x00000001222588a0, scroll_offsets=0x0000000126a13db0) + 169 at mod.rs:60
    frame #17: 0x00000001009e0136 servo`layout_thread::{{impl}}::respond_to_query_if_necessary(self=0x000000012225af68, query_type=0x000000012225a218, rw_data=0x0000000126a13ca0, shared_layout_context=0x00000001222591e0) + 1510 at lib.rs:1219
    frame #18: 0x00000001009df1b4 servo`layout_thread::{{impl}}::handle_reflow(self=0x000000012225af68, data=0x000000012225a1b8, possibly_locked_rw_data=0x000000012225af20) + 10340 at lib.rs:1189
    frame #19: 0x00000001009d90ce servo`layout_thread::{{impl}}::handle_request_helper::{{closure}} + 62 at lib.rs:645
    frame #20: 0x00000001007b3ff0 servo`profile_traits::time::profile<(category=LayoutPerform, meta=Option<profile_traits::time::TimerMetadata> at 0x0000000122259dd8, profiler_chan=ProfilerChan at 0x0000000122259dd0, callback=closure at 0x0000000122259db0),closure> + 528 at time.rs:117
    frame #21: 0x00000001009d85e6 servo`layout_thread::{{impl}}::handle_request_helper(self=0x000000012225af68, request=Msg at 0x000000012225a300, possibly_locked_rw_data=0x000000012225af20) + 1734 at lib.rs:642
    frame #22: 0x00000001009d72d6 servo`layout_thread::{{impl}}::handle_request(self=0x000000012225af68, possibly_locked_rw_data=0x000000012225af20) + 2070 at lib.rs:581
    frame #23: 0x00000001009d6266 servo`layout_thread::{{impl}}::start(self=LayoutThread at 0x000000012225b0a0) + 326 at lib.rs:496
    frame #24: 0x00000001009d287e servo`layout_thread::{{impl}}::create::{{closure}}::{{closure}} + 126 at lib.rs:278
    frame #25: 0x00000001007b36bf servo`profile_traits::mem::{{impl}}::run_with_memory_reporting<closure,fn(self=0x000000012225c0cc, f=closure at 0x000000012225b8d8, reporter_name=String at 0x000000012225b8c0, channel_for_reporter=Sender<script_layout_interface::message::Msg> at 0x000000012225b8b0, msg=0x00000001056f8f00) -> script_layout_interface::message::Msg,script_layout_interface::message::Msg,std::sync::mpsc::Sender<script_layout_interface::message::Msg>> + 911 at mem.rs:63
    frame #26: 0x00000001009d2f46 servo`layout_thread::{{impl}}::create::{{closure}} + 1670 at lib.rs:277
    frame #27: 0x00000001009aaf0c servo`std::panic::{{impl}}::call_once<(self=AssertUnwindSafe<closure> at 0x000000012225c258, _args=<unavailable>),closure> + 124 at panic.rs:295
    frame #28: 0x0000000100830b40 servo`std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure>,(data=0x000000012225c838)> + 384 at panicking.rs:356
    frame #29: 0x00000001056c50bb servo`panic_unwind::__rust_maybe_catch_panic + 27 at lib.rs:97
    frame #30: 0x000000010082fee1 servo`std::panicking::try<(f=AssertUnwindSafe<closure> at 0x000000012225c938),std::panic::AssertUnwindSafe<closure>> + 305 at panicking.rs:332
    frame #31: 0x000000010082e426 servo`std::panic::catch_unwind<std::panic::AssertUnwindSafe<closure>,(f=AssertUnwindSafe<closure> at 0x000000012225cae8)> + 134 at panic.rs:351
    frame #32: 0x000000010082f241 servo`std::thread::{{impl}}::spawn::{{closure}}<closure,()> + 401 at mod.rs:287
    frame #33: 0x00000001008beb6a servo`alloc::boxed::{{impl}}::call_box<(self=0x000000011be26140, args=<unavailable>),closure> + 74 at boxed.rs:595
    frame #34: 0x00000001056c3165 servo`std::sys::imp::thread::{{impl}}::new::thread_start [inlined] alloc::boxed::{{impl}}::call_once<(),()> + 37 at boxed.rs:605
    frame #35: 0x00000001056c315f servo`std::sys::imp::thread::{{impl}}::new::thread_start [inlined] std::sys_common::thread::start_thread + 15 at thread.rs:21
    frame #36: 0x00000001056c3150 servo`std::sys::imp::thread::{{impl}}::new::thread_start + 16 at thread.rs:84
    frame #37: 0x00007fff906a8899 libsystem_pthread.dylib`_pthread_body + 138
    frame #38: 0x00007fff906a872a libsystem_pthread.dylib`_pthread_start + 137
    frame #39: 0x00007fff906acfc9 libsystem_pthread.dylib`thread_start + 13
(lldb) up
frame #8: 0x00000001033cef84 servo`gfx::display_list::{{impl}}::hit_test_stacking_context(self=0x0000000124045580, traversal=0x00000001222584e8, stacking_context=0x0000000124ac3460, translated_point=0x0000000122257c58, client_point=0x00000001222588a0, scroll_offsets=0x0000000126a13db0, result=0x0000000122258508) + 436 at mod.rs:137
   134 	            *client_point
   135 	        } else {
   136 	            let point = *translated_point - stacking_context.bounds.origin;
-> 137 	            let inv_transform = stacking_context.transform.inverse().unwrap();
   138 	            let frac_point = inv_transform.transform_point(&Point2D::new(point.x.to_f32_px(),
   139 	                                                                         point.y.to_f32_px()));
   140 	            Point2D::new(Au::from_f32_px(frac_point.x), Au::from_f32_px(frac_point.y))

So this is our old friend #13266.

@jdm jdm added C-reproduced and removed C-clarifying labels Dec 14, 2016
@jdm
Copy link
Member

@jdm jdm commented Dec 14, 2016

Closing in favour of #13266. Thanks for reporting it!

@jdm jdm closed this Dec 14, 2016
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
2 participants
You can’t perform that action at this time.