01-22-2016, 05:34 AM | #1 |
Bookish
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
Editor does not seem to remember previous layout
Not a very big issue, but:
Recently, I resized the editor window from full size to something smaller, and then to full screen again. From that moment on, on opening the editor the file browser pane and the file preview pane are very small, so I have to resize them every time to be usable. The editor does not seem to remember my settings when I close the editor. Yes, I did use the checkbox in preferences to restore the state of the previous edited book. What can be the cause? |
01-24-2016, 10:51 PM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You could have a corrupted preferences file, look for the file tweak_book_gui.json in the calirbe config directory. Try renaming it and see if your problems go away.
|
Advert | |
|
01-25-2016, 05:38 AM | #3 |
Bookish
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
That did the trick. I lost some settings though, but that can be fixed.
However, my "saved searches" are precious to me. I copied them over from the corrupted file, which seems to work, but it is a little bit of a "gray" area. Is it an idea as an calibre enhancement perhaps to place them in some separate file? |
01-25-2016, 05:56 AM | #4 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
01-25-2016, 06:32 AM | #5 | |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
What I would really like to figure out is the how and why of this happening. Unfortunately, I have never been able to reproduce. It is not at all clear to me why layout/geometry preferences should be the only preferences to get "stuck" in a particular config file. The config file is basicallya JSON dictionary, so corruption should prevent the entire dictionary from loading, not just cause a single setting to get stuck. |
|
Advert | |
|
01-25-2016, 06:52 AM | #6 |
Bookish
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
I spoke too soon.
When using "remove unused CSS rules", I now get an exception: Code:
calibre, version 2.49.0 ERROR: Unhandled exception: <b>ValueError</b>:Invalid namespace URI u'\u201dhttp://www.w3.org/1999/xlink\u201d' calibre 2.49 isfrozen: True is64bit: False Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '7', '6.1.7601') Python 2.7.9 Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free') Successfully initialized third party plugins: Fantastic Fiction && Quality Check && BOL_NL && Goodreads && Find Duplicates && Kobo Utilities Traceback (most recent call last): File "site-packages\calibre\gui2\tweak_book\boss.py", line 536, in polish File "site-packages\calibre\ebooks\oeb\polish\main.py", line 261, in tweak_polish File "site-packages\calibre\ebooks\oeb\polish\main.py", line 210, in polish_one File "site-packages\calibre\ebooks\oeb\polish\css.py", line 75, in remove_unused_css File "site-packages\calibre\ebooks\oeb\polish\container.py", line 529, in parsed File "site-packages\calibre\ebooks\oeb\polish\container.py", line 495, in parse File "site-packages\calibre\ebooks\oeb\polish\container.py", line 481, in parse_xhtml File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 671, in parse File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 615, in parse_html5 File "site-packages\html5lib\html5parser.py", line 254, in parse File "site-packages\html5lib\html5parser.py", line 105, in _parse File "site-packages\html5lib\html5parser.py", line 217, in mainLoop File "site-packages\html5lib\html5parser.py", line 431, in processStartTag File "site-packages\html5lib\html5parser.py", line 1227, in startTagSvg File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 375, in insertElementNormal File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 352, in createElement File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 274, in makeelement_ns File "parser.pxi", line 971, in lxml.etree._BaseParser.makeelement (src\lxml\lxml.etree.c:95621) File "apihelpers.pxi", line 133, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14869) File "apihelpers.pxi", line 120, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14739) File "apihelpers.pxi", line 232, in lxml.etree._initNodeNamespaces (src\lxml\lxml.etree.c:15816) File "apihelpers.pxi", line 1600, in lxml.etree._uriValidOrRaise (src\lxml\lxml.etree.c:28996) ValueError: Invalid namespace URI u'\u201dhttp://www.w3.org/1999/xlink\u201d' Code:
calibre, version 2.49.0 ERROR: Unhandled exception: <b>ValueError</b>:Invalid namespace URI u'\u201dhttp://www.w3.org/1999/xlink\u201d' calibre 2.49 isfrozen: True is64bit: False Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '7', '6.1.7601') Python 2.7.9 Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free') Successfully initialized third party plugins: Fantastic Fiction && Quality Check && BOL_NL && Goodreads && Find Duplicates && Kobo Utilities Traceback (most recent call last): File "site-packages\calibre\gui2\tweak_book\boss.py", line 755, in pretty_print File "site-packages\calibre\ebooks\oeb\polish\pretty.py", line 223, in pretty_all File "site-packages\calibre\ebooks\oeb\polish\container.py", line 529, in parsed File "site-packages\calibre\ebooks\oeb\polish\container.py", line 495, in parse File "site-packages\calibre\ebooks\oeb\polish\container.py", line 481, in parse_xhtml File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 671, in parse File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 615, in parse_html5 File "site-packages\html5lib\html5parser.py", line 254, in parse File "site-packages\html5lib\html5parser.py", line 105, in _parse File "site-packages\html5lib\html5parser.py", line 217, in mainLoop File "site-packages\html5lib\html5parser.py", line 431, in processStartTag File "site-packages\html5lib\html5parser.py", line 1227, in startTagSvg File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 375, in insertElementNormal File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 352, in createElement File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 274, in makeelement_ns File "parser.pxi", line 971, in lxml.etree._BaseParser.makeelement (src\lxml\lxml.etree.c:95621) File "apihelpers.pxi", line 133, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14869) File "apihelpers.pxi", line 120, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14739) File "apihelpers.pxi", line 232, in lxml.etree._initNodeNamespaces (src\lxml\lxml.etree.c:15816) File "apihelpers.pxi", line 1600, in lxml.etree._uriValidOrRaise (src\lxml\lxml.etree.c:28996) ValueError: Invalid namespace URI u'\u201dhttp://www.w3.org/1999/xlink\u201d' |
01-25-2016, 06:58 AM | #7 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That just indicates you have replaced the quotes used for attribute values in html tags with curly quotes. Presumably a search and replace gone wrong. Run Check Book.
|
01-25-2016, 06:58 AM | #8 |
Bookish
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
Seems to be just 1 ebook, which I roughly had edited before without problems.
Can still be an issue of just that ebook, I investigate further. |
01-25-2016, 07:02 AM | #9 |
Bookish
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
Yep Kovid, something went wrong in a S&R action.
Pfeeeuw, that's good news. |
01-25-2016, 07:24 AM | #10 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
User would post log here, in a sticky thread - maybe a pattern will emerge, albeit over a long period. BR Last edited by BetterRed; 01-25-2016 at 07:26 AM. |
|
03-17-2016, 11:55 PM | #11 |
Junior Member
Posts: 2
Karma: 10
Join Date: Mar 2016
Device: none
|
I had the same problem after tiling windows side-by-side - the file list and preview got smooshed to the outer edges, and resizing them didn't stick... it reoccurred every time I opened the editor.
Removing Code:
"image-editor-state": { "__class__": "bytearray", "__value__": "AAAA/wAAAAD9A etc. AAAAAA==" }, |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cailbre 2.0 - Editor Pane Layout | Paulie_D | Editor | 18 | 09-01-2014 08:42 PM |
Editor: ToC Editor: Start entry | macnab69 | Editor | 2 | 06-25-2014 11:15 AM |
Reset column layout in editor | allandale1 | Editor | 3 | 06-11-2014 02:27 PM |
Book Editor TOC Editor Isue? | weberr | Editor | 2 | 04-17-2014 11:13 AM |
Do You Believe in Previous Life? | DrDln | Lounge | 7 | 07-12-2011 12:21 AM |