01-25-2017, 12:51 PM | #1 |
Age improves with wine.
Posts: 558
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Random crashes using snippets
I've just started using snippets, and have two defined like this:
Code:
<a = <a class="footnote" href="fn$1" id="pos$1">$1</a> <s = <span class="smallcaps">${1*}</span> I'm using Windows 10, Calibre 1.73 (32-bit). I would love to report it as a bug but since I can't come up with a reproducible case there isn't much to report. Has anyone else seen anything like this happening? |
01-25-2017, 09:50 PM | #2 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I cant recall any reports of crashes related to snippets usage. As is usual with keyboard related problems, the first thing to check is if you have some kind of keyboard manipulating program like AutoHotKey or the like and if turning that off makes the crashes go away.
|
Advert | |
|
01-26-2017, 08:31 AM | #3 |
Age improves with wine.
Posts: 558
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Is there anything I can do to capture a crash dump or something to find out more about what's going on?
|
01-26-2017, 09:02 AM | #4 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
On windows not so much. If you have a linux machine you can build calibre from source, and that will give you good debug dumps for crashes.
|
05-03-2017, 07:38 PM | #5 |
Member
Posts: 16
Karma: 10
Join Date: Apr 2016
Device: kindle
|
Cheers Kovid.
Hope this is not too late? I also am getting random freezes/crashes using the excellent built-in link snippet <a and as of today am consistently getting an immediate crash at one site in the epub book. If I take the file out of the book as a separate 'book' the crash does not occur. Running in debug mode simply yields 'Segmentation fault (core dumped)'. I'm running Calibre on Ubuntu 16.04 64-bit with no other (noticeable) programs running. How can I analyse the fault? |
Advert | |
|
05-03-2017, 11:48 PM | #6 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If it is repeatable for a particular book, open a bug report and attach the book and I will take a look -- although it will be a little while before I can, as I am busy working on calibre 3 right now.
You can also get a backtrace for the crash. The details depend on the distro, but for systemd based distros echo 'bt\n' | coredumpctl gdb should be all that needed (after installing gdb) |
05-06-2017, 07:55 AM | #7 |
Age improves with wine.
Posts: 558
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
I'd be really happy if you could help pin this one down, as there seems to be no way for me to gather crash dump info on Windows, and in the meantime I've just had to give up using snippets altogether.
|
05-12-2017, 03:41 PM | #8 |
Member
Posts: 16
Karma: 10
Join Date: Apr 2016
Device: kindle
|
Apologies again but exactly how does one use gdb to load calibre and access the backtrace? I'm reasonably confident the distro is systemd based.
|
05-12-2017, 10:32 PM | #9 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Run the ebook editor, cause a crash
Then, run echo 'bt\n' | coredumpctl gdb |
05-12-2017, 11:55 PM | #10 |
Member
Posts: 16
Karma: 10
Join Date: Apr 2016
Device: kindle
|
That easy? Unfortunately I worked around the two sites that invariably caused crashes by retyping the characters nearby and then reapplying snippets (<a), which worked as usual. But when it crashes again, I'll get the report (hopefully).
|
05-16-2017, 03:59 PM | #11 |
Member
Posts: 16
Karma: 10
Join Date: Apr 2016
Device: kindle
|
Sorry (and happy) to say that Calibre editor has not missed a beat since I offered to help track the matter, despite all attempts to overload it and cause a crash. I didn't do anything intentionally to the operating system and other programs, but the random crashes with snippets no longer occur.
Editor also works faster now than it did—does not get bogged down with snippets, saving etc. No idea. |
05-22-2017, 04:11 PM | #12 |
Member
Posts: 16
Karma: 10
Join Date: Apr 2016
Device: kindle
|
So I had a crash running editor from the main Calibre page—several times in one location—ran:
"echo 'bt\n' | coredumpctl gdb" but got a response of: "No match found." What next or what have I missed? |
05-22-2017, 10:39 PM | #13 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No idea -- you'd need to figure out why copredumps are not being generated on whatever distro you are using. Most likely it is a sysctl setting you have to toggle to turn it on. Google turning on coredumps for your distro.
Or if you have a book that consistently reproduce sthe crash, open a bug report and attach it. |
09-23-2017, 06:55 PM | #14 |
Member
Posts: 16
Karma: 10
Join Date: Apr 2016
Device: kindle
|
The terminal outputs below occurred in association with (some) "snippets" crashes. Not sure they are relevant and apologies if not.
devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 112.286084142 x 112.758381503 ^CTraceback (most recent call last): File "site.py", line 66, in main File "site-packages/calibre/utils/ipc/worker.py", line 176, in main File "<string>", line 1, in <module> File "site-packages/calibre/gui2/tweak_book/completion/worker.py", line 176, in run_main File "site-packages/calibre/gui2/tweak_book/completion/worker.py", line 191, in main File "site-packages/calibre/gui2/tweak_book/completion/basic.py", line 131, in handle_control_request File "site-packages/calibre/gui2/tweak_book/completion/basic.py", line 80, in complete_names File "site-packages/calibre/gui2/tweak_book/completion/basic.py", line 62, in get_data File "site-packages/calibre/utils/ipc/__init__.py", line 22, in eintr_retry_call KeyboardInterrupt Traceback (most recent call last): File "site-packages/calibre/gui2/tweak_book/completion/worker.py", line 92, in handle_data_requests File "site-packages/calibre/gui2/tweak_book/completion/worker.py", line 61, in send File "site-packages/calibre/utils/ipc/__init__.py", line 22, in eintr_retry_call IOError: [Errno 32] Broken pipe QXcbConnection: XCB error: 3 (BadWindow), sequence: 14087, resource id: 62914667, major code: 18 (ChangeProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 14088, resource id: 62914667, major code: 25 (SendEvent), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 14091, resource id: 62914670, major code: 18 (ChangeProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 14092, resource id: 62914670, major code: 25 (SendEvent), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 14097, resource id: 62914673, major code: 18 (ChangeProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 14098, resource id: 62914673, major code: 25 (SendEvent), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 14101, resource id: 62914676, major code: 18 (ChangeProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 14102, resource id: 62914676, major code: 25 (SendEvent), minor code: 0 Traceback (most recent call last): File "site-packages/calibre/gui2/tweak_book/preview.py", line 107, in run File "site-packages/calibre/utils/ipc/simple_worker.py", line 71, in __call__ File "site-packages/calibre/utils/ipc/__init__.py", line 22, in eintr_retry_call EOFError Traceback (most recent call last): File "site-packages/calibre/gui2/tweak_book/preview.py", line 107, in run File "site-packages/calibre/utils/ipc/simple_worker.py", line 71, in __call__ File "site-packages/calibre/utils/ipc/__init__.py", line 22, in eintr_retry_call EOFError Traceback (most recent call last): File "site.py", line 66, in main File "site-packages/calibre/utils/ipc/worker.py", line 176, in main File "<string>", line 1, in <module> File "site-packages/calibre/gui2/tweak_book/completion/worker.py", line 176, in run_main File "site-packages/calibre/gui2/tweak_book/completion/worker.py", line 191, in main File "site-packages/calibre/gui2/tweak_book/completion/basic.py", line 131, in handle_control_request File "site-packages/calibre/gui2/tweak_book/completion/basic.py", line 80, in complete_names File "site-packages/calibre/gui2/tweak_book/completion/basic.py", line 62, in get_data File "site-packages/calibre/utils/ipc/__init__.py", line 22, in eintr_retry_call KeyboardInterrupt Traceback (most recent call last): File "site-packages/calibre/gui2/tweak_book/completion/worker.py", line 92, in handle_data_requests File "site-packages/calibre/gui2/tweak_book/completion/worker.py", line 61, in send File "site-packages/calibre/utils/ipc/__init__.py", line 22, in eintr_retry_call IOError: [Errno 32] Broken pipe Traceback (most recent call last): File "site-packages/calibre/gui2/tweak_book/preview.py", line 107, in run File "site-packages/calibre/utils/ipc/simple_worker.py", line 71, in __call__ File "site-packages/calibre/utils/ipc/__init__.py", line 22, in eintr_retry_call EOFError belly@antonina2:~$ calibre-debug --edit-book devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 112.286084142 x 112.758381503 calibre 2.85.1 embedded-python: True is64bit: True Linux-4.10.0-33-generic-x86_64-with-debian-stretch-sid Linux ('64bit', 'ELF') ('Linux', '4.10.0-33-generic', '#37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017') Python 2.7.9 Linux: ('debian', 'stretch/sid', '') Successfully initialized third party plugins: EpubMerge (2, 1, 0) && Find Duplicates (1, 6, 3) Traceback (most recent call last): File "site-packages/calibre/gui2/tweak_book/boss.py", line 959, in search File "site-packages/calibre/gui2/tweak_book/search.py", line 1522, in run_search File "site-packages/calibre/gui2/tweak_book/search.py", line 1446, in do_replace File "site-packages/calibre/gui2/tweak_book/editor/widget.py", line 303, in replace File "site-packages/calibre/gui2/tweak_book/editor/text.py", line 595, in replace IndexError: no such group |
09-23-2017, 10:58 PM | #15 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I cant see how they could be possibly related, they are all in entirely different code paths (apart from the QXCBConnection errors, which could be related, but are useless since they come from the GUI toolkit, not calibre itself).
|
Tags |
snippet |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil 0.8.5 Random Crashes | SuicycoMania | Sigil | 46 | 06-05-2015 03:29 PM |
Snippets !!! Icon for the toolbar?? | phossler | Editor | 12 | 01-12-2015 05:05 AM |
Random noise and crashes/lockups while in sleep | mtntrx | Nook Developer's Corner | 0 | 02-05-2011 06:55 PM |
Random page breaks and random subscripts? | sark666 | Kobo Reader | 2 | 09-04-2010 02:25 AM |
Seemingly random crashes upon transfer to PRS-505 | TMF | Calibre | 2 | 06-16-2009 01:10 PM |