dmfutcher / spotify-connect-scrobbler

Last.fm scrobbler for Spotify Connect
MIT License
21 stars 2 forks source link

Artist with strange unicode name: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value #7

Open dmfutcher opened 6 years ago

dmfutcher commented 6 years ago

Trying to scrobble a track by an artist with the name "Ó" causes spotify-connect-scrobbler to panic.

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: WireError(InvalidEnumValue(4))', src/libcore/result.rs:906:4
stack backtrace:
   0:        0x110ac5633 - std::sys::imp::backtrace::tracing::imp::unwind_backtrace::h8740ec5f0c4b942c
   1:        0x110ac17b0 - std::sys_common::backtrace::_print::h66778b19a7f789e1
   2:        0x110ac9573 - std::panicking::default_hook::{{closure}}::h5fc5b4a89582e405
   3:        0x110ac9272 - std::panicking::default_hook::h82f0ea57dcfad5fa
   4:        0x110ac9a82 - std::panicking::rust_panic_with_hook::h78c1e2c6542e66a6
   5:        0x110ac9964 - std::panicking::begin_panic::he25b9f01922caf6e
   6:        0x110ac9832 - std::panicking::begin_panic_fmt::h2f0e57c4c4d4d42d
   7:        0x110ac979a - rust_begin_unwind
   8:        0x110b00ad3 - core::panicking::panic_fmt::hb452ab28ce2bd54d
   9:        0x10fb3ac05 - core::result::unwrap_failed::h1ac30ca2315574b4
  10:        0x10fb4afa1 - <core::result::Result<T, E>>::unwrap::h89881f5cb4f2515d
  11:        0x10fb6ff3f - librespot::metadata::MetadataManager::get::{{closure}}::hf91f30d9be79de5e
  12:        0x10fb43a2f - <futures::future::and_then::AndThen<A, B, F> as futures::future::Future>::poll::{{closure}}::{{closure}}::hbb23c5f5b4dd3ded
  13:        0x10fb48ed0 - <core::result::Result<T, E>>::map::hb4d70105336ad59d
  14:        0x10fb416d6 - <futures::future::and_then::AndThen<A, B, F> as futures::future::Future>::poll::{{closure}}::h9660b89799704dbc
  15:        0x10fb613c5 - <futures::future::chain::Chain<A, B, C>>::poll::h1ddb6d8b14bdb4d8
  16:        0x10fab4f43 - <futures::future::and_then::AndThen<A, B, F> as futures::future::Future>::poll::hd20eeeb0b27d985f
  17:        0x10fa62146 - <alloc::boxed::Box<F> as futures::future::Future>::poll::h12d0a32f1420152c
  18:        0x10fc4dbbe - <futures::future::map::Map<A, F> as futures::future::Future>::poll::h4833961d7dbfcd83
  19:        0x10fb620a5 - <futures::future::chain::Chain<A, B, C>>::poll::h3383ed9ce147dcf2
  20:        0x10fab4e53 - <futures::future::and_then::AndThen<A, B, F> as futures::future::Future>::poll::h507e88e2d7c3217f
  21:        0x10fa9523a - <futures::future::map_err::MapErr<A, F> as futures::future::Future>::poll::h83f6dec292e2d877
  22:        0x10fb666ce - <futures::future::chain::Chain<A, B, C>>::poll::h7bf96698a932cb68
  23:        0x10fab4d33 - <futures::future::and_then::AndThen<A, B, F> as futures::future::Future>::poll::h144e9c7edef658db
  24:        0x10fa62196 - <alloc::boxed::Box<F> as futures::future::Future>::poll::h20298f4e26968c35
  25:        0x10fb3692b - <librespot::scrobbler::Scrobbler as futures::future::Future>::poll::h905fa654d2eaa4c9
  26:        0x10fbec8a8 - <librespot::spirc::SpircTask as futures::future::Future>::poll::h4b63ee5d989fa176
  27:        0x10f901362 - <spotify_connect_scrobbler::Main as futures::future::Future>::poll::h3adc116e2820dcbc
  28:        0x10f93785c - <futures::task_impl::Spawn<F>>::poll_future_notify::{{closure}}::h17bde513a0cca7ec
  29:        0x10f9378af - <futures::task_impl::Spawn<T>>::enter::{{closure}}::h165b959405270892
  30:        0x10f938056 - futures::task_impl::std::set::h0a164a3279512f3c
  31:        0x10f925340 - <futures::task_impl::Spawn<T>>::enter::h0597951ae5d6aa6f
  32:        0x10f925174 - <futures::task_impl::Spawn<F>>::poll_future_notify::hbbf438ae2bfa411b
  33:        0x10f90d2dc - tokio_core::reactor::Core::run::{{closure}}::ha5996258d407d59f
  34:        0x10f90d557 - <scoped_tls::ScopedKey<T>>::set::hdc873c6fef81866f
  35:        0x10f9246bb - tokio_core::reactor::Core::run::h3fc1761826d31a30
  36:        0x10f901e99 - spotify_connect_scrobbler::main::hc89200998ccc5ded
  37:        0x110ad684c - __rust_maybe_catch_panic
  38:        0x110ac9f88 - std::rt::lang_start::hafe790440cbd1b77
  39:        0x10f902074 - main