Bug 384720 - Elisa says "No tracks have been found"
Summary: Elisa says "No tracks have been found"
Status: RESOLVED FIXED
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-14 20:28 UTC by Mykola Krachkovsky
Modified: 2017-09-20 20:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mykola Krachkovsky 2017-09-14 20:28:39 UTC
Elisa says "No tracks have been found" and just rolling waiting icon in albums.
Setting dialog is empty except dialog buttons.

I'm not sure this is a reason, but my music directory in home (SSD) is just a symlink to actual location on HDD. I've tried to change XDG directory to exact location on HDD without symlink. No any change.

Elisa from git.
KDE Frameworks 5.37.0
Qt 5.9.1.

openSUSE Tumbleweed x86_64,
KDE Plasma 5.
Comment 1 Mykola Krachkovsky 2017-09-14 20:31:55 UTC
Console log:

database open
DatabaseInterface::init yes
DatabaseInterface::reloadExistingDatabase
WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib64/qt5/qml/QtQuick/Controls/Styles/Desktop"
qrc:/MediaAllTracksView.qml:102:17: QML Image: Failed to get image from provider: image://icon/edit-clear
qrc:/MediaAllTracksView.qml:102:17: QML Image: Failed to get image from provider: image://icon/edit-clear
qrc:/MediaAllArtistView.qml:103:17: QML Image: Failed to get image from provider: image://icon/edit-clear
qrc:/MediaAllArtistView.qml:103:17: QML Image: Failed to get image from provider: image://icon/edit-clear
qrc:/MediaAllAlbumView.qml:106:17: QML Image: Failed to get image from provider: image://icon/edit-clear
qrc:/MediaAllAlbumView.qml:106:17: QML Image: Failed to get image from provider: image://icon/edit-clear
PlayListControler::setPersistentState QMap(("currentTrack", QVariant(int, -1))("randomPlay", QVariant(bool, false))("repeatPlay", QVariant(bool, false)))
qrc:/MediaServer.qml:166:26: Unable to assign [undefined] to QVariantList
Comment 2 Matthieu Gallien 2017-09-14 20:33:45 UTC
Hello,

The setting dialog is not installed into the path expected by the system. I have to fix that. This should allow you to configure the real path to your collection.
In case your collection is big, initial indexing can take quite some time to be done.
I will also test putting a symlink in default music path. I am not sure what happen in this case.
Comment 3 Matthieu Gallien 2017-09-14 21:12:39 UTC
Could you try doing those two steps ?

export QT_PLUGIN_PATH=/path/to/elisa/lib/x86_64-linux-gnu/plugins:/usr/lib/x86_64-linux-gnu/qt5/plugins
export XDG_DATA_DIRS=/path/to/elisa/share:$XDG_DATA_DIRS
Comment 4 Matthieu Gallien 2017-09-14 21:13:16 UTC
Please check with the real path where stuff is installed by cmake.
Comment 5 Mykola Krachkovsky 2017-09-15 09:47:35 UTC
After exports:

export QT_PLUGIN_PATH=$HOME/opt/elisa/lib64/plugins/:$HOME/opt/elisa/lib64/plugins/kcms/
export XDG_DATA_DIRS=$HOME/opt/elisa/share/:$XDG_DATA_DIRS

settings dialog has a valid path from $(xdg-user-dir MUSIC) and button add new path. But still says "no tracks". And there is no tracks.

IDK if .../plugins/kcms needed, but without there is additional errors in console (though everything looks same)

org.kde.kcoreaddons: Error loading plugin "kcm_elisa_local_file" "The shared library was not found." 
Plugin search paths are ("/home/nicklion/opt/elisa/lib64/plugins", "/usr/lib64/qt5/plugins", "/home/nicklion/opt/elisa/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
Comment 6 Mykola Krachkovsky 2017-09-16 18:14:32 UTC
It looks like Elisa works fine (builds database) when built with KF5FileMetaData. Maybe it should be marked as required, not optional?
Comment 7 Matthieu Gallien 2017-09-20 20:35:31 UTC
Git commit 22010aa54d8501fffd0c4df8b87da76d5e17afd9 by Matthieu Gallien.
Committed on 20/09/2017 at 20:31.
Pushed by mgallien into branch 'master'.

tune dependencies in cmake and code to have more optional dependencies

makes KFileMetaData be a recommended dependency

M  +51   -5    CMakeLists.txt
M  +56   -24   autotests/CMakeLists.txt
M  +4    -0    config-upnp-qt.h.cmake
M  +24   -9    src/CMakeLists.txt
M  +16   -7    src/elisaapplication.cpp
M  +8    -1    src/musiclistenersmanager.cpp
M  +7    -1    src/upnpControl.cpp

https://commits.kde.org/elisa/22010aa54d8501fffd0c4df8b87da76d5e17afd9