Closed dvalob closed 7 months ago
/home/pi/RPi-Jukebox-RFID/scripts/startup-scripts.sh: line 53: 1032 Segmentation fault /usr/bin/mpg123 -f **-${mpgvolume}** /home/pi/RPi-Jukebox-RFID/shared/startupsound.mp3
I assume the not expanded variable {mpgvolume}
is the issue.
Not sure what causes this, though.
it is declared here, right?
~~
Can you try to remove the -
right before {mpgvolume}
here:
https://github.com/MiczFlor/RPi-Jukebox-RFID/blob/develop/scripts%2Fstartup-scripts.sh#L53 ~~
Nevermind, could be negative
I do not think it will help. I have another phonie box where the start/stop sound play, and the code is exactlly the same on both:
They have the exactly same OS version, same HW. The left one is 2.4 - abcf6e92 - master, the right one is 2.5.0 - 4101984b - master
Do you use the audiojack or another audio output (like hifiberry)?
Jack output
Le ven. 15 mars 2024 à 16:19, Alvin Schiller @.***> a écrit :
Do you use the audiojack or another audio output (like hifiberry)?
— Reply to this email directly, view it on GitHub https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/2291#issuecomment-1999891579, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLOICE3WUXVZ2C3DSY55PLYYMGQNAVCNFSM6AAAAABEXSHFQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJZHA4TCNJXHE . You are receiving this because you authored the thread.Message ID: @.***>
What happens if you trigger the command manually?
/usr/bin/mpg123 /home/pi/RPi-Jukebox-RFID/shared/startupsound.mp3
And do you have a file /home/pi/.asoundrc
?
Hi! Please find the output
Le ven. 15 mars 2024 à 23:16, Alvin Schiller @.***> a écrit :
What happens if you trigger the command manually? /usr/bin/mpg123 /home/pi/RPi-Jukebox-RFID/shared/startupsound.mp3
— Reply to this email directly, view it on GitHub https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/2291#issuecomment-2000574909, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLOICBJMF6644ECOYX45WLYYNXM5AVCNFSM6AAAAABEXSHFQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBQGU3TIOJQHE . You are receiving this because you authored the thread.Message ID: @.***>
And yes, I do have the file /home/pi/.asoundrc
Have you added the .asoundrc
yourself?
Can you try and remove it (or backup with mv .asoundrc .asoundrc.bak
) and reboot?
no it was already there. I did what you suggested and now I can play both startup and shutdown sounds through /usr/bin/mpg123 /home/pi/RPi-Jukebox-RFID/shared/startupsound.mp3. Thanks!
When I start/stop the box I have both now. Thanks for your support!!
Should I close it myself, or let you close it (maybe with a note to fix it in the new versions?)
When it's fixed for you, you can close it
Closed when removing the .asoundrc file. thanks
Version
2.5.0
Branch
master
OS
Raspbian GNU/Linux 10 (buster)
Pi model
3B 1.2
Hardware
USB reader
What happened?
Startup and shutdown sounds do not work. I have a segmentation fault in my logs. A similar issue was reported by the past but closed because too old (https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/1178).
My startup volume is correctly set to 25 (issue fixed in a previous release)
Logs
Configuration
No response
More info
No response