Bug 251628 - games/blinken: phonon backend plugin could not be loaded
Summary: games/blinken: phonon backend plugin could not be loaded
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-06 04:15 UTC by Paul Dufresne
Modified: 2021-01-01 23:57 UTC (History)
3 users (show)

See Also:
tcberner: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Dufresne 2020-12-06 04:15:13 UTC
Game stop when playing first note.
-Start
-Level 01
-Stop on "Remember this sequence"

In terminal I get:
"WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded" repeated multiple times.

"WARNING: Phonon::createPath: Cannot connect  Phonon::MediaObject ( no objectName ) to  Phonon::AudioOutput ( no objectName )"

Googling for the message have lead me to:
https://askubuntu.com/questions/715587/phonon-backend-plugin-could-not-be-loaded
in a different program, on Linux, suggesting that:
"sudo apt install phonon4qt5 phonon4qt5-backend-gstreamer phonon4qt5-backend-vlc" fixed the problem there.

paul@chakara:/usr/ports/games % blinken --version
blinken 20.08.3

X86, 64 bits
FreeBSD 12.2-RELEASE-p1 amd64
Xfce 4.14
paul@chakara:/usr/ports/games % cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC887 (Rear Analog)> (play/rec) default
pcm1: <Realtek ALC887 (Front Analog)> (play/rec)
No devices installed from userspace.
paul@chakara:/usr/ports/games %
Comment 1 Paul Dufresne 2020-12-06 04:15:54 UTC
I should have said I heard no sound at all.
Comment 2 Paul Dufresne 2020-12-06 04:19:52 UTC
paul@chakara:/usr/ports/games % pkg info blinken
blinken-20.08.3
Name           : blinken
Version        : 20.08.3
Installed on   : Sat Dec  5 19:20:43 2020 EST
Origin         : games/blinken
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : kde-applications kde games
Licenses       : LGPL20
Maintainer     : kde@FreeBSD.org
WWW            : http://edu.kde.org/blinken
Comment        : Memory enhancement game for KDE
Options        :
	DOCS           : on
Shared Libs required:
	libKF5Codecs.so.5
	libQt5Gui.so.5
	libKF5WidgetsAddons.so.5
	libQt5Core.so.5
	libQt5Xml.so.5
	libQt5DBus.so.5
	libKF5CoreAddons.so.5
	libKF5DBusAddons.so.5
	libKF5ConfigGui.so.5
	libQt5Widgets.so.5
	libphonon4qt5experimental.so.4
	libKF5Auth.so.5
	libKF5AuthCore.so.5
	libphonon4qt5.so.4
	libKF5GuiAddons.so.5
	libKF5XmlGui.so.5
	libQt5Svg.so.5
	libKF5ConfigCore.so.5
	libKF5ConfigWidgets.so.5
	libKF5I18n.so.5
	libKF5Crash.so.5
Annotations    :
	FreeBSD_version: 1201000
	repo_type      : binary
	repository     : FreeBSD
Flat size      : 3.28MiB
Description    :
Blinken is the KDE version of the well-known game Simon Says.

Follow the pattern of sounds and lights as long as you can! Press the
start game button to begin. Watch the computer and copy the pattern it
makes. Complete the sequence in the right order to win.

WWW: http://edu.kde.org/blinken
paul@chakara:/usr/ports/games %
Comment 3 Tobias C. Berner freebsd_committer freebsd_triage 2020-12-06 07:14:44 UTC
Moin moin

Do you have a phonon backend installed?

> pkg info -xD phonon-qt5
phonon-qt5-4.11.1:
On install:
Please, consider installing backends for Phonon:
- multimedia/phonon-gstreamer   GStreamer backend
- multimedia/phonon-vlc         VLC backend


mfg Tobias
Comment 4 Paul Dufresne 2020-12-07 15:03:38 UTC
Got the same as you:
----
root@chakara:/home/paul # pkg info|grep phonon
phonon-qt5-4.11.1              KDE multimedia framework
root@chakara:/home/paul # pkg info -xD phonon-qt5
phonon-qt5-4.11.1:
On install:
Please, consider installing backends for Phonon:
- multimedia/phonon-gstreamer	GStreamer backend
- multimedia/phonon-vlc		VLC backend

root@chakara:/home/paul # 
---

So I did:

root@chakara:/home/paul # pkg install phonon-gstreamer-qt5
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	phonon-gstreamer-qt5: 4.10.0

Number of packages to be installed: 1

125 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching phonon-gstreamer-qt5-4.10.0.txz:  32%   40 KiB  41.0kB/s    00:02[1/1] Fetching phonon-gstreamer-qt5-4.10.0.txz: 100%  125 KiB 127.7kB/s    00:01    
Checking integrity... done (0 conflicting)
[1/1] Installing phonon-gstreamer-qt5-4.10.0...
[1/1] Extracting phonon-gstreamer-qt5-4.10.0: 100%
=====
Message from phonon-gstreamer-qt5-4.10.0:

--
You'll need to install some GStreamer plugins to make Phonon able to
play something via this backend: multimedia/gstreamer1-plugins-all
will let you choose among all of them.
root@chakara:/home/paul # blinken
Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
"Session bus not found\nTo circumvent this problem try the following command (with Linux and bash)\nexport $(dbus-launch)"
root@chakara:/home/paul # exit
paul@chakara:~ % blinken
Bus error (core dumped)
paul@chakara:~ % 

The error message for not initializing phonon disappeared, but still got no sound. I changed the configuration to check out "sounds" and was able to go up to repeating the sequence, but then got the core dumped.

Then I did:
pkg install gstreamer1-plugins-all

Which install probably way too much packages: 167?

But blinken now works with sound.

I wish it would be easier for people installing the package (on XFCE... maybe on KDE it works, I don't know).
Comment 5 Tobias C. Berner freebsd_committer freebsd_triage 2020-12-07 15:28:46 UTC
(In reply to Paul Dufresne from comment #4)
Moin moin 

The issue is that there are two valid back-ends for phonon -- so we cannot (well we could...) install one by default. 

So we rely on users to install one of the backends manually. I agree this is not nice, but there is no method to do this better in our packaging system at the moment.


Ideally we would just pick one -- e.g. remove phonon-vlc and just force a dependency on phonon-gstramer... but then, someone would come forward who "really needs phonon-vlc", and... well that would break it again.


Another option would be to have the runtime dependency on the backend optionified, and choosing one of them as default for the package builders (say gstreamer). This would be more felxible as users still could switch to the other one when building packages manually... but it would reduce the flexibility of the prebuilt packages; as as of now, you could (theoretically) switch the backend from the repo without any issues.


mfg Tobias
Comment 6 commit-hook freebsd_committer freebsd_triage 2021-01-01 23:56:55 UTC
A commit references this bug:

Author: adridg
Date: Fri Jan  1 23:56:14 UTC 2021
New revision: 559891
URL: https://svnweb.freebsd.org/changeset/ports/559891

Log:
  Massage games/blinken

  This game needs sound (it is a variant of "Simon Says"), so remind
  people in the install message that sound is needed.

  While here, update the WWW link

  PR:		251628
  Reported by:	Paul Dufresne

Changes:
  head/games/blinken/Makefile
  head/games/blinken/pkg-descr
  head/games/blinken/pkg-message
Comment 7 Adriaan de Groot freebsd_committer freebsd_triage 2021-01-01 23:57:37 UTC
I think the best we can do is an install message (which I just added)