PDA

View Full Version : Plugins::UPnPBridge::Squeeze2upnp::beat (185) crashed ... restarting



schizmas
2018-03-31, 12:18
Hi,

I've used this terrific plug-in to stream to my Denon X4000 for several years, extending the life of my LMS ecosystem. However, both my Linux and Windows servers have failed since the update to v0.3.0.0. The Linux one keeps repeating this in the log "Plugins::UPnPBridge::Squeeze2upnp::beat (185) crashed ... restarting" and the Windows server reports that squeez~1.exe has failed in plugins\UPNPBR~1\Bin\Squeez~1.exe.

I had some time today so I spun up a new, vanilla Debian 9 instance (these are all virtual machines), grabbed the latest nightly ( 7.9.1 - 1522249619 ) and installed the UPnP/DLNA Bridge plugin via the web interface. I restarted LMS when prompted but immediately started getting this in the log:

[18-03-31 15:03:18.8823] Plugins::UPnPBridge::Squeeze2upnp::beat (185) crashed ... restarting
[18-03-31 15:03:48.8875] Plugins::UPnPBridge::Squeeze2upnp::beat (185) crashed ... restarting
[18-03-31 15:04:15.3725] Slim::Utils::Misc::msg (1252) Warning: [15:04:15.3719] Use of uninitialized value in concatenation (.) or string at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/HTML/EN/plugins/UPnPBridge/settings/basic.html line 2.
[18-03-31 15:04:18.8992] Plugins::UPnPBridge::Squeeze2upnp::beat (185) crashed ... restarting
[18-03-31 15:04:48.9215] Plugins::UPnPBridge::Squeeze2upnp::beat (185) crashed ... restarting

Any suggestions on what might be going on? I've watched the forum but haven't noticed anyone else having an issue with this.

Thanks,
Steve

philippe_44
2018-03-31, 13:04
Hi,

I've used this terrific plug-in to stream to my Denon X4000 for several years, extending the life of my LMS ecosystem. However, both my Linux and Windows servers have failed since the update to v0.3.0.0. The Linux one keeps repeating this in the log "Plugins::UPnPBridge::Squeeze2upnp::beat (185) crashed ... restarting" and the Windows server reports that squeez~1.exe has failed in plugins\UPNPBR~1\Bin\Squeez~1.exe.

I had some time today so I spun up a new, vanilla Debian 9 instance (these are all virtual machines), grabbed the latest nightly ( 7.9.1 - 1522249619 ) and installed the UPnP/DLNA Bridge plugin via the web interface. I restarted LMS when prompted but immediately started getting this in the log:

[18-03-31 15:03:18.8823] Plugins::UPnPBridge::Squeeze2upnp::beat (185) crashed ... restarting
[18-03-31 15:03:48.8875] Plugins::UPnPBridge::Squeeze2upnp::beat (185) crashed ... restarting
[18-03-31 15:04:15.3725] Slim::Utils::Misc::msg (1252) Warning: [15:04:15.3719] Use of uninitialized value in concatenation (.) or string at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/HTML/EN/plugins/UPnPBridge/settings/basic.html line 2.
[18-03-31 15:04:18.8992] Plugins::UPnPBridge::Squeeze2upnp::beat (185) crashed ... restarting
[18-03-31 15:04:48.9215] Plugins::UPnPBridge::Squeeze2upnp::beat (185) crashed ... restarting

Any suggestions on what might be going on? I've watched the forum but haven't noticed anyone else having an issue with this.

Thanks,
Steve

Can you past the log of UPnPBridge (not the server.log)? You can find a link to it it LMS Settings, Advanced, under the UPnP/DLNA bridge section

schizmas
2018-03-31, 13:20
Sure, thanks. Here you go:


Starting Squeeze2upnp: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml
[16:11:44.686821] main:1484 Starting squeeze2upnp version: v0.3.0.0 (Mar 24 2018 @ 14:24:23)
[16:11:44.698983] Start:1262 Binding to 172.16.66.158:49152
[16:11:45.332988] AddMRDevice:1157 [0x6c9bc0]: adding renderer (Denon AVR-X4000)
[16:11:45.351865] MasterHandler:846 [0x6c9bc0]: subscribe success
[16:11:45.353331] slimproto:951 squeezelite [0x64b700] <=> player [0x6c9bc0]
[16:11:45.353390] slimproto:952 [0x64b700] connecting to 172.16.66.158:3483
[16:11:45.354194] slimproto:983 [0x64b700] connected
[16:11:45.354224] sendHELO:124 [0x64b700] cap: Model=squeezelite,ModelName=SqueezeLite,AccuratePl ayPoints=1,HasDigitalOut=1,MaxSampleRate=48000,pcm ,flc,mp3

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml
[16:12:14.680854] main:1484 Starting squeeze2upnp version: v0.3.0.0 (Mar 24 2018 @ 14:24:23)
[16:12:14.682016] Start:1262 Binding to 172.16.66.158:49153

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml
[16:12:44.684865] main:1484 Starting squeeze2upnp version: v0.3.0.0 (Mar 24 2018 @ 14:24:23)
[16:12:44.685988] Start:1262 Binding to 172.16.66.158:49154

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml
[16:13:44.690153] main:1484 Starting squeeze2upnp version: v0.3.0.0 (Mar 24 2018 @ 14:24:23)
[16:13:44.691315] Start:1262 Binding to 172.16.66.158:49153

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml

