Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyMuPDF 1.24.4 causes "segmentation fault" under Python 3.12 and old MAC OS #3495

Open
workflowsguy opened this issue May 17, 2024 · 21 comments
Labels
postpone postpone to a future version

Comments

@workflowsguy
Copy link

Description of the bug

After upgrading from Python 3.11.9 to Python 3.12.3, scripts that use PyMuPDF now cause an error "segmentation fault" when run in the console. After that, there is a system error dialog showing that the Python interpreter has crashed.

How to reproduce the bug

Upgrade the Python interpreter from 3.11 to 3.12 and activate it:

Installation through MacPorts with port install python312
Activation through port select --set python python312 && sudo port select --set python3 python312

The simplest script to trigger the issue is just
import fitz

Machine information:
macOS 10.13.6
Intel(R) Core(TM) i7 CPU 870 @ 2.93GHz

PyMuPDF version

1.24.4

Operating system

MacOS

Python version

3.12

@JorjMcKie
Copy link
Collaborator

Please provide data to reproduce this!

@workflowsguy
Copy link
Author

What more data do you need?

I have already mentioned that the minimal script to reproduce this simply consists of this one import statement.

Python itself and macOS do not provide any more information, at least none that is obvious to me.
The macOS crash dialog has three buttons, one of which displays a crash log. In this case however, clicking on the button does not display anything, which in all the years I have never seen on macOS before.

@workflowsguy
Copy link
Author

workflowsguy commented May 18, 2024

After upgrading pymupdf to 1.24.4 on another Mac (macOS 11.7.10, Python 3.12.3) the crash now occurs there, too.
This time, a crash report was available. This are the first lines of it.

Process:               Python [5768]
Path:                  /opt/local/Library/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.12.3 (3.12.3)
Code Type:             X86-64 (Native)
Parent Process:        Python [5756]
Responsible:           pycharm [5635]
User ID:               501

Date/Time:             2024-05-18 07:05:33.894 +0200
OS Version:            macOS 11.7.10 (20G1427)
Report Version:        12
Anonymous UUID:        46B29512-4A32-27D1-F6A8-DC32686A5669

Sleep/Wake UUID:       29AB57CA-3F10-4C67-B995-B72A41F75850

Time Awake Since Boot: 150000 seconds
Time Since Wake:       2200 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       EXC_I386_GPFLT
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [5768]

Application Specific Information:
/Users/guy/Library/Python/3.12/lib/python/site-packages/pymupdf/libmupdfcpp.so

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libmupdfcpp.so                	0x000000010440d000 0x10440d000 + 0
1   libmupdf.dylib                	0x0000000102bd480f fz_new_store_context + 31
2   libmupdf.dylib                	0x0000000102b180e6 fz_new_context_imp + 406
3   libmupdfcpp.so                	0x0000000104485f39 mupdf::internal_state::reinit(bool) + 361
4   libmupdfcpp.so                	0x000000010448610a mupdf::internal_state::internal_state() + 282
5   libmupdfcpp.so                	0x0000000104486382 _GLOBAL__sub_I_internal.cpp + 50
6   dyld                          	0x000000010f33ab47 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 535
7   dyld                          	0x000000010f33af52 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
8   dyld                          	0x000000010f335ae6 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 492
9   dyld                          	0x000000010f335a51 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 343
10  dyld                          	0x000000010f33389f ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 191
11  dyld                          	0x000000010f333940 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 82
12  dyld                          	0x000000010f323a12 dyld::runInitializers(ImageLoader*) + 82
13  dyld                          	0x000000010f32f11a dlopen_internal + 616
14  libdyld.dylib                 	0x00007fff205adc94 dlopen_internal(char const*, int, void*) + 185
15  libdyld.dylib                 	0x00007fff2059c07e dlopen + 28
16  org.python.python             	0x00000001015eeb1d _PyImport_FindSharedFuncptr + 139
17  org.python.python             	0x00000001015aaace _PyImport_LoadDynamicModuleWithSpec + 500
18  org.python.python             	0x00000001015a9ed1 _imp_create_dynamic + 171
19  org.python.python             	0x00000001014a6542 cfunction_vectorcall_FASTCALL + 98
20  org.python.python             	0x0000000101561d23 _PyEval_EvalFrameDefault + 60524
21  org.python.python             	0x000000010145005e object_vacall + 269
22  org.python.python             	0x000000010144ff02 PyObject_CallMethodObjArgs + 230
23  org.python.python             	0x00000001015a6ef9 PyImport_ImportModuleLevelObject + 1226
24  org.python.python             	0x000000010154d1a8 builtin___import__ + 194
25  org.python.python             	0x00000001014a6618 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
26  org.python.python             	0x0000000101561d23 _PyEval_EvalFrameDefault + 60524
27  org.python.python             	0x000000010145005e object_vacall + 269
28  org.python.python             	0x000000010144ff02 PyObject_CallMethodObjArgs + 230
29  org.python.python             	0x00000001015a6de2 PyImport_ImportModuleLevelObject + 947
30  org.python.python             	0x000000010155c961 _PyEval_EvalFrameDefault + 39082
31  org.python.python             	0x0000000101552ee2 PyEval_EvalCode + 304
32  org.python.python             	0x000000010154ee25 builtin_exec + 472
33  org.python.python             	0x00000001014a6618 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
34  org.python.python             	0x0000000101561d23 _PyEval_EvalFrameDefault + 60524
35  org.python.python             	0x000000010145005e object_vacall + 269
36  org.python.python             	0x000000010144ff02 PyObject_CallMethodObjArgs + 230
37  org.python.python             	0x00000001015a6ef9 PyImport_ImportModuleLevelObject + 1226
38  org.python.python             	0x000000010154d1a8 builtin___import__ + 194
39  org.python.python             	0x00000001014a6618 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
40  org.python.python             	0x0000000101561d23 _PyEval_EvalFrameDefault + 60524
41  org.python.python             	0x000000010145005e object_vacall + 269
42  org.python.python             	0x000000010144ff02 PyObject_CallMethodObjArgs + 230
43  org.python.python             	0x00000001015a6de2 PyImport_ImportModuleLevelObject + 947
44  org.python.python             	0x000000010155c961 _PyEval_EvalFrameDefault + 39082
45  org.python.python             	0x0000000101552ee2 PyEval_EvalCode + 304
46  org.python.python             	0x000000010154ee25 builtin_exec + 472
47  org.python.python             	0x00000001014a6618 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
48  org.python.python             	0x0000000101561d23 _PyEval_EvalFrameDefault + 60524
49  org.python.python             	0x000000010145005e object_vacall + 269
50  org.python.python             	0x000000010144ff02 PyObject_CallMethodObjArgs + 230
51  org.python.python             	0x00000001015a6ef9 PyImport_ImportModuleLevelObject + 1226
52  org.python.python             	0x000000010154d1a8 builtin___import__ + 194
53  org.python.python             	0x00000001014a6618 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
54  org.python.python             	0x0000000101561d23 _PyEval_EvalFrameDefault + 60524
55  org.python.python             	0x000000010145005e object_vacall + 269
56  org.python.python             	0x000000010144ff02 PyObject_CallMethodObjArgs + 230
57  org.python.python             	0x00000001015a6ef9 PyImport_ImportModuleLevelObject + 1226
58  org.python.python             	0x000000010154d1a8 builtin___import__ + 194
59  org.python.python             	0x00000001014a6618 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
60  org.python.python             	0x000000010155fae7 _PyEval_EvalFrameDefault + 51760
61  org.python.python             	0x0000000101552ee2 PyEval_EvalCode + 304
62  org.python.python             	0x00000001015cc062 run_eval_code_obj + 83
63  org.python.python             	0x00000001015ca03f run_mod + 107
64  org.python.python             	0x00000001015c95d0 PyRun_StringFlags + 112
65  org.python.python             	0x00000001015c9519 PyRun_SimpleStringFlags + 69
66  org.python.python             	0x00000001015ef50b pymain_run_command + 144
67  org.python.python             	0x00000001015eee46 Py_RunMain + 442
68  org.python.python             	0x00000001015ef2d9 pymain_main + 35
69  org.python.python             	0x00000001015ef32f Py_BytesMain + 42
70  libdyld.dylib                 	0x00007fff205abf3d start + 1

@JorjMcKie
Copy link
Collaborator

Thanks for providing more background.
Could you check to see if this also happens if you start python in a terminal window (i.e. without using PyCharm)?

@workflowsguy
Copy link
Author

I have seen that the Responsible: entry shows pycharm [5635], but PyCharm was not running at the time of the crash.

Anyway, I have run the test script again in iTerm, and it results in the same crash.

@julian-smith-artifex-com
Copy link
Collaborator

Could you provide the crash report from running in a terminal window?

@workflowsguy
Copy link
Author

When run in macOS's Terminal application, the crash data is the same as in the previous error reports

Process:               Python [20751]
Path:                  /opt/local/Library/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.12.3 (3.12.3)
Code Type:             X86-64 (Native)
Parent Process:        zsh [20656]
Responsible:           Terminal [20653]
User ID:               501

Date/Time:             2024-05-20 12:54:39.178 +0200
OS Version:            macOS 11.7.10 (20G1427)
Report Version:        12
Anonymous UUID:        46B29512-4A32-27D1-F6A8-DC32686A5669

Sleep/Wake UUID:       B0EBC205-AF9F-4A02-8392-466D8615FB46

Time Awake Since Boot: 180000 seconds
Time Since Wake:       33 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       EXC_I386_GPFLT
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [20751]

Application Specific Information:
/Users/guy/Library/Python/3.12/lib/python/site-packages/pymupdf/libmupdfcpp.so

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libmupdfcpp.so                	0x000000010ad43000 0x10ad43000 + 0
1   libmupdf.dylib                	0x000000010950a80f fz_new_store_context + 31
2   libmupdf.dylib                	0x000000010944e0e6 fz_new_context_imp + 406
3   libmupdfcpp.so                	0x000000010adbbf39 mupdf::internal_state::reinit(bool) + 361
4   libmupdfcpp.so                	0x000000010adbc10a mupdf::internal_state::internal_state() + 282
5   libmupdfcpp.so                	0x000000010adbc382 _GLOBAL__sub_I_internal.cpp + 50
6   dyld                          	0x000000011060cb47 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 535
7   dyld                          	0x000000011060cf52 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
8   dyld                          	0x0000000110607ae6 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 492
9   dyld                          	0x0000000110607a51 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 343
10  dyld                          	0x000000011060589f ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 191
11  dyld                          	0x0000000110605940 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 82
12  dyld                          	0x00000001105f5a12 dyld::runInitializers(ImageLoader*) + 82
13  dyld                          	0x000000011060111a dlopen_internal + 616
14  libdyld.dylib                 	0x00007fff205adc94 dlopen_internal(char const*, int, void*) + 185
15  libdyld.dylib                 	0x00007fff2059c07e dlopen + 28
16  org.python.python             	0x0000000108695b1d _PyImport_FindSharedFuncptr + 139
17  org.python.python             	0x0000000108651ace _PyImport_LoadDynamicModuleWithSpec + 500
18  org.python.python             	0x0000000108650ed1 _imp_create_dynamic + 171
19  org.python.python             	0x000000010854d542 cfunction_vectorcall_FASTCALL + 98
20  org.python.python             	0x0000000108608d23 _PyEval_EvalFrameDefault + 60524
21  org.python.python             	0x00000001084f705e object_vacall + 269
22  org.python.python             	0x00000001084f6f02 PyObject_CallMethodObjArgs + 230
23  org.python.python             	0x000000010864def9 PyImport_ImportModuleLevelObject + 1226
24  org.python.python             	0x00000001085f41a8 builtin___import__ + 194
25  org.python.python             	0x000000010854d618 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
26  org.python.python             	0x0000000108608d23 _PyEval_EvalFrameDefault + 60524
27  org.python.python             	0x00000001084f705e object_vacall + 269
28  org.python.python             	0x00000001084f6f02 PyObject_CallMethodObjArgs + 230
29  org.python.python             	0x000000010864dde2 PyImport_ImportModuleLevelObject + 947
30  org.python.python             	0x0000000108603961 _PyEval_EvalFrameDefault + 39082
31  org.python.python             	0x00000001085f9ee2 PyEval_EvalCode + 304
32  org.python.python             	0x00000001085f5e25 builtin_exec + 472
33  org.python.python             	0x000000010854d618 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
34  org.python.python             	0x0000000108608d23 _PyEval_EvalFrameDefault + 60524
35  org.python.python             	0x00000001084f705e object_vacall + 269
36  org.python.python             	0x00000001084f6f02 PyObject_CallMethodObjArgs + 230
37  org.python.python             	0x000000010864def9 PyImport_ImportModuleLevelObject + 1226
38  org.python.python             	0x00000001085f41a8 builtin___import__ + 194
39  org.python.python             	0x000000010854d618 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
40  org.python.python             	0x0000000108608d23 _PyEval_EvalFrameDefault + 60524
41  org.python.python             	0x00000001084f705e object_vacall + 269
42  org.python.python             	0x00000001084f6f02 PyObject_CallMethodObjArgs + 230
43  org.python.python             	0x000000010864dde2 PyImport_ImportModuleLevelObject + 947
44  org.python.python             	0x0000000108603961 _PyEval_EvalFrameDefault + 39082
45  org.python.python             	0x00000001085f9ee2 PyEval_EvalCode + 304
46  org.python.python             	0x00000001085f5e25 builtin_exec + 472
47  org.python.python             	0x000000010854d618 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
48  org.python.python             	0x0000000108608d23 _PyEval_EvalFrameDefault + 60524
49  org.python.python             	0x00000001084f705e object_vacall + 269
50  org.python.python             	0x00000001084f6f02 PyObject_CallMethodObjArgs + 230
51  org.python.python             	0x000000010864def9 PyImport_ImportModuleLevelObject + 1226
52  org.python.python             	0x0000000108603961 _PyEval_EvalFrameDefault + 39082
53  org.python.python             	0x00000001085f9ee2 PyEval_EvalCode + 304
54  org.python.python             	0x00000001085f5e25 builtin_exec + 472
55  org.python.python             	0x000000010854d618 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
56  org.python.python             	0x0000000108608d23 _PyEval_EvalFrameDefault + 60524
57  org.python.python             	0x00000001084f705e object_vacall + 269
58  org.python.python             	0x00000001084f6f02 PyObject_CallMethodObjArgs + 230
59  org.python.python             	0x000000010864def9 PyImport_ImportModuleLevelObject + 1226
60  org.python.python             	0x0000000108603961 _PyEval_EvalFrameDefault + 39082
61  org.python.python             	0x00000001085f9ee2 PyEval_EvalCode + 304
62  org.python.python             	0x0000000108673062 run_eval_code_obj + 83
63  org.python.python             	0x000000010867103f run_mod + 107
64  org.python.python             	0x0000000108670448 pyrun_file + 133
65  org.python.python             	0x000000010866f788 _PyRun_SimpleFileObject + 303
66  org.python.python             	0x000000010866f3e1 _PyRun_AnyFileObject + 160
67  org.python.python             	0x0000000108696b0c pymain_run_file_obj + 226
68  org.python.python             	0x000000010869689e pymain_run_file + 89
69  org.python.python             	0x0000000108696117 Py_RunMain + 1163
70  org.python.python             	0x00000001086962d9 pymain_main + 35
71  org.python.python             	0x000000010869632f Py_BytesMain + 42
72  libdyld.dylib                 	0x00007fff205abf3d start + 1

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000040  rbx: 0x00007fd22ada1000  rcx: 0x00007fd22ada1118  rdx: 0x0000000000000000
  rdi: 0x000000010add7a48  rsi: 0x0000000000000000  rbp: 0x00007ffee7786650  rsp: 0x00007ffee7786608
   r8: 0x0000a4aad30ae77b   r9: 0x0000000006efc43d  r10: 0x0000000108cda980  r11: 0x0000000000000000
  r12: 0x0000000000000040  r13: 0x0000000000000000  r14: 0x00007fd22ada1000  r15: 0x0000000000000001
  rip: 0x000000010ad43000  rfl: 0x0000000000010246  cr2: 0x00000001094d9c40
  
Logical CPU:     0
Error Code:      0x00000000
Trap Number:     13

@navijation
Copy link

I get a similar issue running pipx run rendercv.

Process:               Python [93968]
Path:                  /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.12.3 (3.12.3)
Code Type:             X86-64 (Native)
Parent Process:        zsh [91687]
Responsible:           iTerm2 [91648]
User ID:               501

Date/Time:             2024-05-27 21:52:10.475 -0400
OS Version:            Mac OS X 10.15.7 (19H2026)
Report Version:        12
Bridge OS Version:     6.6 (19P6066)
Anonymous UUID:        4579FC82-F613-1408-5442-F52EEC14F228

Sleep/Wake UUID:       82FB686C-5D05-4A83-B6AD-43DE51AEA56F

Time Awake Since Boot: 52000 seconds
Time Since Wake:       9700 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       EXC_I386_GPFLT
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [93968]

Application Specific Information:
/Users/navneethjayendran/.local/pipx/.cache/0d4326fd018258e/lib/python3.12/site-packages/pymupdf/libmupdfcpp.so

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libmupdfcpp.so                	0x000000010c6e2000 0x10c6e2000 + 0
1   libmupdf.dylib                	0x000000010aea980f fz_new_store_context + 31
2   libmupdf.dylib                	0x000000010aded0e6 fz_new_context_imp + 406
3   libmupdfcpp.so                	0x000000010c75af39 mupdf::internal_state::reinit(bool) + 361
4   libmupdfcpp.so                	0x000000010c75b10a mupdf::internal_state::internal_state() + 282
5   libmupdfcpp.so                	0x000000010c75b382 _GLOBAL__sub_I_internal.cpp + 50
6   dyld                          	0x000000011086f353 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 535
7   dyld                          	0x000000011086f75e ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
8   dyld                          	0x000000011086a17b ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 493
9   dyld                          	0x000000011086a0e6 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 344
10  dyld                          	0x0000000110868234 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 188
11  dyld                          	0x00000001108682d4 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 82
12  dyld                          	0x0000000110859ef2 dyld::runInitializers(ImageLoader*) + 82
13  dyld                          	0x000000011086401b dlopen_internal + 609
14  libdyld.dylib                 	0x00007fff6e944d8a dlopen + 171
15  org.python.python             	0x0000000108563793 _PyImport_FindSharedFuncptr + 139
16  org.python.python             	0x000000010852099f _PyImport_LoadDynamicModuleWithSpec + 479
17  org.python.python             	0x000000010851fdd4 _imp_create_dynamic + 171
18  org.python.python             	0x000000010840b832 cfunction_vectorcall_FASTCALL + 98
19  org.python.python             	0x00000001084caacd _PyEval_EvalFrameDefault + 60566
20  org.python.python             	0x00000001083b541e object_vacall + 320
21  org.python.python             	0x00000001083b528c PyObject_CallMethodObjArgs + 231
22  org.python.python             	0x000000010851d0fc PyImport_ImportModuleLevelObject + 1064
23  org.python.python             	0x00000001084b62ad builtin___import__ + 192
24  org.python.python             	0x000000010840b908 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
25  org.python.python             	0x00000001084caacd _PyEval_EvalFrameDefault + 60566
26  org.python.python             	0x00000001083b541e object_vacall + 320
27  org.python.python             	0x00000001083b528c PyObject_CallMethodObjArgs + 231
28  org.python.python             	0x000000010851cfdf PyImport_ImportModuleLevelObject + 779
29  org.python.python             	0x00000001084c53d5 _PyEval_EvalFrameDefault + 38302
30  org.python.python             	0x00000001084bbc62 PyEval_EvalCode + 304
31  org.python.python             	0x00000001084b7dd1 builtin_exec + 481
32  org.python.python             	0x000000010840b908 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
33  org.python.python             	0x00000001084caacd _PyEval_EvalFrameDefault + 60566
34  org.python.python             	0x00000001083b541e object_vacall + 320
35  org.python.python             	0x00000001083b528c PyObject_CallMethodObjArgs + 231
36  org.python.python             	0x000000010851d0fc PyImport_ImportModuleLevelObject + 1064
37  org.python.python             	0x00000001084b62ad builtin___import__ + 192
38  org.python.python             	0x000000010840b908 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
39  org.python.python             	0x00000001084caacd _PyEval_EvalFrameDefault + 60566
40  org.python.python             	0x00000001083b541e object_vacall + 320
41  org.python.python             	0x00000001083b528c PyObject_CallMethodObjArgs + 231
42  org.python.python             	0x000000010851cfdf PyImport_ImportModuleLevelObject + 779
43  org.python.python             	0x00000001084c53d5 _PyEval_EvalFrameDefault + 38302
44  org.python.python             	0x00000001084bbc62 PyEval_EvalCode + 304
45  org.python.python             	0x00000001084b7dd1 builtin_exec + 481
46  org.python.python             	0x000000010840b908 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
47  org.python.python             	0x00000001084caacd _PyEval_EvalFrameDefault + 60566
48  org.python.python             	0x00000001083b541e object_vacall + 320
49  org.python.python             	0x00000001083b528c PyObject_CallMethodObjArgs + 231
50  org.python.python             	0x000000010851d0fc PyImport_ImportModuleLevelObject + 1064
51  org.python.python             	0x00000001084c53d5 _PyEval_EvalFrameDefault + 38302
52  org.python.python             	0x00000001084bbc62 PyEval_EvalCode + 304
53  org.python.python             	0x00000001084b7dd1 builtin_exec + 481
54  org.python.python             	0x000000010840b908 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
55  org.python.python             	0x00000001084caacd _PyEval_EvalFrameDefault + 60566
56  org.python.python             	0x00000001083b541e object_vacall + 320
57  org.python.python             	0x00000001083b528c PyObject_CallMethodObjArgs + 231
58  org.python.python             	0x000000010851d0fc PyImport_ImportModuleLevelObject + 1064
59  org.python.python             	0x00000001084c53d5 _PyEval_EvalFrameDefault + 38302
60  org.python.python             	0x00000001084bbc62 PyEval_EvalCode + 304
61  org.python.python             	0x00000001084b7dd1 builtin_exec + 481
62  org.python.python             	0x000000010840b908 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
63  org.python.python             	0x00000001084caacd _PyEval_EvalFrameDefault + 60566
64  org.python.python             	0x00000001083b541e object_vacall + 320
65  org.python.python             	0x00000001083b528c PyObject_CallMethodObjArgs + 231
66  org.python.python             	0x000000010851d0fc PyImport_ImportModuleLevelObject + 1064
67  org.python.python             	0x00000001084b62ad builtin___import__ + 192
68  org.python.python             	0x000000010840b908 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
69  org.python.python             	0x00000001084caacd _PyEval_EvalFrameDefault + 60566
70  org.python.python             	0x00000001083b541e object_vacall + 320
71  org.python.python             	0x00000001083b528c PyObject_CallMethodObjArgs + 231
72  org.python.python             	0x000000010851cfdf PyImport_ImportModuleLevelObject + 779
73  org.python.python             	0x00000001084c53d5 _PyEval_EvalFrameDefault + 38302
74  org.python.python             	0x00000001084bbc62 PyEval_EvalCode + 304
75  org.python.python             	0x00000001084b7dd1 builtin_exec + 481
76  org.python.python             	0x000000010840b908 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
77  org.python.python             	0x00000001084caacd _PyEval_EvalFrameDefault + 60566
78  org.python.python             	0x00000001083b541e object_vacall + 320
79  org.python.python             	0x00000001083b528c PyObject_CallMethodObjArgs + 231
80  org.python.python             	0x000000010851d0fc PyImport_ImportModuleLevelObject + 1064
81  org.python.python             	0x00000001084c53d5 _PyEval_EvalFrameDefault + 38302
82  org.python.python             	0x00000001084bbc62 PyEval_EvalCode + 304
83  org.python.python             	0x00000001084b7dd1 builtin_exec + 481
84  org.python.python             	0x000000010840b908 cfunction_vectorcall_FASTCALL_KEYWORDS + 90
85  org.python.python             	0x00000001084caacd _PyEval_EvalFrameDefault + 60566
86  org.python.python             	0x00000001083b541e object_vacall + 320
87  org.python.python             	0x00000001083b528c PyObject_CallMethodObjArgs + 231
88  org.python.python             	0x000000010851d0fc PyImport_ImportModuleLevelObject + 1064
89  org.python.python             	0x00000001084c53d5 _PyEval_EvalFrameDefault + 38302
90  org.python.python             	0x00000001084bbc62 PyEval_EvalCode + 304
91  org.python.python             	0x00000001085413cd run_eval_code_obj + 83
92  org.python.python             	0x000000010853f433 run_mod + 107
93  org.python.python             	0x000000010853e85e pyrun_file + 133
94  org.python.python             	0x000000010853dbe1 _PyRun_SimpleFileObject + 359
95  org.python.python             	0x000000010853d7e6 _PyRun_AnyFileObject + 138
96  org.python.python             	0x0000000108564819 pymain_run_file_obj + 226
97  org.python.python             	0x00000001085643c3 pymain_run_file + 85
98  org.python.python             	0x0000000108563c73 pymain_run_python + 791
99  org.python.python             	0x0000000108563919 Py_RunMain + 23
100 org.python.python             	0x0000000108563d39 pymain_main + 35
101 org.python.python             	0x0000000108563d8f Py_BytesMain + 42
102 libdyld.dylib                 	0x00007fff6e959cc9 start + 1

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000040  rbx: 0x00007fe160100000  rcx: 0x00007fe160100118  rdx: 0x0000000000000000
  rdi: 0x000000010c776a48  rsi: 0x0000000000000000  rbp: 0x00007ffee78caa30  rsp: 0x00007ffee78ca9e8
   r8: 0x00002fa956a99b3d   r9: 0x0000000000712135  r10: 0x0000000000000000  r11: 0x00007fe160000000
  r12: 0x0000000000000040  r13: 0x0000000000000000  r14: 0x00007fe160100000  r15: 0x0000000000000001
  rip: 0x000000010c6e2000  rfl: 0x0000000000010246  cr2: 0x000000010ae78c40
  
Logical CPU:     0
Error Code:      0x00000000
Trap Number:     13


Binary Images:
       0x10832e000 -        0x108331fff +org.python.python (3.12.3 - 3.12.3) <1B46ADB8-ECF7-36AA-A5FB-A885AAF67C51> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python
       0x108340000 -        0x1086cbff7 +org.python.python (3.12.3, [c] 2001-2023 Python Software Foundation. - 3.12.3) <CD9A4892-264F-32F7-91B5-B87405908EF0> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/Python
       0x108966000 -        0x108979ffb +libintl.8.dylib (0) <F2B42243-D225-399B-BBA1-31D6A88F016D> /usr/local/opt/gettext/lib/libintl.8.dylib
       0x108bb1000 -        0x108bb8ffb +_json.cpython-312-darwin.so (0) <24831B8F-292E-3950-8674-16F8D4865A0E> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_json.cpython-312-darwin.so
       0x108cc5000 -        0x108cd0fff +math.cpython-312-darwin.so (0) <2D43F35D-6044-3F31-95C6-336459DC3208> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/math.cpython-312-darwin.so
       0x108cdd000 -        0x108ce4ff3 +zlib.cpython-312-darwin.so (0) <0C2D9D4B-5A46-356A-B9C8-99AD6BDD6799> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/zlib.cpython-312-darwin.so
       0x108cf1000 -        0x108cf4ff3 +_bz2.cpython-312-darwin.so (0) <83A28296-1374-33A0-95A7-ED5B0993A5CC> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_bz2.cpython-312-darwin.so
       0x108d01000 -        0x108d08fff +_lzma.cpython-312-darwin.so (0) <EF78458C-3C44-314A-947F-E9C9B21642BA> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_lzma.cpython-312-darwin.so
       0x108d15000 -        0x108d38ff7 +liblzma.5.dylib (0) <2F81F64D-38A1-3FCE-BFB7-1AEE6A6E0474> /usr/local/opt/xz/lib/liblzma.5.dylib
       0x108e49000 -        0x108e4cff7 +_opcode.cpython-312-darwin.so (0) <310D22B7-36DA-38F6-8104-1F61B27098F9> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_opcode.cpython-312-darwin.so
       0x108f59000 -        0x108f68ff3 +_datetime.cpython-312-darwin.so (0) <2A37CE32-6399-3288-B0B0-DA038A5580A9> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_datetime.cpython-312-darwin.so
       0x108f79000 -        0x108f7cff3 +termios.cpython-312-darwin.so (0) <3D64910F-2674-3F48-96C6-3C1E34F9A3FF> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/termios.cpython-312-darwin.so
       0x108f89000 -        0x108f8cff3 +_bisect.cpython-312-darwin.so (0) <E5FD83E1-7742-3844-AF20-2818FC7B87C0> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_bisect.cpython-312-darwin.so
       0x108f99000 -        0x108f9cffb +_random.cpython-312-darwin.so (0) <E2060B73-A3D0-3CF8-8AF1-2F2902E83D39> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_random.cpython-312-darwin.so
       0x108fa9000 -        0x108fb4fff +_sha2.cpython-312-darwin.so (0) <8E937AD1-CABE-37F2-B7ED-5783AD8EE3AE> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_sha2.cpython-312-darwin.so
       0x1091c1000 -        0x1091c8ff7 +array.cpython-312-darwin.so (0) <0DC0C34F-3C41-3D00-8E71-F9659D3A10A6> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/array.cpython-312-darwin.so
       0x1091d5000 -        0x1091f4ff3 +_decimal.cpython-312-darwin.so (0) <64CB94B6-1369-3720-BCA0-218615301216> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_decimal.cpython-312-darwin.so
       0x109205000 -        0x109220fff +libmpdec.4.dylib (0) <2AE0615F-C4A6-3365-8AA8-6657DD3ECAC8> /usr/local/opt/mpdecimal/lib/libmpdec.4.dylib
       0x109231000 -        0x109234ffb +mmap.cpython-312-darwin.so (0) <8C0A2DC5-7A4C-36BF-B712-4260FB40AADD> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/mmap.cpython-312-darwin.so
       0x109341000 -        0x109350ffb +_socket.cpython-312-darwin.so (0) <12AD4FCA-F400-3898-A2AE-842B7FDD6E92> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_socket.cpython-312-darwin.so
       0x10935d000 -        0x1093a9ff7 +_ruamel_yaml.cpython-312-darwin.so (0) <B535754E-0A40-3E8C-9498-653C929538DD> /Users/USER/*/_ruamel_yaml.cpython-312-darwin.so
       0x1093bf000 -        0x1093c2ffb +binascii.cpython-312-darwin.so (0) <FBD8EF4A-DE2C-3419-872B-DB7189DC8B4E> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/binascii.cpython-312-darwin.so
       0x1094cf000 -        0x1094d6fff +_struct.cpython-312-darwin.so (0) <F9CF9FF2-88F7-32E1-AE51-DE2641BB4CF2> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_struct.cpython-312-darwin.so
       0x1095e3000 -        0x1095e6fff +_uuid.cpython-312-darwin.so (0) <DBA47047-3DF1-38A6-AA1A-8939BF2C0687> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_uuid.cpython-312-darwin.so
       0x1095f3000 -        0x1095f6fff +fcntl.cpython-312-darwin.so (0) <5379F551-210E-3E99-9020-766EF43BA307> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/fcntl.cpython-312-darwin.so
       0x109603000 -        0x109606ff3 +_posixsubprocess.cpython-312-darwin.so (0) <089665B3-D98B-344C-A4FA-BC2F2A7B5136> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_posixsubprocess.cpython-312-darwin.so
       0x109613000 -        0x10961afff +select.cpython-312-darwin.so (0) <1DC9FD8C-B2F2-3038-9B46-401061F39F8E> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/select.cpython-312-darwin.so
       0x109727000 -        0x10972eff7 +_csv.cpython-312-darwin.so (0) <31EB52A5-5B78-38FD-9E05-0C40B210E75A> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_csv.cpython-312-darwin.so
       0x10993b000 -        0x109942fff +_hashlib.cpython-312-darwin.so (0) <DFBFC9FA-C09E-35CB-9227-6B6122C5FD6D> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_hashlib.cpython-312-darwin.so
       0x10994f000 -        0x109c922b7 +libcrypto.3.dylib (0) <597793F9-6FA6-3B2D-BE02-BEE68161D482> /usr/local/opt/openssl@3/lib/libcrypto.3.dylib
       0x109db3000 -        0x109dbafff +_blake2.cpython-312-darwin.so (0) <0FA60B32-6703-3EBC-8BCD-44CBC327743D> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_blake2.cpython-312-darwin.so
       0x109dc7000 -        0x109ddeff3 +_ssl.cpython-312-darwin.so (0) <9540DF46-FE64-317F-93E9-C09E355048D8> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_ssl.cpython-312-darwin.so
       0x109df7000 -        0x109e86ffb +libssl.3.dylib (0) <95D10602-3A25-34F3-93E6-9DBFD062D3EE> /usr/local/opt/openssl@3/lib/libssl.3.dylib
       0x109fcb000 -        0x109fcefff +_scproxy.cpython-312-darwin.so (0) <0080613F-5FE2-388F-93CA-706F063A2C95> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_scproxy.cpython-312-darwin.so
       0x109fdb000 -        0x10a3c2fef +_pydantic_core.cpython-312-darwin.so (0) <5882141B-F062-35D6-814F-8D7B89C26611> /Users/USER/*/_pydantic_core.cpython-312-darwin.so
       0x10a502000 -        0x10a611fff +unicodedata.cpython-312-darwin.so (0) <D4CA4A98-252E-35F8-B154-A0DC2607C4AA> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/unicodedata.cpython-312-darwin.so
       0x10a71e000 -        0x10a721fff +_contextvars.cpython-312-darwin.so (0) <57E3A445-3ACF-3DFC-9060-D9F5C345E27A> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_contextvars.cpython-312-darwin.so
       0x10ab2e000 -        0x10ab45fff +_pickle.cpython-312-darwin.so (0) <C6A32191-39CA-31DD-B329-BC1D68A23A4F> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_pickle.cpython-312-darwin.so
       0x10ab56000 -        0x10ab59ff3 +_speedups.cpython-312-darwin.so (0) <6F0C3AC9-8F31-327B-AFF7-C6FF31995928> /Users/USER/*/_speedups.cpython-312-darwin.so
       0x10ab62000 -        0x10ab6dff7 +_elementtree.cpython-312-darwin.so (0) <23498F6F-0FDD-37B3-8F05-C5BF27D741E7> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_elementtree.cpython-312-darwin.so
       0x10ab7e000 -        0x10ab85ff7 +pyexpat.cpython-312-darwin.so (0) <9EDC8D9C-C636-35F2-8116-E268717360DC> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/pyexpat.cpython-312-darwin.so
       0x10ad92000 -        0x10ad95fff +grp.cpython-312-darwin.so (0) <194F6E83-37C7-39F9-A9F4-B659D6D79DF8> /usr/local/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/grp.cpython-312-darwin.so
       0x10ada2000 -        0x10adc1ff3 +_extra.cpython-312-darwin.so (0) <16A3C9A8-A78E-3EDD-B1A0-53118F33098F> /Users/USER/*/_extra.cpython-312-darwin.so
       0x10add6000 -        0x10c5c9fff +libmupdf.dylib (0) <E7B598C8-A9C6-3CAF-ADA5-D0EC120E9221> /Users/USER/*/libmupdf.dylib
       0x10c6e2000 -        0x10c771ff7 +libmupdfcpp.so (0) <19FB7BFA-60CA-3F4E-B8BD-5543A6D7EADE> /Users/USER/*/libmupdfcpp.so
       0x110854000 -        0x1108e6267  dyld (750.7) <9F48F7F8-94D0-3793-99B7-DDEF657EF956> /usr/lib/dyld
    0x7fff30a74000 -     0x7fff30a74fff  com.apple.Accelerate (1.11 - Accelerate 1.11) <4F9977AE-DBDB-3A16-A536-AC1F9938DCDD> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff30a8c000 -     0x7fff310e2fff  com.apple.vImage (8.1 - 524.2.1) <EA6F5FF2-7A1B-35D5-A5A3-D2B3386ECB75> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff310e3000 -     0x7fff3134aff7  libBLAS.dylib (1303.60.1) <C6C2D42F-7456-3DBF-8BE2-9AA06EFC78FD> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff3134b000 -     0x7fff3181efef  libBNNS.dylib (144.100.2) <99C61C48-B14C-3DA6-8C31-6BF72DA0A3A9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
    0x7fff3181f000 -     0x7fff31bbafff  libLAPACK.dylib (1303.60.1) <5E3E3867-50C3-3E6A-9A2E-007CE77A4641> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff31bbb000 -     0x7fff31bd0fec  libLinearAlgebra.dylib (1303.60.1) <3D433800-0099-33E0-8C81-15F83247B2C9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
    0x7fff31bd1000 -     0x7fff31bd6ff3  libQuadrature.dylib (7) <371F36A7-B12F-363E-8955-F24F7C2048F6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib
    0x7fff31bd7000 -     0x7fff31c47fff  libSparse.dylib (103) <B8A10D0C-4577-343D-B310-A3E81265D107> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
    0x7fff31c48000 -     0x7fff31c5afef  libSparseBLAS.dylib (1303.60.1) <B147FEF6-A0DB-3830-BF06-45BEC58DB576> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
    0x7fff31c5b000 -     0x7fff31e32fd7  libvDSP.dylib (735.140.1) <D63DC0A5-B8B4-3562-A574-E73BC3B57407> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff31e33000 -     0x7fff31ef5fef  libvMisc.dylib (735.140.1) <3601FDE3-B142-398D-987D-8151A51F0A96> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff31ef6000 -     0x7fff31ef6fff  com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) <F6C5613D-2284-342B-9160-9731F78B4DE5> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff3365a000 -     0x7fff339e8ffa  com.apple.CFNetwork (1128.1 - 1128.1) <04F37E21-8AC6-35BF-8D2C-8ED954B09026> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff34dea000 -     0x7fff3526aff9  com.apple.CoreFoundation (6.9 - 1678.104) <DFD82191-CCB6-3664-B803-5717036927AC> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff361d4000 -     0x7fff361d4fff  com.apple.CoreServices (1069.28 - 1069.28) <45131B9C-99AA-340E-947F-E53F2C829F20> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff361d5000 -     0x7fff3625afff  com.apple.AE (838.1 - 838.1) <450501B5-0161-38D0-8986-90718DC3CAE5> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff3625b000 -     0x7fff3653cff7  com.apple.CoreServices.CarbonCore (1217 - 1217) <BE379206-99FA-30CD-8391-2708473A633F> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff3653d000 -     0x7fff3658affd  com.apple.DictionaryServices (1.2 - 323.6) <26B70C82-25BC-353A-858F-945B14C803A2> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff3658b000 -     0x7fff36593ff7  com.apple.CoreServices.FSEvents (1268.100.2 - 1268.100.2) <D9B9A080-C59D-3A0D-BC7B-A67137C317C4> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
    0x7fff36594000 -     0x7fff367cfff8  com.apple.LaunchServices (1069.28 - 1069.28) <07C85310-A894-344D-8181-CC1E68CA0C82> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff367d0000 -     0x7fff36868ff1  com.apple.Metadata (10.7.0 - 2076.7.2) <BB387ED8-F398-3016-B5FC-49202BDD182C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff36869000 -     0x7fff36896fff  com.apple.CoreServices.OSServices (1069.28 - 1069.28) <704B2084-2AF5-342E-A554-C0DE93229A3F> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff36897000 -     0x7fff368fefff  com.apple.SearchKit (1.4.1 - 1.4.1) <2C5E1D85-E8B1-3DC5-91B9-E3EDB48E9369> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff368ff000 -     0x7fff36923ff5  com.apple.coreservices.SharedFileList (131.4 - 131.4) <02DE0D56-E371-3EF5-9BC1-FA435451B412> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
    0x7fff3716a000 -     0x7fff37170fff  com.apple.DiskArbitration (2.7 - 2.7) <C5272B1C-C2D1-3A64-8116-3AC6FAB9E18B> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff374ac000 -     0x7fff37871ff7  com.apple.Foundation (6.9 - 1678.104) <69B915AD-CE6F-3958-8E3A-9D6050989AC2> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff37be5000 -     0x7fff37c89ff3  com.apple.framework.IOKit (2.0.2 - 1726.148.1) <0A9D244C-AECC-3D29-86DE-4F3B04F8DD25> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff3b5c2000 -     0x7fff3b5ceffe  com.apple.NetFS (6.0 - 4.0) <57CABC68-0585-3989-9161-157DBB544B82> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff3e1b1000 -     0x7fff3e1cdfff  com.apple.CFOpenDirectory (10.15 - 220.40.1) <7E6C88EB-3DD9-32B0-81FC-179552834FA9> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff3e1ce000 -     0x7fff3e1d9ffd  com.apple.OpenDirectory (10.15 - 220.40.1) <4A92D8D8-A9E5-3A9C-942F-28576F6BCDF5> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff41577000 -     0x7fff418c2ff9  com.apple.security (7.0 - 59306.140.11) <3B46FC31-708A-3526-B888-BB7C1A9FBD98> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff418c3000 -     0x7fff4194bffb  com.apple.securityfoundation (6.0 - 55236.60.1) <954B6238-07CB-3357-BC4F-AE827DD3F9E3> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff4197a000 -     0x7fff4197eff8  com.apple.xpc.ServiceManagement (1.0 - 1) <055976F5-69DF-3846-B7CC-D72FA09D1A98> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff4262a000 -     0x7fff426a4ff7  com.apple.SystemConfiguration (1.19 - 1.19) <D3494EFE-F392-379E-B21C-0F1B094ECE77> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff46614000 -     0x7fff466d9fe7  com.apple.APFS (1412.141.3 - 1412.141.3) <E1179E8D-56DC-3F20-9C5E-B960D608F053> /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS
    0x7fff483e4000 -     0x7fff483f3fd7  com.apple.AppleFSCompression (119.100.1 - 1.0) <466ABD77-2E52-36D1-8E39-77AE2CC61611> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
    0x7fff49bb6000 -     0x7fff49bbfff7  com.apple.coreservices.BackgroundTaskManagement (1.0 - 104) <A6877DAD-8F47-363C-983A-DC8DDE83B7B5> /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement
    0x7fff4c9c9000 -     0x7fff4c9d9ff3  com.apple.CoreEmoji (1.0 - 107.1) <7C2B3259-083B-31B8-BCDB-1BA360529936> /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji
    0x7fff4d01a000 -     0x7fff4d084ff0  com.apple.CoreNLP (1.0 - 213) <E70E2505-8078-324E-BAE1-01A2DA980E2C> /System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP
    0x7fff4df15000 -     0x7fff4df43ffd  com.apple.CSStore (1069.28 - 1069.28) <85962C9A-1EAC-3231-B387-86AFD07D5A79> /System/Library/PrivateFrameworks/CoreServicesStore.framework/Versions/A/CoreServicesStore
    0x7fff5a1a5000 -     0x7fff5a273ffd  com.apple.LanguageModeling (1.0 - 215.1) <C456087D-5B3A-390E-A665-862FA284C59C> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
    0x7fff5a274000 -     0x7fff5a2bcfff  com.apple.Lexicon-framework (1.0 - 72) <41F208B9-8255-3EC7-9673-FE0925D071D3> /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
    0x7fff5a2c3000 -     0x7fff5a2c8ff3  com.apple.LinguisticData (1.0 - 353.18) <3B92F249-4602-325F-984B-D2DE61EEE4E1> /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData
    0x7fff5b631000 -     0x7fff5b67dfff  com.apple.spotlight.metadata.utilities (1.0 - 2076.7.2) <80008658-61C6-32E6-823A-23A8CE5FF620> /System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities
    0x7fff5c134000 -     0x7fff5c13efff  com.apple.NetAuth (6.2 - 6.2) <B0C03C41-87A3-352B-B130-96E1A6F94B47> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff653cc000 -     0x7fff653dcff3  com.apple.TCC (1.0 - 1) <0DD6C92B-5648-3B0C-B318-B0981A7F9EF3> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff68879000 -     0x7fff6887bff3  com.apple.loginsupport (1.0 - 1) <540BB904-0A51-3B37-A436-969D24CD28AC> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
    0x7fff6b399000 -     0x7fff6b3cdfff  libCRFSuite.dylib (48) <5E5DE3CB-30DD-34DC-AEF8-FE8536A85E96> /usr/lib/libCRFSuite.dylib
    0x7fff6b3d0000 -     0x7fff6b3dafff  libChineseTokenizer.dylib (34) <7F0DA183-1796-315A-B44A-2C234C7C50BE> /usr/lib/libChineseTokenizer.dylib
    0x7fff6b466000 -     0x7fff6b468ff7  libDiagnosticMessagesClient.dylib (112) <C94F3B7B-1854-38EB-9778-834501C53B3F> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff6b93c000 -     0x7fff6b93dfff  libSystem.B.dylib (1281.100.1) <5A20AE6C-BF4D-3689-B7D2-19F0721F6375> /usr/lib/libSystem.B.dylib
    0x7fff6b9ca000 -     0x7fff6b9cbfff  libThaiTokenizer.dylib (3) <4F4ADE99-0D09-3223-B7C0-C407AB6DE8DC> /usr/lib/libThaiTokenizer.dylib
    0x7fff6b9e3000 -     0x7fff6b9f9fff  libapple_nghttp2.dylib (1.39.2) <07FEC48A-87CF-32A3-8194-FA70B361713A> /usr/lib/libapple_nghttp2.dylib
    0x7fff6ba2e000 -     0x7fff6baa0ff7  libarchive.2.dylib (72.140.2) <F9EA2883-5D5C-3FA6-B3F8-C5031BF88ABD> /usr/lib/libarchive.2.dylib
    0x7fff6bb3e000 -     0x7fff6bb3eff3  libauto.dylib (187) <B6124448-7690-34AE-8939-ED84AAC630CE> /usr/lib/libauto.dylib
    0x7fff6bc04000 -     0x7fff6bc14ffb  libbsm.0.dylib (60.100.1) <00BFFB9A-2FFE-3C24-896A-251BC61917FD> /usr/lib/libbsm.0.dylib
    0x7fff6bc15000 -     0x7fff6bc21fff  libbz2.1.0.dylib (44) <14CC4988-B6D4-3879-AFC2-9A0DDC6388DE> /usr/lib/libbz2.1.0.dylib
    0x7fff6bc22000 -     0x7fff6bc74fff  libc++.1.dylib (902.1) <59A8239F-C28A-3B59-B8FA-11340DC85EDC> /usr/lib/libc++.1.dylib
    0x7fff6bc75000 -     0x7fff6bc8affb  libc++abi.dylib (902) <E692F14F-C65E-303B-9921-BB7E97D77855> /usr/lib/libc++abi.dylib
    0x7fff6bc8b000 -     0x7fff6bc8bfff  libcharset.1.dylib (59) <72447768-9244-39AB-8E79-2FA14EC0AD33> /usr/lib/libcharset.1.dylib
    0x7fff6bc8c000 -     0x7fff6bc9dfff  libcmph.dylib (8) <E72A20DB-2E86-378D-A237-EB9A1370F989> /usr/lib/libcmph.dylib
    0x7fff6bc9e000 -     0x7fff6bcb5fd7  libcompression.dylib (87.1) <F7A596B4-FCCC-3181-AD01-CC985095113D> /usr/lib/libcompression.dylib
    0x7fff6bf8f000 -     0x7fff6bfa5ff7  libcoretls.dylib (167) <770A5B96-936E-34E3-B006-B1CEC299B5A5> /usr/lib/libcoretls.dylib
    0x7fff6bfa6000 -     0x7fff6bfa7fff  libcoretls_cfhelpers.dylib (167) <940BF370-FD0C-30A8-AA05-FF48DA44FA4C> /usr/lib/libcoretls_cfhelpers.dylib
    0x7fff6c6cd000 -     0x7fff6c6cdfff  libenergytrace.dylib (21) <162DFCC0-8F48-3DD0-914F-FA8653E27B26> /usr/lib/libenergytrace.dylib
    0x7fff6c6ce000 -     0x7fff6c6e8ff7  libexpat.1.dylib (19.60.3) <4FD5D517-B4C8-365B-A2C0-D998A624D5A0> /usr/lib/libexpat.1.dylib
    0x7fff6c6f6000 -     0x7fff6c6f8fff  libfakelink.dylib (149.1) <36146CB2-E6A5-37BB-9EE8-1B4034D8F3AD> /usr/lib/libfakelink.dylib
    0x7fff6c707000 -     0x7fff6c70cfff  libgermantok.dylib (24) <D2AE5AC0-EDCE-3216-B8C9-CF59292A545F> /usr/lib/libgermantok.dylib
    0x7fff6c717000 -     0x7fff6c807fff  libiconv.2.dylib (59) <18311A67-E4EF-3CC7-95B3-C0EDEE3A282F> /usr/lib/libiconv.2.dylib
    0x7fff6c808000 -     0x7fff6ca5ffff  libicucore.A.dylib (64261.1.1) <66CDEADD-1B4A-3AEA-951F-EA4DBF0BEB09> /usr/lib/libicucore.A.dylib
    0x7fff6ca79000 -     0x7fff6ca7afff  liblangid.dylib (133) <30CFC08C-EF36-3CF5-8AEA-C1CB070306B7> /usr/lib/liblangid.dylib
    0x7fff6ca7b000 -     0x7fff6ca93ff3  liblzma.5.dylib (16) <C131EF18-2CDD-3271-8A30-A8760D4FE166> /usr/lib/liblzma.5.dylib
    0x7fff6caab000 -     0x7fff6cb52ff7  libmecab.dylib (883.11) <0D5BFD01-D4A7-3C8D-AA69-C329C1A69792> /usr/lib/libmecab.dylib
    0x7fff6cb53000 -     0x7fff6cdb5ff1  libmecabra.dylib (883.11) <E31DE74D-1B88-377F-ACD3-D789D29C3AE7> /usr/lib/libmecabra.dylib
    0x7fff6d281000 -     0x7fff6d6fdff5  libnetwork.dylib (1880.120.5) <D5FA26D5-7CE4-33AF-B8A4-7867AA022D16> /usr/lib/libnetwork.dylib
    0x7fff6d79e000 -     0x7fff6d7d1fde  libobjc.A.dylib (787.1) <6DF81160-5E7F-3E31-AA1E-C875E3B98AF6> /usr/lib/libobjc.A.dylib
    0x7fff6d7e4000 -     0x7fff6d7e8fff  libpam.2.dylib (25.100.1) <0502F395-8EE6-3D2A-9239-06FD5622E19E> /usr/lib/libpam.2.dylib
    0x7fff6d7eb000 -     0x7fff6d821fff  libpcap.A.dylib (89.120.2) <86DAA475-805A-3E01-86C5-6CAE4D1D9BC6> /usr/lib/libpcap.A.dylib
    0x7fff6d919000 -     0x7fff6db03ff7  libsqlite3.dylib (308.6) <33057143-AB4E-348B-9650-98BC48866F34> /usr/lib/libsqlite3.dylib
    0x7fff6dd54000 -     0x7fff6dd57ffb  libutil.dylib (57.140.1) <6EC380B0-FBB1-3AE3-8A09-1851E128C70F> /usr/lib/libutil.dylib
    0x7fff6dd58000 -     0x7fff6dd65fff  libxar.1.dylib (425.7) <4EA640CD-74CE-3A79-ABB7-FFE98C9C1C3A> /usr/lib/libxar.1.dylib
    0x7fff6dd6b000 -     0x7fff6de4dff7  libxml2.2.dylib (33.14) <618BECE1-F1FD-3923-BA5C-58E5899D0CAA> /usr/lib/libxml2.2.dylib
    0x7fff6de51000 -     0x7fff6de79fff  libxslt.1.dylib (16.12) <42938E5F-5FE9-3265-8D10-1D1115BC5402> /usr/lib/libxslt.1.dylib
    0x7fff6de7a000 -     0x7fff6de8cff3  libz.1.dylib (76.0.1) <E3495313-4CFF-34C4-AD9F-5DE24F66E15D> /usr/lib/libz.1.dylib
    0x7fff6e73b000 -     0x7fff6e740ff3  libcache.dylib (83) <AF488D13-9E89-35E0-B078-BE37CC5B8586> /usr/lib/system/libcache.dylib
    0x7fff6e741000 -     0x7fff6e74cfff  libcommonCrypto.dylib (60165.120.1) <C7912BE5-993E-3581-B2A0-6AABDC8C5562> /usr/lib/system/libcommonCrypto.dylib
    0x7fff6e74d000 -     0x7fff6e754fff  libcompiler_rt.dylib (101.2) <49B8F644-5705-3F16-BBE0-6FFF9B17C36E> /usr/lib/system/libcompiler_rt.dylib
    0x7fff6e755000 -     0x7fff6e75eff7  libcopyfile.dylib (166.40.1) <3C481225-21E7-370A-A30E-0CCFDD64A92C> /usr/lib/system/libcopyfile.dylib
    0x7fff6e75f000 -     0x7fff6e7f1fdb  libcorecrypto.dylib (866.140.2) <E9AAA2A6-D0D4-328A-BEA2-4DC5E513BA30> /usr/lib/system/libcorecrypto.dylib
    0x7fff6e8fe000 -     0x7fff6e93eff0  libdispatch.dylib (1173.100.2) <CD9C059C-91D9-30E8-8926-5B9CD0D5D4F5> /usr/lib/system/libdispatch.dylib
    0x7fff6e93f000 -     0x7fff6e975fff  libdyld.dylib (750.7) <AB99C9EE-7127-3451-89AB-339F8F2CEE61> /usr/lib/system/libdyld.dylib
    0x7fff6e976000 -     0x7fff6e976ffb  libkeymgr.dylib (30) <DB3337BE-01CA-3425-BD0C-87774FC0CDC0> /usr/lib/system/libkeymgr.dylib
    0x7fff6e977000 -     0x7fff6e983ff3  libkxld.dylib (6153.141.66) <1058F62C-5E2D-388B-B885-CA838379901D> /usr/lib/system/libkxld.dylib
    0x7fff6e984000 -     0x7fff6e984ff7  liblaunch.dylib (1738.140.3) <E2CFD17D-F36C-3734-8F37-16798799EF9E> /usr/lib/system/liblaunch.dylib
    0x7fff6e985000 -     0x7fff6e98aff7  libmacho.dylib (959.0.1) <AA613A9C-961A-3B67-B696-4622FA59FC4E> /usr/lib/system/libmacho.dylib
    0x7fff6e98b000 -     0x7fff6e98dff3  libquarantine.dylib (110.40.6) <6CADF28C-2F20-3FA5-9FB9-49EAB0FD2489> /usr/lib/system/libquarantine.dylib
    0x7fff6e98e000 -     0x7fff6e98fff7  libremovefile.dylib (48) <7C7EFC79-BD24-33EF-B073-06AED234593E> /usr/lib/system/libremovefile.dylib
    0x7fff6e990000 -     0x7fff6e9a7ff3  libsystem_asl.dylib (377.60.4) <BDE4E1E6-BB8F-3EAC-A9CD-53B9FBD96554> /usr/lib/system/libsystem_asl.dylib
    0x7fff6e9a8000 -     0x7fff6e9a8ff7  libsystem_blocks.dylib (74) <0D53847E-AF5F-3ACF-B51F-A15DEA4DEC58> /usr/lib/system/libsystem_blocks.dylib
    0x7fff6e9a9000 -     0x7fff6ea30fff  libsystem_c.dylib (1353.100.4) <BCD3F031-4A3F-32CF-AB9A-D6EE7A7499D4> /usr/lib/system/libsystem_c.dylib
    0x7fff6ea31000 -     0x7fff6ea34ffb  libsystem_configuration.dylib (1061.141.2) <393137B7-3631-3450-B6F4-95EECD3ADDFF> /usr/lib/system/libsystem_configuration.dylib
    0x7fff6ea35000 -     0x7fff6ea38fff  libsystem_coreservices.dylib (114.1) <72857ADA-AA97-398B-B089-F50B2E89064B> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff6ea39000 -     0x7fff6ea41fff  libsystem_darwin.dylib (1353.100.4) <19242BF1-BAF6-3DF0-AAD3-93E3E0870DBE> /usr/lib/system/libsystem_darwin.dylib
    0x7fff6ea42000 -     0x7fff6ea49fff  libsystem_dnssd.dylib (1096.100.3) <EBB4C2C2-E031-3094-B40A-E67BF261D295> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff6ea4a000 -     0x7fff6ea4bffb  libsystem_featureflags.dylib (17) <29FD922A-EC2C-3F25-BCCC-B58D716E60EC> /usr/lib/system/libsystem_featureflags.dylib
    0x7fff6ea4c000 -     0x7fff6ea99ff7  libsystem_info.dylib (538.1) <D057695A-F11C-3863-971C-EA1EBF8662B1> /usr/lib/system/libsystem_info.dylib
    0x7fff6ea9a000 -     0x7fff6eac6ff7  libsystem_kernel.dylib (6153.141.66) <FF081F3A-F653-3F8F-9E64-9F34792EEDB3> /usr/lib/system/libsystem_kernel.dylib
    0x7fff6eac7000 -     0x7fff6eb0efff  libsystem_m.dylib (3178) <00F331F1-0D09-39B3-8736-1FE90E64E903> /usr/lib/system/libsystem_m.dylib
    0x7fff6eb0f000 -     0x7fff6eb36fff  libsystem_malloc.dylib (283.100.6) <8549294E-4C53-36EB-99F3-584A7393D8D5> /usr/lib/system/libsystem_malloc.dylib
    0x7fff6eb37000 -     0x7fff6eb44ffb  libsystem_networkextension.dylib (1095.140.2) <F06C65C5-2CBE-313C-96E1-A09240F9FE57> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff6eb45000 -     0x7fff6eb4eff7  libsystem_notify.dylib (241.100.2) <FA22F928-D91B-3AA5-96BB-3186AC0FB264> /usr/lib/system/libsystem_notify.dylib
    0x7fff6eb4f000 -     0x7fff6eb57fef  libsystem_platform.dylib (220.100.1) <009A7C1F-313A-318E-B9F2-30F4C06FEA5C> /usr/lib/system/libsystem_platform.dylib
    0x7fff6eb58000 -     0x7fff6eb62fff  libsystem_pthread.dylib (416.100.3) <62CB1A98-0B8F-31E7-A02B-A1139927F61D> /usr/lib/system/libsystem_pthread.dylib
    0x7fff6eb63000 -     0x7fff6eb67ff3  libsystem_sandbox.dylib (1217.141.9) <75C7915D-19C4-3F32-B320-394BA4B18655> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff6eb68000 -     0x7fff6eb6afff  libsystem_secinit.dylib (62.100.2) <F80872AA-E1FD-3D7E-8729-467656EC6561> /usr/lib/system/libsystem_secinit.dylib
    0x7fff6eb6b000 -     0x7fff6eb72ffb  libsystem_symptoms.dylib (1238.120.2) <702D0910-5C34-3D43-9631-8BD215DE4FE1> /usr/lib/system/libsystem_symptoms.dylib
    0x7fff6eb73000 -     0x7fff6eb89ff2  libsystem_trace.dylib (1147.120.1) <BC141783-66D9-3137-A783-211B38E49ADB> /usr/lib/system/libsystem_trace.dylib
    0x7fff6eb8b000 -     0x7fff6eb90ff7  libunwind.dylib (35.4) <42B7B509-BAFE-365B-893A-72414C92F5BF> /usr/lib/system/libunwind.dylib
    0x7fff6eb91000 -     0x7fff6ebc6ffe  libxpc.dylib (1738.140.3) <8DA7D88F-AE2F-3BCF-8426-8D041E57A9AA> /usr/lib/system/libxpc.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 3223908
    thread_create: 0
    thread_set_state: 225

