MobileRead bookshop plugin crashes

Bug #2002534 reported by Péter Tölgyesi
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

Hello, I get an error message when I open the Download books/Shops/MobileRead menu item.
At first try it worked, but if I sort the list by author name, title and then book type (maybe it can be reproduced by just one of them) the next time I start Calibre it crashes with the following:

calibre, version 6.11.0
HIBA: Ismeretlen hiba történt: <b>TypeError</b>:setSortIndicator(self, logicalIndex: int, order: Qt.SortOrder): argument 2 has unexpected type 'int'

calibre 6.11 embedded-python: False
Linux-6.1.3-1-default-x86_64-with-glibc2.36 Linux ('64bit', 'ELF')
('Linux', '6.1.3-1-default', '#1 SMP PREEMPT_DYNAMIC Wed Jan 4 11:03:53 UTC 2023 (a5315fb)')
Python 3.10.9
Interface language: hu
Traceback (most recent call last):
  File "/usr/lib64/calibre/calibre/gui2/actions/", line 127, in open_store
  File "/usr/lib64/calibre/calibre/gui2/store/stores/mobileread/", line 55, in open
    d = MobileReadStoreDialog(self, parent)
  File "/usr/lib64/calibre/calibre/gui2/store/stores/mobileread/", line 40, in __init__
  File "/usr/lib64/calibre/calibre/gui2/store/stores/mobileread/", line 73, in restore_state
    self.results_view.header().setSortIndicator(self.results_view.model().sort_col, self.results_view.model().sort_order)
TypeError: setSortIndicator(self, logicalIndex: int, order: Qt.SortOrder): argument 2 has unexpected type 'int'

OS: Linux, Opensuse Tumbleweed
Calibre 6.11 from the Tumbleweed repo
MobileRead 1.0.1

I could make it work again by deleting ~/.config/calibre/store/stores/MobileRead.json
But if I touch the sorting then it crashes again next time.
It has a kilometer long list so sorting is somewhat necessary.
Thank you for looking into it.

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Revision history for this message
Péter Tölgyesi (forcage) wrote :

Thank you! :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.