08-11-2015, 06:26 PM | #1 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Mysterious crash
For some reason, calibre just started popping up with the following error message (sometimes dozens of times), then crashing after a short period of time:
Code:
calibre, version 2.34.0.r14.g7ee4c44 ERROR: Unhandled exception: <b>TypeError</b>:QProxyStyle.subElementRect(QStyle.SubElement, QStyleOption, QWidget): not enough arguments calibre 2.34.0.r14.g7ee4c44 isfrozen: False is64bit: False Linux-4.1.4-1-ARCH-i686-with-glibc2.0 Linux ('32bit', 'ELF') ('Linux', '4.1.4-1-ARCH', '#1 SMP PREEMPT Mon Aug 3 21:53:10 UTC 2015') Python 2.7.10 Linux: ('', '', '') Successfully initialized third party plugins: DeDRM && Kindle Collections && Open With && Quality Check && FanFicFare && KindleUnpack - The Plugin && Diaps Editing Toolbag && Overdrive Link && Goodreads Sync && Annotations && View Manager && Modify ePub && Overdrive Link Traceback (most recent call last): File "/home/eschwartz/git/calibre/src/calibre/gui2/library/delegates.py", line 553, in paint rect = style.subElementRect(QStyle.SE_ItemViewItemDecoration, option) TypeError: QProxyStyle.subElementRect(QStyle.SubElement, QStyleOption, QWidget): not enough arguments I will note that a few hours ago it worked fine and I haven't changed anything on my system since. Last edited by eschwartz; 08-11-2015 at 06:30 PM. |
08-11-2015, 07:03 PM | #2 |
Grand Sorcerer
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Running from source might be a factor here.....
|
Advert | |
|
08-11-2015, 07:12 PM | #3 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Thank you for your wise elucidative remark. I can't believe I forgot I was running from source.
If it is a problem running from source, then it will probably be a problem later on in the official binary distributions. A number of PyQt5.5 compatibility issues were recently squelched that way, and similarly in calibre's history. I am doing everything the recommended way -- running from source *shouldn't* be a problem. If it is anyway, Kovid will be interested at the very least. |
08-11-2015, 07:46 PM | #4 |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Try Windows 10
Can you not install an instance of calibre that runs the binary out of the box. This would allow you to verify against a known good and thus eliminate the vagaries of running from source, i.e. what used to be a called regression testing!! BR |
08-11-2015, 08:03 PM | #5 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Been there, done that. It works. calibre is just as reliable (in that respect) on linux as on Win10.
It even runs in development mode. Just the development install has that problem -- i.e. compiled against system resources. I posted in the hope that I could maybe help calibre be forward-compatible sooner. Last edited by eschwartz; 08-11-2015 at 08:55 PM. Reason: typo |
Advert | |
|
08-11-2015, 08:30 PM | #6 |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Q- would it not have been better to post this in the Development sub forum, I'll move it if you ask me nicely
|
08-11-2015, 08:57 PM | #7 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Nope -- it's a bug report.
Development is for practical discussion of the code. If I was trying to fix it myself it might belong there. |
08-11-2015, 10:25 PM | #8 |
creator of calibre
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
PyQt 5.5 is annoying: https://github.com/kovidgoyal/calibr...bc67452b380fa7
|
08-11-2015, 11:42 PM | #9 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Thanks for the fix. And at least it got caught before you ever shipped it.
I wonder though why I only started getting that now... It happened every time I scrolled to the right. |
08-12-2015, 12:44 AM | #10 |
creator of calibre
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Because it is in code for drawing custom comment columns and presumably you have a custom comment column somewhere to the right
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hello, beautiful and mysterious people! | Ciaran West | Introduce Yourself | 7 | 07-31-2012 03:03 AM |
Mysterious html | travger | Kindle Formats | 18 | 04-19-2012 02:06 AM |
The Mysterious Benedict Society | wyndslash | Reading Recommendations | 3 | 07-17-2011 08:31 PM |
Mysterious Island | mtravellerh | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 12-27-2008 05:28 AM |
The Mysterious Island | kevinofengland | Sony Reader | 6 | 09-27-2008 08:52 AM |