VM Region Summary:
ReadOnly portion of Libraries: Total=499.6M resident=0K(0%) swapped_out_or_unallocated=499.6M(100%)
Writable regions: Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Kernel Alloc Once                    8K        1 
MALLOC                           150.1M       37 
MALLOC guard page                   24K        4 
MALLOC_MEDIUM (reserved)         960.0M        8         reserved VM address space (unallocated)
STACK GUARD                          4K        1 
Stack                             16.0M        1 
VM_ALLOCATE                       22.0M       23 
__DATA                            8608K      168 
__DATA_CONST                      1508K       40 
__LINKEDIT                       393.0M       82 
__OBJC_RO                         32.3M        1 
__OBJC_RW                         1908K        2 
__TEXT                           106.9M      165 

@julian-smith-artifex-com
Copy link
Collaborator

I'm unable to reproduce this problem with MacOS arm64, Python-3.12.3 and PyMuPDF-1.24.4. sw_vers says this is 13.5.2, uname -a says Darwin Kernel Version 22.6.0.

All released PyMuPDF wheels are fully tested on the Github machine on which they are built, so it's possible that there's a problem with older releases of MacOS.

@flyingpang
Copy link

flyingpang commented May 30, 2024

I got similar error when I run below code:

import pymupdf
with pymupdf.open("example.pdf") as pdf:
Process:               Python [52333]
Path:                  /Library/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.12.2 (3.12.2)
Code Type:             X86-64 (Native)
Parent Process:        zsh [42127]
Responsible:           Terminal [33423]
User ID:               501

Date/Time:             2024-05-30 13:56:20.565 +0800
OS Version:            Mac OS X 10.15.7 (19H2026)
Report Version:        12
Anonymous UUID:        41C4C55C-4C40-8107-2287-D12EDCC44E0F

Sleep/Wake UUID:       865E905D-61F3-47B3-99BB-7861CD8FA5A5

Time Awake Since Boot: 1100000 seconds
Time Since Wake:       1200 seconds

System Integrity Protection: disabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       EXC_I386_GPFLT
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [52333]

Application Specific Information:
/Users/Flyingpang/py312testenv/lib/python3.12/site-packages/pymupdf/libmupdfcpp.so

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libmupdfcpp.so                	0x0000000109d12000 0x109d12000 + 0
1   libmupdf.dylib                	0x00000001084d980f fz_new_store_context + 31
2   libmupdf.dylib                	0x000000010841d0e6 fz_new_context_imp + 406
3   libmupdfcpp.so                	0x0000000109d8af39 mupdf::internal_state::reinit(bool) + 361
4   libmupdfcpp.so                	0x0000000109d8b10a mupdf::internal_state::internal_state() + 282
5   libmupdfcpp.so                	0x0000000109d8b382 _GLOBAL__sub_I_internal.cpp + 50
6   dyld                          	0x0000000105fbb353 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 535
7   dyld                          	0x0000000105fbb75e ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
8   dyld                          	0x0000000105fb617b ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 493
9   dyld                          	0x0000000105fb60e6 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 344
10  dyld                          	0x0000000105fb4234 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 188
11  dyld                          	0x0000000105fb42d4 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 82
12  dyld                          	0x0000000105fa5ef2 dyld::runInitializers(ImageLoader*) + 82
13  dyld                          	0x0000000105fb001b dlopen_internal + 609
14  libdyld.dylib                 	0x00007fff720ced8a dlopen + 171
15  org.python.python             	0x000000010633760b _PyImport_FindSharedFuncptr + 139
16  org.python.python             	0x00000001062d8115 _PyImport_LoadDynamicModuleWithSpec + 549
17  org.python.python             	0x00000001062d71c9 _imp_create_dynamic + 265
18  org.python.python             	0x00000001061a2c5a cfunction_vectorcall_FASTCALL + 106
19  org.python.python             	0x000000010628c619 _PyEval_EvalFrameDefault + 64729
20  org.python.python             	0x000000010613510a object_vacall + 426
21  org.python.python             	0x0000000106134f0a PyObject_CallMethodObjArgs + 234
22  org.python.python             	0x00000001062d3aa1 PyImport_ImportModuleLevelObject + 1329
23  org.python.python             	0x0000000106276154 builtin___import__ + 196
24  org.python.python             	0x00000001061a2d42 cfunction_vectorcall_FASTCALL_KEYWORDS + 98
25  org.python.python             	0x000000010628c619 _PyEval_EvalFrameDefault + 64729
26  org.python.python             	0x000000010613510a object_vacall + 426
27  org.python.python             	0x0000000106134f0a PyObject_CallMethodObjArgs + 234
28  org.python.python             	0x00000001062d38c5 PyImport_ImportModuleLevelObject + 853
29  org.python.python             	0x0000000106286c80 _PyEval_EvalFrameDefault + 41792
30  org.python.python             	0x000000010627c6c5 PyEval_EvalCode + 309
31  org.python.python             	0x0000000106277d0f builtin_exec + 527
32  org.python.python             	0x00000001061a2d42 cfunction_vectorcall_FASTCALL_KEYWORDS + 98
33  org.python.python             	0x000000010628c619 _PyEval_EvalFrameDefault + 64729
34  org.python.python             	0x000000010613510a object_vacall + 426
35  org.python.python             	0x0000000106134f0a PyObject_CallMethodObjArgs + 234
36  org.python.python             	0x00000001062d3aa1 PyImport_ImportModuleLevelObject + 1329
37  org.python.python             	0x0000000106276154 builtin___import__ + 196
38  org.python.python             	0x00000001061a2d42 cfunction_vectorcall_FASTCALL_KEYWORDS + 98
39  org.python.python             	0x000000010628c619 _PyEval_EvalFrameDefault + 64729
40  org.python.python             	0x000000010613510a object_vacall + 426
41  org.python.python             	0x0000000106134f0a PyObject_CallMethodObjArgs + 234
42  org.python.python             	0x00000001062d38c5 PyImport_ImportModuleLevelObject + 853
43  org.python.python             	0x0000000106286c80 _PyEval_EvalFrameDefault + 41792
44  org.python.python             	0x000000010627c6c5 PyEval_EvalCode + 309
45  org.python.python             	0x0000000106277d0f builtin_exec + 527
46  org.python.python             	0x00000001061a2d42 cfunction_vectorcall_FASTCALL_KEYWORDS + 98
47  org.python.python             	0x000000010628c619 _PyEval_EvalFrameDefault + 64729
48  org.python.python             	0x000000010613510a object_vacall + 426
49  org.python.python             	0x0000000106134f0a PyObject_CallMethodObjArgs + 234
50  org.python.python             	0x00000001062d3aa1 PyImport_ImportModuleLevelObject + 1329
51  org.python.python             	0x0000000106286c80 _PyEval_EvalFrameDefault + 41792
52  org.python.python             	0x000000010627c6c5 PyEval_EvalCode + 309
53  org.python.python             	0x000000010630a7ee run_mod + 158
54  org.python.python             	0x00000001063098b7 pyrun_file + 151
55  org.python.python             	0x00000001063088c0 _PyRun_SimpleFileObject + 304
56  org.python.python             	0x0000000106308500 _PyRun_AnyFileObject + 160
57  org.python.python             	0x0000000106338882 pymain_run_file_obj + 226
58  org.python.python             	0x00000001063385f9 pymain_run_file + 89
59  org.python.python             	0x0000000106337f0e Py_RunMain + 1934
60  org.python.python             	0x0000000106338143 pymain_main + 35
61  org.python.python             	0x00000001063381ca Py_BytesMain + 42
62  libdyld.dylib                 	0x00007fff720e3cc9 start + 1

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000040  rbx: 0x00007fa47bdee000  rcx: 0x00007fa47bdee118  rdx: 0x0000000000000000
  rdi: 0x0000000109da6a48  rsi: 0x0000000000000000  rbp: 0x00007ffee9e40320  rsp: 0x00007ffee9e402d8
   r8: 0x0003f8ea335def6c   r9: 0x00000000003f3feb  r10: 0x0000000000000000  r11: 0x0000000000000000
  r12: 0x0000000000000040  r13: 0x0000000000000000  r14: 0x00007fa47bdee000  r15: 0x0000000000000001
  rip: 0x0000000109d12000  rfl: 0x0000000000010246  cr2: 0x00000001084a8c40
  
