Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme won't launch: MediaPlayer/VideoPlayer/Playlist is not a type #57

Open
mihawk90 opened this issue Oct 20, 2024 · 2 comments
Open

Comments

@mihawk90
Copy link
Contributor

mihawk90 commented Oct 20, 2024

So this theme (and my modifications to it) used to work perfectly fine for years. I recently re-installed Fedora KDE 40 (as an upgrade from 39) and now I can't get it to work anymore. I checked out the master branch to make sure it's not one of my modifications, but no dice.

I'm getting 3 different errors - seemingly randomly - on each launch, I guess it's just a race which property is initialised first.

Anyway, here some infos about the system:

 ~/Development/aerial-sddm-theme   master  git show | head -n1
commit 92b85ec7d177683f39a2beae40cde3ce9c2b74b0

 ~/Development/aerial-sddm-theme   master  sudo dnf install git qt5-qtgraphicaleffects qt5-qtquickcontrols gstreamer1-libav
[sudo] password for tarulia: 
Last metadata expiration check: 0:06:12 ago on Sun 20 Oct 2024 16:07:44 CEST.
Package git-2.47.0-1.fc40.x86_64 is already installed.
Package qt5-qtgraphicaleffects-5.15.15-1.fc40.x86_64 is already installed.
Package qt5-qtquickcontrols-5.15.15-1.fc40.x86_64 is already installed.
Package gstreamer1-plugin-libav-1.24.8-1.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

 ~/Development/aerial-sddm-theme   master  dnf list installed sddm
Installed Packages
sddm.x86_64                                           0.21.0-4.fc40                                            @anaconda

And the errors:

 ~/Development/aerial-sddm-theme   master  sddm-greeter --test-mode --theme .
Socket error:  "QLocalSocket::connectToServer: Invalid name"
Loading file:./Main.qml...
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:157:5: MediaPlayer is not a type 
         property MediaPlayer currentPlayer: mediaplayer1 
         ^
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:157:5: MediaPlayer is not a type 
         property MediaPlayer currentPlayer: mediaplayer1 
         ^
Fallback to embedded theme
Loading file:./Main.qml...
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:157:5: MediaPlayer is not a type 
         property MediaPlayer currentPlayer: mediaplayer1 
         ^
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:157:5: MediaPlayer is not a type 
         property MediaPlayer currentPlayer: mediaplayer1 
         ^
Fallback to embedded theme
Loading file:./Main.qml...
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:157:5: MediaPlayer is not a type 
         property MediaPlayer currentPlayer: mediaplayer1 
         ^
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:157:5: MediaPlayer is not a type 
         property MediaPlayer currentPlayer: mediaplayer1 
         ^
Fallback to embedded theme
^CSignal received: SIGINT

 ✘  ~/Development/aerial-sddm-theme   master  sddm-greeter --test-mode --theme .
