flathub / org.kde.audiotube

https://flathub.org/apps/details/org.kde.audiotube
4 stars 1 forks source link

Audiotube 23.04.0 does not run on Fedora Silverblue 38 #22

Closed lomapur closed 1 year ago

lomapur commented 1 year ago

Bug summary:

After installing Audiotube 23.04.0 from Flathub on Fedora Silverblue 38 clicking the icon in the application grid does nothing, trying to start it from the terminal results in process terminating.

Reproduction steps:

  1. Install Audiotube 23.04.0 from Flathub
  2. (on Gnome) Try to run it by double clicking the icon in the application grid.
  3. Audiotube fails to run, no window is raised, if trying to run from the terminal the output below is being presented.

Bug appearance rate: Every time

System info:

Fedora Silverblue 38.20230421.0 Wayland Intel® Core™ i5-2520M Intel® HD Graphics 3000 Gnome 44.0 Kernel: Linux 6.2.11-300.fc38.x86_64

Additional information:

Output from the terminal when runningflatpak run org.kde.audiotube:

[damian@gondor ~]$ flatpak run org.kde.audiotube
QSocketNotifier: Can only be used with threads started with QThread
asyncdatabase: Checking whether migration "2022-05-20-194850_init" is already applied
asyncdatabase: … yes
asyncdatabase: Checking whether migration "2022-05-25-212054_playlists" is already applied
asyncdatabase: … yes
asyncdatabase: Migrations finished
asyncdatabase: Running "select distinct (search_query) from searches order by search_id desc"
asyncdatabase: Running "select * from favourites natural join songs order by favourites.rowid desc"
asyncdatabase: Running "select * from played_songs natural join songs"
asyncdatabase: Running "select * from played_songs natural join songs order by plays desc limit 10"
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
asyncdatabase: Running "select * from playlists"
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
asyncdatabase: Running "select * from playlists"
asyncdatabase: Running "select * from playlists"
qrc:/main.qml:97:17: Unable to assign null to double
qrc:/MinimizedPlayerControls.qml:245:13: Unable to assign bool to int
qrc:/LibraryPage.qml:28:13: Unable to assign [undefined] to double
qrc:/LibraryPage.qml:322:13: Unable to assign [undefined] to double
qrc:/LibraryPage.qml:609:13: Unable to assign [undefined] to double
qrc:/dialogs/RenamePlaylistDialog.qml:25: TypeError: Cannot read property 'title' of undefined
qrc:/dialogs/RenamePlaylistDialog.qml:31: TypeError: Cannot read property 'description' of undefined
qrc:/dialogs/AddPlaylistDialog.qml:19:15: QML FormLayout: Binding loop detected for property "implicitHeight"
qrc:/dialogs/RenamePlaylistDialog.qml:20:15: QML FormLayout: Binding loop detected for property "implicitHeight"
qrc:/dialogs/AddPlaylistDialog.qml:19:15: QML FormLayout: Binding loop detected for property "implicitHeight"
qrc:/dialogs/PlaylistDialog.qml:38:9: QML AddPlaylistDialog: Binding loop detected for property "implicitHeight"
qrc:/LibraryPage.qml:661:9: QML RenamePlaylistDialog: Binding loop detected for property "implicitHeight"
qrc:/dialogs/PlaylistDialog.qml:38:9: QML AddPlaylistDialog: Binding loop detected for property "implicitHeight"
[damian@gondor ~]$ 

Thanks!

jbruechert commented 1 year ago

