janbar / noson-app

The essential to control music from your SONOS devices on Linux platforms
GNU General Public License v3.0
342 stars 28 forks source link

Plasma style causes a crash on start #21

Open thesamet opened 6 years ago

thesamet commented 6 years ago

I tried to change the style to Plasma and as a result, the app won't start. This is what gets printed in the terminal:

➜  ~ noson-app
"using file ':/i18n/noson_en.qm ' for translations."
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0x7fff9e3fb3c0), parent's thread is QThread(0x5638ef6f6860), current thread is QThread(0x5638ef74b520)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0x7fff9e3fb3c0), parent's thread is QThread(0x5638ef6f6860), current thread is QThread(0x5638ef74b520)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0x7fff9e3fb3c0), parent's thread is QThread(0x5638ef6f6860), current thread is QThread(0x5638ef74b520)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0x7fff9e3fb3c0), parent's thread is QThread(0x5638ef6f6860), current thread is QThread(0x5638ef74b520)
QObject::installEventFilter(): Cannot filter events for objects in a different thread.
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0x7fff9e3fb3c0), parent's thread is QThread(0x5638ef6f6860), current thread is QThread(0x5638ef74b520)
QQmlApplicationEngine failed to load component
qrc:/noson.qml:53 Type DialogSettings unavailable
qrc:/components/Dialog/DialogSettings.qml:23 Type DialogBase unavailable
qrc:/components/Dialog/DialogBase.qml:83 "ScrollBar.policy" is not available due to component versioning.

QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0x7fff9e3fb3c0), parent's thread is QThread(0x5638ef6f6860), current thread is QThread(0x5638ef74b520)
QObject::installEventFilter(): Cannot filter events for objects in a different thread.

To recover I have to delete the style line from ~/.config/janbar/noson.conf so it resets back to Material.

I'm on Ubuntu 17.10, i3 WM.

janbar commented 6 years ago

How do you install this style 'Plasma' ? Here I haven't it from Ubuntu apt or from customized install of latest Qt (5.10.0). Could it be installed from an old package not compatible with current libs of Qt (>=5.9.1) ?

thesamet commented 6 years ago

➜   dpkg -S /usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls.2/Plasma/          
plasma-framework: /usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls.2/Plasma
➜   dpkg -l | grep plasma-framework                                     
ii  plasma-framework                                5.38.0-0ubuntu1                             amd64        Plasma Runtime components```
janbar commented 6 years ago

I tried the style and the gui stop because incompatible version of QtQuick:

qrc:/components/Dialog/DialogBase.qml:83 "ScrollBar.policy" is not available due to component versioning.

Probably the qml module of plasma style is under development for the current Qt libs provided with Ubuntu 17.10. To work properly It has to be compatible with QtQuick.Controls 2.2 (Qt 5.9). I guess it works with QtQuick.Controls 2.0 (Qt 5.7). So you have to wait a new release for this module.

papertigers commented 6 years ago

@janbar is the dark theme from the website still available or was that a plasma theme that was installed locally on the system?

janbar commented 6 years ago

@papertigers, the dark theme is the look and feel of the previous release 2 working in Ubuntu only or in snap package. The plasma theme is the provided kde theme.