Repository navigation
Closed
Labels
Description
STR:
- launch browserhtml
- load firefox.com
- click on "Privacy" link
- half of the time, panic
thread '<unnamed>' panicked at 'index 19 out of range for slice of length 14', ../src/libcore/slice.rs:527
note: Run with `RUST_BACKTRACE=1` for a backtrace.
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread 'ImageCacheThread' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Custom(Custom { kind: NotFound, error: StringError("Bogus destination port.") }) }', ../src/libcore/result.rs:746
thread 'LayoutThread PipelineId { namespace_id: PipelineNamespaceId(1), index: PipelineIndex(1) }' panicked at 'called `Result::unwrap()` on an `Err` value: IoError(Error { repr: Custom(Custom { kind: Other, error: StringError("Unknown Mach error: 46") }) })', ../src/libcore/result.rs:746
thread 'PaintThread PipelineId { namespace_id: PipelineNamespaceId(1), index: PipelineIndex(1) }thread '' panicked at 'LayoutWorker worker 1/3called `Result::unwrap()` on an `Err` value: RecvError' panicked at '', called `Result::unwrap()` on an `Err` value: RecvError../src/libcore/result.rs', :../src/libcore/result.rs746:
746
thread 'LayoutWorker worker 2/3' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread 'thread 'PaintWorker' panicked at 'PaintWorkercalled `Result::unwrap()` on an `Err` value: RecvError' panicked at '', called `Result::unwrap()` on an `Err` value: RecvError../src/libcore/result.rs', :../src/libcore/result.rs:746746
thread 'PaintWorker' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread 'Constellation' panicked at 'unable to find pipeline - this is a bug', ../src/libcore/option.rs:704
thread 'LayoutWorker worker 3/3' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
Render took 17.943536000006134ms & will cause frame drop
thread 'ScriptThread PipelineId { namespace_id: PipelineNamespaceId(1), index: PipelineIndex(1) }' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', ../src/libcore/result.rs:746
thread 'LayoutThread PipelineId { namespace_id: PipelineNamespaceId(0), index: PipelineIndex(0) }' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Custom(Custom { kind: NotFound, error: StringError("Bogus destination port.") }) }', ../src/libcore/result.rs:746
thread 'PaintThread PipelineId { namespace_id: PipelineNamespaceId(0), index: PipelineIndex(0) }' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread 'LayoutWorker worker 1/3' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', ../src/libcore/result.rs:746
thread 'LayoutWorker worker 2/3' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread 'LayoutWorker worker 3/3' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread 'ScriptThread PipelineId { namespace_id: PipelineNamespaceId(1), index: PipelineIndex(1) }' panicked at 'assertion failed: *self.stack == mem::transmute(&*self)', /Users/paul/git/servo/.cargo/git/checkouts/rust-mozjs-ebb4917e843c0a11/master/src/rust.rs:334
stack backtrace:
thread 'PaintWorker' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread 'PaintWorker' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread 'PaintWorker' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
1: 0x1069fcb28 - sys::backtrace::tracing::imp::write::h3153bab3099b48114Zu
thread 'LayoutThread PipelineId { namespace_id: PipelineNamespaceId(1), index: PipelineIndex(0) }' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
2: 0x106a00719 - panicking::default_handler::_$u7b$$u7b$closure$u7d$$u7d$::closure.43920
thread 'PaintThread PipelineId { namespace_id: PipelineNamespaceId(1), index: PipelineIndex(0) }' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread 'LayoutWorker worker 1/3' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread 'LayoutWorker worker 2/3' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread 'LayoutWorker worker 3/3' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
3: 0x106a00348 - panicking::default_handler::h1183b2a11c8682560zz
4: 0x1069eb716 - sys_common::unwind::begin_unwind_inner::h1f97bc9e4cfe0396LZt
5: 0x1056c2e84 - sys_common::unwind::begin_unwind::h14635163711203565451
6: 0x1056c4aa4 - js..jsapi_macos_64..Rooted<*mut js..jsapi_macos_64..JSObject>::drop.140632::haa4f5160ae4910f6
thread 'PaintWorker' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread 'PaintWorker' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
7: 0x1054cf124 - dom::eventdispatcher::invoke::hc285942dfe69ebe91qV
thread 'PaintWorker' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', ../src/libcore/result.rs:746
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', ../src/libcore/result.rs:746
8: 0x1054cfa4c - dom::eventdispatcher::dispatch_event::h200e045ef877e5fcVlV
9: 0x1054d3e59 - dom::eventtarget::EventTarget::fire_event::h5244eb252ce8ce26YsW
10: 0x1056af7c9 - task_source::dom_manipulation::DOMManipulationTask::handle_msg::hbb624e3df838261eBqv
11: 0x10583c9e1 - script_thread::ScriptThread::handle_msg_from_script::hc4b4152ef42bb457Qfu
Activity
[-]Panic: Bogus destination port[/-][+]Panic: 'ImageCacheThread' Bogus destination port[/+]paulrouget commentedon Mar 29, 2016
Manishearth commentedon Mar 29, 2016
The destination port error is irrelevant, the important one is the slice index one which seems to be in some glyph code.
cc @glennw
[-]Panic: 'ImageCacheThread' Bogus destination port[/-][+]display list panic: 'index 26 out of range for slice of length 18'[/+]paulrouget commentedon Mar 29, 2016
I need to make sure this happens with master.Edit: happens on masterI have 2 PR applied:
paulrouget commentedon Mar 29, 2016
Happens on master.
pcwalton commentedon Mar 29, 2016
I've seen this sometimes, but only on complex sites. This will be hard to solve without a reduced test case.
pcwalton commentedon Mar 29, 2016
This is probably a regression from some browser.html P1 optimizations I introduced. By the way, I investigated this before and concluded that the stack trace must be wrong as this doesn't appear in a function that actually performs bounds checks or calls any other function that does. Fun!
jrasanen commentedon Mar 29, 2016
I run into this bug fairly often, dump: https://gist.github.com/jrasanen/ad4d9b4a439bc9cb5e57063e5296c4b9
Opened servo with browserhtml enabled, pasted "https://v4-alpha.getbootstrap.com/examples/navbar-top-fixed/" into the URL bar and pressed enter -> immediate crash
pcwalton commentedon Mar 30, 2016
I wonder if the display list data for different iframes is getting mixed up.
pcwalton commentedon Mar 30, 2016
I'm having trouble reproducing this. I can't after trying each of the URLs here several times, with the latest browser.html.
paulrouget commentedon Mar 30, 2016
Tried with the very latest browerhtml & servo & webrender versions, still happening.
STR: load firefox.com in bhtml, and click on links. Usually, after the first or second link, it crashes.
I tried @jrasanen's page, but it doesn't crash here.
@pcwalton I'll see if I can find the commit that regressed that.
paulrouget commentedon Mar 30, 2016
I can't reproduce on my macbook pro, only on my macbook 12.
4 remaining items
paulrouget commentedon Mar 31, 2016
fwiw, still happening with the latest WR.
paulrouget commentedon Mar 31, 2016
@pcwalton, is there anything I can do to help you figure out what's going here?
Gozala commentedon Mar 31, 2016
Attempt to load http://elm-lang.org reliably reproduces the issue for me.
Gozala commentedon Mar 31, 2016
I also noticed that loading just that without browser.html does not seem to cause a crash.
paulrouget commentedon Apr 1, 2016
It's happening on my macbook pro as well.
mbrubeck commentedon Apr 1, 2016
From a debug build, the key part of the stack trace:
pcwalton commentedon Apr 1, 2016
Oh, it's obvious what's going on now. Working on a fix.
Brand each payload message with the stacking context ID and epoch to
Brand each payload message with the stacking context ID and epoch to
Auto merge of #31 - pcwalton:payload-branding, r=glennw
Brand each payload message with the stacking context ID and epoch to
Auto merge of #257 - pcwalton:payload-branding, r=glennw
servo: Update WebRender.
Auto merge of #10462 - pcwalton:wrup3, r=glennw