Bug 419970 - Amarok does not play - Does not load Phonon plugins and simply does nothing when I try to start a track
Summary: Amarok does not play - Does not load Phonon plugins and simply does nothing w...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.9.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-11 20:29 UTC by Laura David Hurka
Modified: 2020-04-18 13:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
First launch of Amarok compiled from git caused crash (35.75 KB, text/plain)
2020-04-11 20:57 UTC, Laura David Hurka
Details
Amarok UI after compiling from git (121.33 KB, image/png)
2020-04-11 21:03 UTC, Laura David Hurka
Details
After building from git Amarok crashes at quit (936 bytes, text/plain)
2020-04-11 21:06 UTC, Laura David Hurka
Details
Dockerfile that builds Amarok KF5 for Neon 18.04 (1.52 KB, text/plain)
2020-04-18 13:43 UTC, Pedro de Carvalho Gomes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laura David Hurka 2020-04-11 20:29:33 UTC
SUMMARY
Amarok apparently fails to load Phonon backends, but doesn’t make any note of it in its UI. So I tried several ways to play a track. I loaded some tracks into the playlist and
* pressed the play button
* Menu -> Amarok -> Play
* Double click a track in the playlist
* Restart Amarok
Nothing happens, except that the play button is checked when I press it or do Amarok -> Play.
When I select a track from the playlist, nothing happens. Nothing appears in the Current Track area, no duration is shown in the toolbar, no window title is set. Only the track is highlighted in the playlist.

STEPS TO REPRODUCE
1. Play a track

OBSERVED RESULT
Simply nothing

EXPECTED RESULT
Amarok loads and plays the track

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.18
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1

Concerning Amarok:
Qt: 4.8.7
KDE Development Platform: 4.14.38
Amarok: 2.9.0

ADDITIONAL INFORMATION
When I start amarok from command line I get the following errors (some of them multiple times):
> WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded 
> WARNING: Phonon::createPath: Cannot connect  Phonon::MediaObject ( no objectName ) to  Phonon::AudioOutput ( no objectName ). 
> amarok(5960)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
> QWidget::setMinimumSize: (Media Sources dock/BrowserDock) Negative sizes (200,-1) are not possible
> QWidget::setMinimumSize: (Playlist dock/Playlist::Dock) Negative sizes (0,-1) are not possible
> WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded 
> "<?xml version="1.0" encoding="UTF-8"?>
> <lfm status="failed">
>   <error code="8">Operation failed - Most likely the backend service failed. Please try again.</error>
> </lfm>
> " 
> QMetaObject::invokeMethod: No such method App::onWsError(lastfm::ws::Error)
> Calling appendChild() on a null node does nothing.

I’m trying to compile Amarok now. Maybe I can help with debugging then. Compiling trouble will be added later.
Comment 1 Laura David Hurka 2020-04-11 20:57:29 UTC
Created attachment 127453 [details]
First launch of Amarok compiled from git caused crash

I managed to compile Amarok now. The main problem was that the CMake scripts persistently insist that they don’t find taglib, or a wrong version of taglib, or that taglib has missing features. But some debugging output added to the scripts told me that everything is perfectly fine with taglib.

Next problem was that CMake didn’t check for mysqld and l4z libraries.

Launching Amarok from the build directory led to a crash because of a failed assertion. Backtrace is attached.
Comment 2 Laura David Hurka 2020-04-11 21:03:07 UTC
Created attachment 127455 [details]
Amarok UI after compiling from git

Then I ninja install -ed the freshly built amarok. At launch of amarok I only get a message box that amarok couldn’t find any plugins.

Then I tried to launch amarok from the build dir again. I think that no Amarok was running in the background then. At least: Playback works now!

Just that the main window is pretty empty. Adding panels through the configure button at the bottom edge doesn’t work. In the console it writes:
> qrc:/kpackage/amarok/org.kde.amarok.currenttrack/contents/ui/main.qml:22:1: module "org.kde.amarok.currenttrack" is not installed
> qrc:/kpackage/amarok/org.kde.amarok.currenttrack/contents/ui/main.qml:21:1: module "org.kde.amarok.qml" is not installed
Comment 3 Laura David Hurka 2020-04-11 21:06:23 UTC
Created attachment 127456 [details]
After building from git Amarok crashes at quit

Still running Amarok from build dir: When I close Amarok it segfaults. Backtrace is attached. This can be reproduced.