Logical CPU:     0
Error Code:      0x00000000
Trap Number:     13


Binary Images:
       0x105dbb000 -        0x105dbeff3 +org.python.python (3.12.2 - 3.12.2) <C6E4FF91-6DE6-32BE-B23A-7E530C290842> /Library/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python
       0x105ee5000 -        0x105eecffb +_csv.cpython-312-darwin.so (0) <69F1898D-F463-33A7-B015-9E8033EEE07C> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_csv.cpython-312-darwin.so
       0x105ef9000 -        0x105f04ffb +math.cpython-312-darwin.so (0) <72D9BA1A-8974-3990-98CD-EDF8C906294A> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/math.cpython-312-darwin.so
       0x105f15000 -        0x105f1cfff +binascii.cpython-312-darwin.so (0) <7C821E6C-D613-31B7-AC70-A30EC189128E> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/binascii.cpython-312-darwin.so
       0x105f29000 -        0x105f30ff7 +zlib.cpython-312-darwin.so (0) <97A28247-1F4F-361C-988F-CE549084287B> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/zlib.cpython-312-darwin.so
       0x105f41000 -        0x105f44ff7 +_bz2.cpython-312-darwin.so (0) <DE531DB6-63E5-3B22-83DD-B90C59EE4170> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_bz2.cpython-312-darwin.so
       0x105f51000 -        0x105f80ff7 +_lzma.cpython-312-darwin.so (0) <C1672027-718B-358A-83D8-1985B276D66C> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_lzma.cpython-312-darwin.so
       0x105fa0000 -        0x106032267  dyld (750.7) <9F48F7F8-94D0-3793-99B7-DDEF657EF956> /usr/lib/dyld
       0x1060a6000 -        0x1064bdff7 +org.python.python (3.12.2, [c] 2001-2023 Python Software Foundation. - 3.12.2) <94BE4E92-947F-35A1-92EF-FD43AC4EFC8A> /Library/Frameworks/Python.framework/Versions/3.12/Python
       0x106a6a000 -        0x106a71ffb +_struct.cpython-312-darwin.so (0) <FA34F24C-8562-3BD9-B33C-1115B24EBCBA> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_struct.cpython-312-darwin.so
       0x106b82000 -        0x106b85ff7 +_opcode.cpython-312-darwin.so (0) <14390AD8-31B3-301C-8E7C-BC5790E5D0D6> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_opcode.cpython-312-darwin.so
       0x106b92000 -        0x106b95fff +_bisect.cpython-312-darwin.so (0) <432515DB-D2C0-30F0-898F-A2DC5A535C16> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_bisect.cpython-312-darwin.so
       0x106ba2000 -        0x106ba5ff7 +_random.cpython-312-darwin.so (0) <44B4DBCE-B3C8-3D46-B049-B956F3901364> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_random.cpython-312-darwin.so
       0x106bb2000 -        0x106bbdfff +_sha2.cpython-312-darwin.so (0) <4C9176AE-388D-3771-ACC3-889ED49B1193> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_sha2.cpython-312-darwin.so
       0x106cca000 -        0x106cd9ff7 +_socket.cpython-312-darwin.so (0) <0A3D1405-84CB-3625-A6C8-D05A5CF711BF> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_socket.cpython-312-darwin.so
       0x106cea000 -        0x106cf1fff +select.cpython-312-darwin.so (0) <ED5A26A6-5744-3A36-8FC6-B8DE53011172> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/select.cpython-312-darwin.so
       0x106d02000 -        0x106d0dff3 +array.cpython-312-darwin.so (0) <85C49E8F-376E-36BB-B2D5-AAF51F681C0C> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/array.cpython-312-darwin.so
       0x106d1e000 -        0x106d31fff +_datetime.cpython-312-darwin.so (0) <4B1CE6F2-D5B9-35FF-8F0C-68C5C8CA888B> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_datetime.cpython-312-darwin.so
       0x106f46000 -        0x106f49ffb +md.cpython-312-darwin.so (0) <E3139399-A759-32F4-81B9-C37215734648> /Users/USER/*/md.cpython-312-darwin.so
       0x106f52000 -        0x106f75fff +md__mypyc.cpython-312-darwin.so (0) <7B12A7E8-3AA9-3F99-A7C7-5638D7E16FD1> /Users/USER/*/md__mypyc.cpython-312-darwin.so
       0x106f8e000 -        0x10709dff3 +unicodedata.cpython-312-darwin.so (0) <C547110A-B8D7-3A50-937E-A1D7AEA3358A> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/unicodedata.cpython-312-darwin.so
       0x1070ae000 -        0x1070b5ff3 +_multibytecodec.cpython-312-darwin.so (0) <83C05D8A-FC8C-3CE0-9ECC-894D2883F26A> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_multibytecodec.cpython-312-darwin.so
       0x1070c6000 -        0x1070cdff7 +_hashlib.cpython-312-darwin.so (0) <26BCDCB4-3A07-3723-ABBE-7B9C9587BB82> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_hashlib.cpython-312-darwin.so
       0x1070de000 -        0x1073d594b +libcrypto.3.dylib (0) <38518696-57CA-3156-92D3-7BB887DEDE46> /Library/Frameworks/Python.framework/Versions/3.12/lib/libcrypto.3.dylib
       0x1074f6000 -        0x1074fdfff +_blake2.cpython-312-darwin.so (0) <F514566C-EC08-344E-B34F-7B6660CB6A7E> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_blake2.cpython-312-darwin.so
       0x10750a000 -        0x107511ff3 +_json.cpython-312-darwin.so (0) <DAF0243C-6A05-3BED-8FB4-0890D0DF96A8> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_json.cpython-312-darwin.so
       0x10751e000 -        0x107521ffb +_heapq.cpython-312-darwin.so (0) <AE570127-23E3-3E4F-BA41-A4ED12B49B44> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_heapq.cpython-312-darwin.so
       0x10762e000 -        0x107649fff +_pickle.cpython-312-darwin.so (0) <70AA7CB6-8945-3427-BAD1-B1475951A4C1> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_pickle.cpython-312-darwin.so
       0x10775e000 -        0x107e4962f +_rust.abi3.so (0) <E1233FE0-72DA-3C2C-A9C0-BE5265C14C79> /Users/USER/*/_rust.abi3.so
       0x108066000 -        0x108089ff7 +_cffi_backend.cpython-312-darwin.so (0) <ECC9DF56-B185-3229-8684-05E81E94780E> /Users/USER/*/_cffi_backend.cpython-312-darwin.so
       0x1080a2000 -        0x1080a5fff +fcntl.cpython-312-darwin.so (0) <6D5EEEBF-3983-3D72-86CA-24C80BA59769> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/fcntl.cpython-312-darwin.so
       0x1080b2000 -        0x1080b5ff3 +_posixsubprocess.cpython-312-darwin.so (0) <6E9240D2-C660-32FF-8BA0-4075028C59B6> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_posixsubprocess.cpython-312-darwin.so
       0x1082c2000 -        0x1082c5fff +grp.cpython-312-darwin.so (0) <36E14B83-6E68-328A-8F43-13FD9AE88045> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/grp.cpython-312-darwin.so
       0x1083d2000 -        0x1083f1ff3 +_extra.cpython-312-darwin.so (0) <16A3C9A8-A78E-3EDD-B1A0-53118F33098F> /Users/USER/*/_extra.cpython-312-darwin.so
       0x108406000 -        0x109bf9fff +libmupdf.dylib (0) <E7B598C8-A9C6-3CAF-ADA5-D0EC120E9221> /Users/USER/*/libmupdf.dylib
       0x109d12000 -        0x109da1ff7 +libmupdfcpp.so (0) <19FB7BFA-60CA-3F4E-B8BD-5543A6D7EADE> /Users/USER/*/libmupdfcpp.so
    0x7fff2b4ab000 -     0x7fff2b4baff7  libSimplifiedChineseConverter.dylib (76) <35C6E7B3-6F4E-31FA-B329-EE1986FFCE27> /System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib
    0x7fff383db000 -     0x7fff3885bff9  com.apple.CoreFoundation (6.9 - 1678.104) <DFD82191-CCB6-3664-B803-5717036927AC> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff6ebf0000 -     0x7fff6ebf2ff7  libDiagnosticMessagesClient.dylib (112) <C94F3B7B-1854-38EB-9778-834501C53B3F> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff6f0c6000 -     0x7fff6f0c7fff  libSystem.B.dylib (1281.100.1) <5A20AE6C-BF4D-3689-B7D2-19F0721F6375> /usr/lib/libSystem.B.dylib
    0x7fff6f39f000 -     0x7fff6f3abfff  libbz2.1.0.dylib (44) <14CC4988-B6D4-3879-AFC2-9A0DDC6388DE> /usr/lib/libbz2.1.0.dylib
    0x7fff6f3ac000 -     0x7fff6f3fefff  libc++.1.dylib (902.1) <59A8239F-C28A-3B59-B8FA-11340DC85EDC> /usr/lib/libc++.1.dylib
    0x7fff6f3ff000 -     0x7fff6f414ffb  libc++abi.dylib (902) <E692F14F-C65E-303B-9921-BB7E97D77855> /usr/lib/libc++abi.dylib
    0x7fff6f415000 -     0x7fff6f415fff  libcharset.1.dylib (59) <72447768-9244-39AB-8E79-2FA14EC0AD33> /usr/lib/libcharset.1.dylib
    0x7fff6fe80000 -     0x7fff6fe82fff  libfakelink.dylib (149.1) <36146CB2-E6A5-37BB-9EE8-1B4034D8F3AD> /usr/lib/libfakelink.dylib
    0x7fff6fe83000 -     0x7fff6fe88f57  libffi.dylib (26) <6068BAD9-0878-3491-97E4-6CF6BC813C2E> /usr/lib/libffi.dylib
    0x7fff6fea1000 -     0x7fff6ff91fff  libiconv.2.dylib (59) <18311A67-E4EF-3CC7-95B3-C0EDEE3A282F> /usr/lib/libiconv.2.dylib
    0x7fff6ff92000 -     0x7fff701e9fff  libicucore.A.dylib (64261.1.1) <66CDEADD-1B4A-3AEA-951F-EA4DBF0BEB09> /usr/lib/libicucore.A.dylib
    0x7fff70f28000 -     0x7fff70f5bfde  libobjc.A.dylib (787.1) <6DF81160-5E7F-3E31-AA1E-C875E3B98AF6> /usr/lib/libobjc.A.dylib
    0x7fff71604000 -     0x7fff71616ff3  libz.1.dylib (76.0.1) <E3495313-4CFF-34C4-AD9F-5DE24F66E15D> /usr/lib/libz.1.dylib
    0x7fff71ec5000 -     0x7fff71ecaff3  libcache.dylib (83) <AF488D13-9E89-35E0-B078-BE37CC5B8586> /usr/lib/system/libcache.dylib
    0x7fff71ecb000 -     0x7fff71ed6fff  libcommonCrypto.dylib (60165.120.1) <C7912BE5-993E-3581-B2A0-6AABDC8C5562> /usr/lib/system/libcommonCrypto.dylib
    0x7fff71ed7000 -     0x7fff71edefff  libcompiler_rt.dylib (101.2) <49B8F644-5705-3F16-BBE0-6FFF9B17C36E> /usr/lib/system/libcompiler_rt.dylib
    0x7fff71edf000 -     0x7fff71ee8ff7  libcopyfile.dylib (166.40.1) <3C481225-21E7-370A-A30E-0CCFDD64A92C> /usr/lib/system/libcopyfile.dylib
    0x7fff71ee9000 -     0x7fff71f7bfdb  libcorecrypto.dylib (866.140.2) <E9AAA2A6-D0D4-328A-BEA2-4DC5E513BA30> /usr/lib/system/libcorecrypto.dylib
    0x7fff72088000 -     0x7fff720c8ff0  libdispatch.dylib (1173.100.2) <CD9C059C-91D9-30E8-8926-5B9CD0D5D4F5> /usr/lib/system/libdispatch.dylib
    0x7fff720c9000 -     0x7fff720fffff  libdyld.dylib (750.7) <AB99C9EE-7127-3451-89AB-339F8F2CEE61> /usr/lib/system/libdyld.dylib
    0x7fff72100000 -     0x7fff72100ffb  libkeymgr.dylib (30) <DB3337BE-01CA-3425-BD0C-87774FC0CDC0> /usr/lib/system/libkeymgr.dylib
    0x7fff7210e000 -     0x7fff7210eff7  liblaunch.dylib (1738.140.3) <E2CFD17D-F36C-3734-8F37-16798799EF9E> /usr/lib/system/liblaunch.dylib
    0x7fff7210f000 -     0x7fff72114ff7  libmacho.dylib (959.0.1) <AA613A9C-961A-3B67-B696-4622FA59FC4E> /usr/lib/system/libmacho.dylib
    0x7fff72115000 -     0x7fff72117ff3  libquarantine.dylib (110.40.6) <6CADF28C-2F20-3FA5-9FB9-49EAB0FD2489> /usr/lib/system/libquarantine.dylib
    0x7fff72118000 -     0x7fff72119ff7  libremovefile.dylib (48) <7C7EFC79-BD24-33EF-B073-06AED234593E> /usr/lib/system/libremovefile.dylib
    0x7fff7211a000 -     0x7fff72131ff3  libsystem_asl.dylib (377.60.4) <BDE4E1E6-BB8F-3EAC-A9CD-53B9FBD96554> /usr/lib/system/libsystem_asl.dylib
    0x7fff72132000 -     0x7fff72132ff7  libsystem_blocks.dylib (74) <0D53847E-AF5F-3ACF-B51F-A15DEA4DEC58> /usr/lib/system/libsystem_blocks.dylib
    0x7fff72133000 -     0x7fff721bafff  libsystem_c.dylib (1353.100.4) <BCD3F031-4A3F-32CF-AB9A-D6EE7A7499D4> /usr/lib/system/libsystem_c.dylib
    0x7fff721bb000 -     0x7fff721beffb  libsystem_configuration.dylib (1061.141.2) <393137B7-3631-3450-B6F4-95EECD3ADDFF> /usr/lib/system/libsystem_configuration.dylib
    0x7fff721bf000 -     0x7fff721c2fff  libsystem_coreservices.dylib (114.1) <72857ADA-AA97-398B-B089-F50B2E89064B> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff721c3000 -     0x7fff721cbfff  libsystem_darwin.dylib (1353.100.4) <19242BF1-BAF6-3DF0-AAD3-93E3E0870DBE> /usr/lib/system/libsystem_darwin.dylib
    0x7fff721cc000 -     0x7fff721d3fff  libsystem_dnssd.dylib (1096.100.3) <EBB4C2C2-E031-3094-B40A-E67BF261D295> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff721d4000 -     0x7fff721d5ffb  libsystem_featureflags.dylib (17) <29FD922A-EC2C-3F25-BCCC-B58D716E60EC> /usr/lib/system/libsystem_featureflags.dylib
    0x7fff721d6000 -     0x7fff72223ff7  libsystem_info.dylib (538.1) <D057695A-F11C-3863-971C-EA1EBF8662B1> /usr/lib/system/libsystem_info.dylib
    0x7fff72224000 -     0x7fff72250ff7  libsystem_kernel.dylib (6153.141.66) <FF081F3A-F653-3F8F-9E64-9F34792EEDB3> /usr/lib/system/libsystem_kernel.dylib
    0x7fff72251000 -     0x7fff72298fff  libsystem_m.dylib (3178) <00F331F1-0D09-39B3-8736-1FE90E64E903> /usr/lib/system/libsystem_m.dylib
    0x7fff72299000 -     0x7fff722c0fff  libsystem_malloc.dylib (283.100.6) <8549294E-4C53-36EB-99F3-584A7393D8D5> /usr/lib/system/libsystem_malloc.dylib
    0x7fff722c1000 -     0x7fff722ceffb  libsystem_networkextension.dylib (1095.140.2) <F06C65C5-2CBE-313C-96E1-A09240F9FE57> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff722cf000 -     0x7fff722d8ff7  libsystem_notify.dylib (241.100.2) <FA22F928-D91B-3AA5-96BB-3186AC0FB264> /usr/lib/system/libsystem_notify.dylib
    0x7fff722d9000 -     0x7fff722e1fef  libsystem_platform.dylib (220.100.1) <009A7C1F-313A-318E-B9F2-30F4C06FEA5C> /usr/lib/system/libsystem_platform.dylib
    0x7fff722e2000 -     0x7fff722ecfff  libsystem_pthread.dylib (416.100.3) <62CB1A98-0B8F-31E7-A02B-A1139927F61D> /usr/lib/system/libsystem_pthread.dylib
    0x7fff722ed000 -     0x7fff722f1ff3  libsystem_sandbox.dylib (1217.141.9) <75C7915D-19C4-3F32-B320-394BA4B18655> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff722f2000 -     0x7fff722f4fff  libsystem_secinit.dylib (62.100.2) <F80872AA-E1FD-3D7E-8729-467656EC6561> /usr/lib/system/libsystem_secinit.dylib
    0x7fff722f5000 -     0x7fff722fcffb  libsystem_symptoms.dylib (1238.120.2) <702D0910-5C34-3D43-9631-8BD215DE4FE1> /usr/lib/system/libsystem_symptoms.dylib
    0x7fff722fd000 -     0x7fff72313ff2  libsystem_trace.dylib (1147.120.1) <BC141783-66D9-3137-A783-211B38E49ADB> /usr/lib/system/libsystem_trace.dylib
    0x7fff72315000 -     0x7fff7231aff7  libunwind.dylib (35.4) <42B7B509-BAFE-365B-893A-72414C92F5BF> /usr/lib/system/libunwind.dylib
    0x7fff7231b000 -     0x7fff72350ffe  libxpc.dylib (1738.140.3) <8DA7D88F-AE2F-3BCF-8426-8D041E57A9AA> /usr/lib/system/libxpc.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 1018159
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=449.4M resident=0K(0%) swapped_out_or_unallocated=449.4M(100%)
Writable regions: Total=95.8M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=95.8M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Kernel Alloc Once                    8K        1 
MALLOC                            66.9M       35 
MALLOC guard page                   16K        4 
MALLOC_LARGE (reserved)            384K        2         reserved VM address space (unallocated)
STACK GUARD                          4K        1 
Stack                             16.0M        2 
VM_ALLOCATE                       12.0M       13 
__DATA                            5699K       91 
__DATA_CONST                        20K        1 
__LINKEDIT                       395.9M       65 
__OBJC_RO                         32.3M        1 
__OBJC_RW                         1908K        2 
__TEXT                            53.7M       86 
__UNICODE                          564K        1 
shared memory                       12K        3 
===========                     =======  ======= 
TOTAL                            585.2M      308 
TOTAL, minus reserved VM space   584.8M      308 

Model: MacBookPro11,5, BootROM 430.140.3.0.0, 4 processors, Quad-Core Intel Core i7, 2.5 GHz, 16 GB, SMC 2.30f2
Graphics: kHW_AMDRadeonR9M370XItem, AMD Radeon R9 M370X, spdisplays_pcie_device, 2 GB
Graphics: kHW_IntelIrisProItem, Intel Iris Pro, spdisplays_builtin
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x152), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1615.7)
Bluetooth: Version 7.0.6f8, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM0512G, 500.28 GB
USB Device: USB 3.0 Bus
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1

PyMuPDF version
1.24.4

Operating system
MacOS 10.15.7

Python version
3.12.2

@julian-smith-artifex-com
Copy link
Collaborator

I've managed to get access to an older MacOS machine and have reproduced the problem.

I don't yet know why things are going wrong, and am unable to build PyMuPDF/MuPDF locally, so it might take a while to figure things out.

@JorjMcKie JorjMcKie changed the title PyMuPDF 1.24.4 causes "segmentation fault" under Python 3.12 PyMuPDF 1.24.4 causes "segmentation fault" under Python 3.12 and old MAC OS May 30, 2024
@workflowsguy
Copy link
Author

workflowsguy commented May 30, 2024

I've managed to get access to an older MacOS machine and have reproduced the problem.

I don't yet know why things are going wrong, and am unable to build PyMuPDF/MuPDF locally, so it might take a while to figure things out.

At the same time this issue occurred, there was also an error in the then latest version of the rapidfuzz package. As I understand, this was caused by a change in the macOS compile/build toolchain. The author was able to build a new version that works again under macOS 10.13. Maybe the explanations he gave can be of help here?

@cdx111
Copy link

cdx111 commented Jun 5, 2024

same problem

@julian-smith-artifex-com
Copy link
Collaborator

I've managed to get access to an older MacOS machine and have reproduced the problem.
I don't yet know why things are going wrong, and am unable to build PyMuPDF/MuPDF locally, so it might take a while to figure things out.

At the same time this issue occurred, there was also an error in the then latest version of the rapidfuzz package. As I understand, this was caused by a change in the macOS compile/build toolchain. The author was able to build a new version that works again under macOS 10.13. Maybe the explanations he gave can be of help here?

Thanks for mentioning this.

I'm reluctant to try to replicate rapidfuzz's fix (disable avx2) because the PyMuPDF build is already pretty complicated when trying to build all the various wheels on Github, and i have a rather long list of other things to work on. Also we tend to run out of space on pypi.org so creating yet another set of platform-specific wheels isn't ideal.

The underlying problem seems to be a bug in old MacOS systems, so the correct thing to do is fix these systems, not for a multitude of software packages to each work around the problem.

So i'm going to put this issue on hold for now. I'll keep it on my todo list, so it's possible i might have time to try again in the future.

@lmkhuyen
Copy link

lmkhuyen commented Jul 6, 2024

I used faulthandler module to trace the problem, and here is the log (Python3.12, PyMuPDF1.2.7)


Fatal Python error: Segmentation fault

Current thread 0x00000001112e1dc0 (most recent call first):
 File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
 File "<frozen importlib._bootstrap_external>", line 1289 in create_module
 File "<frozen importlib._bootstrap>", line 813 in module_from_spec
 File "<frozen importlib._bootstrap>", line 921 in _load_unlocked
 File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
 File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
 File "<frozen importlib._bootstrap>", line 1415 in _handle_fromlist
 File "/PATH_TO_PYTHON/lib/python3.12/site-packages/pymupdf/extra.py", line 10 in <module>
 File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
 File "<frozen importlib._bootstrap_external>", line 995 in exec_module
 File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
 File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
 File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
 File "<frozen importlib._bootstrap>", line 1415 in _handle_fromlist
 File "/PATH_TO_PYTHON/lib/python3.12/site-packages/pymupdf/__init__.py", line 29 in <module>
 File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
 File "<frozen importlib._bootstrap_external>", line 995 in exec_module
 File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
 File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
 File "/PATH_TO_PYTHON/lib/python3.12/site-packages/fitz/__init__.py", line 2 in <module>
 File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
 File "<frozen importlib._bootstrap_external>", line 995 in exec_module
 File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
 File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
 File "/PATH_TO_PYTHON/ROOT_DIR/test.py", line 11 in <module>
zsh: segmentation fault  python3.12 test.py

Then I update my mac to BIg Sur 11.7.10, using Python 11, Python 12 and Python 9, the problem still remains the same.

@pangxiaobin
Copy link

same problem
+1

@fladd
Copy link

fladd commented Jul 18, 2024

Same problem. MacOS 11.7.10, Python 3.12, PyMuPDF 1.24.7. Last working version is 1.24.2. So the bug was introduced in 1.24.3 already.

@AphroMad
Copy link

AphroMad commented Aug 16, 2024

Same problem here too !

EDIT : Turned out it was caused by me trying to render text without having a font specified. Once I corrected it, no more seg fault.

filling_text = font.render(f"{self.filling_percentage:.1%}", True, (255,255,255))

@metaMMA
Copy link

metaMMA commented Sep 25, 2024

This issue started happening to me last week. I ran the script using GDB: The GNU Project Debugger
syslog:

Sep 23 22:10:55 <REDACTED> kernel: [1131304.937399] show_signal_msg: 23 callbacks suppressed
Sep 23 22:10:55 <REDACTED> kernel: [1131304.937408] python3[1406851]: segfault at 7fb400000000 ip 000055cdaefac04c sp 00007fff6588e080 error 6 in python3.10[55cdaeee2000+2b0000]
Sep 23 22:10:55 <REDACTED> kernel: [1131304.937446] Code: 4d 0f 1f 44 00 00 48 83 c5 01 48 83 c3 18 4c 39 e5 74 3b 48 8b 3b 48 85 ff 74 06 48 83 2f 01 74 75 48 8b 7b 08 48 85 ff 74 dc <48> 83 2f 01 75 d>
Sep 23 22:10:55 <REDACTED> python3[1406850]: Segmentation fault (core dumped)
Sep 23 22:11:09 <REDACTED> systemd-udevd[1408101]: Using default interface naming scheme 'v249'.
Sep 23 22:11:09 <REDACTED> kernel: [1131318.729105] br-51373adb9dcc: port 1(vethde0c28c) entered blocking state
Sep 23 22:11:09 <REDACTED> kernel: [1131318.729113] br-51373adb9dcc: port 1(vethde0c28c) entered disabled state
Sep 23 22:11:09 <REDACTED> kernel: [1131318.729533] device vethde0c28c entered promiscuous mode

OS:

Description:	Ubuntu 22.04.4 LTS
Release:	22.04
Codename:	jammy

python:

Python 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] on linux

PyMuPDF:

PyMuPDF                1.24.9
PyMuPDFb               1.24.9

GDB backtrace:

Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
0x00007fffe5689955 in pdf_drop_obj () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdf.so.24.8
(gdb) backtrace
#0  0x00007fffe5689955 in pdf_drop_obj () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdf.so.24.8
#1  0x00007fffe56899f4 in pdf_drop_obj () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdf.so.24.8
#2  0x00007fffe5689fec in ?? () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdf.so.24.8
#3  0x00007fffe5689fec in ?? () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdf.so.24.8
#4  0x00007fffe5689fec in ?? () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdf.so.24.8
#5  0x00007fffe5689fec in ?? () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdf.so.24.8
#6  0x00007fffe56c773c in ?? () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdf.so.24.8
#7  0x00007fffe56c92d7 in ?? () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdf.so.24.8
#8  0x00007fffe56d3762 in ?? () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdf.so.24.8
#9  0x00007fffe5586a67 in fz_drop_document () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdf.so.24.8
#10 0x00007fffe53afebb in mupdf::ll_fz_drop_document(fz_document*) () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdfcpp.so.24.8
#11 0x00007fffe537f95c in mupdf::FzDocument::~FzDocument() () from /usr/local/lib/python3.10/dist-packages/pymupdf/libmupdfcpp.so.24.8
#12 0x00007fffe442f897 in _wrap_delete_FzDocument () from /usr/local/lib/python3.10/dist-packages/pymupdf/_mupdf.so
#13 0x00007fffe43afcdb in SwigPyObject_dealloc () from /usr/local/lib/python3.10/dist-packages/pymupdf/_mupdf.so
#14 0x000055555568af07 in ?? ()
#15 0x00005555556c7400 in ?? ()
#16 0x00005555556c76a2 in ?? ()
#17 0x000055555568af83 in ?? ()
#18 0x00005555556c7400 in ?? ()
#19 0x000055555567c72f in ?? ()
#20 0x00005555556e4e83 in PyFrame_FastToLocalsWithError ()
#21 0x00005555557cb859 in PyEval_GetLocals ()
#22 0x00005555557b0f1c in ?? ()
#23 0x00005555556af909 in ?? ()
#24 0x0000555555697935 in _PyEval_EvalFrameDefault ()
#25 0x00005555556af6ac in _PyFunction_Vectorcall ()
#26 0x0000555555697b2b in _PyEval_EvalFrameDefault ()
#27 0x0000555555694096 in ?? ()
#28 0x0000555555789f66 in PyEval_EvalCode ()
#29 0x00005555557b4e98 in ?? ()
#30 0x00005555557ae79b in ?? ()
#31 0x00005555557b4be5 in ?? ()
#32 0x00005555557b40c8 in _PyRun_SimpleFileObject ()
#33 0x00005555557b3d13 in _PyRun_AnyFileObject ()
#34 0x00005555557a670e in Py_RunMain ()
#35 0x000055555577cdfd in Py_BytesMain ()
#36 0x00007ffff7c7bd90 in __libc_start_call_main (main=main@entry=0x55555577cdc0, argc=argc@entry=4, argv=argv@entry=0x7fffffffe478) at ../sysdeps/nptl/libc_start_call_main.h:58
#37 0x00007ffff7c7be40 in __libc_start_main_impl (main=0x55555577cdc0, argc=4, argv=0x7fffffffe478, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe468)
    at ../csu/libc-start.c:392
#38 0x000055555577ccf5 in _start ()
(gdb) 

@metaMMA
Copy link

metaMMA commented Oct 17, 2024

My code was opening pdf files in a for loop like:

for filename in filename_list:
    with open(filename, "rb") as target_file:
        doc = fitz.open("pdf", target_file.read())
    for page in range(doc.page_count):
        <do work>

As you can see, there is no code to close the file: doc.close().
After adding the code at the end of the loop, the segmentation fault did not happen.

current versions:

PyMuPDF                1.24.11
PyMuPDFb               1.24.1

@rachelcenter
Copy link

Trying to launch comfyui on mac os sequoia. i updated home brew, pytorch, all that stuff. and terminal is telling me: zsh: segmentation fault python3.12 main.py

and i cant get into comfyui now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
postpone postpone to a future version
Projects
None yet
Development

No branches or pull requests