[GH-ISSUE #819] crash on startup: DNSError(Unknown) in connect/src/discovery.rs #417

Closed
opened 2026-02-27 19:30:29 +03:00 by kerem · 2 comments
Owner

Originally created by @susnux on GitHub (Jul 2, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/819

When starting librespot 0.2.0 on ARM64 it instantly crashes with the following error.
Set --disable-discovery fixes that error, but of cause then discovery is disabled.

I built it with this flags:

cargo build --release --features alsa-backend,pulseaudio-backend,jackaudio-backend,gstreamer-backend,with-dns-sd

Log:

[2021-07-02T17:35:37Z INFO  librespot] librespot 0.2.0 UNKNOWN (Built on 2021-06-29, Build ID: I707tC9b)
*** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: DNSError(Unknown)', connect/src/discovery.rs:237:6
stack backtrace:
   0:     0xaaaacdb2af60 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc718992a8e7ee78f
   1:     0xaaaacdb67ed0 - core::fmt::write::hcd344d6bd69edfa3
   2:     0xaaaacdb26258 - std::io::Write::write_fmt::h824d68ef52f3c36e
   3:     0xaaaacdb40568 - std::panicking::default_hook::{{closure}}::hee5d5beed3023ca8
   4:     0xaaaacdb4017c - std::panicking::default_hook::hf34f793eb6519830
   5:     0xaaaacdb40b68 - std::panicking::rust_panic_with_hook::hdd9d498777c29277
   6:     0xaaaacdb2b424 - std::panicking::begin_panic_handler::{{closure}}::hf076f0f0868916c0
   7:     0xaaaacdb2b080 - std::sys_common::backtrace::__rust_end_short_backtrace::h177cdc0964c1f804
   8:     0xaaaacdb40744 - rust_begin_unwind
   9:     0xaaaacdb5e56c - core::panicking::panic_fmt::he0ea7c144d441391
  10:     0xaaaacdb64f48 - core::result::unwrap_failed::hbe02e09db37e7cfd
  11:     0xaaaacd81f2cc - librespot_connect::discovery::discovery::he82fc3f5dfb724ed
  12:     0xaaaacd7ac840 - librespot::main::{{closure}}::h5fa21adad7d86759
  13:     0xaaaacd78f484 - tokio::macros::scoped_tls::ScopedKey<T>::set::h2b890981603d504a
  14:     0xaaaacd75fae0 - tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on::hf7e2dd0c1e05d454
  15:     0xaaaacd7fff34 - tokio::runtime::Runtime::block_on::h2e9a802b9fb2b6a6
  16:     0xaaaacd7bd2dc - librespot::main::h690301f647854d3c
  17:     0xaaaacd7892c4 - std::sys_common::backtrace::__rust_begin_short_backtrace::hdd01b9fcb3bcd0a7
  18:     0xaaaacd7d2f48 - std::rt::lang_start::{{closure}}::h75c875fd7af7d117
  19:     0xaaaacdb4205c - std::rt::lang_start_internal::hbd1cf899be94f039
  20:     0xaaaacd7bd390 - main
  21:     0xffff8e03cfa0 - __libc_start_main
  22:     0xaaaacd757024 - <unknown>

Hardware: Raspberry PI model 3
OS: openSUSE Leap 15.3 (ARM64)

Originally created by @susnux on GitHub (Jul 2, 2021). Original GitHub issue: https://github.com/librespot-org/librespot/issues/819 When starting librespot 0.2.0 on ARM64 it instantly crashes with the following error. Set `--disable-discovery` fixes that error, but of cause then discovery is disabled. I built it with this flags: ```bash cargo build --release --features alsa-backend,pulseaudio-backend,jackaudio-backend,gstreamer-backend,with-dns-sd ``` Log: ```bash [2021-07-02T17:35:37Z INFO librespot] librespot 0.2.0 UNKNOWN (Built on 2021-06-29, Build ID: I707tC9b) *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi. *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html> thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: DNSError(Unknown)', connect/src/discovery.rs:237:6 stack backtrace: 0: 0xaaaacdb2af60 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc718992a8e7ee78f 1: 0xaaaacdb67ed0 - core::fmt::write::hcd344d6bd69edfa3 2: 0xaaaacdb26258 - std::io::Write::write_fmt::h824d68ef52f3c36e 3: 0xaaaacdb40568 - std::panicking::default_hook::{{closure}}::hee5d5beed3023ca8 4: 0xaaaacdb4017c - std::panicking::default_hook::hf34f793eb6519830 5: 0xaaaacdb40b68 - std::panicking::rust_panic_with_hook::hdd9d498777c29277 6: 0xaaaacdb2b424 - std::panicking::begin_panic_handler::{{closure}}::hf076f0f0868916c0 7: 0xaaaacdb2b080 - std::sys_common::backtrace::__rust_end_short_backtrace::h177cdc0964c1f804 8: 0xaaaacdb40744 - rust_begin_unwind 9: 0xaaaacdb5e56c - core::panicking::panic_fmt::he0ea7c144d441391 10: 0xaaaacdb64f48 - core::result::unwrap_failed::hbe02e09db37e7cfd 11: 0xaaaacd81f2cc - librespot_connect::discovery::discovery::he82fc3f5dfb724ed 12: 0xaaaacd7ac840 - librespot::main::{{closure}}::h5fa21adad7d86759 13: 0xaaaacd78f484 - tokio::macros::scoped_tls::ScopedKey<T>::set::h2b890981603d504a 14: 0xaaaacd75fae0 - tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on::hf7e2dd0c1e05d454 15: 0xaaaacd7fff34 - tokio::runtime::Runtime::block_on::h2e9a802b9fb2b6a6 16: 0xaaaacd7bd2dc - librespot::main::h690301f647854d3c 17: 0xaaaacd7892c4 - std::sys_common::backtrace::__rust_begin_short_backtrace::hdd01b9fcb3bcd0a7 18: 0xaaaacd7d2f48 - std::rt::lang_start::{{closure}}::h75c875fd7af7d117 19: 0xaaaacdb4205c - std::rt::lang_start_internal::hbd1cf899be94f039 20: 0xaaaacd7bd390 - main 21: 0xffff8e03cfa0 - __libc_start_main 22: 0xaaaacd757024 - <unknown> ``` Hardware: Raspberry PI model 3 OS: openSUSE Leap 15.3 (ARM64)
kerem 2026-02-27 19:30:29 +03:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@kingosticks commented on GitHub (Jul 2, 2021):

If with-dns-sd is enabled, librespot will crash if avahi or bonjour is not running.

Is it running?

<!-- gh-comment-id:873231452 --> @kingosticks commented on GitHub (Jul 2, 2021): > If with-dns-sd is enabled, librespot will crash if avahi or bonjour is not running. Is it running?
Author
Owner

@susnux commented on GitHub (Jul 11, 2021):

Is it running?

I thought so, but somehow it crashed and I did not noticed it...

<!-- gh-comment-id:877796249 --> @susnux commented on GitHub (Jul 11, 2021): > Is it running? I thought so, but somehow it crashed and I did not noticed it...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#417
No description provided.