xxyzz / WordDumb

A calibre plugin that generates Kindle Word Wise and X-Ray files for KFX, AZW3, MOBI and EPUB eBook.
https://xxyzz.github.io/WordDumb/
GNU General Public License v3.0
376 stars 19 forks source link

Can't edit cutom X-ray Entries #147

Closed Vilhelm-Ian closed 1 year ago

Vilhelm-Ian commented 1 year ago

Checkboxes

Describe the bug

When I double click the description of an entry Calibre crashes

System Information

manjaro current most recent version

Error message

None

Reproduce steps

  1. Open custom X-Ray
  2. Double Click description of an entry

Generated files, screenshots or videos

No response

xxyzz commented 1 year ago

I can't reproduce the error, please at least post the error message.

Vilhelm-Ian commented 1 year ago

@xxyzz I tried to run calibre from the console and reproduce the behavior. This is what was outputted.

Traceback (most recent call last): File "calibre/gui2/ui.py", line 140, in init File "calibre/gui2/ui.py", line 158, in init_iaction File "calibre/customize/init.py", line 662, in load_actual_plugin File "importlib/init.py", line 126, in import_module File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "calibre/customize/zipplugin.py", line 206, in exec_module File "calibre_plugins.xray_creator.ui", line 7, in from future import standard_library ModuleNotFoundError: No module named 'future' fish: Job 1, 'calibre' terminated by signal SIGSEGV (Address boundary error)

xxyzz commented 1 year ago

That error is caused by another plugin called "xray_creator".

Vilhelm-Ian commented 1 year ago

image I removed xray_creator. And still on clicking the description multiple times calibre closes. Now I don't get an error in the terminal but calibre still crashes

xxyzz commented 1 year ago

I didn't notice the "Address boundary error" line, that error is not caused by the WordDumb plugin. Maybe it's a calibre bug, or Qt bug.

Vilhelm-Ian commented 1 year ago

image this is the only plugin that I have installed

xxyzz commented 1 year ago

I not saying the SIGSEGV error is caused by other plugins, this kind of memory error is very unlikely caused by WordDumb's Python code. And I can't reproduce the error on Arch Linux, I guess manjaro is similar to Arch but I don't know if they changed the build file.

You could try to install the official binary file from https://calibre-ebook.com/download_linux or edit the customize X-Ray json file in any text editor.

Vilhelm-Ian commented 1 year ago

a quick question. How can I make the changes to the json file be applied to the x-ray file already present in kindle. Do I have to click Create X-Ray file again

xxyzz commented 1 year ago

Do I have to click Create X-Ray file again

Yes.