I am developing a plugin and was working under calibre-debug --gui to read the prints statement I made...
While selecting a particular row ("la guerre solaire", Riddle) in calibre I got this message poping up:
Code:
qt.gui.icc: fromIccProfile: invalid tag offset alignment
While "playing" with it (selecting, deselecting, selecting others, selecting several including this particular row), I got
calibre hanging for about 15 seconds... This was quite unexpected, I wanted to understand it, so I made some research and experimentations.
I used google and searched the message. At least someone else saw this problem intermittenly, no real answer was given, a hint answer was around an image...
This message comes from qt5, it is a warning message from qt5/qtbase/src/gui/painting/qicc.cpp see
this site, line 651... OK, I can stare at this file as long as I want, it will not make me understand CPP
REPRODUCTIBLE:
I created a new library (no custom columns), within that library I created an empty book, with authors = A.G. Riddle; title: "la guerre solaire"...
Using
noosfere DB, I uploaded the metadata from noosfere...
as soon as the image of the cover was displayed I got the message...
I selected this image and it was associated in calibre, from now on, to select that row would output the message...
Clearly, the message was associated with the cover image loaded from the metadata plugin.
WORKAROUND: I copied the image (right click copy) then pasted it back and message went away...
Could it be that the way the image is loaded in calibre trigger (or not) that message?
I know that pyqt6 is being implemented, this is why I reported this behavior... Would I have not used calibre-debug --gui, I would NOT have seen this message.
Just to be complete, a copy of one of my calibre_debyg --gui session.
Spoiler:
Code:
D:\Users\Papa\Documents\GIT\cal-noosfere-util\noosfere_util>calibre-debug --gui
calibre 5.36 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && Package KFX (from KFX Input) (1, 46, 0) && Babelio (0, 4, 2) && Find Duplicates (1, 9, 4) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) && Set KFX metadata (from KFX Output) (1, 58, 0) && KFX Output (1, 58, 0) && KePub Input (3, 4, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 5, 3) && Kindle Collections (1, 7, 29) && Kindle hi-res covers (0, 5, 0) && Kobo Books (1, 8, 3) && Kobo Utilities (2, 15, 1) && KoboTouchExtended (3, 5, 4) && Manage Series (1, 3, 0) && View Manager (1, 7, 0) && Wiki Reader (2, 2, 1) && noosfere DB (0, 9, 5) && noosfere utilités (0, 5, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 117.58408679927668 x 117.60771704180064
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.41] splash screen shown
[0.41] Initializing db...
[0.41] db initialized
[0.41] Constructing main UI...
DEBUG: 0.0 Kobo Utilities Configuration - CreateNewCustomColumn is supported
DEBUG: 0.0 KoboUtilites::action.py - loading translations
DEBUG: 0.0 KoboUtilites::dialogs.py - loading translations
DEBUG: 0.0 KoboUtilites::action.py - loading translations
DEBUG: 0.5 No Kobo Touch, Glo or Mini appears to be connected
DEBUG: 0.5 rebuild_menus - self.supports_ratings=None, self.supports_tiles=None
DEBUG: 0.5 KoboUtilities:set_toolbar_button_tooltip - start: text='None'
DEBUG: 0.5 KoboUtilities:set_toolbar_button_tooltip - setting to text='Utilities to use with Kobo ereaders
Driver: KoboTouchExtended'
[1.12] main UI initialized...
[1.12] Hiding splash screen
Starting QuickView
[1.41] splash screen hidden
[1.41] Started up in 1.41 seconds with 22 books
Entering noosfere_selected
ids : [31]
book_id : 31
mi.title : L'Hiver du monde
mi.user_categories : {}
key : #coll_srl
key : #collection
key : #etagere
key : #formats
key : #isbn
key : #kb_etagere
key : #kbcurreadloc
key : #kblastreadtimestmp
key : #kbpercentread
key : #kdl_etagere
key : #lu
key : #nsfr_id
key : #on_mch_kdl
qt.gui.icc: fromIccProfile: invalid tag offset alignment
Entering noosfere_selected
ids : [30]
book_id : 30
mi.title : La Guerre solaire
mi.user_categories : {}
key : #coll_srl
key : #collection
key : #etagere
key : #formats
key : #isbn
key : #kb_etagere
key : #kbcurreadloc
key : #kblastreadtimestmp
key : #kbpercentread
key : #kdl_etagere
key : #lu
key : #nsfr_id
key : #on_mch_kdl
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
Worker Launch took: 0.00 seconds
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
Fetching metadata source hashes...
Job: 1 Download metadata for 14 books finished
Starting job: Download metadata for 14 books
Download complete, with 0 failures
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
qt.gui.icc: fromIccProfile: invalid tag offset alignment
Hope it helps, otherwise, forget that...