Sorry for leaving this unfixed for so long, but I still fail to understand the root cause (I don't have a GNOME setup for testing right now).

Does

flatpak run --env=QT_QUICK_CONTROLS_STYLE=org.kde.desktop --env=QT_STYLE_OVERRIDE=Breeze org.kde.audiotube

work for you?

If it does, I'll consider just forcing breeze on everyone :D

lomapur commented 1 year ago

Yes, it starts, although it looks like the theme is "a bit" broken, see screenshot attached (I have terminal in the background, which can be seen behind the sidebar?).

Képernyőkép ekkor: 2023-04-22 10-57-32

Output from the terminal:

[damian@gondor ~]$ flatpak run --env=QT_QUICK_CONTROLS_STYLE=org.kde.desktop --env=QT_STYLE_OVERRIDE=Breeze org.kde.audiotube
QSocketNotifier: Can only be used with threads started with QThread
asyncdatabase: Checking whether migration "2022-05-20-194850_init" is already applied
asyncdatabase: … yes
asyncdatabase: Checking whether migration "2022-05-25-212054_playlists" is already applied
asyncdatabase: … yes
asyncdatabase: Migrations finished
asyncdatabase: Running "select distinct (search_query) from searches order by search_id desc"
asyncdatabase: Running "select * from favourites natural join songs order by favourites.rowid desc"
asyncdatabase: Running "select * from played_songs natural join songs"
asyncdatabase: Running "select * from played_songs natural join songs order by plays desc limit 10"
kf.kirigami: Failed to find a Kirigami platform plugin
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
asyncdatabase: Running "select * from playlists"
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
asyncdatabase: Running "select * from playlists"
asyncdatabase: Running "select * from playlists"
qrc:/main.qml:97:17: Unable to assign null to double
qrc:/MinimizedPlayerControls.qml:245:13: Unable to assign bool to int
qrc:/LibraryPage.qml:28:13: Unable to assign [undefined] to double
qrc:/LibraryPage.qml:322:13: Unable to assign [undefined] to double
qrc:/LibraryPage.qml:609:13: Unable to assign [undefined] to double
qrc:/dialogs/RenamePlaylistDialog.qml:25: TypeError: Cannot read property 'title' of undefined
qrc:/dialogs/RenamePlaylistDialog.qml:31: TypeError: Cannot read property 'description' of undefined
number of playlists 0
number of playlists 0
number of playlists 0
file:///usr/lib/qml/org/kde/kirigami.2/Dialog.qml:366:37: QML Binding: Binding loop detected for property "value"
file:///usr/lib/qml/org/kde/kirigami.2/Dialog.qml:366:37: QML Binding: Binding loop detected for property "value"
qrc:/dialogs/PlaylistDialog.qml:38:9: QML AddPlaylistDialog: Binding loop detected for property "implicitHeight"
qrc:/LibraryPage.qml:661:9: QML RenamePlaylistDialog: Binding loop detected for property "implicitHeight"
qrc:/dialogs/PlaylistDialog.qml:38:9: QML AddPlaylistDialog: Binding loop detected for property "implicitHeight"
qrc:/main.qml:97:17: Unable to assign null to double
qrc:/LibraryPage.qml:609:13: Unable to assign [undefined] to double
qrc:/LibraryPage.qml:322:13: Unable to assign [undefined] to double
qrc:/LibraryPage.qml:28:13: Unable to assign [undefined] to double
qrc:/dialogs/RenamePlaylistDialog.qml:31: TypeError: Cannot read property 'description' of undefined
qrc:/dialogs/RenamePlaylistDialog.qml:25: TypeError: Cannot read property 'title' of undefined
qrc:/MinimizedPlayerControls.qml:245:13: Unable to assign bool to int
qrc:/MinimizedPlayerControls.qml:141:9: Unable to assign null to QQuickAnchorLine

** (audiotube:2): WARNING **: 10:55:30.662: atk-bridge: get_device_events_reply: unknown signature
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
asyncdatabase: Running "select * from playlists"
asyncdatabase: Running "select * from playlists"
qrc:/LibraryPage.qml:28:13: Unable to assign [undefined] to double
qrc:/LibraryPage.qml:322:13: Unable to assign [undefined] to double
qrc:/LibraryPage.qml:609:13: Unable to assign [undefined] to double
qrc:/dialogs/RenamePlaylistDialog.qml:25: TypeError: Cannot read property 'title' of undefined
qrc:/dialogs/RenamePlaylistDialog.qml:31: TypeError: Cannot read property 'description' of undefined
number of playlists 0
number of playlists 0
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
asyncdatabase: Running "select * from playlists"
qrc:/PlaybackHistory.qml:20:13: Unable to assign [undefined] to double
number of playlists 0
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
asyncdatabase: Running "select * from playlists"
qrc:/PlaybackHistory.qml:20:13: Unable to assign [undefined] to double
number of playlists 0
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
asyncdatabase: Running "select * from playlists"
asyncdatabase: Running "select * from playlists"
qrc:/LibraryPage.qml:28:13: Unable to assign [undefined] to double
qrc:/LibraryPage.qml:322:13: Unable to assign [undefined] to double
qrc:/LibraryPage.qml:609:13: Unable to assign [undefined] to double
qrc:/dialogs/RenamePlaylistDialog.qml:25: TypeError: Cannot read property 'title' of undefined
qrc:/dialogs/RenamePlaylistDialog.qml:31: TypeError: Cannot read property 'description' of undefined
number of playlists 0
number of playlists 0
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
asyncdatabase: Running "select * from playlists"
asyncdatabase: Running "select * from playlists"
qrc:/LibraryPage.qml:28:13: Unable to assign [undefined] to double
qrc:/LibraryPage.qml:322:13: Unable to assign [undefined] to double
qrc:/LibraryPage.qml:609:13: Unable to assign [undefined] to double
qrc:/dialogs/RenamePlaylistDialog.qml:25: TypeError: Cannot read property 'title' of undefined
qrc:/dialogs/RenamePlaylistDialog.qml:31: TypeError: Cannot read property 'description' of undefined
number of playlists 0
number of playlists 0

Thanks for looking into it! :)

EDIT: UI issue is already reported on bugs.kde.org, so a known problem:

https://bugs.kde.org/show_bug.cgi?id=466901

Anyhow, thanks for helping!

jbruechert commented 1 year ago

Can you try whether this works for you once it finished building? https://github.com/flathub/org.kde.audiotube/pull/23

secretmango commented 1 year ago

For me it works on Fedora 38 Kinoite (KDE). At least the window shows.

jbruechert commented 1 year ago

Yeah, it generally works on Plasma, the issue is somehow only happening on GNOME.

lomapur commented 1 year ago

Can you try whether this works for you once it finished building? #23

Yes, it works (with the caveat as in https://bugs.kde.org/show_bug.cgi?id=466901), thanks!