philippe_44
2018-03-31, 14:02
Sure, thanks. Here you go:


Starting Squeeze2upnp: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml
[16:11:44.686821] main:1484 Starting squeeze2upnp version: v0.3.0.0 (Mar 24 2018 @ 14:24:23)
[16:11:44.698983] Start:1262 Binding to 172.16.66.158:49152
[16:11:45.332988] AddMRDevice:1157 [0x6c9bc0]: adding renderer (Denon AVR-X4000)
[16:11:45.351865] MasterHandler:846 [0x6c9bc0]: subscribe success
[16:11:45.353331] slimproto:951 squeezelite [0x64b700] <=> player [0x6c9bc0]
[16:11:45.353390] slimproto:952 [0x64b700] connecting to 172.16.66.158:3483
[16:11:45.354194] slimproto:983 [0x64b700] connected
[16:11:45.354224] sendHELO:124 [0x64b700] cap: Model=squeezelite,ModelName=SqueezeLite,AccuratePl ayPoints=1,HasDigitalOut=1,MaxSampleRate=48000,pcm ,flc,mp3

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml


Hmm... crap, it's crashing as soon as it starts. Can you make sure that nothing is "pending to play" on that player (I mean LMS must not start playing something when the player connects ==> playlists related to that player must be emptied) and then if it still crashes on start, do another log with the extra debug options added (normally I don't need that but it might be needed here). Otherwise, if it does not crash immediately, just play something without extra debugging and post it here

schizmas
2018-03-31, 15:20
I had actually unplugged the Denon, wondering if it was asking for content from a previous instance. Here is the latest log:

Starting Squeeze2upnp: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -d all=debug -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml
[18:16:50.631833] main:1484 Starting squeeze2upnp version: v0.3.0.0 (Mar 24 2018 @ 14:24:23)
[18:16:50.647391] register_pcm:189 using pcm
[18:16:50.647426] register_flac:249 using flac
[18:16:50.647446] register_thru:111 using thru
[18:16:50.647465] Start:1262 Binding to 172.16.66.158:49152
[18:16:54.789812] AddMRDevice:1157 [0x6c9bc0]: adding renderer (Denon AVR-X4000)
[18:16:54.789881] GetProtocolInfo:337 [0x6c9bc0]: uPNP GetProtocolInfo
[18:16:54.793876] GetProtocolInfo:348 [0x6c9bc0]: ProtocolInfo http-get:*:audio/L16;rate=44100;channels=1:DLNA.ORG_PN=LPCM,http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM,http-get:*:audio/L16;rate=48000;channels=1:DLNA.ORG_PN=LPCM,http-get:*:audio/L16;rate=48000;channels=2:DLNA.ORG_PN=LPCM,http-get:*:audio/mpeg:DLNA.ORG_PN=MP3,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMABASE,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMAFULL,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO,http-get:*:audio/3gpp:DLNA.ORG_PN=AAC_ISO,http-wavetunes:*:audio/x-ms-wma:*,http-get:*:audio/wav:*,http-get:*:audio/x-wav:*,http-get:*:audio/flac:*,http-get:*:audio/x-flac:*,http-get:*:audio/x-m4a:*,http-get:*:audio/x-mp4:*,http-get:*:image/jpeg:*
[18:16:54.794199] stream_thread_init:307 [0x64b700] streambuf size: 2457600
[18:16:54.796248] MasterHandler:846 [0x6c9bc0]: subscribe success
[18:16:54.797025] output_init:182 [0x64b700] init output media renderer
[18:16:54.797073] decode_thread_init:170 [0x64b700]: init decode
[18:16:54.797191] UpdateThread:1018 Updating configuration /var/lib/squeezeboxserver/prefs/upnpbridge.xml
[18:16:54.797572] discover_server:899 [0x64b700] sending discovery
[18:16:54.798080] discover_server:928 [0x64b700] got response from: 172.16.66.158:3483
[18:16:54.798117] slimproto:951 squeezelite [0x64b700] <=> player [0x6c9bc0]
[18:16:54.798215] slimproto:952 [0x64b700] connecting to 172.16.66.158:3483
[18:16:54.799140] slimproto:983 [0x64b700] connected
[18:16:54.799172] sendHELO:123 [0x64b700] mac: bb:bb:b5:c1:76:2b
[18:16:54.799192] sendHELO:124 [0x64b700] cap: Model=squeezelite,ModelName=SqueezeLite,AccuratePl ayPoints=1,HasDigitalOut=1,MaxSampleRate=48000,pcm ,flc,mp3
[18:16:54.844606] process:601 [0x64b700] strm
[18:16:54.844660] process_strm:229 [0x64b700] strm command q
[18:16:54.844680] decode_flush:210 [0x64b700]: decode flush
[18:16:54.844697] output_flush:343 [0x64b700]: flush output buffer
[18:16:54.844716] sq_callback:265 [0x6c9bc0]: device off or not controlled by LMS
[18:16:54.844955] process:601 [0x64b700] setd
[18:16:54.844983] sendSETDName:215 [8]: set playername: Denon AVR-X4000
[18:16:54.845118] process:601 [0x64b700] setd
[18:16:54.845270] process:601 [0x64b700] aude
[18:16:54.845298] process_aude:493 [0x64b700] on/off using aude 1
[18:16:54.845316] sq_callback:261 [0x6c9bc0]: device set on/off 1
[18:16:54.845524] process:601 [0x64b700] audg
[18:16:54.845552] process_audg:507 [0x64b700] (old) audg gainL: 25 gainR: 25
[18:16:57.001426] process:601 [0x64b700] strm
[18:16:57.001494] process_strm:229 [0x64b700] strm command t
[18:16:57.001515] sendSTAT:157 [0x64b700]: STAT:[STMt] msplayed 0
[18:16:59.443539] UpdateThread:964 [0x6c9bc0] UPnP keep alive: Denon AVR-X4000

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -d all=debug -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml
[18:17:20.628039] main:1484 Starting squeeze2upnp version: v0.3.0.0 (Mar 24 2018 @ 14:24:23)
[18:17:20.629168] register_pcm:189 using pcm
[18:17:20.629198] register_flac:249 using flac
[18:17:20.629217] register_thru:111 using thru
[18:17:20.629235] Start:1262 Binding to 172.16.66.158:49153

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml
[18:17:23.847405] main:1484 Starting squeeze2upnp version: v0.3.0.0 (Mar 24 2018 @ 14:24:23)
[18:17:23.848531] Start:1262 Binding to 172.16.66.158:49153
[18:17:29.125499] AddMRDevice:1157 [0x6c9bc0]: adding renderer (Denon AVR-X4000)
[18:17:29.132062] MasterHandler:846 [0x6c9bc0]: subscribe success
[18:17:29.133059] slimproto:951 squeezelite [0x64b700] <=> player [0x6c9bc0]
[18:17:29.133116] slimproto:952 [0x64b700] connecting to 172.16.66.158:3483
[18:17:29.134042] slimproto:983 [0x64b700] connected
[18:17:29.134073] sendHELO:124 [0x64b700] cap: Model=squeezelite,ModelName=SqueezeLite,AccuratePl ayPoints=1,HasDigitalOut=1,MaxSampleRate=48000,pcm ,flc,mp3

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -d all=debug -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml
[18:17:50.629497] main:1484 Starting squeeze2upnp version: v0.3.0.0 (Mar 24 2018 @ 14:24:23)
[18:17:50.630237] register_pcm:189 using pcm
[18:17:50.630257] register_flac:249 using flac
[18:17:50.630268] register_thru:111 using thru
[18:17:50.630280] Start:1262 Binding to 172.16.66.158:49154

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml
[18:17:53.851961] main:1484 Starting squeeze2upnp version: v0.3.0.0 (Mar 24 2018 @ 14:24:23)
[18:17:53.853102] Start:1262 Binding to 172.16.66.158:49154
[18:17:54.800855] AddMRDevice:1157 [0x6c9bc0]: adding renderer (Denon AVR-X4000)
[18:17:54.808681] slimproto:951 squeezelite [0x64b700] <=> player [0x6c9bc0]
[18:17:54.808745] slimproto:952 [0x64b700] connecting to 172.16.66.11:3483
[18:17:54.808929] slimproto:983 [0x64b700] connected
[18:17:54.808957] sendHELO:124 [0x64b700] cap: Model=squeezelite,ModelName=SqueezeLite,AccuratePl ayPoints=1,HasDigitalOut=1,MaxSampleRate=48000,pcm ,flc,mp3
[18:17:54.816249] MasterHandler:846 [0x6c9bc0]: subscribe success

etarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -d all=debug -x /var/lib/squeezeboxserver/prefs/upnpbridge.xml
[18:18:20.635248] main:1484 Starting squeeze2upnp version: v0.3.0.0 (Mar 24 2018 @ 14:24:23)
[18:18:20.636425] register_pcm:189 using pcm
[18:18:20.636454] register_flac:249 using flac
[18:18:20.636472] register_thru:111 using thru
[18:18:20.636490] Start:1262 Binding to 172.16.66.158:49152

philippe_44
2018-04-01, 10:26
I had actually unplugged the Denon, wondering if it was asking for content from a previous instance. Here is the latest log:


Very strange, it still does not tell me much. Can you set back the extra debugging to none and add, in the extra command line option line "-d all=sdebug"

[edit]: can you also try a fresh config file? Just change the name in the settings, click apply, then click erase

schizmas
2018-04-02, 14:20
I thought I had posted the log this morning, but apparently did that wrong. In any event, that logging with some investigation this afternoon, did the trick! Looks like its not the Denon after all. I have unplugged the ethernet from the Directv receiver and am testing now with good success... Only the Denon shows up in the list of players with a configuration file. But within 30 seconds of having the Directv receiver on, the plugin will crash on both Windows and Linux servers. Incidentally, so does the Airplay bridge, which is probably not surprising.

This is what the output is with -d all=sdebug:

FriendlyName: DIRECTV Mediashare Renderer
[17:04:50.672853] XMLGetFirstDocumentItem:135 Error finding URLBase in XML Node
[17:04:50.672873] XMLGetNthServiceList:221 GetNthServiceList called : n = 0
[17:04:50.672893] XMLFindAndParseService:279 serviceType urn:schemas-upnp-org:service:RenderingControl:1
[17:04:50.672917] XMLFindAndParseService:279 serviceType urn:schemas-upnp-org:service:ConnectionManager:1
[17:04:50.672934] XMLGetNthServiceList:221 GetNthServiceList called : n = 1

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -x /var/lib/squeezeboxserver/prefs/upnpbridge2.xml -d all=sdebug
[17:05:05.072367] main:1484 Starting squeeze2upnp version: v0.3.0.0 (Mar 24 2018 @ 14:24:23)
[17:05:05.073487] register_pcm:189 using pcm
[17:05:05.073516] register_flac:249 using flac
[17:05:05.073534] register_thru:111 using thru
[17:05:05.073552] Start:1262 Binding to 172.16.66.158:49152
[17:05:05.313434] MasterHandler:757 event: 6 [UPNP_DISCOVERY_SEARCH_RESULT] [(nil)] (recurse 0)
[17:05:05.655093] MasterHandler:757 event: 6 [UPNP_DISCOVERY_SEARCH_RESULT] [(nil)] (recurse 0)
[17:05:05.690631] MasterHandler:757 event: 6 [UPNP_DISCOVERY_SEARCH_RESULT] [(nil)] (recurse 0)
[17:05:05.692936] AddMRDevice:1092 UDN: uuid:29bbe0e1-1a6e-47f6-8f8d-d82522440541
FriendlyName: DIRECTV Mediashare Renderer
[17:05:05.692972] XMLGetFirstDocumentItem:135 Error finding URLBase in XML Node
[17:05:05.692991] XMLGetNthServiceList:221 GetNthServiceList called : n = 0
[17:05:05.693012] XMLFindAndParseService:279 serviceType urn:schemas-upnp-org:service:RenderingControl:1
[17:05:05.693034] XMLFindAndParseService:279 serviceType urn:schemas-upnp-org:service:ConnectionManager:1
[17:05:05.693051] XMLGetNthServiceList:221 GetNthServiceList called : n = 1

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -x /var/lib/squeezeboxserver/prefs/upnpbridge2.xml -d all=sdebug

philippe_44
2018-04-03, 09:47
I thought I had posted the log this morning, but apparently did that wrong. In any event, that logging with some investigation this afternoon, did the trick! Looks like its not the Denon after all. I have unplugged the ethernet from the Directv receiver and am testing now with good success... Only the Denon shows up in the list of players with a configuration file. But within 30 seconds of having the Directv receiver on, the plugin will crash on both Windows and Linux servers. Incidentally, so does the Airplay bridge, which is probably not surprising.

This is what the output is with -d all=sdebug:

FriendlyName: DIRECTV Mediashare Renderer
[17:04:50.672853] XMLGetFirstDocumentItem:135 Error finding URLBase in XML Node
[17:04:50.672873] XMLGetNthServiceList:221 GetNthServiceList called : n = 0
[17:04:50.672893] XMLFindAndParseService:279 serviceType urn:schemas-upnp-org:service:RenderingControl:1
[17:04:50.672917] XMLFindAndParseService:279 serviceType urn:schemas-upnp-org:service:ConnectionManager:1
[17:04:50.672934] XMLGetNthServiceList:221 GetNthServiceList called : n = 1

Retarting Squeeze2upnp after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-x86-64 -Z -I -b 172.16.66.158 -f /var/log/squeezeboxserver/upnpbridge.log -x /var/lib/squeezeboxserver/prefs/upnpbridge2.xml -d all=sdebug

Could you do the same log with Airplay Bridge? If they both crash, it's not a UPnP issue, but something with DirectTV identifier. Maybe the name, I don't know. A workaround is to use tools like http://www.meshcommander.com/upnptools to get the UUID of the DirectTV receiver. Then, create an entry in the config file that have the <enable> entry set to 0 for that UUID (copy the entry from the Denon). That should prevent the bridge from trying to access any information from the the DirectTV receiver

schizmas
2018-04-03, 12:57
I guess the Airplay issue was a coincidence, and didn't mean to muddy the waters concerning the UPnPBridge. I don't have any Apple products, but had installed it in an attempt to get the Denon to play nice with something. The UPnPBridge has been rock solid, since yesterday, when I unplugged the Directv ethernet. I will hunt up its address and add it to the config as a block as you describe. I did add the debugging option to the airplay bridge as requested, but see little info in the airplay log. I even rebooted the server after adding -d all=sdebug:

Retarting Squeeze2raop after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/RaopBridge/Bin/squeeze2raop-x86-64 -Z -I -f /var/log/squeezeboxserver/raopbridge.log -x /var/lib/squeezeboxserver/prefs/raopbridge.xml

Retarting Squeeze2raop after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/RaopBridge/Bin/squeeze2raop-x86-64 -Z -I -f /var/log/squeezeboxserver/raopbridge.log -x /var/lib/squeezeboxserver/prefs/raopbridge.xml -i /var/lib/squeezeboxserver/prefs/raopbridge.xml

Retarting Squeeze2raop after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/RaopBridge/Bin/squeeze2raop-x86-64 -Z -I -f /var/log/squeezeboxserver/raopbridge.log -x /var/lib/squeezeboxserver/prefs/raopbridge.xml

Starting Squeeze2raop: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/RaopBridge/Bin/squeeze2raop-x86-64 -Z -I -f /var/log/squeezeboxserver/raopbridge.log -x /var/lib/squeezeboxserver/prefs/raopbridge.xml -d all=sdebug

Retarting Squeeze2raop after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/RaopBridge/Bin/squeeze2raop-x86-64 -Z -I -f /var/log/squeezeboxserver/raopbridge.log -x /var/lib/squeezeboxserver/prefs/raopbridge.xml -d all=sdebug

