{"action":"created","issue":{"url":"https://api.github.com/repos/librespot-org/librespot/issues/225","repository_url":"https://api.github.com/repos/librespot-org/librespot","labels_url":"https://api.github.com/repos/librespot-org/librespot/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/librespot-org/librespot/issues/225/comments","events_url":"https://api.github.com/repos/librespot-org/librespot/issues/225/events","html_url":"https://github.com/librespot-org/librespot/issues/225","id":324289278,"number":225,"title":"'main' panicked at 'called `Result::unwrap()` when switching off phone screen","user":{"login":"meiseGit","id":39398989,"avatar_url":"https://avatars3.githubusercontent.com/u/39398989?v=4","gravatar_id":"","url":"https://api.github.com/users/meiseGit","html_url":"https://github.com/meiseGit","followers_url":"https://api.github.com/users/meiseGit/followers","following_url":"https://api.github.com/users/meiseGit/following{/other_user}","gists_url":"https://api.github.com/users/meiseGit/gists{/gist_id}","starred_url":"https://api.github.com/users/meiseGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meiseGit/subscriptions","organizations_url":"https://api.github.com/users/meiseGit/orgs","repos_url":"https://api.github.com/users/meiseGit/repos","events_url":"https://api.github.com/users/meiseGit/events{/privacy}","received_events_url":"https://api.github.com/users/meiseGit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-18T06:45:34Z","updated_at":"2018-05-18T07:31:55Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\nI'm running librespot on my raspberry pi 3 and control it with my android 7 phone. Since the last 2 days librespot crashes with the following error message every time when i turn off the screen of my phone during playback, or when I turn the phone so it switches from portrait to landscape mode.\r\nHere is the error: (without the \"fetch\" messages)\r\n\r\n\r\nINFO:librespot: librespot d40c0f5 (2018-05-16). Built on 2018-05-17. Build ID: P11vY1AI\r\nDEBUG:librespot_connect::discovery: Zeroconf server listening on 0.0.0.0:0\r\nDEBUG:librespot_connect::discovery: Post \"/\" {}\r\nINFO:librespot_core::session: Connecting to AP \"gew1-accesspoint-b-n2b0.ap.spotify.com:4070\"\r\nINFO:librespot_core::session: Authenticated as \"meise86\" !\r\nDEBUG:librespot_core::session: new Session[0]\r\nDEBUG:librespot_connect::spirc: new Spirc[0]\r\nDEBUG:librespot_core::mercury: new MercuryManager\r\nDEBUG:librespot_playback::player: new Player[0]\r\nINFO:librespot_playback::audio_backend::alsa: Using alsa sink\r\nDEBUG:librespot_connect::spirc: input volume:32768 to mixer: 2072\r\nDEBUG:librespot_core::session: Session[0] strong=3 weak=2\r\nINFO:librespot_core::session: Country: \"DE\"\r\nDEBUG:librespot_core::mercury: unknown subscription uri=hm://remote/3/user/meise86/495ba3b0635828fdd24453aa7e8546e6c6a8b165\r\nDEBUG:librespot_core::mercury: subscribed uri=hm://remote/3/user/meise86/ count=0\r\nDEBUG:librespot_connect::spirc: kMessageTypeLoad \"Galaxy S6\" 495ba3b0635828fdd24453aa7e8546e6c6a8b165 2 0\r\nDEBUG:librespot_playback::player: command=Load(SpotifyId(u128!(38381817756316169679438963587405112931)), false, 16384)\r\nINFO:librespot_playback::player: Loading track \"Schmeiß alles rein\" with Spotify URI \"spotify:track:0SubtpXdMUeIjpGWdq31VF\"\r\nDEBUG:librespot_core::audio_key: new AudioKeyManager\r\nDEBUG:librespot_audio::fetch: Downloading file c1140085f9d049636cd1707463db55030129e32e\r\nDEBUG:librespot_core::channel: new ChannelManager\r\nDEBUG:librespot_playback::player: Normalisation Data: NormalisationData { track_gain_db: -9.660004, track_peak: 1.1473889, album_gain_db: -8.650002, album_peak: 1.2710155 }\r\nDEBUG:librespot_playback::player: Applied normalisation factor: 0.3288515\r\nINFO:librespot_playback::player: Track \"Schmeiß alles rein\" loaded\r\nDEBUG:librespot_connect::spirc: kMessageTypePlay \"Galaxy S6\" 495ba3b0635828fdd24453aa7e8546e6c6a8b165 3 0\r\nDEBUG:librespot_playback::player: command=Play\r\nTRACE:librespot_audio::fetch: chunk 26 / 27 complete\r\nDEBUG:librespot_audio::fetch: File c1140085f9d049636cd1707463db55030129e32e complete\r\nthread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: WireError(InvalidEnumValue(14))', libcore/result.rs:945:5\r\nstack backtrace:\r\n   0:   0x880a97 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h199161caf4bb8a45\r\n                       at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49\r\n   1:   0x8891f7 - std::sys_common::backtrace::print::ha743a2ce883acb7f\r\n                       at libstd/sys_common/backtrace.rs:71\r\n                       at libstd/sys_common/backtrace.rs:59\r\n   2:   0x870217 - std::panicking::default_hook::{{closure}}::hbba61518001dc5c7\r\n                       at libstd/panicking.rs:211\r\n   3:   0x86febf - std::panicking::default_hook::h843acd3de0f33da9\r\n                       at libstd/panicking.rs:227\r\n   4:   0x8708db - std::panicking::rust_panic_with_hook::h17c136d6be3ce5e4\r\n                       at libstd/panicking.rs:463\r\n   5:   0x870467 - std::panicking::begin_panic_fmt::h7dac8c4f4073d4bf\r\n                       at libstd/panicking.rs:350\r\n   6:   0x87042f - rust_begin_unwind\r\n                       at libstd/panicking.rs:328\r\n   7:   0x8bdfff - core::panicking::panic_fmt::h291dfef94d3ea1d8\r\n                       at libcore/panicking.rs:71\r\n   8:   0x474333 - core::result::unwrap_failed::hea18e00b20c8f9d4\r\n   9:   0x470f4b - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &'a mut F>::call_once::hec08ca3de9c9c54a\r\n  10:   0x491eff - <futures::stream::map::Map<S, F> as futures::stream::Stream>::poll::h6834f5ebe2c11dcf\r\n  11:   0x475c73 - <librespot_connect::spirc::SpircTask as futures::future::Future>::poll::hb1546b95926838d4\r\n  12:   0x439053 - <librespot::Main as futures::future::Future>::poll::h375c9496645c90f1\r\n  13:   0x442a1b - futures::task_impl::std::set::h3408cdf1bfba0f29\r\n  14:   0x455d6f - <futures::future::lazy::Lazy<F, R> as futures::future::Future>::poll::hd5c752d811bb876f\r\n  15:   0x442b97 - futures::task_impl::std::set::h94b5c45bc614062b\r\n  16:   0x4448cb - <std::thread::local::LocalKey<T>>::with::h80695c7c2df7cfba\r\n  17:   0x4467d3 - <tokio::executor::current_thread::Entered<'a, P>>::block_on::hd30b684a30266784\r\n  18:   0x444bf3 - <std::thread::local::LocalKey<T>>::with::hc5de68409eb5b113\r\n  19:   0x4449eb - <std::thread::local::LocalKey<T>>::with::hc412a9fc75f9bb78\r\n  20:   0x444763 - <std::thread::local::LocalKey<T>>::with::h7e68ab9f261c3131\r\n  21:   0x44588f - <scoped_tls::ScopedKey<T>>::set::hc0046d94a7f84667\r\n  22:   0x43bf27 - tokio_core::reactor::Core::run::h18545fa0167fa52a\r\n  23:   0x43afe7 - librespot::main::h9c56636c97bd0ca4\r\n  24:   0x45485f - std::rt::lang_start::{{closure}}::hfda5a692ce3d081c\r\n  25:   0x87036f - std::panicking::try::do_call::h705bcdac05b967f9\r\n                       at libstd/rt.rs:59\r\n                       at libstd/panicking.rs:310\r\n  26:   0x88eaeb - __rust_maybe_catch_panic\r\n                       at libpanic_unwind/lib.rs:105\r\n  27:   0x870b4b - std::rt::lang_start_internal::h8893dac715d391ba\r\n                       at libstd/panicking.rs:289\r\n                       at libstd/panic.rs:374\r\n                       at libstd/rt.rs:58\r\n  28:   0x43bc73 - main\r\n  29: 0x76c2a677 - __libc_start_main\r\nDEBUG:librespot_connect::spirc: drop Spirc[0]\r\nDEBUG:librespot_playback::player: Shutting down player thread ...\r\nDEBUG:librespot_playback::player: drop Player[0]\r\nDEBUG:librespot_core::session: drop Session[0]\r\nDEBUG:librespot_core::audio_key: drop AudioKeyManager\r\nDEBUG:librespot_core::channel: drop ChannelManager\r\nDEBUG:librespot_core::mercury: drop MercuryManager\r\nDEBUG:librespot_core::session: drop Dispatch\r\n\r\nI can reproduce this error with two different phones (both android 7). If someone need more information, I'm happy to provide it.\r\n"},"comment":{"url":"https://api.github.com/repos/librespot-org/librespot/issues/comments/390121035","html_url":"https://github.com/librespot-org/librespot/issues/225#issuecomment-390121035","issue_url":"https://api.github.com/repos/librespot-org/librespot/issues/225","id":390121035,"user":{"login":"CombinedEffort","id":38855480,"avatar_url":"https://avatars0.githubusercontent.com/u/38855480?v=4","gravatar_id":"","url":"https://api.github.com/users/CombinedEffort","html_url":"https://github.com/CombinedEffort","followers_url":"https://api.github.com/users/CombinedEffort/followers","following_url":"https://api.github.com/users/CombinedEffort/following{/other_user}","gists_url":"https://api.github.com/users/CombinedEffort/gists{/gist_id}","starred_url":"https://api.github.com/users/CombinedEffort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CombinedEffort/subscriptions","organizations_url":"https://api.github.com/users/CombinedEffort/orgs","repos_url":"https://api.github.com/users/CombinedEffort/repos","events_url":"https://api.github.com/users/CombinedEffort/events{/privacy}","received_events_url":"https://api.github.com/users/CombinedEffort/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T07:31:55Z","updated_at":"2018-05-18T07:31:55Z","author_association":"NONE","body":"Thanks @michaelherger, I just noticed spirc.proto was updated 8 hours ago so have started a build :)"}}
{"actor":{"display_login":"CombinedEffort"}}