However, gapless playback still doesn’t work at all. That was my only reason to try Amarok. :(
Comment 4 Laura David Hurka 2020-04-11 21:19:55 UTC
I reinstalled Amarok from aptitude now. It kept the behaviour as after compiling and installing from git: I get a message box that it doesn’t find any plugins.

amarok -v gives 2.9.70 now, same for build/bin/amarok -v.
Comment 5 Laura David Hurka 2020-04-11 21:33:25 UTC
I’m reading that Amarok is unmaintained. https://phabricator.kde.org/T12667#220236

If so, what is the replacement?
Comment 6 Pedro de Carvalho Gomes 2020-04-12 08:37:26 UTC
I disagree that Amarok is not being maintained. You may argue that the development has been slow, though.

I see that you have KF5 installed. Have you tried to compile amarok from master/HEAD? Also, I remember few things in Amarok searched for absolute paths. Have you tried "sudo make install" and then run Amarok?
Comment 7 Laura David Hurka 2020-04-12 16:45:13 UTC
(In reply to Pedro de Carvalho Gomes from comment #6)
> I disagree that Amarok is not being maintained. You may argue that the
> development has been slow, though.

Nice to hear. Maybe you should yell it at https://phabricator.kde.org/T11093.

> I see that you have KF5 installed. Have you tried to compile amarok from
> master/HEAD?

Yes. There is no other branch in the repository from anongit.

> Also, I remember few things in Amarok searched for absolute
> paths. Have you tried "sudo make install" and then run Amarok?

Yes, I did sudo ninja install.

In the meantime I uninstalled phonon backend vlc, and gapless playback works now. Nice! (VLC isn’t affected by that, it still has no gapless playback.)
Comment 8 Myriam Schweingruber 2020-04-14 11:41:12 UTC
Setting version and Platform correctly
Comment 9 Laura David Hurka 2020-04-14 13:58:03 UTC
> Myriam Schweingruber <myriam@kde.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>            Platform|Other                       |Compiled Sources
>             Version|2.9.0                       |kf5
> 
> --- Comment #8 from Myriam Schweingruber <myriam@kde.org> ---
> Setting version and Platform correctly

What’s the intention of this change? The problem described in this bug report applies to Amarok 2.9.0 with KDELibs.

Then I tried to compile it, so I can try to debug it with gdb or whatever. Now I have Amarok 2.9.70 with KF5, but it doesn’t reproduce the problem. It misses some other functionality in the UI.

Then I reinstalled Amarok from aptitude, but it seems that I got another Amarok 2.9.70 with KF5 now, which doesn’t run at all.

Amarok 2.9.0 with KDELibs from aptitude: Runs, but doesn’t play, probably because it doesn’t load phonon plugins.
Amarok 2.9.70 with KF5 from git master: Runs, but has UI issues.
Amarok 2.9.70 with KF5 from aptitude: Doesn’t run.
Comment 10 Myriam Schweingruber 2020-04-15 20:53:24 UTC
I changed it because you are talking mostly about the master branch. Amarok 2.9.0 not working anymore on specific distros is not much we can do about, it all depends on the distro packaging and tee availability of the KDE4 libraries, including Phonon. So if a distro decides to remove the libraries, there is of course no way Amarok 2.9.0 could work.

Please stick to one version in a bug report, else this is impossible to trace.
Comment 11 Laura David Hurka 2020-04-16 13:25:10 UTC
(In reply to Myriam Schweingruber from comment #10)
> Please stick to one version in a bug report, else this is impossible to
> trace.

Sure. This bug was meant only about the problem in 2.9.0.

I close this because it appears to be irrelevant for the current development.

If you wish I can open a new bug about the problems with my compiled KF5 version.
Comment 12 Pedro de Carvalho Gomes 2020-04-16 14:02:30 UTC
Please do open bugs for all those issues. And please add the commit ID or date from your compilation. It is possible that few of those problems have already been solved.
Comment 13 Pedro de Carvalho Gomes 2020-04-18 13:42:44 UTC
Just like Myriam, When I first read this bug report,I understood that it was about KF5's version from HEAD/master. So I created a Dockerfile for Neon to check it. I will attach this to the bug report in case someone else hits here for the KF5 compilation.
Comment 14 Pedro de Carvalho Gomes 2020-04-18 13:43:46 UTC
Created attachment 127642 [details]
Dockerfile that builds Amarok KF5 for Neon 18.04