Socket error:  "QLocalSocket::connectToServer: Invalid name"
Loading file:./Main.qml...
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:70:5: VideoOutput is not a type 
         VideoOutput { 
         ^
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:70:5: VideoOutput is not a type 
         VideoOutput { 
         ^
Fallback to embedded theme
Loading file:./Main.qml...
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:70:5: VideoOutput is not a type 
         VideoOutput { 
         ^
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:70:5: VideoOutput is not a type 
         VideoOutput { 
         ^
Fallback to embedded theme
Loading file:./Main.qml...
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:70:5: VideoOutput is not a type 
         VideoOutput { 
         ^
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:70:5: VideoOutput is not a type 
         VideoOutput { 
         ^
Fallback to embedded theme
^CSignal received: SIGINT

 ✘  ~/Development/aerial-sddm-theme   master  sddm-greeter --test-mode --theme .
Socket error:  "QLocalSocket::connectToServer: Invalid name"
Loading file:./Main.qml...
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:63:19: Playlist is not a type 
             playlist: Playlist { 
                       ^
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:63:19: Playlist is not a type 
             playlist: Playlist { 
                       ^
Fallback to embedded theme
Loading file:./Main.qml...
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:63:19: Playlist is not a type 
             playlist: Playlist { 
                       ^
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:63:19: Playlist is not a type 
             playlist: Playlist { 
                       ^
Fallback to embedded theme
Loading file:./Main.qml...
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:63:19: Playlist is not a type 
             playlist: Playlist { 
                       ^
file:///home/tarulia/Development/aerial-sddm-theme/Main.qml:63:19: Playlist is not a type 
             playlist: Playlist { 
                       ^
Fallback to embedded theme
^CSignal received: SIGINT

It's possible this is a Qt5 -> Qt6 issue since this seems to be a Qt6 build:

 ~/Development/aerial-sddm-theme   master  ll /usr/bin | grep sddm
-rwxr-xr-x.  1 root root     605K Mar 20  2024 sddm
lrwxrwxrwx.  1 root root       16 Mar 20  2024 sddm-greeter -> sddm-greeter-qt6
-rwxr-xr-x.  1 root root     2.8M Mar 20  2024 sddm-greeter-qt6
-rwxr-xr-x.  1 root root      29K Oct  3 02:00 sddmthemeinstaller

Whereas F39 was seemingly Qt5:

dnf repoquery -l sddm.x86_64 --releasever=39 | grep greeter
Last metadata expiration check: 0:01:33 ago on Mon 21 Oct 2024 17:29:10 CEST.
/etc/pam.d/sddm-greeter
/usr/bin/sddm-greeter
/usr/share/man/man1/sddm-greeter.1.gz

But there don't seem to be any Qt6 modules of the same name:

 ~/Development/aerial-sddm-theme   master  sudo dnf install git qt6-qtgraphicaleffects qt6-qtquickcontrols gstreamer1-libav
[sudo] password for tarulia: 
Last metadata expiration check: 0:15:51 ago on Sun 20 Oct 2024 16:07:44 CEST.
Package git-2.47.0-1.fc40.x86_64 is already installed.
No match for argument: qt6-qtgraphicaleffects
No match for argument: qt6-qtquickcontrols
Package gstreamer1-plugin-libav-1.24.8-1.fc40.x86_64 is already installed.
Error: Unable to find a match: qt6-qtgraphicaleffects qt6-qtquickcontrols

Not sure where to go from here since I'm not too familiar with Qt

From what I can tell MediaPlayer should be part of QtMultimedia:
https://doc.qt.io/qt-6/qml-qtmultimedia-mediaplayer.html

But that is installed:

 ~/Development/aerial-sddm-theme   master  dnf list installed "qt6-*"
Installed Packages
qt6-filesystem.x86_64                                             6.7.2-2.fc40                                  @updates
qt6-qt5compat.x86_64                                              6.7.2-1.fc40                                  @updates
qt6-qtbase.x86_64                                                 6.7.2-6.fc40                                  @updates
qt6-qtbase-common.noarch                                          6.7.2-6.fc40                                  @updates
qt6-qtbase-gui.x86_64                                             6.7.2-6.fc40                                  @updates
qt6-qtbase-mysql.x86_64                                           6.7.2-6.fc40                                  @updates
qt6-qtconnectivity.x86_64                                         6.7.2-1.fc40                                  @updates
qt6-qtdeclarative.x86_64                                          6.7.2-2.fc40                                  @updates
qt6-qtimageformats.x86_64                                         6.7.2-1.fc40                                  @updates
qt6-qtlocation.x86_64                                             6.7.2-1.fc40                                  @updates
qt6-qtmultimedia.x86_64                                           6.7.2-1.fc40                                  @updates
qt6-qtnetworkauth.x86_64                                          6.7.2-1.fc40                                  @updates
qt6-qtpdf.x86_64                                                  6.7.2-1.fc40                                  @updates
qt6-qtpositioning.x86_64                                          6.7.2-1.fc40                                  @updates
qt6-qtquick3d.x86_64                                              6.7.2-3.fc40                                  @updates
qt6-qtquicktimeline.x86_64                                        6.7.2-1.fc40                                  @updates
qt6-qtremoteobjects.x86_64                                        6.7.2-1.fc40                                  @updates
qt6-qtsensors.x86_64                                              6.7.2-1.fc40                                  @updates
qt6-qtserialport.x86_64                                           6.7.2-1.fc40                                  @updates
qt6-qtshadertools.x86_64                                          6.7.2-1.fc40                                  @updates
qt6-qtspeech.x86_64                                               6.7.2-1.fc40                                  @updates
qt6-qtspeech-flite.x86_64                                         6.7.2-1.fc40                                  @updates
qt6-qtspeech-speechd.x86_64                                       6.7.2-1.fc40                                  @updates
qt6-qtsvg.x86_64                                                  6.7.2-1.fc40                                  @updates
qt6-qttools.x86_64                                                6.7.2-1.fc40                                  @updates
qt6-qttools-common.noarch                                         6.7.2-1.fc40                                  @updates
qt6-qttools-libs-designer.x86_64                                  6.7.2-1.fc40                                  @updates
qt6-qttools-libs-help.x86_64                                      6.7.2-1.fc40                                  @updates
qt6-qttranslations.noarch                                         6.7.2-1.fc40                                  @updates
qt6-qtvirtualkeyboard.x86_64                                      6.7.2-1.fc40                                  @updates
qt6-qtwayland.x86_64                                              6.7.2-4.fc40                                  @updates
qt6-qtwebchannel.x86_64                                           6.7.2-1.fc40                                  @updates
qt6-qtwebengine.x86_64                                            6.7.2-1.fc40                                  @updates
qt6-qtwebsockets.x86_64                                           6.7.2-1.fc40                                  @updates
qt6-qtwebview.x86_64                                              6.7.2-1.fc40                                  @updates
qt6-srpm-macros.noarch                                            6.7.2-2.fc40                                  @updates
@3ximus
Copy link
Owner

3ximus commented Oct 27, 2024

Hello there, thanks for the detailed report. However I'm not maintaining this theme anymore. I don't know about QT6 support, you'll have to figure it out by yourself. Someone else has already reported the same and apparently managed to get it working: #49

@mihawk90
Copy link
Contributor Author

mihawk90 commented Oct 27, 2024

Ah, that issue didn't pop up for me 🤔

Anyway, not sure what they mean with "greeter in test mode". If that's --test-mode then that's not working for me as seen in the logs.
Non-test-mode didn't work either though, i.e. just using it as the sddm theme (which is why I ran it in test mode to begin with).

But regardless, sad it's not maintained amymore but I understand priorities change 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants