This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Amarok couldn't find any plugins

Tags: None
(comma "," separated)
leolist
Registered Member
Posts
47
Karma
0
After a bit more investigation the major difference I can find between what works and what doesn't is that the 'installed' version has shared objects in
~/kde/lib/x86_64-linux-gnu/ with sub folder for plugins while the build version (the one that works) has all shared objects under the build/bin folder

Maybe somebody can post their output of 'env' together with the folder structure for amarok
Thanks
Leo
leolist
Registered Member
Posts
47
Karma
0
Now that I figured out the the cmake flag for debug is '-DCMAKE_BUILD_TYPE=Debug' and not '-DCMAKE_BUILD_TYPE=debugfull' I can now use gdb

Running gdb for ~/kde/bin/amarok shows

Code: Select all
list@llist-VirtualBox-2:~/kdedev$ gdb bin/amarok
GNU gdb (Ubuntu 8.2.91.20190405-0ubuntu3) 8.2.91.20190405-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from bin/amarok...
(gdb) run --debug
Starting program: /home/llist/kdedev/bin/amarok --debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdf66d700 (LWP 16813)]
[New Thread 0x7fffdeae9700 (LWP 16814)]
[New Thread 0x7fffdcd16700 (LWP 16815)]
[New Thread 0x7fffcbfff700 (LWP 16816)]
[New Thread 0x7fffcb7fe700 (LWP 16817)]
[New Thread 0x7fffcaffd700 (LWP 16818)]
[New Thread 0x7fffca7fc700 (LWP 16819)]
[New Thread 0x7fffc9ffb700 (LWP 16820)]
amarok: BEGIN: void App::continueInit()
amarok:   BEGIN: virtual int App::newInstance()
amarok:     BEGIN: void App::handleCliArgs(const QString&)
amarok:     END__: void App::handleCliArgs(const QString&) [Took: 0s]
amarok:   END__: virtual int App::newInstance() [Took: 0s]
amarok:   BEGIN: DebugLogger::DebugLogger(QObject*)
amarok:   END__: DebugLogger::DebugLogger(QObject*) [Took: 0s]
amarok:   BEGIN: EngineController::EngineController()
amarok:   END__: EngineController::EngineController() [Took: 0.001s]
amarok:   BEGIN: void EngineController::initializePhonon()
[New Thread 0x7fffc97fa700 (LWP 16821)]
[Thread 0x7fffc97fa700 (LWP 16821) exited]
[New Thread 0x7fffc97fa700 (LWP 16822)]
[Thread 0x7fffc97fa700 (LWP 16822) exited]
amarok:     BEGIN: void EqualizerController::initialize(const Phonon::Path&)
amarok:       [EqualizerController] Established Phonon equalizer effect with 10 parameters.
amarok:       BEGIN: void EqualizerController::eqUpdate()
amarok:       END__: void EqualizerController::eqUpdate() [Took: 0s]
amarok:     END__: void EqualizerController::initialize(const Phonon::Path&) [Took: 0.011s]
[New Thread 0x7fffc97fa700 (LWP 16823)]
amarok:     [EngineController] Tick Interval (actual):  100
amarok:   END__: void EngineController::initializePhonon() [Took: 0.27s]
amarok:   BEGIN: CollectionManager::CollectionManager()
amarok:   END__: CollectionManager::CollectionManager() [Took: 0s]
amarok:   BEGIN: MainWindow::MainWindow()
amarok:     BEGIN: Plugins::PluginManager::PluginManager(QObject*)
amarok:       BEGIN: void Plugins::PluginManager::checkPluginEnabledStates()
amarok:         [PluginManager] 0 plugins in total
amarok:         [EngineController] slotTrackLengthChanged( -1 )
amarok:         [EngineController] slotStateChanged from  Phonon::LoadingState  to  Phonon::StoppedState
[New Thread 0x7fff96f68700 (LWP 16825)]
[Thread 0x7fff96f68700 (LWP 16825) exited]
[Thread 0x7fffc97fa700 (LWP 16823) exited]
[Thread 0x7fffdeae9700 (LWP 16814) exited]
[Thread 0x7fffca7fc700 (LWP 16819) exited]
[Thread 0x7fffcaffd700 (LWP 16818) exited]
[Thread 0x7fffcb7fe700 (LWP 16817) exited]
[Thread 0x7fffcbfff700 (LWP 16816) exited]
[Thread 0x7fffdcd16700 (LWP 16815) exited]
[Thread 0x7fffdf66d700 (LWP 16813) exited]
[Thread 0x7fffe067df00 (LWP 16797) exited]
[Inferior 1 (process 16797) exited normally]
(gdb)


While running gdb for ~/kde/bin/amarok shows
Code: Select all
llist@llist-VirtualBox-2:~/kdedev$ gdb build/amarok/bin/amarok
GNU gdb (Ubuntu 8.2.91.20190405-0ubuntu3) 8.2.91.20190405-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/amarok/bin/amarok...
(gdb) run --debug
Starting program: /home/llist/kdedev/build/amarok/bin/amarok --debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdf66d700 (LWP 16840)]
[New Thread 0x7fffdeae9700 (LWP 16841)]
[New Thread 0x7fffdcd16700 (LWP 16842)]
[New Thread 0x7fffcbfff700 (LWP 16843)]
[New Thread 0x7fffcb7fe700 (LWP 16844)]
[New Thread 0x7fffcaffd700 (LWP 16845)]
[New Thread 0x7fffca7fc700 (LWP 16846)]
[New Thread 0x7fffc9ffb700 (LWP 16847)]
amarok: BEGIN: void App::continueInit()
amarok:   BEGIN: virtual int App::newInstance()
amarok:     BEGIN: void App::handleCliArgs(const QString&)
amarok:     END__: void App::handleCliArgs(const QString&) [Took: 0s]
amarok:   END__: virtual int App::newInstance() [Took: 0s]
amarok:   BEGIN: DebugLogger::DebugLogger(QObject*)
amarok:   END__: DebugLogger::DebugLogger(QObject*) [Took: 0s]
amarok:   BEGIN: EngineController::EngineController()
amarok:   END__: EngineController::EngineController() [Took: 0.002s]
amarok:   BEGIN: void EngineController::initializePhonon()
[New Thread 0x7fffc97fa700 (LWP 16848)]
[Thread 0x7fffc97fa700 (LWP 16848) exited]
[New Thread 0x7fffc97fa700 (LWP 16849)]
[Thread 0x7fffc97fa700 (LWP 16849) exited]
amarok:     BEGIN: void EqualizerController::initialize(const Phonon::Path&)
amarok:       [EqualizerController] Established Phonon equalizer effect with 10 parameters.
amarok:       BEGIN: void EqualizerController::eqUpdate()
amarok:       END__: void EqualizerController::eqUpdate() [Took: 0s]
amarok:     END__: void EqualizerController::initialize(const Phonon::Path&) [Took: 0.007s]
[New Thread 0x7fffc97fa700 (LWP 16850)]
amarok:     [EngineController] Tick Interval (actual):  100
amarok:   END__: void EngineController::initializePhonon() [Took: 0.27s]
amarok:   BEGIN: CollectionManager::CollectionManager()
amarok:   END__: CollectionManager::CollectionManager() [Took: 0s]
amarok:   BEGIN: MainWindow::MainWindow()
amarok:     BEGIN: Plugins::PluginManager::PluginManager(QObject*)
amarok:       BEGIN: void Plugins::PluginManager::checkPluginEnabledStates()
amarok:         [PluginManager] found plugin: "amarok_service_magnatunestore" enabled: true
amarok:         [PluginManager] found plugin: "amarok_service_ampache" enabled: false
amarok:         [PluginManager] Plugin "amarok_collection-mysqlcollection" is vital
amarok:         [PluginManager] found plugin: "amarok_collection-mysqlcollection" enabled: true
amarok:         [PluginManager] found plugin: "amarok_collection-playdarcollection" enabled: false
amarok:         [PluginManager] found plugin: "amarok_importer-banshee" enabled: true
amarok:         [PluginManager] found plugin: "amarok_collection-daapcollection" enabled: false
amarok:         [PluginManager] found plugin: "amarok_service_opmldirectory" enabled: true
amarok:         [PluginManager] found plugin: "amarok_collection-ipodcollection" enabled: true
amarok:         [PluginManager] found plugin: "amarok_importer-rhythmbox" enabled: true
amarok:         [PluginManager] Plugin "amarok_storage-mysqlestorage" is vital
amarok:         [PluginManager] found plugin: "amarok_storage-mysqlestorage" enabled: true
amarok:         [PluginManager] found plugin: "amarok_importer-clementine" enabled: true
amarok:         [PluginManager] found plugin: "amarok_service_gpodder" enabled: false
amarok:         [PluginManager] found plugin: "amarok_collection-audiocdcollection" enabled: true
amarok:         [PluginManager] found plugin: "amarok_importer-itunes" enabled: true
amarok:         [PluginManager] Plugin "amarok_storage-mysqlserverstorage" is vital
amarok:         [PluginManager] found plugin: "amarok_storage-mysqlserverstorage" enabled: true
amarok:         [PluginManager] found plugin: "amarok_importer-amarok" enabled: true
amarok:         [PluginManager] found plugin: "amarok_importer-fastforward" enabled: true
amarok:         [PluginManager] found plugin: "amarok_collection-mtpcollection" enabled: true
amarok:         [PluginManager] found plugin: "amarok_collection-upnpcollection" enabled: false
amarok:         [PluginManager] found plugin: "amarok_collection-umscollection" enabled: true
amarok:         [PluginManager] 20 plugins in total
amarok:         [PluginManager] Creating factory for plugin: "amarok_service_magnatunestore"
amarok:         [PluginManager] Creating factory for plugin: "amarok_service_ampache"
amarok:         [PluginManager] Creating factory for plugin: "amarok_collection-mysqlcollection"
amarok:         [PluginManager] Plugin "amarok_collection-mysqlcollection" is vital
amarok:         [PluginManager] Creating factory for plugin: "amarok_collection-playdarcollection"
amarok:         BEGIN: Collections::PlaydarCollectionFactory::PlaydarCollectionFactory()
amarok:         END__: Collections::PlaydarCollectionFactory::PlaydarCollectionFactory() [Took: 0s]
amarok:         [PluginManager] Creating factory for plugin: "amarok_importer-banshee"
amarok:         [PluginManager] Creating factory for plugin: "amarok_collection-daapcollection"
amarok:         [PluginManager] Creating factory for plugin: "amarok_service_opmldirectory"
amarok:         [PluginManager] Creating factory for plugin: "amarok_collection-ipodcollection"
amarok:         [PluginManager] Creating factory for plugin: "amarok_importer-rhythmbox"
amarok:         [PluginManager] Creating factory for plugin: "amarok_storage-mysqlestorage"
amarok:         [PluginManager] Plugin "amarok_storage-mysqlestorage" is vital
amarok:         [PluginManager] Creating factory for plugin: "amarok_importer-clementine"
amarok:         [PluginManager] Creating factory for plugin: "amarok_service_gpodder"
amarok:         [PluginManager] Creating factory for plugin: "amarok_collection-audiocdcollection"
amarok:         [PluginManager] Creating factory for plugin: "amarok_importer-itunes"
amarok:         [PluginManager] Creating factory for plugin: "amarok_storage-mysqlserverstorage"
amarok:         [PluginManager] Plugin "amarok_storage-mysqlserverstorage" is vital
amarok:         [PluginManager] Creating factory for plugin: "amarok_importer-amarok"
amarok:         [PluginManager] Creating factory for plugin: "amarok_importer-fastforward"
amarok:         [PluginManager] Creating factory for plugin: "amarok_collection-mtpcollection"
amarok:         [PluginManager] Creating factory for plugin: "amarok_collection-upnpcollection"
amarok:         [PluginManager] Creating factory for plugin: "amarok_collection-umscollection"
amarok:         BEGIN: StorageManager::StorageManager()
amarok:         END__: StorageManager::StorageManager() [Took: 0s]
amarok:         BEGIN: ServicePluginManager::ServicePluginManager()
amarok:         END__: ServicePluginManager::ServicePluginManager() [Took: 0s]
[New Thread 0x7fff998d5700 (LWP 16851)]
[New Thread 0x7fff8d046700 (LWP 16852)]
[New Thread 0x7fff8c845700 (LWP 16853)]
[New Thread 0x7fff8c044700 (LWP 16854)]
[New Thread 0x7fff8b843700 (LWP 16855)]
[New Thread 0x7fff8b042700 (LWP 16856)]
[New Thread 0x7fff8a841700 (LWP 16857)]
[New Thread 0x7fff8a040700 (LWP 16858)]
[New Thread 0x7fff8983f700 (LWP 16859)]
[New Thread 0x7fff8903e700 (LWP 16860)]
[New Thread 0x7fff8883d700 (LWP 16861)]
[New Thread 0x7fff8803c700 (LWP 16862)]
[New Thread 0x7fff87636700 (LWP 16863)]
[Thread 0x7fff87636700 (LWP 16863) exited]
[New Thread 0x7fff87636700 (LWP 16864)]
[Thread 0x7fff87636700 (LWP 16864) exited]
[New Thread 0x7fff87636700 (LWP 16865)]
[New Thread 0x7fff86e35700 (LWP 16866)]
[New Thread 0x7fff86634700 (LWP 16867)]
[New Thread 0x7fff85e33700 (LWP 16868)]
[New Thread 0x7fff85632700 (LWP 16869)]
[New Thread 0x7fff84e31700 (LWP 16870)]
[New Thread 0x7fff77fff700 (LWP 16871)]
[New Thread 0x7fff777fe700 (LWP 16872)]
[New Thread 0x7fff76ffd700 (LWP 16873)]
[New Thread 0x7fff767fc700 (LWP 16874)]
[New Thread 0x7fff75ffb700 (LWP 16875)]
[New Thread 0x7fff757fa700 (LWP 16876)]
amarok:         [MySqlStorage] Connected to MySQL server 5.7.27-0ubuntu0.19.04.1-embedded
amarok:         [MySqlStorage] Initialized thread, count == 1
amarok:         BEGIN: void StorageManager::slotNewStorage(QSharedPointer<SqlStorage>)
amarok:         END__: void StorageManager::slotNewStorage(QSharedPointer<SqlStorage>) [Took: 0s]
amarok:         BEGIN: SqlRegistry::SqlRegistry(Collections::SqlCollection*)
amarok:         END__: SqlRegistry::SqlRegistry(Collections::SqlCollection*) [Took: 0.003s]
[New Thread 0x7fff74ff9700 (LWP 16877)]
amarok:         BEGIN: MountPointManager::MountPointManager(QObject*, QSharedPointer<SqlStorage>)
amarok:           BEGIN: MediaDeviceCache::MediaDeviceCache()
[New Thread 0x7fff67fff700 (LWP 16878)]
[New Thread 0x7fff677fe700 (LWP 16879)]
[New Thread 0x7fff66ffd700 (LWP 16880)]
[New Thread 0x7fff667fc700 (LWP 16881)]
[New Thread 0x7fff65ffb700 (LWP 16882)]
[New Thread 0x7fff657fa700 (LWP 16883)]
[New Thread 0x7fff64ff9700 (LWP 16884)]
[New Thread 0x7fff43fff700 (LWP 16885)]
[New Thread 0x7fff437fe700 (LWP 16886)]
amarok:           END__: MediaDeviceCache::MediaDeviceCache() [Took: 0.044s]
amarok:           BEGIN: void MountPointManager::createDeviceFactories()
amarok:             [MountPointManager] Initializing DeviceHandlerFactory of type: "uuid"
amarok:             [MountPointManager] Initializing DeviceHandlerFactory of type: "nfs"
amarok:             [MountPointManager] Initializing DeviceHandlerFactory of type: "smb"
[New Thread 0x7fff42ffd700 (LWP 16887)]
[New Thread 0x7fff427fc700 (LWP 16888)]
amarok:             BEGIN: void MountPointManager::createHandlerFromDevice(const Solid::Device&, const QString&)
amarok:               [MountPointManager] Device added and mounted, checking handlers
amarok:               BEGIN: virtual bool MassStorageDeviceHandlerFactory::canHandle(const Solid::Device&) const
amarok:                 [MassStorageDeviceHandler] excluded filesystem of type  "iso9660"
amarok:               END__: virtual bool MassStorageDeviceHandlerFactory::canHandle(const Solid::Device&) const [Took: 0.001s]
amarok:               [MountPointManager] Factory can't handle device  "/org/freedesktop/UDisks2/block_devices/sr0"
amarok:               [NfsDeviceHandler] virtual bool NfsDeviceHandlerFactory::canHandle(const Solid::Device&) const "/org/freedesktop/UDisks2/block_devices/sr0" has no NetworkShare interface
amarok:               [MountPointManager] Factory can't handle device  "/org/freedesktop/UDisks2/block_devices/sr0"
amarok:               [SmbDeviceHandler] virtual bool SmbDeviceHandlerFactory::canHandle(const Solid::Device&) const "/org/freedesktop/UDisks2/block_devices/sr0" has no NetworkShare interface
amarok:               [MountPointManager] Factory can't handle device  "/org/freedesktop/UDisks2/block_devices/sr0"
amarok:             END__: void MountPointManager::createHandlerFromDevice(const Solid::Device&, const QString&) [Took: 0.001s]
amarok:             BEGIN: void MountPointManager::createHandlerFromDevice(const Solid::Device&, const QString&)
amarok:               [MountPointManager] Device added and mounted, checking handlers
amarok:               BEGIN: virtual bool MassStorageDeviceHandlerFactory::canHandle(const Solid::Device&) const
amarok:               END__: virtual bool MassStorageDeviceHandlerFactory::canHandle(const Solid::Device&) const [Took: 0s]
amarok:               [MountPointManager] found handler for  "/org/freedesktop/UDisks2/block_devices/sda1"
amarok:               BEGIN: virtual DeviceHandler* MassStorageDeviceHandlerFactory::createHandler(const Solid::Device&, const QString&, QSharedPointer<SqlStorage>) const
amarok:                 [MassStorageDeviceHandler] Found existing UUID config for ID  "1"  , uuid  "623ce701-c9cb-486e-8d31-ec00d273b299"
amarok:                 BEGIN: MassStorageDeviceHandler::MassStorageDeviceHandler(int, const QString&, const QString&)
amarok:                 END__: MassStorageDeviceHandler::MassStorageDeviceHandler(int, const QString&, const QString&) [Took: 0s]
amarok:               END__: virtual DeviceHandler* MassStorageDeviceHandlerFactory::createHandler(const Solid::Device&, const QString&, QSharedPointer<SqlStorage>) const [Took: 0.002s]
amarok:             END__: void MountPointManager::createHandlerFromDevice(const Solid::Device&, const QString&) [Took: 0.003s]
amarok:           END__: void MountPointManager::createDeviceFactories() [Took: 0.097s]
amarok:         END__: MountPointManager::MountPointManager(QObject*, QSharedPointer<SqlStorage>) [Took: 0.14s]
amarok:         BEGIN: void CollectionManager::slotNewCollection(Collections::Collection*)
amarok:           [CollectionManager] new Collection  "localCollection"
amarok:         END__: void CollectionManager::slotNewCollection(Collections::Collection*) [Took: 0s]
amarok:         BEGIN: bool IpodCollectionFactory::identifySolidDevice(const QString&) const
amarok:           Device "/org/freedesktop/UDisks2/block_devices/sr0" not identified iPod-like, trying parent device
amarok:           Device "/org/freedesktop/UDisks2/drives/VBOX_CD_ROM_VB2_01700376" not identified iPod-like, trying parent device
amarok:           Device "/org/freedesktop/UDisks2" not identified iPod-like, trying parent device
amarok:           Device "" is invalid, returning false. (i.e. was not iPod-like)
amarok:         END__: bool IpodCollectionFactory::identifySolidDevice(const QString&) const [Took: 0.001s]
amarok:         BEGIN: bool IpodCollectionFactory::identifySolidDevice(const QString&) const
amarok:           Device "/org/freedesktop/UDisks2/block_devices/sda1" not identified iPod-like, trying parent device
amarok:           Device "/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VBd1dc370f_355444e2" not identified iPod-like, trying parent device
amarok:           Device "/org/freedesktop/UDisks2" not identified iPod-like, trying parent device
amarok:           Device "" is invalid, returning false. (i.e. was not iPod-like)
amarok:         END__: bool IpodCollectionFactory::identifySolidDevice(const QString&) const [Took: 0.001s]
amarok:         BEGIN: MediaDeviceMonitor::MediaDeviceMonitor()
amarok:           BEGIN: void MediaDeviceMonitor::init()
amarok:           END__: void MediaDeviceMonitor::init() [Took: 0s]
amarok:         END__: MediaDeviceMonitor::MediaDeviceMonitor() [Took: 0s]
amarok:         BEGIN: void MediaDeviceMonitor::registerDeviceType(ConnectionAssistant*)
amarok:           BEGIN: void MediaDeviceMonitor::checkDevicesFor(ConnectionAssistant*)
amarok:             BEGIN: QStringList MediaDeviceMonitor::getDevices()
amarok:               BEGIN: void MediaDeviceCache::refreshCache()
amarok:                 [MediaDeviceCache] Found Solid::DeviceInterface::StorageAccess with udi =  "/org/freedesktop/UDisks2/block_devices/sr0"
amarok:                 [MediaDeviceCache] Device name is =  "VBOX CD-ROM"  and was made by  ""
amarok:                 [MediaDeviceCache] Solid device is not accessible, will wait until it is to consider it added.
amarok:                 [MediaDeviceCache] Found Solid::DeviceInterface::StorageAccess with udi =  "/org/freedesktop/UDisks2/block_devices/sda1"
amarok:                 [MediaDeviceCache] Device name is =  "VBOX HARDDISK"  and was made by  ""
amarok:                 [MediaDeviceCache] Found Solid::DeviceInterface::StorageDrive with udi =  "/org/freedesktop/UDisks2/drives/VBOX_CD_ROM_VB2_01700376"
amarok:                 [MediaDeviceCache] Device name is =  "VBOX CD-ROM"  and was made by  ""
amarok:                 [MediaDeviceCache] Found Solid::DeviceInterface::StorageDrive with udi =  "/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VBd1dc370f_355444e2"
amarok:                 [MediaDeviceCache] Device name is =  "VBOX HARDDISK"  and was made by  ""
amarok:                 [MediaDeviceCache] Found Solid::DeviceInterface::OpticalDisc with udi =  "/org/freedesktop/UDisks2/block_devices/sr0"
amarok:                 [MediaDeviceCache] Device name is =  "VBOX CD-ROM"  and was made by  ""
amarok:               END__: void MediaDeviceCache::refreshCache() [Took: 0.006s]
amarok:             END__: QStringList MediaDeviceMonitor::getDevices() [Took: 0.006s]
amarok:           END__: void MediaDeviceMonitor::checkDevicesFor(ConnectionAssistant*) [Took: 0.006s]
amarok:         END__: void MediaDeviceMonitor::registerDeviceType(ConnectionAssistant*) [Took: 0.006s]
amarok:         BEGIN: void MediaDeviceMonitor::registerDeviceType(ConnectionAssistant*)
amarok:           BEGIN: void MediaDeviceMonitor::checkDevicesFor(ConnectionAssistant*)
amarok:             BEGIN: QStringList MediaDeviceMonitor::getDevices()
amarok:               BEGIN: void MediaDeviceCache::refreshCache()
amarok:                 [MediaDeviceCache] Found Solid::DeviceInterface::StorageAccess with udi =  "/org/freedesktop/UDisks2/block_devices/sr0"
amarok:                 [MediaDeviceCache] Device name is =  "VBOX CD-ROM"  and was made by  ""
amarok:                 [MediaDeviceCache] Solid device is not accessible, will wait until it is to consider it added.
amarok:                 [MediaDeviceCache] Found Solid::DeviceInterface::StorageAccess with udi =  "/org/freedesktop/UDisks2/block_devices/sda1"
amarok:                 [MediaDeviceCache] Device name is =  "VBOX HARDDISK"  and was made by  ""
amarok:                 [MediaDeviceCache] Found Solid::DeviceInterface::StorageDrive with udi =  "/org/freedesktop/UDisks2/drives/VBOX_CD_ROM_VB2_01700376"
amarok:                 [MediaDeviceCache] Device name is =  "VBOX CD-ROM"  and was made by  ""
amarok:                 [MediaDeviceCache] Found Solid::DeviceInterface::StorageDrive with udi =  "/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VBd1dc370f_355444e2"
amarok:                 [MediaDeviceCache] Device name is =  "VBOX HARDDISK"  and was made by  ""
amarok:                 [MediaDeviceCache] Found Solid::DeviceInterface::OpticalDisc with udi =  "/org/freedesktop/UDisks2/block_devices/sr0"
amarok:                 [MediaDeviceCache] Device name is =  "VBOX CD-ROM"  and was made by  ""
amarok:               END__: void MediaDeviceCache::refreshCache() [Took: 0.001s]
amarok:             END__: QStringList MediaDeviceMonitor::getDevices() [Took: 0.001s]
amarok:             BEGIN: virtual bool MtpConnectionAssistant::identify(const QString&)
amarok:               Not a PMP
amarok:             END__: virtual bool MtpConnectionAssistant::identify(const QString&) [Took: 0s]
amarok:             BEGIN: virtual bool MtpConnectionAssistant::identify(const QString&)
amarok:               Not a PMP
amarok:             END__: virtual bool MtpConnectionAssistant::identify(const QString&) [Took: 0s]
amarok:             BEGIN: virtual bool MtpConnectionAssistant::identify(const QString&)
amarok:               Not a PMP
amarok:             END__: virtual bool MtpConnectionAssistant::identify(const QString&) [Took: 0s]
amarok:           END__: void MediaDeviceMonitor::checkDevicesFor(ConnectionAssistant*) [Took: 0.001s]
amarok:         END__: void MediaDeviceMonitor::registerDeviceType(ConnectionAssistant*) [Took: 0.001s]
amarok:         BEGIN: void UmsCollectionFactory::createCollectionForSolidDevice(const QString&)
amarok:           [UmsCollection] device "/org/freedesktop/UDisks2/block_devices/sr0" ignored, ignoring :-)
amarok:         END__: void UmsCollectionFactory::createCollectionForSolidDevice(const QString&) [Took: 0s]
amarok:         BEGIN: virtual void MagnatuneServiceFactory::init()
amarok:           BEGIN: ServiceBase::ServiceBase(const QString&, ServiceFactory*, bool, const QString&)
amarok:           END__: ServiceBase::ServiceBase(const QString&, ServiceFactory*, bool, const QString&) [Took: 0.097s]
amarok:           BEGIN: MagnatuneStore::MagnatuneStore(MagnatuneServiceFactory*, const char*)
amarok:           END__: MagnatuneStore::MagnatuneStore(MagnatuneServiceFactory*, const char*) [Took: 0s]
amarok:           BEGIN: void ServicePluginManager::slotNewService(ServiceBase*)
amarok:             [ServicePluginManager] new service: "Magnatune.com"
amarok:             ServiceBrowser starting...
amarok:             BEGIN: virtual void MagnatuneStore::polish()
amarok:               [MySqlStorage] Initialized thread, count == 2
amarok:               BEGIN: AmarokUrlHandler::AmarokUrlHandler()
amarok:                 BEGIN: void BookmarkModel::checkTables()
amarok:                   [ERROR__] [MySqlStorage] "MySQLe query failed! (1146) Table 'amarok.magnatune_genre' doesn't exist on SELECT DISTINCT magnatune_genre.id, magnatune_genre.name  FROM  magnatune_genre WHERE 1  GROUP BY magnatune_genre.name;"
amarok:                 END__: void BookmarkModel::checkTables() [Took: 0.001s]
amarok:               END__: AmarokUrlHandler::AmarokUrlHandler() [Took: 0.001s]
amarok:               BEGIN: void InfoParserBase::showLoading(const QString&)
amarok:                 file  "InfoParserLoading.html" does not exist
amarok:               END__: void InfoParserBase::showLoading(const QString&) [Took: 0s]
amarok:               BEGIN: virtual void DebugLogger::newProgressOperationImpl(KJob*, const QString&, QObject*, const std::function<void()>&, Qt::ConnectionType)
amarok:                 New progress operation with KJob: 0x5555567c8360
amarok:                 Text: "Fetching Magnatune.com front page"
amarok:                 Object to call when canceled: QObject(0x0)
amarok:                 Member function to call when canceled: v
amarok:                 Connection type: Qt::AutoConnection
amarok:               END__: virtual void DebugLogger::newProgressOperationImpl(KJob*, const QString&, QObject*, const std::function<void()>&, Qt::ConnectionType) [Took: 0s]
amarok:             END__: virtual void MagnatuneStore::polish() [Took: 0.014s]
amarok:             BEGIN: virtual void MagnatuneDatabaseWorker::run(ThreadWeaver::JobPointer, ThreadWeaver::Thread*)
amarok:               Querying for moods:  "select count( mood ), mood from magnatune_moods GROUP BY mood;"
amarok:             END__: void ServicePluginManager::slotNewService(ServiceBase*) [Took: 0.018s]
amarok:             [MySqlStorage] Initialized thread, count == 3
amarok:           END__: virtual void MagnatuneServiceFactory::init() [Took: 0.12s]
amarok:           BEGIN: ServiceBase::ServiceBase(const QString&, ServiceFactory*, bool, const QString&)
amarok:             [ERROR__] [MySqlStorage] "MySQLe query failed! (1146) Table 'amarok.magnatune_moods' doesn't exist on select count( mood ), mood from magnatune_moods GROUP BY mood;"
amarok:             result:  ()
amarok:           END__: virtual void MagnatuneDatabaseWorker::run(ThreadWeaver::JobPointer, ThreadWeaver::Thread*) [Took: 0s]
amarok:         END__: ServiceBase::ServiceBase(const QString&, ServiceFactory*, bool, const QString&) [Took: 0s]
amarok:         BEGIN: void ServicePluginManager::slotNewService(ServiceBase*)
amarok:           [ServicePluginManager] new service: "OpmlDirectory"
amarok:           BEGIN: InfoProxy::InfoProxy()
amarok:             BEGIN: void InfoProxy::loadHomePage()
amarok:               error opening file. Error:  5
amarok:             END__: void InfoProxy::loadHomePage() [Took: 0s]
amarok:           END__: InfoProxy::InfoProxy() [Took: 0s]
amarok:         END__: void ServicePluginManager::slotNewService(ServiceBase*) [Took: 0.002s]
amarok:       END__: void Plugins::PluginManager::checkPluginEnabledStates() [DELAY Took (quite long) 5.8s]
amarok:     END__: Plugins::PluginManager::PluginManager(QObject*) [DELAY Took (quite long) 5.8s]
amarok:     BEGIN: void Playlist::Actions::playlistModeChanged()
amarok:       [Playlist::Actions] Dynamic mode:    false
amarok:       BEGIN: Playlist::ModelStack::ModelStack()
amarok:         BEGIN: Playlist::Model::Model(QObject*)
amarok:         END__: Playlist::Model::Model(QObject*) [Took: 0s]
QObject::connect(Playlist::Model, Playlist::ProxyBase): invalid null parameter
QObject::connect(Playlist::Model, Playlist::ProxyBase): invalid null parameter
QObject::connect(Playlist::Model, Playlist::ProxyBase): invalid null parameter
QObject::connect(Playlist::Model, Playlist::ProxyBase): invalid null parameter
amarok:       END__: Playlist::ModelStack::ModelStack() [Took: 0s]
amarok:     END__: void Playlist::Actions::playlistModeChanged() [Took: 0s]
amarok:     BEGIN: void Playlist::Actions::restoreDefaultPlaylist()
amarok:       BEGIN: KConfigSyncRelStore::KConfigSyncRelStore()
amarok:       END__: KConfigSyncRelStore::KConfigSyncRelStore() [Took: 0s]
amarok:       BEGIN: void Playlists::SqlUserPlaylistProvider::checkTables()
amarok:       END__: void Playlists::SqlUserPlaylistProvider::checkTables() [Took: 0s]
amarok:     END__: void Playlist::Actions::restoreDefaultPlaylist() [Took: 0.002s]
amarok:     BEGIN: Playlist::Controller::Controller()
amarok:     END__: Playlist::Controller::Controller() [Took: 0s]
amarok:     [MySqlStorage] Initialized thread, count == 4
amarok:     BEGIN: Playlist::LayoutManager::LayoutManager()
amarok:       BEGIN: void Playlist::LayoutManager::loadLayouts(const QString&, bool)
amarok:         file  "/DefaultPlaylistLayouts.xml" does not exist
amarok:       END__: void Playlist::LayoutManager::loadLayouts(const QString&, bool) [Took: 0s]
amarok:     END__: Playlist::LayoutManager::LayoutManager() [Took: 0s]
amarok:     [ActionClasses] setCurrentItem:  1
amarok:     BEGIN: MainToolbar::MainToolbar(QWidget*)
amarok:       BEGIN: SvgHandler::SvgHandler(QObject*)
amarok:       END__: SvgHandler::SvgHandler(QObject*) [Took: 0s]
QFSFileEngine::open: No file name specified
amarok:       [ERROR__] Unable to open file:  ""
amarok:       [SvgHandler] Bluddy 'ell mateys, aye canna' load ya Ess Vee Gee at  ""
QFSFileEngine::open: No file name specified
amarok:       [ERROR__] Unable to open file:  ""
amarok:       [SvgHandler] Bluddy 'ell mateys, aye canna' load ya Ess Vee Gee at  ""
amarok:     END__: MainToolbar::MainToolbar(QWidget*) [Took: 0.022s]
amarok:     BEGIN: void Context::AppletLoader::findApplets()
amarok:       [AppletLoader] Number of applets found: 0
amarok:       [WARNING] [AppletLoader] No applets found
amarok:     END__: void Context::AppletLoader::findApplets() [Took: 0s]
amarok:     BEGIN: void Context::AppletModel::newApplets(const QList<KPluginMetaData>&)
amarok:     END__: void Context::AppletModel::newApplets(const QList<KPluginMetaData>&) [Took: 0s]
amarok:     BEGIN: Context::ContextView::ContextView(QWidget*)
[New Thread 0x7fff41ffb700 (LWP 16889)]
ASSERT: "qmlPackage.isValid()" in file /home/llist/kdedev/src/amarok/src/context/ContextView.cpp, line 80

Thread 1 "amarok" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb)
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
IIUC, you did install locally in the ~/kde/build/amarok folder, so of course it will only run if run from this folder, unless you specified another target in your cmake line. Did I miss something?


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
leolist
Registered Member
Posts
47
Karma
0

Re: Amarok couldn't find any plugins

Tue Nov 12, 2019 10:38 pm
My cmake is
cmake -DCMAKE_INSTALL_PREFIX=$HOME/kdedev -DCMAKE_BUILD_TYPE=Debug -j4 -DCMAKE_VERBOSE_MAKEFILE=TRUE $HOME/kdedev/src/amarok

I assume that 'things' (bin, lib, share,...) end up under $HOME/kdedev for 'make install' which they do

Code: Select all
llist@llist-VirtualBox-2:~$ ls -lsa $HOME/kdedev
total 32
4 drwxrwxr-x  8 llist llist 4096 Nov 12 09:35 .
4 drwxr-xr-x 22 llist llist 4096 Nov 13 09:03 ..
4 drwxrwxr-x  2 llist llist 4096 Nov 12 09:35 bin
4 drwxrwxr-x  3 llist llist 4096 Nov 12 08:57 build
4 drwxrwxr-x  3 llist llist 4096 Nov 12 09:35 etc
4 drwxrwxr-x  3 llist llist 4096 Nov 12 09:35 lib
4 drwxrwxr-x 14 llist llist 4096 Nov 12 09:35 share
4 drwxrwxr-x  3 llist llist 4096 Nov 12 08:58 src


my $HOME/.kde/env/myenv.sh looks like this
Code: Select all
llist@llist-VirtualBox-2:~$ more $HOME/.kde/env/myenv.sh
export KDEDIR=$HOME/kdedev
export KDEDIRS=$KDEDIR
export XDG_DATA_DIRS=$HOME/kdedev/share:$XDG_DATA_DIRS


I've also defined

Code: Select all
 
export PATH=$HOME/kdedev/bin:$PATH
export PATH=/usr/lib/ccache:$PATH
export LD_LIBRARY_PATH=$HOME/kdedev/lib:$LD_LIBRARY_PATH


my env before I start cmake and make is

Code: Select all
list@llist-VirtualBox-2:~/kdedev/build/amarok$ env
SHELL=/bin/bash
SESSION_MANAGER=local/llist-VirtualBox-2:@/tmp/.ICE-unix/18276,unix/llist-VirtualBox-2:/tmp/.ICE-unix/18276
WINDOWID=10485767
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session3
LANGUAGE=en_AU:en
MANDATORY_PATH=/usr/share/gconf/plasma.mandatory.path
SSH_AUTH_SOCK=/tmp/ssh-dMPXLKRAykqy/agent.18060
SHELL_SESSION_ID=110e348c703a4da1b4ab6173381a418c
DESKTOP_SESSION=plasma
SSH_AGENT_PID=18162
XDG_SEAT=seat0
PWD=/home/llist/kdedev/build/amarok
XDG_SESSION_DESKTOP=KDE
LOGNAME=llist
XDG_SESSION_TYPE=x11
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
XAUTHORITY=/home/llist/.Xauthority
HOME=/home/llist
LANG=en_AU.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
XDG_CURRENT_DESKTOP=KDE
KONSOLE_DBUS_SERVICE=:1.109
KDEDIR=/home/llist/kdedev
KONSOLE_DBUS_SESSION=/Sessions/1
PROFILEHOME=
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
KONSOLE_VERSION=181203
KDE_SESSION_UID=1000
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
TERM=xterm-256color
DEFAULTS_PATH=/usr/share/gconf/plasma.default.path
LESSOPEN=| /usr/bin/lesspipe %s
USER=llist
COLORFGBG=15;0
KDE_SESSION_VERSION=5
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
DISPLAY=:0
SHLVL=1
XDG_VTNR=1
XDG_SESSION_ID=23
GS_LIB=/home/llist/.fonts
LD_LIBRARY_PATH=/home/llist/kdedev/lib:
XDG_RUNTIME_DIR=/run/user/1000
KDEDIRS=/home/llist/kdedev
QT_AUTO_SCREEN_SCALE_FACTOR=0
XCURSOR_THEME=breeze_cursors
XDG_DATA_DIRS=/home/llist/kdedev/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop
KDE_FULL_SESSION=true
PATH=/usr/lib/ccache:/home/llist/kdedev/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
KONSOLE_PROFILE_NAME=Default
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
KONSOLE_DBUS_WINDOW=/Windows/1
_=/usr/bin/env
OLDPWD=/home/llist/kdedev/src
leolist
Registered Member
Posts
47
Karma
0

Re: Amarok couldn't find any plugins

Mon Dec 02, 2019 11:22 pm
Given that I can't do much right now without the embededd mysql (see my other post) I've gone back to the VM that was upgraded from 18.
I think I found out why the plugins are not found

By default, the cmake script does not (seem) to generate a prefix.sh file. The content of this file for me are
Code: Select all
export PATH=/home/llist/kdedev/bin:$PATH

# LD_LIBRARY_PATH only needed if you are building without rpath
# export LD_LIBRARY_PATH=/home/llist/kdedev/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH

export XDG_DATA_DIRS=/home/llist/kdedev/share:${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}
export XDG_CONFIG_DIRS=/home/llist/kdedev/etc/xdg:${XDG_CONFIG_DIRS:-/etc/xdg}

export QT_PLUGIN_PATH=/home/llist/kdedev/lib/x86_64-linux-gnu/plugins:$QT_PLUGIN_PATH
export QML2_IMPORT_PATH=/home/llist/kdedev/lib/x86_64-linux-gnu/qml:$QML2_IMPORT_PATH


So what seems to be missing from the intructions on how to get things working is the QT_PLUGIN_PATH & QML2_IMPORT_PATH

Once these 2 paths are defined everything works as expected

My cmake now looks as follows

Code: Select all
cmake -DCMAKE_INSTALL_PREFIX=$HOME/kdedev -DCMAKE_BUILD_TYPE=Debug -j4 -DCMAKE_VERBOSE_MAKEFILE=TRUE -DKDE_INSTALL_PREFIX_SCRIPT=TRUE $HOME/kdedev/src/amarok
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
wow, perfect, I will link this post to the amarok-devel mailing list.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
leolist
Registered Member
Posts
47
Karma
0

Re: Amarok couldn't find any plugins

Tue Dec 03, 2019 11:04 pm
I've now also got amarok compiling and running in QT Creator.

I probably should start a new Howto (before I forget) and before I start working on amarok :)
rengels
Registered Member
Posts
55
Karma
0
OS
I had the same issue today.
It seems to be caused by the location where the plugins are installed, which is xxx/lib/plugins
As a default Qt (or maybe Qt5, it could have changed) does not look into this folder. (see https://doc.qt.io/qt-5/deployment-plugins.html)
It looks however in the application folder. This is why starting amarok from the build folder works as at that time the plugins are located at the same place.
I checked by adding a debug output to the PluginManager. Only two directories, the Qt default and the application folder, are searched.

You can set some environment variables (see the Qt link) to fix this..
How was this supposed to work? What do people with a working installation do different?
rengels
Registered Member
Posts
55
Karma
0
OS
Just tried it.
Setting QT_PLUGIN_PATH to the plugin path (~/kde/lib/amarok/plugins) helped.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]