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: Error { repr: Custom(Custom { kind: Other, error: StringError("MPSC send failed") }) } #12207

Closed
t0k4rt opened this issue Jul 4, 2016 · 2 comments

Comments

@t0k4rt
Copy link

@t0k4rt t0k4rt commented Jul 4, 2016

called Result::unwrap() on an Err value: Error { repr: Custom(Custom { kind: Other, error: StringError("MPSC send failed") }) }

URL:

http://natron.fr/

Backtrace:

frame #0  - 0x0000000111b156ce - backtrace::backtrace::trace::hccde8df28b4db2a2
frame #1  - 0x0000000111b15651 - backtrace::capture::Backtrace::new::h42f95930bb8c5ee8
frame #2  - 0x0000000110382ca4 - _<F as alloc..boxed..FnBox<A>>::call_box::haeff945be1a63d60
frame #3  - 0x0000000111a89947 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h2c0e77c593c00c08
frame #4  - 0x0000000111cfd844 - std::panicking::rust_panic_with_hook::h983af77c1a2e581b
frame #5  - 0x0000000111d16786 - std::panicking::begin_panic::he426e15a3766089a
frame #6  - 0x0000000111cfee88 - std::panicking::begin_panic_fmt::hdddb415186c241e7
frame #7  - 0x0000000111d163df - rust_begin_unwind
frame #8  - 0x0000000111d3d260 - core::panicking::panic_fmt::hf4e16cb7f0d41a25
frame #9  - 0x000000011037438e - core::result::unwrap_failed::hf40cb93f6f31ec3d
frame #10 - 0x00000001103f1e0f - layout_thread::LayoutThread::exit_now::h9c02213ba81aad74
frame #11 - 0x00000001103d53a3 - layout_thread::LayoutThread::handle_request_helper::h1029bbb7e9e50e59
frame #12 - 0x00000001103c0f1a - layout_thread::LayoutThread::handle_request::ha13841b9d3ecdc81
frame #13 - 0x0000000110380b1a - std::panicking::try::call::h401e4a3a7768c3f1
frame #14 - 0x0000000111d1946b - __rust_try
frame #15 - 0x0000000111d19405 - __rust_maybe_catch_panic
frame #16 - 0x0000000110381e84 - _<F as alloc..boxed..FnBox<A>>::call_box::h8169792cb3dac906
frame #17 - 0x0000000111d14ee8 - std::sys::thread::Thread::new::thread_start::h9c883b6d445ece46
frame #18 - 0x00007fff8b30c99c - _pthread_body
frame #19 - 0x00007fff8b30c919 - _pthread_start

@jdm
Copy link
Member

@jdm jdm commented Jul 4, 2016

Curious; in a debug build on mac I see completely garbage rendering (a flickering window filled with portions of existing video memory), and then I get a SIGPIPE presumably triggered by this backtrace:

(lldb) bt
error: need to add support for DW_TAG_base_type '()' encoded with DW_ATE = 0x7, bit_size = 0
* thread #64: tid = 0xfb06, 0x000000010416cea5 servo`core::ptr::write<u8>(dst=0x000000011b057000, src='\0') + 21 at ptr.rs:187
  * frame #0: 0x000000010416cea5 servo`core::ptr::write<u8>(dst=0x000000011b057000, src='\0') + 21 at ptr.rs:187
    frame #1: 0x000000010416cb53 servo`collections::vec::{{impl}}::extend_from_slice<u8>(self=0x00000001296085f8, other=&[u8] at 0x0000000129607cc8) + 339 at vec.rs:997
    frame #2: 0x0000000104173733 servo`std::io::impls::{{impl}}::write_all(self=0x00000001296085f8, buf=&[u8] at 0x0000000129607d08) + 51 at impls.rs:220
    frame #3: 0x00000001041735aa servo`byteorder::new::WriteBytesExt::write_u32<collections::vec::Vec<u8>,byteorder::BigEndian>(self=0x00000001296085f8, n=0) + 138 at new.rs:191
    frame #4: 0x0000000104173360 servo`bincode::serde::writer::{{impl}}::serialize_u32<collections::vec::Vec<u8>>(self=0x0000000129608320, v=0) + 48 at writer.rs:108
    frame #5: 0x0000000104173320 servo`bincode::serde::writer::{{impl}}::add_enum_tag<collections::vec::Vec<u8>>(self=0x0000000129608320, tag=0) + 112 at writer.rs:86
    frame #6: 0x000000010417383b servo`bincode::serde::writer::{{impl}}::serialize_tuple_variant<collections::vec::Vec<u8>,core::option::Option<&core::result::Result<net_traits::Metadata, net_traits::NetworkError>>>(self=0x0000000129608320, _name=&str at 0x0000000129607f88, variant_index=0, _variant=&str at 0x0000000129607f70, visitor=Option<&core::result::Result<net_traits::Metadata, net_traits::NetworkError>> at 0x0000000129607f68) + 91 at writer.rs:243
    frame #7: 0x00000001041737d5 servo`serde::ser::Serializer::serialize_newtype_variant<bincode::serde::writer::Serializer<collections::vec::Vec<u8>>,&core::result::Result<net_traits::Metadata, net_traits::NetworkError>>(self=0x0000000129608320, name=&str at 0x0000000129607ff8, variant_index=0, variant=&str at 0x0000000129607fe0, value=0x0000000129608630) + 101 at mod.rs:187
    frame #8: 0x000000010417fd1b servo`net_traits::_IMPL_SERIALIZE_FOR_ResponseAction::{{impl}}::serialize<bincode::serde::writer::Serializer<collections::vec::Vec<u8>>>(self=0x0000000129608628, _serializer=0x0000000129608320) + 235 at lib.rs:252
    frame #9: 0x000000010417f877 servo`_$LT$ipc_channel..ipc..IpcSender$LT$T$GT$$GT$::send::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h2d3bb047da67cbcc + 823
    frame #10: 0x000000010417f524 servo`std::thread::local::{{impl}}::with<core::cell::RefCell<collections::vec::Vec<ipc_channel::platform::macos::MachSharedMemory>>,closure,core::result::Result<(self=0x00000001060820e0, f=closure at 0x0000000129608498), std::io::error::Error>> + 244 at local.rs:211
    frame #11: 0x000000010417f41c servo`_$LT$ipc_channel..ipc..IpcSender$LT$T$GT$$GT$::send::_$u7b$$u7b$closure$u7d$$u7d$::hc6ecbfaf775ba6d8 + 76
    frame #12: 0x000000010417f3b8 servo`std::thread::local::{{impl}}::with<core::cell::RefCell<collections::vec::Vec<ipc_channel::platform::macos::MachChannel>>,closure,core::result::Result<(self=0x00000001060820d0, f=closure at 0x0000000129608580), std::io::error::Error>> + 216 at local.rs:211
    frame #13: 0x000000010417f1b1 servo`ipc_channel::ipc::{{impl}}::send<net_traits::ResponseAction>(self=0x000000012960915c, data=ResponseAction at 0x0000000129608628) + 161 at ipc.rs:145
    frame #14: 0x000000010417ee22 servo`net_traits::{{impl}}::invoke_with_listener(self=0x000000012960915c, action=ResponseAction at 0x0000000129608908) + 162 at lib.rs:295
    frame #15: 0x00000001006ef29a servo`net::resource_thread::start_sending_opt(start_chan=LoadConsumer at 0x0000000129609158, metadata=Metadata at 0x0000000129609030, network_error=Option<net_traits::NetworkError> at 0x0000000129608fb0) + 1386 at resource_thread.rs:165
    frame #16: 0x00000001004b9132 servo`net::resource_thread::send_error(url=Url at 0x0000000129609680, err=NetworkError at 0x0000000129609608, start_chan=LoadConsumer at 0x00000001296095f8) + 674 at resource_thread.rs:91
    frame #17: 0x00000001005b7f28 servo`net::http_loader::load_for_consumer(load_data=LoadData at 0x000000012960a350, start_chan=LoadConsumer at 0x000000012960a340, classifier=Arc<net::mime_classifier::MIMEClassifier> at 0x000000012960a338, connector=Arc<hyper::client::pool::Pool<hyper::net::HttpsConnector<net::connector::ServoSslClient, hyper::net::HttpConnector>>> at 0x000000012960a328, http_state=HttpState at 0x000000012960a300, devtools_chan=Option<std::sync::mpsc::Sender<devtools_traits::DevtoolsControlMsg>> at 0x000000012960a2e0, cancel_listener=CancellationListener at 0x000000012960a2a8, user_agent=String at 0x000000012960a290) + 2200 at http_loader.rs:151
    frame #18: 0x00000001005b7592 servo`net::http_loader::factory::{{closure}}::{{closure}}::{{closure}} + 818 at http_loader.rs:75
    frame #19: 0x00000001005b707c servo`profile_traits::time::profile<(category=NetHTTPRequestResponse, meta=Option<profile_traits::time::TimerMetadata> at 0x000000012960adf8, profiler_chan=ProfilerChan at 0x000000012960adf0, callback=closure at 0x000000012960ab80),closure> + 300 at time.rs:108
    frame #20: 0x00000001005b6606 servo`net::http_loader::factory::{{closure}}::{{closure}} + 1030 at http_loader.rs:74
    frame #21: 0x00000001005b61a8 servo`std::panic::{{impl}}::call_once<(self=AssertUnwindSafe<closure> at 0x000000012960b480, _args=<unavailable>),closure> + 136 at panic.rs:251
    frame #22: 0x00000001005b60fc servo`std::panicking::try::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hda7091a686dadbc5 + 92
    frame #23: 0x00000001005b6c35 servo`std::panicking::try::call<closure>(f=0x000000012960bce8) + 21 at panicking.rs:272
    frame #24: 0x00000001048ff3ac servo`__rust_try + 12
    frame #25: 0x00000001048ff346 servo`__rust_maybe_catch_panic + 38
    frame #26: 0x00000001005b604e servo`std::panicking::try::_$u7b$$u7b$closure$u7d$$u7d$::h0471fbc18f57695a + 158
    frame #27: 0x00000001005b5fa0 servo`std::thread::local::{{impl}}::with<core::cell::Cell<usize>,closure,core::result::Result<(self=0x00000001060fa6a0, f=closure at 0x000000012960bd88), Box<Any>>> + 208 at local.rs:211
    frame #28: 0x00000001005b5dd0 servo`std::panicking::try<(f=AssertUnwindSafe<closure> at 0x000000012960c0b0),std::panic::AssertUnwindSafe<closure>> + 192 at panicking.rs:235
    frame #29: 0x00000001005b5caf servo`std::panic::catch_unwind<std::panic::AssertUnwindSafe<closure>,(f=AssertUnwindSafe<closure> at 0x000000012960c5e0)> + 143 at panic.rs:307
    frame #30: 0x00000001005b5b0d servo`std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::hcb830a167795e6ca + 349
    frame #31: 0x00000001005b6e38 servo`alloc::boxed::{{impl}}::call_box<(self=0x000000011c432280, args=<unavailable>),closure> + 104 at boxed.rs:544
    frame #32: 0x00000001048fae29 servo`std::sys::thread::Thread::new::thread_start::h9c883b6d445ece46 + 57
    frame #33: 0x00007fff8a6bd899 libsystem_pthread.dylib`_pthread_body + 138
    frame #34: 0x00007fff8a6bd72a libsystem_pthread.dylib`_pthread_start + 137
    frame #35: 0x00007fff8a6c1fc9 libsystem_pthread.dylib`thread_start + 13
@nox
Copy link
Member

@nox nox commented Oct 4, 2017

This doesn't happen anymore.

@nox nox closed this Oct 4, 2017
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
3 participants
You can’t perform that action at this time.