servo / servo

Servo, the embeddable, independent, memory-safe, modular, parallel web rendering engine
https://servo.org
Mozilla Public License 2.0
28.58k stars 3.04k forks source link

Crash while moving mouse over loading iframe #11839

Closed cbrewster closed 7 years ago

cbrewster commented 8 years ago
ERROR:constellation::constellation: Panic: ScriptThread: received an event message for a layout channel that is not associated with this script thread.This is a bug.
ERROR:constellation::constellation: Backtrace:
frame #0  - 0x000000010c7ea030 - backtrace::backtrace::trace::hccde8df28b4db2a2
frame #1  - 0x000000010c7e9eda - backtrace::capture::Backtrace::new::h42f95930bb8c5ee8
frame #2  - 0x000000010add6cb5 - util::thread::spawn_named_with_send_on_panic::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h8e08bac0ce5835b1
frame #3  - 0x000000010add72b0 - extern $u22$rust.call$u22$$u20$fn$LP$$u5b$closure$SP$DefId$u20$$u7b$$u20$krate.$u20$47$C$$u20$node.$u20$DefIndex$LP$2380$RP$$u20$$u7d$$u20$0.ipc_channel..ipc..IpcSender$LT$$LP$core..option..Option$LT$msg..constellation_msg..PipelineId$GT$$C$$u20$std..string..String$C$$u20$std..string..String$RP$$GT$$C$$u20$1.core..option..Option$LT$msg..constellation_msg..PipelineId$GT$$u5d$$C$$u20$$LP$$RF$core..any..Any$C$$RP$$RP$::once_shim.215654::h3190046b5fea3554
frame #4  - 0x000000010add725c - _<F as alloc..boxed..FnBox<A>>::call_box::hebb3b95724d7c6a0
frame #5  - 0x000000010c41e29f - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hddf831bcfa835e79
frame #6  - 0x000000010c41dea3 - _<std..thread..local..LocalKey<T>>::with::h49e68c592f601e39
frame #7  - 0x000000010c41dcf6 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0fcde37d4d058867
frame #8  - 0x000000010c8c46b4 - std::panicking::rust_panic_with_hook::h983af77c1a2e581b
frame #9  - 0x000000010c8dd6a6 - std::panicking::begin_panic::he426e15a3766089a
frame #10 - 0x000000010c8c5cf8 - std::panicking::begin_panic_fmt::hdddb415186c241e7
frame #11 - 0x000000010c8dd2ff - rust_begin_unwind
frame #12 - 0x000000010c904180 - core::panicking::panic_fmt::hf4e16cb7f0d41a25
frame #13 - 0x000000010c90bc05 - core::option::expect_failed::hdb92832549f56a85
frame #14 - 0x00000001099cc993 - _<core..option..Option<T>>::expect::hfe57abccca8ea359
frame #15 - 0x00000001099afb7d - script::script_thread::get_browsing_context::h70265fd8acede02f
frame #16 - 0x000000010ae50aa2 - script::script_thread::ScriptThread::handle_event::hb1054401ed8869b2
frame #17 - 0x000000010ae80148 - script::script_thread::ScriptThread::handle_msg_from_constellation::hb125e29adccf30ce
frame #18 - 0x000000010ae7ebfe - script::script_thread::ScriptThread::handle_msgs::_$u7b$$u7b$closure$u7d$$u7d$::hdfba591677ee0854
frame #19 - 0x000000010ae7e7e5 - script::script_thread::ScriptThread::profile_event::h180ff2036b8c2783
frame #20 - 0x000000010ae4ebc9 - script::script_thread::ScriptThread::handle_msgs::h45a47f1f1786f911
frame #21 - 0x000000010adeb98c - script::script_thread::ScriptThread::start::hf0f02e16b9da3912
frame #22 - 0x000000010adeb93b - _<script..script_thread..ScriptThread as script_traits..ScriptThreadFactory>::create::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h60e2514d7c15aeaf
frame #23 - 0x000000010adeb691 - profile_traits::mem::ProfilerChan::run_with_memory_reporting::h90164fdc02bc9ddf
frame #24 - 0x000000010add79d6 - _<script..script_thread..ScriptThread as script_traits..ScriptThreadFactory>::create::_$u7b$$u7b$closure$u7d$$u7d$::hc2f6bfd107201055
frame #25 - 0x000000010add606e - util::thread::spawn_named_with_send_on_panic::_$u7b$$u7b$closure$u7d$$u7d$::h44d46100d4f5f190
frame #26 - 0x000000010add5e27 - _<std..panic..AssertUnwindSafe<F> as core..ops..FnOnce<()>>::call_once::h4974dfb1034d8cd6
frame #27 - 0x000000010add5d7b - std::panicking::try::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h4326e3cb5bf9d187
frame #28 - 0x000000010add6634 - std::panicking::try::call::h78061d8f9ce27ca7
frame #29 - 0x000000010c8e038b - __rust_try
frame #30 - 0x000000010c8e0325 - __rust_maybe_catch_panic
frame #31 - 0x000000010add5ccd - std::panicking::try::_$u7b$$u7b$closure$u7d$$u7d$::he258e52e28311769
frame #32 - 0x000000010add5c1f - _<std..thread..local..LocalKey<T>>::with::h6a07862be6a45706
frame #33 - 0x000000010add5a4f - std::panicking::try::h90b38a4a00a80b43
frame #34 - 0x000000010add592e - std::panic::catch_unwind::h066dae249590ffb5
frame #35 - 0x000000010add578c - std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::hb658a84aa2bff2ef
frame #36 - 0x000000010add6837 - _<F as alloc..boxed..FnBox<A>>::call_box::h2ec158fb92e41aca
frame #37 - 0x000000010c8dbe08 - std::sys::thread::Thread::new::thread_start::h9c883b6d445ece46
frame #38 - 0x00007fff9192999c - _pthread_body
frame #39 - 0x00007fff91929919 - _pthread_start

I am having trouble reproducing this, the easiest way is to get the latest version of b.html and run:

./mach run -d -- -b -w --resolution=1024x720 --pref dom.mozbrowser.enabled --pref dom.forcetouch.enabled --pref dom.quit-on-escape.enabled=false http://localhost:6060

While it is loading up, move your cursor around on the window. You may have to try a few times to get the panic to happen.

cbrewster commented 8 years ago

Apart of #11685

cbrewster commented 7 years ago

I believe this is no longer and issue.