Registered Member
|
Hello,
I am trying to write my first plasmoid in PyQt but when I try to view it in plasmaviewer it crashes with segmentation fault "Executable: plasmoidviewer PID: 23063 Signal: 11 (Segmentation fault)", here's the log:
Here's my main.py file below. I have a stand alone application and it works fine. It must be something to do with plasma. What am I doing wrong? Will greatly appreciate your help. Thank you. Code:
|
Administrator
|
Have you tried generating a backtrace using Dr Konqi?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Sorry, i'm new to this. Can you please repeat this in english? What's a backtrace and who's Dr Konqi?
|
Administrator
|
When the application you are using to test your Plasmoid, "plasmoidviewer" crashes, the Crash Assistant should start and if you select the "Developer Information" tab it will generate a backtrace which can be used to find the cause of the crash.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Here it is:
|
Administrator
|
The crash is caused by the following line of your Plasmoid.
It crashes on this line in particular though:
I don't see self.applet used anywhere else, hence this is probably invalid, and causing the crash.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Still crashes after I removed 'self.applet':
BTW, I used this tutorial as a basis and it has 'self/applet': http://techbase.kde.org/Development/Tut ... ng_widgets |
Administrator
|
If you try running the Plasmoid code as shown in the tutorial does it work?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Yes, it does. If I display simple widgets (labels, buttons etc.), it all works fine. As soon as I start adding layouts and adding complex widgets (widgets with widgets and/or layouts), it starts crashing.
|
Administrator
|
I would recommend asking in #plasma on Freenode, who should be able to help you with this.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]