Bug 485449

Summary: Audio broke in flatpak
Product: [Applications] Haruna Reporter: remtanmajitenshi
Component: genericAssignee: george fb <georgefb899>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.0.2   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description remtanmajitenshi 2024-04-12 17:44:39 UTC
SUMMARY
Audio doesn't work in flatpak

STEPS TO REPRODUCE
1. Open .mp4 with audio stream or .mp3

OBSERVED RESULT
Audio cannot be heard

EXPECTED RESULT
Audio works

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04/Flatpak

ADDITIONAL INFORMATION
Last good: commit fdf6287c481d1720ea3de2e626779f8b71a7973f0e98c8146c160fc8c84d5dde (update yt-dlp)
First bad: commit 11f1b4803b6554f9c225bc65f91d5eff8aa67c1bea5d34f6bfb6b9ca0a789cb3 (Update ffmpeg)
Comment 1 george fb 2024-04-14 17:06:34 UTC
Can't reproduce.
Comment 2 remtanmajitenshi 2024-04-14 21:56:19 UTC
I tried deleting .var/app/org.kde.haruna to reset settings and can still reproduce.
I'm on Kubuntu 22.04 with Plasma 5.24.7, Kernel 6.5, flatpak 1.12.7.

When running via terminal and opening .mp3 or .m4a, I see this:
> unknown() : Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
> Cannot load libcuda.so.1
> TagLib: Could not open file file:///home/username/Downloads/123.mp3
> KFileMetaData::TagLibExtractor::extract() : Unable to open file readonly:  "file:///home/username/Downloads/123.mp3"
> unknown() : Could not find video stream
> unknown() : "MPV_ERROR_COMMAND" QVariant(QStringList, QList("video-add", ""))
> unknown() : qrc:/qt/qml/org/kde/haruna/qml/MpvVideo.qml:42:5 Parameter "text" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.
> unknown() : Could not find video stream
> unknown() : "MPV_ERROR_COMMAND" QVariant(QStringList, QList("video-add", ""))
> unknown() : Could not find video stream

When opening .mp4 file (AVC+AAC), terminal is silent (except for the first two lines including libcuda (I'm on Intel IGPU), but those lines also appear in working build). Audio just doesn't work.

Is there anything else I can provide?
Comment 3 remtanmajitenshi 2024-04-14 22:06:17 UTC
I checked previous working build in terminal again to compare with the last build, and now I see that most of the lines from my comment also appear there when opening audio file without video, so they are not related to my problem.

The only new line in the last build is:
> unknown() : qrc:/qt/qml/org/kde/haruna/qml/MpvVideo.qml:42:5 Parameter "text" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.
Comment 4 george fb 2024-04-15 12:58:08 UTC
I switched back to ffmpeg 6.