philippe44 / SpotConnect

Turn any UPnP or AirPlay player into a Spotify Connect device
MIT License
66 stars 3 forks source link

SpotUpnP Segmentation Error - Windows and Raspberry Pi #36

Open MatKinPro opened 4 months ago

MatKinPro commented 4 months ago

I manage to get a segmentation error on both my windows laptop and my raspberry pi zero2 w running Raspbian. The program launches but shuts down after a second. Sometimes some speakers are identified.

My setup consists of 5 sonos speakers/speaker pairs and my tv and soundbar both LG. One of the Sonos speakers is called "Kök". I have changed the name to "Kok" but the error seems to still be there, but I am unsure of how fastchanges are implemented in the Sonos ecosystem.

I saw in a prior issue you requested a gdb log, so I have inserted one below. I am unsure if configuration should be done differently but the same error is displayed every test. Let me know if I can do something else to find what causes the problem.

Starting program: /home/mathias/spotupnp-linux-aarch64 -r 320 -x config.xml -j -I -f log.txt [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1". [New Thread 0x7ff7acf180 (LWP 3478)] [New Thread 0x7ff72bf180 (LWP 3479)] [New Thread 0x7ff6aaf180 (LWP 3480)] [New Thread 0x7ff629f180 (LWP 3481)] [New Thread 0x7ff5a8f180 (LWP 3482)] [New Thread 0x7ff527f180 (LWP 3483)] [New Thread 0x7ff4a6f180 (LWP 3484)] [New Thread 0x7ff425f180 (LWP 3485)] [New Thread 0x7ff39fd180 (LWP 3486)] [New Thread 0x7ff31ed180 (LWP 3487)] [New Thread 0x7ff29dd180 (LWP 3489)] [New Thread 0x7ff21cd180 (LWP 3490)] [New Thread 0x7ff19bd180 (LWP 3491)] [New Thread 0x7ff11ad180 (LWP 3492)] [23:08:07.381] I BellHTTPServer.cpp:194: Server listening on port 0 [New Thread 0x7ff0974180 (LWP 3495)] [New Thread 0x7fcbfff180 (LWP 3496)] [New Thread 0x7fcb7ef180 (LWP 3497)] [New Thread 0x7fcafdf180 (LWP 3498)] [New Thread 0x7fca7cf180 (LWP 3499)] [23:08:07.436] I spotify.cpp:532: ZeroConf mode (port 44653) [New Thread 0x7fc9fbf180 (LWP 3500)] [23:08:07.438] I MDNSService.cpp:195: using built-in mDNS for Balkong+ [Thread 0x7ff4a6f180 (LWP 3484) exited] [Thread 0x7ff5a8f180 (LWP 3482) exited] [New Thread 0x7ff5a8f180 (LWP 3502)]

Thread 7 "spotupnp-linux-" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ff527f180 (LWP 3483)] 0x0000000000486e3c in notify(CSpotPlayer*, shadowEvent, std::__va_list) ()

philippe44 commented 4 months ago

I'll have to do a build with debug symbols.

philippe44 commented 4 months ago

Can you try 0.9.2 and if it still fails, add full debug (-d all=sdebug)