SUMMARY Audio fails to work on a Raspberry Pi 3B running Raspberry Pi OS using the gcompris-qt package in the repository and the binary downloaded from the website. After installing PulseAudio I no longer get an error, but the sound still does not work. The command line output is as follows: pi@raspberrypi:~/Applications/gcompris-qt-0.97-Linux/bin $ ./gcompris-qt.sh QFontDatabase: Cannot find font directory /home/pi/Applications/gcompris-qt-0.97-Linux/bin/lib/fonts. Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig. QFontDatabase: Cannot find font directory /home/pi/Applications/gcompris-qt-0.97-Linux/bin/lib/fonts. Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig. exeCount set to: 20 qml: enter main.qml (run #20, ratio=2, fontRatio=2.0278222425681265, dpi=96, userDataPath=/home/pi/.local/share/GCompris) Downloading resource file "data2/voices-ogg/voices-en.rcc" Downloading resource file "data2/backgroundMusic/backgroundMusic-ogg.rcc" Successfully registered resource "/home/pi/.cache/KDE/gcompris-qt/data2/backgroundMusic/backgroundMusic-ogg.rcc" QFontDatabase: Cannot find font directory /home/pi/Applications/gcompris-qt-0.97-Linux/bin/lib/fonts. Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig. Found box2d in "/home/pi/Applications/gcompris-qt-0.97-Linux/lib/qml" Local resource is up-to-date: "voices-en.rcc" Successfully registered resource "/home/pi/.cache/KDE/gcompris-qt/data2/voices-ogg/voices-en.rcc" Local resource is up-to-date: "backgroundMusic-ogg.rcc" ** (gcompris-qt:1209): CRITICAL **: 11:45:23.665: gst_base_src_set_format: assertion 'GST_STATE (src) <= GST_STATE_READY' failed libEGL warning: DRI2: failed to authenticate DownloadManager: shutting down, 0 active jobs DownloadManager: shutting down, 0 active jobs STEPS TO REPRODUCE 1. Launch gcompris-qt OBSERVED RESULT No sound is outputted. EXPECTED RESULT Software should start playing background music and sound within the games. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: Raspbian GNU/Linux 10 (buster) (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: 5.11.3 ADDITIONAL INFORMATION
As discussed in irc: * pulseaudio is started * gstreamer librairies are installed * audio is outputted in the headphone jack More investigation needed on our side when we have access to a raspberry
It could be that pulseaudio is sending audio to hdmi by default, I remember someone had the same issue some time ago. Can you check to make sure that the audio device selected for pulseaudio is not hdmi ?
Created attachment 130142 [details] pavucontrol
Pulse Audio Volume Control lists two output devices labelled Built-in Audio Analog Mono (though I'm only using the headphone jack). One is set to Headphones and the other to Analog Output. Neither has another option under the drop-down menu. The sound widget on the task bar is also set to Analogue. Is there another place to look?
My experience duplicates the description, but with different versions. I have observed that if I add -m (muted), it runs fine. Perhaps this will provide a hint to where the problem is. The freeze is so bad that my only option is to power down. Raspberry Pi 400. Using original SD (believed to be Raspian NOOBS) ran apt update/upgrade before I tried to get gcompris (and after). Installed using apt install gcompris. --version reports: qt5ct: using qt5ct plugin gcompris-qt 0.95
(In reply to Jesse from comment #0) > SUMMARY > Audio fails to work on a Raspberry Pi 3B running Raspberry Pi OS using the > gcompris-qt package in the repository and the binary downloaded from the > website. After installing PulseAudio I no longer get an error, but the sound > still does not work. The command line output is as follows: > > pi@raspberrypi:~/Applications/gcompris-qt-0.97-Linux/bin $ ./gcompris-qt.sh I have the same issue on the Raspberry Pi 4 with a fully updated Raspberry Pi OS (formerly known as raspbian). No error messages when starting from the command line. This with the version from the Debian Buster (0,95 IIRC) repo as well as version 1.0 for Raspberry Pi (beta) directy downloaded from the gcompris.net website: https://gcompris.net/download/qt/raspberrypi/gcompris-qt-1.0-Raspberry.sh Audio Output is selected correctly (HDMI to Monitor with speakers) and works for Firefox/Youtube as a test. If you need specific debug information I'll try to gather it according to your instructions ;-) Greetings, Markus
> If you need specific debug information I'll try to gather it according to your instructions ;-) Can you run it from a terminal and paste the output? Maybe there will be useful information here :-)
(In reply to mkamp from comment #6) > (In reply to Jesse from comment #0) > > SUMMARY > > Audio fails to work on a Raspberry Pi 3B running Raspberry Pi OS using the > > gcompris-qt package in the repository and the binary downloaded from the > > website. After installing PulseAudio I no longer get an error, but the sound > > still does not work. The command line output is as follows: > > > > pi@raspberrypi:~/Applications/gcompris-qt-0.97-Linux/bin $ ./gcompris-qt.sh > > > I have the same issue on the Raspberry Pi 4 with a fully updated Raspberry > Pi OS (formerly known as raspbian). No error messages when starting from the > command line. This with the version from the Debian Buster (0,95 IIRC) repo > as well as version 1.0 for Raspberry Pi (beta) directy downloaded from the > gcompris.net website: > https://gcompris.net/download/qt/raspberrypi/gcompris-qt-1.0-Raspberry.sh > > Audio Output is selected correctly (HDMI to Monitor with speakers) and works > for Firefox/Youtube as a test. > > If you need specific debug information I'll try to gather it according to > your instructions ;-) > > Greetings, Markus Reply to myself: I've fixed the issue for me but I don't know exactly how, because I tried multiple things at once ;-) I think what helped was to install the gstreamer pulseaudio package.
(In reply to mkamp from comment #8) > > I think what helped was to install the gstreamer pulseaudio package. Installing gstreamer1.0-pulseaudio solved my problem with gcompris-qt.
@Jesse, hi, can you confirm if it works better after installing gstreamer1.0-pulseaudio?
(In reply to Jazeix Johnny from comment #10) > @Jesse, > > hi, can you confirm if it works better after installing > gstreamer1.0-pulseaudio? Very sorry, but after failing to get it working, I ended up installing Ubuntu on the Pi and was able to get Gcompris working on that. I no longer have a box running Raspberry Pi OS.
(In reply to Jesse from comment #11) > (In reply to Jazeix Johnny from comment #10) > > @Jesse, > > > > hi, can you confirm if it works better after installing > > gstreamer1.0-pulseaudio? > > Very sorry, but after failing to get it working, I ended up installing > Ubuntu on the Pi and was able to get Gcompris working on that. I no longer > have a box running Raspberry Pi OS. No problem at all, the important is that it works for you! I close the bug as resolved then.
Just tried installing gstreamer1.0. Verified that it crashed before install, and works properly after install of the package.