Retarting Squeeze2raop after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/RaopBridge/Bin/squeeze2raop-x86-64 -Z -I -f /var/log/squeezeboxserver/raopbridge.log -x /var/lib/squeezeboxserver/prefs/raopbridge.xml -d all=sdebug

Retarting Squeeze2raop after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/RaopBridge/Bin/squeeze2raop-x86-64 -Z -I -f /var/log/squeezeboxserver/raopbridge.log -x /var/lib/squeezeboxserver/prefs/raopbridge.xml -d all=sdebug

Retarting Squeeze2raop after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/RaopBridge/Bin/squeeze2raop-x86-64 -Z -I -f /var/log/squeezeboxserver/raopbridge.log -x /var/lib/squeezeboxserver/prefs/raopbridge.xml -d all=sdebug

Retarting Squeeze2raop after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/RaopBridge/Bin/squeeze2raop-x86-64 -Z -I -f /var/log/squeezeboxserver/raopbridge.log -x /var/lib/squeezeboxserver/prefs/raopbridge.xml -d all=sdebug

Riccardo
2018-04-03, 14:43
Hello. I have the same problem from march, 26. I use Lms with Hqplayer Embedded like a player and actually upnpbridge dont't work at all.A friend of mine, very expert, works for hours go solve, unsuccesfull, this problem.
Could you, mr. Philippe, try with evaluation version of Signalyst' s hqplayer embedded to solve this problem? Thanks

UnixMan
2018-04-04, 09:20
Hi Philippe,


Hello. I have the same problem from march, 26. I use Lms with Hqplayer Embedded like a player and actually upnpbridge dont't work at all.[...]
Actually there are two different problems, with two (slightly) different setups.

Let me try to explain a little better. :o

Some time ago, I did setup Riccardo's system to use "HQPlayer Embedded (https://www.signalyst.com/custom.html)" (from now on, HQPd for short) together with LMS. At the time (with one of the first alpha versions of HQPd 4.0) the setup had to be rather convoluted, involving the use of LMS with your plugin, "Rygel (https://wiki.gnome.org/action/show/Projects/Rygel)" and eventually HQPd (all running on the same Linux box; in turn, HQPd was talking via TCP/IP to its "Network Audio Daemon" running on another Linux box connected to a UAC2 DAC, but that's irrelevant in this context).

