apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.55k stars 1.52k forks source link

Calibre crashes when 'customizing plugin' #2321

Open Jacoloped opened 5 months ago

Jacoloped commented 5 months ago

CheckList


Calibre crashes when 'customizing plugin'

I am attempting to use DeDRM for the first time and I've successfully added the plugin to Calibre, but when I attempt to customize the plugin to add the Kindle serial code, the calibre app crashes. I've included the log of the calibre crash in case that is useful. I have tried customising other plugins and they all work fine, it only crashes with DeDRM.

My Environment

MacBook Pro 16" 2019 2.6 GHz 6-Core Intel Core i7 Sonoma 14.4.1

Calibre: Version

7.10.0

Kindle: Version

'Basic' - 2013

DeDRM: Version

7.2.1

Log

Problem Report for calibre ```log ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: calibre [44901] Path: /Applications/calibre.app/Contents/MacOS/calibre Identifier: net.kovidgoyal.calibre Version: 7.10.0 (7.10.0) Code Type: X86-64 (Native) Parent Process: launchd [1] User ID: 504 Date/Time: 2024-05-22 13:12:35.5975 +0100 OS Version: macOS 14.4.1 (23E224) Report Version: 12 Bridge OS Version: 8.4 (21P4222) Anonymous UUID: F42A6920-03AD-EAA3-96A6-CA298D396E3E Sleep/Wake UUID: F3CD1DDF-C778-4ABA-AB9A-01AFA0E47F4D Time Awake Since Boot: 520000 seconds Time Since Wake: 12783 seconds System Integrity Protection: enabled Crashed Thread: 0 GUIPool Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process: calibre [44901] Application Specific Information: Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI. abort() called Thread 0 Crashed:: GUIPool Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x7ff81a70514a __pthread_kill + 10 1 libsystem_pthread.dylib 0x7ff81a73debd pthread_kill + 262 2 libsystem_c.dylib 0x7ff81a663a39 abort + 126 3 libcrypto.dylib 0x7ffc3270faee __report_load.cold.1 + 36 4 libcrypto.dylib 0x7ffc3270f873 __report_load + 569 5 dyld 0x7ff81a3c939f invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const::$_0::operator()() const + 185 6 dyld 0x7ff81a403663 invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 241 7 dyld 0x7ff81a3f7bcf invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 543 8 dyld 0x7ff81a3ae07f dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 249 9 dyld 0x7ff81a3f6d0c dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 176 10 dyld 0x7ff81a40324e dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 470 11 dyld 0x7ff81a3c60cd dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 225 12 dyld 0x7ff81a3cf1b6 dyld4::PrebuiltLoader::runInitializers(dyld4::RuntimeState&) const + 30 13 dyld 0x7ff81a3c62e5 dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array&) const + 213 14 dyld 0x7ff81a3c9414 dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const::$_1::operator()() const + 98 15 dyld 0x7ff81a3c637e dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const + 96 16 dyld 0x7ff81a3e0eb3 dyld4::APIs::dlopen_from(char const*, int, void*) + 1083 17 _ctypes.so 0x105bd9449 py_dl_open + 121 18 Python 0x106f68dce cfunction_call + 78 19 Python 0x107030686 _PyEval_EvalFrameDefault + 89750 20 Python 0x107018e56 _PyEval_Vector + 598 21 Python 0x106f94117 slot_tp_init + 247 22 Python 0x106f8a1b0 type_call + 128 23 Python 0x107030686 _PyEval_EvalFrameDefault + 89750 24 Python 0x107018e56 _PyEval_Vector + 598 25 Python 0x107018b98 PyEval_EvalCode + 232 26 Python 0x10701449b builtin_exec + 379 27 Python 0x106f694bf cfunction_vectorcall_FASTCALL_KEYWORDS + 95 28 Python 0x10703059b _PyEval_EvalFrameDefault + 89515 29 Python 0x107018e56 _PyEval_Vector + 598 30 Python 0x106f0420c _PyObject_VectorcallTstate.754 + 60 31 Python 0x106f095f7 object_vacall + 407 32 Python 0x106f09402 PyObject_CallMethodObjArgs + 226 33 Python 0x10706aaab PyImport_ImportModuleLevelObject + 4827 34 Python 0x10702a981 _PyEval_EvalFrameDefault + 65937 35 Python 0x107018e56 _PyEval_Vector + 598 36 Python 0x107018b98 PyEval_EvalCode + 232 37 Python 0x10701449b builtin_exec + 379 38 Python 0x106f694bf cfunction_vectorcall_FASTCALL_KEYWORDS + 95 39 Python 0x10703059b _PyEval_EvalFrameDefault + 89515 40 Python 0x107018e56 _PyEval_Vector + 598 41 Python 0x106f0420c _PyObject_VectorcallTstate.754 + 60 42 Python 0x106f095f7 object_vacall + 407 43 Python 0x106f09402 PyObject_CallMethodObjArgs + 226 44 Python 0x10706aaab PyImport_ImportModuleLevelObject + 4827 45 Python 0x10702a981 _PyEval_EvalFrameDefault + 65937 46 Python 0x107018e56 _PyEval_Vector + 598 47 Python 0x107018b98 PyEval_EvalCode + 232 48 Python 0x10701449b builtin_exec + 379 49 Python 0x106f694bf cfunction_vectorcall_FASTCALL_KEYWORDS + 95 50 Python 0x10703059b _PyEval_EvalFrameDefault + 89515 51 Python 0x107018e56 _PyEval_Vector + 598 52 Python 0x106f0420c _PyObject_VectorcallTstate.754 + 60 53 Python 0x106f095f7 object_vacall + 407 54 Python 0x106f09402 PyObject_CallMethodObjArgs + 226 55 Python 0x10706aaab PyImport_ImportModuleLevelObject + 4827 56 Python 0x10702a981 _PyEval_EvalFrameDefault + 65937 57 Python 0x107018e56 _PyEval_Vector + 598 58 Python 0x106f0a8ee method_vectorcall + 206 59 PyQt6.QtCore.so 0x106bdad77 PyQtSlot::call(_object*, _object*) const + 39 60 PyQt6.QtCore.so 0x106bdac7a PyQtSlot::invoke(void**, _object*, void*, bool) const + 362 61 PyQt6.QtCore.so 0x106bdbc05 PyQtSlotProxy::unislot(void**) + 85 62 PyQt6.QtCore.so 0x106bdbb7a PyQtSlotProxy::qt_metacall(QMetaObject::Call, int, void**) + 58 63 QtCore 0x10deda522 0x10ddda000 + 1049890 64 QtWidgets 0x10d575ee1 QTreeView::mouseDoubleClickEvent(QMouseEvent*) + 577 65 PyQt6.QtWidgets.so 0x11037852b sipQTreeView::mouseDoubleClickEvent(QMouseEvent*) + 107 66 QtWidgets 0x10d24352c QWidget::event(QEvent*) + 508 67 QtWidgets 0x10d2e0c0e QAbstractScrollArea::viewportEvent(QEvent*) + 78 68 QtWidgets 0x10d4f3fd3 QAbstractItemView::viewportEvent(QEvent*) + 1187 69 QtWidgets 0x10d571e61 QTreeView::viewportEvent(QEvent*) + 321 70 PyQt6.QtWidgets.so 0x1103774bb sipQTreeView::viewportEvent(QEvent*) + 107 71 QtCore 0x10de81154 QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 228 72 QtWidgets 0x10d1ebbab QApplicationPrivate::notify_helper(QObject*, QEvent*) + 267 73 QtWidgets 0x10d1eeb27 QApplication::notify(QObject*, QEvent*) + 8231 74 PyQt6.QtWidgets.so 0x1104fc85a sipQApplication::notify(QObject*, QEvent*) + 122 75 QtCore 0x10de80e8e QCoreApplication::notifyInternal2(QObject*, QEvent*) + 174 76 QtWidgets 0x10d1ec35c QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool) + 956 77 QtWidgets 0x10d25a4b2 0x10d1cf000 + 570546 78 QtWidgets 0x10d1ebbc0 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 288 79 QtWidgets 0x10d1eccf4 QApplication::notify(QObject*, QEvent*) + 500 80 PyQt6.QtWidgets.so 0x1104fc85a sipQApplication::notify(QObject*, QEvent*) + 122 81 QtCore 0x10de80e8e QCoreApplication::notifyInternal2(QObject*, QEvent*) + 174 82 QtGui 0x111954e77 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 3927 83 QtGui 0x1119bd94b QWindowSystemInterface::sendWindowSystemEvents(QFlags) + 395 84 libqcocoa.dylib 0x111361f7a 0x11134c000 + 89978 85 CoreFoundation 0x7ff81a81aaa7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 86 CoreFoundation 0x7ff81a81aa49 __CFRunLoopDoSource0 + 157 87 CoreFoundation 0x7ff81a81a814 __CFRunLoopDoSources0 + 215 88 CoreFoundation 0x7ff81a819491 __CFRunLoopRun + 919 89 CoreFoundation 0x7ff81a818b32 CFRunLoopRunSpecific + 557 90 HIToolbox 0x7ff82522a829 RunCurrentEventLoopInMode + 292 91 HIToolbox 0x7ff82522a466 ReceiveNextEventCommon + 201 92 HIToolbox 0x7ff82522a381 _BlockUntilNextEventMatchingListInModeWithFilter + 66 93 AppKit 0x7ff81de80be5 _DPSNextEvent + 880 94 AppKit 0x7ff81e790fe9 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1273 95 AppKit 0x7ff81e112e26 -[NSApplication _doModalLoop:peek:] + 297 96 AppKit 0x7ff81e34b090 __33-[NSApplication runModalSession:]_block_invoke_2 + 69 97 AppKit 0x7ff81e34b038 __33-[NSApplication runModalSession:]_block_invoke + 78 98 AppKit 0x7ff81e111205 _NSTryRunModal + 100 99 AppKit 0x7ff81e34af35 -[NSApplication runModalSession:] + 132 100 libqcocoa.dylib 0x1113607bc 0x11134c000 + 83900 101 QtCore 0x10de8c697 QEventLoop::exec(QFlags) + 615 102 QtWidgets 0x10d48fcbc QDialog::exec() + 556 103 PyQt6.QtWidgets.so 0x11052ed1d meth_QDialog_exec(_object*, _object*) + 205 104 Python 0x106f68dce cfunction_call + 78 105 Python 0x107030686 _PyEval_EvalFrameDefault + 89750 106 Python 0x107018e56 _PyEval_Vector + 598 107 Python 0x106f0a8ee method_vectorcall + 206 108 PyQt6.QtCore.so 0x106bdad77 PyQtSlot::call(_object*, _object*) const + 39 109 PyQt6.QtCore.so 0x106bdac7a PyQtSlot::invoke(void**, _object*, void*, bool) const + 362 110 PyQt6.QtCore.so 0x106bdbc05 PyQtSlotProxy::unislot(void**) + 85 111 PyQt6.QtCore.so 0x106bdbb7a PyQtSlotProxy::qt_metacall(QMetaObject::Call, int, void**) + 58 112 QtCore 0x10deda522 0x10ddda000 + 1049890 113 QtGui 0x111ce4611 QAction::activate(QAction::ActionEvent) + 401 114 QtCore 0x10ded108e QObject::event(QEvent*) + 590 115 PyQt6.QtGui.so 0x10d9749fb sipQAction::event(QEvent*) + 107 116 QtWidgets 0x10d1ebbc0 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 288 117 QtWidgets 0x10d1eccf4 QApplication::notify(QObject*, QEvent*) + 500 118 PyQt6.QtWidgets.so 0x1104fc85a sipQApplication::notify(QObject*, QEvent*) + 122 119 QtCore 0x10de80e8e QCoreApplication::notifyInternal2(QObject*, QEvent*) + 174 120 QtCore 0x10de81e61 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 433 121 libqcocoa.dylib 0x1113614c6 0x11134c000 + 87238 122 libqcocoa.dylib 0x111361f7a 0x11134c000 + 89978 123 CoreFoundation 0x7ff81a81aaa7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 124 CoreFoundation 0x7ff81a81aa49 __CFRunLoopDoSource0 + 157 125 CoreFoundation 0x7ff81a81a814 __CFRunLoopDoSources0 + 215 126 CoreFoundation 0x7ff81a819491 __CFRunLoopRun + 919 127 CoreFoundation 0x7ff81a818b32 CFRunLoopRunSpecific + 557 128 HIToolbox 0x7ff82522a829 RunCurrentEventLoopInMode + 292 129 HIToolbox 0x7ff82522a466 ReceiveNextEventCommon + 201 130 HIToolbox 0x7ff82522a381 _BlockUntilNextEventMatchingListInModeWithFilter + 66 131 AppKit 0x7ff81de80be5 _DPSNextEvent + 880 132 AppKit 0x7ff81e790fe9 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1273 133 AppKit 0x7ff81de72005 -[NSApplication run] + 603 134 libqcocoa.dylib 0x11136091a 0x11134c000 + 84250 135 QtCore 0x10de8c697 QEventLoop::exec(QFlags) + 615 136 QtCore 0x10de81527 QCoreApplication::exec() + 119 137 PyQt6.QtWidgets.so 0x1105385cc meth_QApplication_exec(_object*, _object*) + 92 138 Python 0x106f68dce cfunction_call + 78 139 Python 0x107030686 _PyEval_EvalFrameDefault + 89750 140 Python 0x107018e56 _PyEval_Vector + 598 141 Python 0x107018b98 PyEval_EvalCode + 232 142 Python 0x10701449b builtin_exec + 379 143 Python 0x106f694bf cfunction_vectorcall_FASTCALL_KEYWORDS + 95 144 Python 0x10703059b _PyEval_EvalFrameDefault + 89515 145 Python 0x107018e56 _PyEval_Vector + 598 146 Python 0x1070b887d pymain_run_module + 205 147 Python 0x1070b83a2 Py_RunMain + 1778 148 calibre-launcher.dylib 0x105d4763d 0x105d41000 + 26173 149 calibre-launcher.dylib 0x105d4709e 0x105d41000 + 24734 150 calibre-launcher.dylib 0x105d45267 run + 119 151 calibre 0x1057bae65 main + 325 152 dyld 0x7ff81a3b2366 start + 1942 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007ff7ba738d98 rdx: 0x0000000000000000 rdi: 0x0000000000000103 rsi: 0x0000000000000006 rbp: 0x00007ff7ba738dc0 rsp: 0x00007ff7ba738d98 r8: 0x00007ff85dc768d0 r9: 0x00000000ffffff00 r10: 0x0000000000000000 r11: 0x0000000000000246 r12: 0x0000000000000103 r13: 0x00007ff7ba738eb0 r14: 0x00007ff85dc6f100 r15: 0x0000000000000016 rip: 0x00007ff81a70514a rfl: 0x0000000000000246 cr2: 0x0000000000000000 Logical CPU: 0 Error Code: 0x02000148 Trap Number: 133 ```
ElleKayEm commented 5 months ago

Update to DeDRM 10.0.9: https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.9