Nevertheless, it worked pretty well for quite some time, even with non-local sources (Tidal, Internet "radio"s, etc). Until LMS automatically updated your plugin to the latest version (v0.3.0.0). Since then the system stopped working and I have been unable to get it to work again. :(

Basically, according to the log files, HQPd receives the commands (and data stream reference), but it is no longer able to properly receive the data stream. Or maybe the problem occours between your plugin and Rygel, I don't know. Anyhow, the only thing which had changed when the problem appared was the version of your plugin.

This is about the first problem.

Next.

Given that I was unable to fix the old setup and that now HQPlayer Embedded includes its own UPnP renderer interface, I have also tried to simplify the setup, enabling HQPd own renderer and gettin' rid of Rygel.

But here comes the second problem (and the reason Riccardo posted his question in this topic): with such setup your plugin does recognize the new HQPd UPnP renderer, but squeeze2upnp crashes as soon as it creates the configuration for HQPd (and keep restarting and crashing forever...). In the logs it writes the exact same error message giving the title to this topic:

“Squeeze2upnp::beat (185) crashed ... restarting”.

Can you please help? Tnx a lot. :o


P.S.: of course we can do all the tests you may suggest and post the results here. Though you may rather prefer to run some tests yourself. In such a case you can easily download (https://www.signalyst.com/embedded-install.html), install and run HQPd yourself (without licence it should run in demo mode, working normally except automatically killing itself every 30 minutes). You can either install a couple of (deb or rpm) packages (if you have a suitable Linux system), or use the bootable system image on any suitable PC.

philippe_44
2018-04-04, 13:15
Hi Philippe,


Actually there are two different problems, with two (slightly) different setups.

Let me try to explain a little better. :o

Some time ago, I did setup Riccardo's system to use "HQPlayer Embedded (https://www.signalyst.com/custom.html)" (from now on, HQPd for short) together with LMS. At the time (with one of the first alpha versions of HQPd 4.0) the setup had to be rather convoluted, involving the use of LMS with your plugin, "Rygel (https://wiki.gnome.org/action/show/Projects/Rygel)" and eventually HQPd (all running on the same Linux box; in turn, HQPd was talking via TCP/IP to its "Network Audio Daemon" running on another Linux box connected to a UAC2 DAC, but that's irrelevant in this context).

Nevertheless, it worked pretty well for quite some time, even with non-local sources (Tidal, Internet "radio"s, etc). Until LMS automatically updated your plugin to the latest version (v0.3.0.0). Since then the system stopped working and I have been unable to get it to work again. :(

Basically, according to the log files, HQPd receives the commands (and data stream reference), but it is no longer able to properly receive the data stream. Or maybe the problem occours between your plugin and Rygel, I don't know. Anyhow, the only thing which had changed when the problem appared was the version of your plugin.

This is about the first problem.

Next.

Given that I was unable to fix the old setup and that now HQPlayer Embedded includes its own UPnP renderer interface, I have also tried to simplify the setup, enabling HQPd own renderer and gettin' rid of Rygel.

But here comes the second problem (and the reason Riccardo posted his question in this topic): with such setup your plugin does recognize the new HQPd UPnP renderer, but squeeze2upnp crashes as soon as it creates the configuration for HQPd (and keep restarting and crashing forever...). In the logs it writes the exact same error message giving the title to this topic:

“Squeeze2upnp::beat (185) crashed ... restarting”.

Can you please help? Tnx a lot. :o


P.S.: of course we can do all the tests you may suggest and post the results here. Though you may rather prefer to run some tests yourself. In such a case you can easily download (https://www.signalyst.com/embedded-install.html), install and run HQPd yourself (without licence it should run in demo mode, working normally except automatically killing itself every 30 minutes). You can either install a couple of (deb or rpm) packages (if you have a suitable Linux system), or use the bootable system image on any suitable PC.

I tried to get HQPlayerEmbedded and boot it in a VirtualBox VM - does not seem to find a way to get that booted. Tried direct img, converted to a vdi, wrote to a sdcard and pointed a vmdk to it - none worked

UnixMan
2018-04-04, 13:32
I tried to get HQPlayerEmbedded and boot it in a VirtualBox VM - does not seem to find a way to get that booted. Tried direct img, converted to a vdi, wrote to a sdcard and pointed a vmdk to it - none worked
Oh. That's annoying. :( I never tried to use the image, actually... we've always used the packages. I will get the image and have a look. I'll let you know if I can find a way to use it in a VM.

Meanwhile, do you have any suggestion about what we can try to do to debug the problem?

UnixMan
2018-04-04, 13:49
Mmmh... could be that the VM does not comply with the image requirements?


Processor with support for SSE4.2 instructions
BIOS capable of UEFI boot (bootable image)

(and 64bit architecture).

philippe_44
2018-04-04, 13:49
Oh. That's annoying. :( I never tried to use the image, actually... we've always used the packages. I will get the image and have a look. I'll let you know if I can find a way to use it in a VM.

Meanwhile, do you have any suggestion about what we can try to do to debug the problem?

Can you try one the versions here https://www.dropbox.com/sh/l152q06f688xd1d/AAD_i-7GeFL4mFcsxLUx2moba?dl=0 and run it under gdb? I will know exactly where it crashed then

philippe_44
2018-04-04, 14:03
Mmmh... could be that the VM does not comply with the image requirements?

(and 64bit architecture).

Crap - you're right, I missed the EFI piece - booted now

philippe_44
2018-04-04, 14:10
Mmmh... could be that the VM does not comply with the image requirements?

(and 64bit architecture).

Got it, the "Rygel" upnp renderer is returning a response to the GetProtocolInfo request which is strange and maybe incorrect with empty field between ',' and that causes my parser to crash. I will change it, but there might be something to do on their side



,,file:*:audio/flac:*,file:*:audio/x-flac:*,file:*:application/flac:*,file:*:application/x-flac:*,file:*:audio/wav:*,file:*:audio/x-wav:*,file:*:application/wav:*,file:*:application/x-wav:*,file:*:audio/aiff:*,file:*:audio/x-aiff:*,file:*:application/aiff:*,file:*:application/x-aiff:*,file:*:audio/x-dsf:*,file:*:application/x-dsf:*,file:*:audio/x-dff:*,file:*:audio/x-dsdiff:*,file:*:application/x-dff:*,file:*:application/octet-stream:*,file:*:audio/ogg:*,file:*:audio/vnd.wave:*,file:*:audio/L32;rate=44100:*,file:*:audio/L32;rate=48000:*,file:*:audio/L32;rate=88200:*,file:*:audio/L32;rate=96000:*,file:*:audio/L32;rate=176400:*,file:*:audio/L32;rate=192000:*,file:*:audio/L32;rate=352800:*,file:*:audio/L32;rate=384000:*,file:*:audio/L32;rate=705600:*,file:*:audio/L32;rate=768000:*,file:*:audio/L24;rate=44100:*,file:*:audio/L24;rate=48000:*,file:*:audio/L24;rate=88200:*,file:*:audio/L24;rate=96000:*,file:*:audio/L24;rate=176400:*,file:*:audio/L24;rate=192000:*,file:*:audio/L24;rate=352800:*,file:*:audio/L24;rate=384000:*,file:*:audio/L24;rate=705600:*,file:*:audio/L24;rate=768000:*,file:*:audio/L16;rate=44100:*,file:*:audio/L16;rate=48000:*,file:*:audio/L16;rate=88200:*,file:*:audio/L16;rate=96000:*,file:*:audio/L16;rate=176400:*,file:*:audio/L16;rate=192000:*,file:*:audio/L16;rate=352800:*,file:*:audio/L16;rate=384000:*,file:*:audio/L16;rate=705600:*,file:*:audio/L16;rate=768000:*,file:*:audio/mpegurl:*,file:*:audio/x-mpegurl:*,file:*:video/mpegurl:*,file:*:video/x-mpegurl:*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,"

UnixMan
2018-04-04, 14:19
Got it, the "Rygel" upnp renderer is returning a response to the GetProtocolInfo request which is strange and maybe incorrect with empty field between ',' and that causes my parser to crash. I will change it, but there might be something to do on their side
I wonder... does also the image use Rygel? I thought that using the new internal renderer feature of HQPd, Rygel was no longer required... :confused:

philippe_44
2018-04-04, 14:46
I wonder... does also the image use Rygel? I thought that using the new internal renderer feature of HQPd, Rygel was no longer required... :confused:

The image is definitely using Rygel internally. What surprises me is that it used to work. The ProtocolInfo (list of accepted mime types and uri schemes) returned by Rygel does not include any HTTP scheme, but just FILE, so it should not have worked before

[edit]: I tried with older versions, going back to 0.2.14.3 and it fails the same way

philippe_44
2018-04-04, 14:58
I guess the Airplay issue was a coincidence, and didn't mean to muddy the waters concerning the UPnPBridge. I don't have any Apple products, but had installed it in an attempt to get the Denon to play nice with something. The UPnPBridge has been rock solid, since yesterday, when I unplugged the Directv ethernet. I will hunt up its address and add it to the config as a block as you describe. I did add the debugging option to the airplay bridge as requested, but see little info in the airplay log. I even rebooted the server after adding -d all=sdebug:


If you know how to do that, could you run this UPnPBridge version under gdb? https://www.dropbox.com/sh/l152q06f688xd1d/AAD_i-7GeFL4mFcsxLUx2moba?dl=0. I've left symbols in it, so it should tell me where it crashes.

It's very strange that the AirPlay crashes immediately, I also thought there was something wrong with the 64 bits versions, but I tried and it worked fine, at least on my Kubuntu 17.10. What are you using already?

UnixMan
2018-04-04, 16:39
Hi Philippe,

first of all... thanks a lot for your help!!!


The image is definitely using Rygel internally. What surprises me is that it used to work. The ProtocolInfo (list of accepted mime types and uri schemes) returned by Rygel does not include any HTTP scheme, but just FILE, so it should not have worked before

[edit]: I tried with older versions, going back to 0.2.14.3 and it fails the same way
maybe now it uses it in a different way? When it worked, we had the HQPd internal renderer disabled (or not present at all, in older HQPd versions). If I have understood it correctly (I'm not quite sure about that...), your plugin was "speaking" UPnP with Rygel (obviously...), while Rygel was controlling HQPd via MPRIS.

Now I've seen that (enabling UPnP in HQPd config) I can remove Rygel, and in such case your plugin "talks" directly to HQPd.

Can you try to do so (kill rygel...) and see what happens?

OTOH, you may also try to keep rygel but disable UPnP in HQP (just remove all the lines under “<upnp interface="auto">” in /etc/hqplayer/hqplayerd.xml and restart hqpd), which is the only setup that have worked, though I'm not sure if for that you'd need a different config for rygel WRT that provided on the image. Worse yet, I am not even sure whether it would work with the latest versions of HQPd. :(

We were still using an older beta, since at a certain point updating to a newer one (still a beta, perhaps the last one) broke everything... so at that point we decided to go back anche keep that older working version "forever". Kind of messy thing... :(

Probably we'll have to contact HQPd developer, too. Particularly if the problem belongs to that... but I'm afraid that I'd need to understand a bit better what's goin' on "on our side" before being able to tell him what's wrong with HQPd. :o

BTW: meanwhile, can we re-install an older version of your plugin (I guess the last one before 0.3.0.0) in LMS? How?

philippe_44
2018-04-05, 10:02
Hi Philippe,

first of all... thanks a lot for your help!!!


maybe now it uses it in a different way? When it worked, we had the HQPd internal renderer disabled (or not present at all, in older HQPd versions). If I have understood it correctly (I'm not quite sure about that...), your plugin was "speaking" UPnP with Rygel (obviously...), while Rygel was controlling HQPd via MPRIS.

Now I've seen that (enabling UPnP in HQPd config) I can remove Rygel, and in such case your plugin "talks" directly to HQPd.

Can you try to do so (kill rygel...) and see what happens?

OTOH, you may also try to keep rygel but disable UPnP in HQP (just remove all the lines under “<upnp interface="auto">” in /etc/hqplayer/hqplayerd.xml and restart hqpd), which is the only setup that have worked, though I'm not sure if for that you'd need a different config for rygel WRT that provided on the image. Worse yet, I am not even sure whether it would work with the latest versions of HQPd. :(

We were still using an older beta, since at a certain point updating to a newer one (still a beta, perhaps the last one) broke everything... so at that point we decided to go back anche keep that older working version "forever". Kind of messy thing... :(

Probably we'll have to contact HQPd developer, too. Particularly if the problem belongs to that... but I'm afraid that I'd need to understand a bit better what's goin' on "on our side" before being able to tell him what's wrong with HQPd. :o

BTW: meanwhile, can we re-install an older version of your plugin (I guess the last one before 0.3.0.0) in LMS? How?

To try an older version, you have to manually copy the content of the zip file (found on sourceforge https://sourceforge.net/projects/lms-plugins-philippe44/files/?source=navbar) to /var/lib/squeezeboxeserver/installedplugins/plugins/UPnPBridge (more or less, it's from memory, but you should find your way)

UnixMan
2018-04-06, 02:58
To try an older version, you have to manually copy the content of the zip file (found on sourceforge https://sourceforge.net/projects/lms-plugins-philippe44/files/?source=navbar) to /var/lib/squeezeboxeserver/installedplugins/plugins/UPnPBridge (more or less, it's from memory, but you should find your way)
Thanks a lot. Will figure it out.

BTW: here is a screenshot of the UPnPBridge config which we have been using successfully (with an older beta release of HQPd):

https://www.nexthardware.com/forum/pc-top-software/81480-hqplayer-introduzione-e-indice-argomenti-137.html

UnixMan
2018-04-06, 14:26
Hi Philippe,

so, I downgraded UPnPBridge to version 0.2.9.5 and restored the previous (working) configuration for hqplayerd (with it's own UPnP renderer disabled) and Rygel... and... guess what? It works again!! :D :cool:

Also with the latest version of hqplayerd (4.0.4-5).

I can post more details, config & log files if you whish.

philippe_44
2018-04-06, 16:21
Hi Philippe,

so, I downgraded UPnPBridge to version 0.2.9.5 and restored the previous (working) configuration for hqplayerd (with it's own UPnP renderer disabled) and Rygel... and... guess what? It works again!! :D :cool:

Also with the latest version of hqplayerd (4.0.4-5).

I can post more details, config & log files if you whish.

ok, that's good and bad at the same time :) Can you try 0.3.0.2 (in the dev repo). I've corrected a few things there wrt UPnP/DLNA compatibility that I forgot to backport in my new version

UnixMan
2018-04-07, 14:06
ok, that's good and bad at the same time :) Can you try 0.3.0.2 (in the dev repo). I've corrected a few things there wrt UPnP/DLNA compatibility that I forgot to backport in my new version
tested... no way. :(

Using HQPd internal renderer, it keeps crashing like the new stable (0.3.0.0).

Using external Rygel via MPRIS it does not crash and seems to work, but not really. Music does not play.

N.B.: new versions (0.3.x) seems to have only two (or 3?) HTTP mode options. Unfortunately, the drop-down menu does not show any label (minor bug?) to tell which is which. Anyway, none of them works.

OTOH, 0.2.9.5 have many more (six, plus the first one blank... default?). Older versions had less, but perhaps different from 0.3.0.x

Anyway, to get HQPd to work (via Rygel->MPRIS), with older version I had to use a "fixed size" HTTP mode, manually entering a large file size.

With 0.2.9.5 it works with either "fixed large size", "no size", "no size (open range)" or "full buffering", while it does not work using "chunked" or "chunked (open range)". In fact, in chunked modes, HQPd complains about "missing mandatory chunk" (or something like that... no idea what does it means).


Hope it helps. :o

UnixMan
2018-09-08, 12:36
Hi Philippe,

update: newer versions of hqplayerd does include embedded UPnP support (via librygel), so no need to use an external Rygel server anymore. Setup is much simpler now: only hqplayerd (with its default configuration) and LMS with your UPnPBridge are required.

Unfortunately, same problem still exists: only the old 0.2.9.5 version of UPnPBridge (and perhaps some older one) does work. No way to get it to work with newer ones, including the latest available from official LMS repos.

Below a couple of screenshot of the UPnPBridge configuration which does works:

25570
25571

shadowlight
2018-09-16, 20:51
I will have to keep an eye on the setup, since I want to send UPnP stream to HQPlayer Embedded.

UnixMan
2018-09-17, 08:37
I will have to keep an eye on the setup, since I want to send UPnP stream to HQPlayer Embedded.
Now that's easy. I've written a simple guide, here: "Mini-guida: come usare HQPlayer Embedded (hqplayerd) con LMS (https://www.nexthardware.com/forum/pc-top-software/90915-mini-guida-come-usare-hqplayer-embedded-hqplayerd-con-lms.html)".

It's in Italian language (sorry) but I guess you can work it out, maybe with the help of automatic translation.

shadowlight
2018-09-17, 18:11
Now that's easy. I've written a simple guide, here: "Mini-guida: come usare HQPlayer Embedded (hqplayerd) con LMS (https://www.nexthardware.com/forum/pc-top-software/90915-mini-guida-come-usare-hqplayer-embedded-hqplayerd-con-lms.html)".

It's in Italian language (sorry) but I guess you can work it out, maybe with the help of automatic translation.

Thank you. I will build the a RPi for testing following your direction.

shadowlight
2018-10-18, 17:47
@philippe_44,@UnixMan

Any indication on what code changes between older and newer potentially broke the compatibility between the two solutions? I would love to leverage the solution to stream Qobuz and Deezer.

Thank You

philippe_44
2018-10-18, 19:53
@philippe_44,@UnixMan

Any indication on what code changes between older and newer potentially broke the compatibility between the two solutions? I would love to leverage the solution to stream Qobuz and Deezer.

Thank You

Not on my side. I tried to install hqplayerd but no UPnP device appeared, so I gave up

thk_ms
2018-10-26, 09:04
Hello,

unfortunately I don't have any bridge function anymore. The log shows:


Retarting Squeeze2upnp after crash: /volume2/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-ppc-static -Z -I -f /volume2/@appstore/SqueezeCenter/Logs/upnpbridge.log -x /volume2/@appstore/SqueezeCenter/prefs/upnpbridge.xml

Retarting Squeeze2upnp after crash: /volume2/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-ppc-static -Z -I -f /volume2/@appstore/SqueezeCenter/Logs/upnpbridge.log -x /volume2/@appstore/SqueezeCenter/prefs/upnpbridge.xml

Retarting Squeeze2upnp after crash: /volume2/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/UPnPBridge/Bin/squeeze2upnp-ppc-static -Z -I -f /volume2/@appstore/SqueezeCenter/Logs/upnpbridge.log -x /volume2/@appstore/SqueezeCenter/prefs/upnpbridge.xml


The bridge is restarting continiusly. Restart bridge und Synology Diskstation doesn't helps. I have bridge 1.63 und the actual LMS 7.9 (Syno,logy)

Is there any help?, Thanks, thk_ms