Skip to content

cannot use GUI backends inside django request handlers #11094

Closed

Description

@SimonOsipov

Bug summary

Matplotlib crash Python when trying to create a plot and save it as png

Bug report

Process: Python [7315]
Path: /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.6.4 (3.6.4)
Code Type: X86-64 (Native)
Parent Process: bash [6754]
Responsible: Python [7315]
User ID: 501

Date/Time: 2018-04-20 19:30:12.654 +0300
OS Version: Mac OS X 10.13.4 (17E199)
Report Version: 12
Anonymous UUID: E1B3F20E-1530-E700-1172-1C41E2D223CF

Sleep/Wake UUID: CB1FA7B5-1F06-41C5-8BB7-C34FF5EDF3DC

Time Awake Since Boot: 65000 seconds
Time Since Wake: 5400 seconds

System Integrity Protection: enabled

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

Exception Type: EXC_CRASH (SIGILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: Python [7315]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00000001018f14aa __kill + 10
1 org.python.python 0x00000001008a47bb os_kill + 59
2 org.python.python 0x00000001007be4c8 _PyCFunction_FastCallDict + 552
3 org.python.python 0x0000000100847e94 call_function + 612
4 org.python.python 0x00000001008498a4 _PyEval_EvalFrameDefault + 5604
5 org.python.python 0x0000000100847bde fast_function + 606
6 org.python.python 0x0000000100847e7b call_function + 587
7 org.python.python 0x00000001008498a4 _PyEval_EvalFrameDefault + 5604
8 org.python.python 0x0000000100847230 _PyEval_EvalCodeWithName + 2720
9 org.python.python 0x0000000100847a5b fast_function + 219
10 org.python.python 0x0000000100847e7b call_function + 587
11 org.python.python 0x00000001008498a4 _PyEval_EvalFrameDefault + 5604
12 org.python.python 0x0000000100847230 _PyEval_EvalCodeWithName + 2720
13 org.python.python 0x00000001008480f7 _PyFunction_FastCallDict + 439
14 org.python.python 0x00000001007627c4 _PyObject_FastCallDict + 356
15 org.python.python 0x0000000100762e90 _PyObject_Call_Prepend + 208
16 org.python.python 0x00000001007621b3 PyObject_Call + 99
17 org.python.python 0x000000010084a326 _PyEval_EvalFrameDefault + 8294
18 org.python.python 0x0000000100847230 _PyEval_EvalCodeWithName + 2720
19 org.python.python 0x00000001008480f7 _PyFunction_FastCallDict + 439
20 org.python.python 0x00000001007627c4 _PyObject_FastCallDict + 356
21 org.python.python 0x0000000100762e90 _PyObject_Call_Prepend + 208
22 org.python.python 0x00000001007621b3 PyObject_Call + 99
23 org.python.python 0x000000010084a326 _PyEval_EvalFrameDefault + 8294
24 org.python.python 0x0000000100847230 _PyEval_EvalCodeWithName + 2720
25 org.python.python 0x00000001008480f7 _PyFunction_FastCallDict + 439
26 org.python.python 0x00000001007627c4 _PyObject_FastCallDict + 356
27 org.python.python 0x0000000100762e90 _PyObject_Call_Prepend + 208
28 org.python.python 0x00000001007621b3 PyObject_Call + 99
29 org.python.python 0x000000010084a326 _PyEval_EvalFrameDefault + 8294
30 org.python.python 0x0000000100847230 _PyEval_EvalCodeWithName + 2720
31 org.python.python 0x00000001008480f7 _PyFunction_FastCallDict + 439
32 org.python.python 0x00000001007627c4 _PyObject_FastCallDict + 356
33 org.python.python 0x0000000100762e90 _PyObject_Call_Prepend + 208
34 org.python.python 0x00000001007621b3 PyObject_Call + 99
35 org.python.python 0x000000010084a326 _PyEval_EvalFrameDefault + 8294
36 org.python.python 0x0000000100847bde fast_function + 606
37 org.python.python 0x0000000100847e7b call_function + 587
38 org.python.python 0x00000001008498a4 _PyEval_EvalFrameDefault + 5604
39 org.python.python 0x0000000100847bde fast_function + 606
40 org.python.python 0x0000000100847e7b call_function + 587
41 org.python.python 0x00000001008498a4 _PyEval_EvalFrameDefault + 5604
42 org.python.python 0x0000000100847230 _PyEval_EvalCodeWithName + 2720
43 org.python.python 0x0000000100847a5b fast_function + 219
44 org.python.python 0x0000000100847e7b call_function + 587
45 org.python.python 0x00000001008498a4 _PyEval_EvalFrameDefault + 5604
46 org.python.python 0x0000000100847230 _PyEval_EvalCodeWithName + 2720
47 org.python.python 0x00000001008473d4 PyEval_EvalCode + 100
48 org.python.python 0x0000000100883f7e PyRun_FileExFlags + 206
49 org.python.python 0x000000010088421f PyRun_SimpleFileExFlags + 447
50 org.python.python 0x000000010089d86a Py_Main + 3914
51 org.python.python 0x0000000100000dfe 0x100000000 + 3582
52 org.python.python 0x0000000100000c34 0x100000000 + 3124

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000000010da106c8 rcx: 0x00007fff5bffca78 rdx: 0x0000000000000000
rdi: 0x0000000000001c93 rsi: 0x0000000000000004 rbp: 0x00007fff5bffca90 rsp: 0x00007fff5bffca78
r8: 0x000000000000006e r9: 0x0000000000000100 r10: 0x00000001015f8070 r11: 0x0000000000000206
r12: 0x0000000000000000 r13: 0x0000000101bbd948 r14: 0x0000000103519e68 r15: 0x00000001008a4780
rip: 0x00000001018f14aa rfl: 0x0000000000000206 cr2: 0x00007fff5df24284

Logical CPU: 0
Error Code: 0x02000025
Trap Number: 133

Model: MacBookPro11,1, BootROM MBP111.0145.B00, 2 processors, Intel Core i5, 2.6 GHz, 8 GB, SMC 2.16f68

Code for reproduction

plt.clf()
	for stat in all_subscriber_stats:
		roaming_minutes_plot_data.append(stat.roaming_minutes)
		roaming_gprs_plot_data.append(stat.roaming_gprs)
		international_calls_plot_data.append(stat.international_calls)
		reporting_months_grid_data.append(
			f"{stat.reporting_month} / {stat.reporting_year}"
		)
	y = [
		roaming_minutes_plot_data,
		roaming_gprs_plot_data,
		international_calls_plot_data
	]
	plt.stackplot(
		reporting_months_grid_data, y, labels=[
			'Roaming minutes',
			'Roaming GPRS',
			'International calls'
		]
	)
	plt.legend(loc='best')
	plt.ylabel('Rub')
	plt.xlabel("Months")
	plt.grid(which='major', axis='both')

	plt.savefig(
		f'media/{subscriber.user_phone_number}'
	)
	subscriber.spending_statistics_pic = f'{subscriber.user_phone_number}.png'
	subscriber.save()

Actual outcome

The crash of Python and Django server

Expected outcome

matplotlib should generate the *.png file and place it in the folder

Matplotlib version

matplotlib installd via pip in PyCharm (venv)

  • Operating system: Mac OS X 10.13.4 (17E199)
  • Matplotlib version: 2.2.2
  • Matplotlib backend (print(matplotlib.get_backend())): module://backend_interagg
  • Python version: 3.6.4
  • Other libraries:
    cycler==0.10.0
    Django==2.0.4
    kiwisolver==1.0.1
    numpy==1.14.2
    pandas==0.22.0
    Pillow==5.1.0
    pyparsing==2.2.0
    python-dateutil==2.7.2
    pytz==2018.4
    six==1.11.0

Important Note:

Same code with same dependencies versions working 100% on Windows10. The problem is only exclusive to Mac and began when I started using matplotlib in my code

Activity

  1. SimonOsipov commented on Apr 20, 2018

    @SimonOsipov
    Author

    An additional part of the crash report. Not sure that relevant.

    Binary Images:
    0x100000000 - 0x100000ff7 +org.python.python (3.6.4 - 3.6.4) /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
    0x100003000 - 0x1004a4fef com.apple.CoreFoundation (6.9 - 1452.23) <945E5C0A-86C5-336E-A64F-5BF06E78985A> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x100757000 - 0x10097efe7 +org.python.python (3.6.4, [c] 2001-2017 Python Software Foundation. - 3.6.4) <7A2A6409-2256-0B8C-0F90-A917F7C78CF1> /Library/Frameworks/Python.framework/Versions/3.6/Python
    0x100ac6000 - 0x100ac7ffb libSystem.B.dylib (1252.50.4) /usr/lib/libSystem.B.dylib
    0x100ace000 - 0x100acfff3 libDiagnosticMessagesClient.dylib (104) <9712E980-76EE-3A89-AEA6-DF4BAF5C0574> /usr/lib/libDiagnosticMessagesClient.dylib
    0x100ad5000 - 0x100cfcffb libicucore.A.dylib (59173.0.1) /usr/lib/libicucore.A.dylib
    0x100dce000 - 0x1011bc7e7 libobjc.A.dylib (723) /usr/lib/libobjc.A.dylib
    0x10136d000 - 0x10137fffb libz.1.dylib (70) <48C67CFC-940D-3857-8DAD-857774605352> /usr/lib/libz.1.dylib
    0x101385000 - 0x101389ff7 libcache.dylib (80) <092479CB-1008-3A83-BECF-E115F24D13C1> /usr/lib/system/libcache.dylib
    0x10138f000 - 0x101399ff3 libcommonCrypto.dylib (60118.50.1) <029F5985-9B6E-3DCB-9B96-FD007678C6A7> /usr/lib/system/libcommonCrypto.dylib
    0x1013a7000 - 0x1013aefff libcompiler_rt.dylib (62) <968B8E3F-3681-3230-9D78-BB8732024F6E> /usr/lib/system/libcompiler_rt.dylib
    0x1013bc000 - 0x1013c5ffb libcopyfile.dylib (146.50.5) <3885083D-50D8-3EEC-B481-B2E605180D7F> /usr/lib/system/libcopyfile.dylib
    0x1013cc000 - 0x101451fff libcorecrypto.dylib (562.50.17) <67007279-24E1-3F30-802D-A55CD5C27946> /usr/lib/system/libcorecrypto.dylib
    0x10146e000 - 0x1014a7ff7 libdispatch.dylib (913.50.12) <848EEE57-4235-3A61-9A52-C0097DD2AB5E> /usr/lib/system/libdispatch.dylib
    0x1014e2000 - 0x1014ffff7 libdyld.dylib (551.3) /usr/lib/system/libdyld.dylib
    0x10151a000 - 0x10151affb libkeymgr.dylib (28) /usr/lib/system/libkeymgr.dylib
    0x10151f000 - 0x10151fff7 liblaunch.dylib (1205.50.76) <4D52BB64-C568-3A36-8935-2480427EE2A2> /usr/lib/system/liblaunch.dylib
    0x101526000 - 0x10152affb libmacho.dylib (906) <1902A611-081A-3452-B11E-EBD1B166E831> /usr/lib/system/libmacho.dylib
    0x101531000 - 0x101533ff3 libquarantine.dylib (86) <26C0BA22-8F93-3A07-9A4E-C8D53D2CE42E> /usr/lib/system/libquarantine.dylib
    0x10153a000 - 0x10153bff3 libremovefile.dylib (45) <711E18B2-5BBE-3211-A916-56740C27D17A> /usr/lib/system/libremovefile.dylib
    0x101541000 - 0x101558fff libsystem_asl.dylib (356.50.1) <3B24F2D1-B578-359D-ADB2-0ED19A364C38> /usr/lib/system/libsystem_asl.dylib
    0x101566000 - 0x101566fff libsystem_blocks.dylib (67) <17303FDF-0D2D-3963-B05E-B4DF63052D47> /usr/lib/system/libsystem_blocks.dylib
    0x10156b000 - 0x1015f4ff7 libsystem_c.dylib (1244.50.9) <1187BFE8-4576-3247-8177-481554E1F9E7> /usr/lib/system/libsystem_c.dylib
    0x10161d000 - 0x101620ffb libsystem_configuration.dylib (963.50.8) /usr/lib/system/libsystem_configuration.dylib
    0x101627000 - 0x10162affb libsystem_coreservices.dylib (51) <486000D3-D8CB-3BE7-8EE5-8BF380DE6DF7> /usr/lib/system/libsystem_coreservices.dylib
    0x101630000 - 0x101631fff libsystem_darwin.dylib (1244.50.9) <09C21A4A-9EE0-388B-A9D9-DFF8F6758791> /usr/lib/system/libsystem_darwin.dylib
    0x101637000 - 0x10163dff7 libsystem_dnssd.dylib (878.50.17) <9033B909-BCF7-37EB-A040-ADE8081611D6> /usr/lib/system/libsystem_dnssd.dylib
    0x101644000 - 0x10168dff7 libsystem_info.dylib (517.30.1) /usr/lib/system/libsystem_info.dylib
    0x1016a5000 - 0x1016f0fcb libsystem_m.dylib (3147.50.1) /usr/lib/system/libsystem_m.dylib
    0x1016ff000 - 0x10171efff libsystem_malloc.dylib (140.50.6) <7FD43735-9DDD-300E-8C4A-F909A74BDF49> /usr/lib/system/libsystem_malloc.dylib
    0x10172b000 - 0x10185bff3 libsystem_network.dylib (1229.51.2) /usr/lib/system/libsystem_network.dylib
    0x10189c000 - 0x1018a6ffb libsystem_networkextension.dylib (767.50.25) <758F1414-796D-3422-83C9-92D2915A06CE> /usr/lib/system/libsystem_networkextension.dylib
    0x1018b3000 - 0x1018bcff3 libsystem_notify.dylib (172) <08012EC0-2CD2-34BE-BF93-E7F56491299A> /usr/lib/system/libsystem_notify.dylib
    0x1018c4000 - 0x1018c7fff libsystem_sandbox.dylib (765.50.51) /usr/lib/system/libsystem_sandbox.dylib
    0x1018ce000 - 0x1018cfff3 libsystem_secinit.dylib (30) /usr/lib/system/libsystem_secinit.dylib
    0x1018d5000 - 0x1018fbff7 libsystem_kernel.dylib (4570.51.1) <5CAAB092-02CC-3A37-9D5F-C4AD1083AB96> /usr/lib/system/libsystem_kernel.dylib
    0x101915000 - 0x10191cff7 libsystem_platform.dylib (161.50.1) <6355EE2D-5456-3CA8-A227-B96E8F1E2AF8> /usr/lib/system/libsystem_platform.dylib
    0x101925000 - 0x101930fff libsystem_pthread.dylib (301.50.1) <0E51CCBA-91F2-34E1-BF2A-FEEFD3D321E4> /usr/lib/system/libsystem_pthread.dylib
    0x10193d000 - 0x101944ff7 libsystem_symptoms.dylib (820.50.37) /usr/lib/system/libsystem_symptoms.dylib
    0x10194b000 - 0x10195efff libsystem_trace.dylib (829.50.17) <6568D68B-1D4C-38EE-90A9-54821D6403C0> /usr/lib/system/libsystem_trace.dylib
    0x10196d000 - 0x101972ff7 libunwind.dylib (35.3) /usr/lib/system/libunwind.dylib
    0x10197a000 - 0x1019a7fff libxpc.dylib (1205.50.76) <25DB244E-217D-3CE0-A8F2-0C4255783B42> /usr/lib/system/libxpc.dylib
    0x1019ca000 - 0x1019fdff7 libclosured.dylib (551.3) /usr/lib/closure/libclosured.dylib
    0x101a19000 - 0x101a3dff7 libc++abi.dylib (400.8.2) /usr/lib/libc++abi.dylib
    0x101a4d000 - 0x101aa3fff libc++.1.dylib (400.9) <7D3DACCC-3804-393C-ABC1-1A580FD00CB6> /usr/lib/libc++.1.dylib
    0x101bf6000 - 0x101bf7fff +_heapq.cpython-36m-darwin.so (???) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_heapq.cpython-36m-darwin.so
    0x101bfc000 - 0x101bfdfff +_posixsubprocess.cpython-36m-darwin.so (???) <4129C42B-F8FC-1317-6B64-14BDA98B4A09> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-darwin.so
    0x101fc5000 - 0x101fcafff +math.cpython-36m-darwin.so (???) <36B15C1D-7832-F795-342D-1FEFF7414384> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/math.cpython-36m-darwin.so
    0x101fd1000 - 0x101fe0ff7 +_datetime.cpython-36m-darwin.so (???) <1A3B12B9-01E6-79F7-51E2-AA59B1B4C19D> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_datetime.cpython-36m-darwin.so
    0x101feb000 - 0x101feefff +select.cpython-36m-darwin.so (???) <4945D027-F2FA-191E-C9AD-D9796AA8290B> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/select.cpython-36m-darwin.so
    0x101ff4000 - 0x101ff4fff +_opcode.cpython-36m-darwin.so (???) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_opcode.cpython-36m-darwin.so
    0x101ff7000 - 0x101ff8fff +termios.cpython-36m-darwin.so (???) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/termios.cpython-36m-darwin.so
    0x101ffd000 - 0x101ffdfff +_bisect.cpython-36m-darwin.so (???) <9FE91014-4BF8-57F0-FC58-B545AB2BDACB> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_bisect.cpython-36m-darwin.so
    0x1036c9000 - 0x1036cefff +_struct.cpython-36m-darwin.so (???) <85A2A7A8-8885-EAE8-D8FE-BD2EF096DC6A> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so
    0x1036d7000 - 0x1036daff7 +binascii.cpython-36m-darwin.so (???) <33DF3D1F-DB2A-F5F1-9C12-4EAFF325AA59> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/binascii.cpython-36m-darwin.so
    0x1036de000 - 0x1036e4ff7 +_json.cpython-36m-darwin.so (???) <46D11D1C-C2F6-ED2F-FE2D-8CC19A25719E> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_json.cpython-36m-darwin.so
    0x1036e9000 - 0x1036edfff +zlib.cpython-36m-darwin.so (???) <7AFD94C8-311B-2FB6-F33E-331A672ED851> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/zlib.cpython-36m-darwin.so
    0x1036f3000 - 0x1036f6fff +_hashlib.cpython-36m-darwin.so (???) <79E14D6B-E9C9-2109-4018-2BB680DDB04A> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_hashlib.cpython-36m-darwin.so
    0x1036fb000 - 0x1036fcfff +_random.cpython-36m-darwin.so (???) <5D5B57F6-8D3F-0100-1D75-0B1BB51EE85C> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_random.cpython-36m-darwin.so
    0x1048c0000 - 0x104908fff +_decimal.cpython-36m-darwin.so (???) <011F47AD-CD0C-C878-1558-CE6492D1CE77> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_decimal.cpython-36m-darwin.so
    0x104a27000 - 0x104a7dfef +libssl.1.0.0.dylib (1) /Library/Frameworks/Python.framework/Versions/3.6/lib/libssl.1.0.0.dylib
    0x104a9a000 - 0x104c67237 +libcrypto.1.0.0.dylib (1) <93574B7C-CABB-43E1-2CA2-F1C81B71337E> /Library/Frameworks/Python.framework/Versions/3.6/lib/libcrypto.1.0.0.dylib
    0x104cde000 - 0x104ce7ff7 +_blake2.cpython-36m-darwin.so (???) <45099EB4-118C-2407-D682-DC713D291C71> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_blake2.cpython-36m-darwin.so
    0x104cec000 - 0x104cfffff +_sha3.cpython-36m-darwin.so (???) <16A65BFE-9D31-3472-DA0F-B64EC06A450A> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_sha3.cpython-36m-darwin.so
    0x104d45000 - 0x104d46fff +_bz2.cpython-36m-darwin.so (???) <9C11207E-8E89-9E66-29D8-D0C02982AD80> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_bz2.cpython-36m-darwin.so
    0x104d4a000 - 0x104d57ffb libbz2.1.0.dylib (38) <0A5086BB-4724-3C14-979D-5AD4F26B5B45> /usr/lib/libbz2.1.0.dylib
    0x104d5d000 - 0x104d89fe7 +_lzma.cpython-36m-darwin.so (???) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_lzma.cpython-36m-darwin.so
    0x104d93000 - 0x104d93fff +grp.cpython-36m-darwin.so (???) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/grp.cpython-36m-darwin.so
    0x104dd6000 - 0x104de0fff +_socket.cpython-36m-darwin.so (???) <9E9D05E2-644E-0531-A4A7-5852FC0A37F1> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_socket.cpython-36m-darwin.so
    0x104efd000 - 0x104fb9fff +unicodedata.cpython-36m-darwin.so (???) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/unicodedata.cpython-36m-darwin.so
    0x105099000 - 0x1050a7ff7 +_ssl.cpython-36m-darwin.so (???) <93F301E1-8B1B-CBF8-D765-21A62746C41C> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_ssl.cpython-36m-darwin.so
    0x105137000 - 0x10514dff7 +_ctypes.cpython-36m-darwin.so (???) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_ctypes.cpython-36m-darwin.so
    0x105320000 - 0x105376ff7 +_imaging.cpython-36m-darwin.so (???) /Users/USER/Downloads//_imaging.cpython-36m-darwin.so
    0x10539b000 - 0x1053ecff3 +libjpeg.9.dylib (0) <087B963A-4956-3B4A-AD64-4815CC3B8016> /Users/USER/Downloads/
    /libjpeg.9.dylib
    0x1053f4000 - 0x105437fff +libopenjp2.2.1.0.dylib (0) /Users/USER/Downloads//libopenjp2.2.1.0.dylib
    0x105441000 - 0x10545cff7 +libz.1.2.11.dylib (0) <3CD04626-BC8B-35C9-A3D3-37ADA56DD70E> /Users/USER/Downloads/
    /libz.1.2.11.dylib
    0x105460000 - 0x1054ecff3 +libtiff.5.dylib (0) /Users/USER/Downloads//libtiff.5.dylib
    0x1054fe000 - 0x10552bff3 +liblzma.5.dylib (0) <5C453B29-CAD6-37FB-8E2D-260AD62A0016> /Users/USER/Downloads/
    /liblzma.5.dylib
    0x105573000 - 0x10557aff7 +array.cpython-36m-darwin.so (???) <7516454F-3710-08EE-CE4F-0F4FE2615E63> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/array.cpython-36m-darwin.so
    0x105644000 - 0x105647ff7 +mmap.cpython-36m-darwin.so (???) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/mmap.cpython-36m-darwin.so
    0x10568b000 - 0x10568dff7 +_webp.cpython-36m-darwin.so (???) <9E507B08-587D-3BD2-B906-D30D12BDD1F9> /Users/USER/Downloads//_webp.cpython-36m-darwin.so
    0x105692000 - 0x10569bfff +libwebpmux.3.dylib (0) /Users/USER/Downloads/
    /libwebpmux.3.dylib
    0x1056a0000 - 0x1056a4ff3 +libwebpdemux.2.dylib (0) <87642353-5C70-3BAD-8578-434082441994> /Users/USER/Downloads//libwebpdemux.2.dylib
    0x1056e7000 - 0x1056e8ff7 +fcntl.cpython-36m-darwin.so (???) <75E38B2B-40CD-996B-7B0F-FB8E693B9182> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/fcntl.cpython-36m-darwin.so
    0x1056ec000 - 0x1056ecff7 +_scproxy.cpython-36m-darwin.so (???) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_scproxy.cpython-36m-darwin.so
    0x1056ef000 - 0x1056f0ff3 libcoretls_cfhelpers.dylib (155.50.1) /usr/lib/libcoretls_cfhelpers.dylib
    0x1056f6000 - 0x1056f6fff libapple_crypto.dylib (109.50.14) <48BA2E76-BF2F-3522-A54E-D7FB7EAF7A57> /usr/lib/libapple_crypto.dylib
    0x1056fa000 - 0x1056fafff libOpenScriptingUtil.dylib (174) <610F0242-7CE5-3C86-951B-B646562694AF> /usr/lib/libOpenScriptingUtil.dylib
    0x105800000 - 0x105897ffb +libwebp.7.dylib (0) <45DFEAF5-37AB-3243-A1D2-F73BD9B13249> /Users/USER/Downloads/
    /libwebp.7.dylib
    0x105a6e000 - 0x105a80fff +_pickle.cpython-36m-darwin.so (???) <21F6E03C-9B52-5276-309F-5072C1240166> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_pickle.cpython-36m-darwin.so
    0x105bcd000 - 0x105bddff3 libbsm.0.dylib (39) <6BC96A72-AFBE-34FD-91B1-748A530D8AE6> /usr/lib/libbsm.0.dylib
    0x105be7000 - 0x105be7ff3 libauto.dylib (187) /usr/lib/libauto.dylib
    0x105bed000 - 0x105bf1fff libpam.2.dylib (22) <7B4D2CE2-1438-387A-9802-5CEEFBF26F86> /usr/lib/libpam.2.dylib
    0x105bf7000 - 0x105bf7fff com.apple.CoreServices (822.31 - 822.31) <615919A2-AE11-3F27-9A37-FB0CFF8D36B6> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x105bfc000 - 0x105bfcfff com.apple.ApplicationServices (48 - 50) <8DA47D38-B07B-3AE2-B343-4579864430C6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x105ec0000 - 0x105fa2fff +_sqlite3.cpython-36m-darwin.so (???) <5398916F-CF9D-37F9-1424-04F2134F0D2E> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_sqlite3.cpython-36m-darwin.so
    0x106245000 - 0x1062b5ff3 com.apple.SystemConfiguration (1.17 - 1.17) <8532B8E9-7E30-35A3-BC4A-DDE8E0614FDA> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x1062ed000 - 0x106467fff libnetwork.dylib (1229.51.2) /usr/lib/libnetwork.dylib
    0x1064c1000 - 0x1064f5fff libpcap.A.dylib (79.20.1) /usr/lib/libpcap.A.dylib
    0x106505000 - 0x1065bdff3 libboringssl.dylib (109.50.14) /usr/lib/libboringssl.dylib
    0x106636000 - 0x106696ff3 libusrtcp.dylib (1229.51.2) <3D8806D9-4BA9-35EE-BC44-F58BC2A0962D> /usr/lib/libusrtcp.dylib
    0x1066a4000 - 0x1066bcff7 libcoretls.dylib (155.50.1) /usr/lib/libcoretls.dylib
    0x1066c8000 - 0x1069f0fff com.apple.security (7.0 - 58286.51.6) <7212D257-5324-3DBA-8C26-504D6B8F632A> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x106bc7000 - 0x106bddff7 libapple_nghttp2.dylib (1.24) <01402BC4-4822-3676-9C80-50D83F816424> /usr/lib/libapple_nghttp2.dylib
    0x106bea000 - 0x106fb0fff com.apple.Foundation (6.9 - 1452.23) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x1072bd000 - 0x107450ff7 libsqlite3.dylib (274.8.1) /usr/lib/libsqlite3.dylib
    0x107478000 - 0x107485fff libxar.1.dylib (400) <0316128D-3B47-3052-995D-97B4FE5491DC> /usr/lib/libxar.1.dylib
    0x10748f000 - 0x10752aff7 com.apple.framework.IOKit (2.0.2 - 1445.50.26) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x107573000 - 0x107578fff com.apple.DiskArbitration (2.7 - 2.7) /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x107583000 - 0x1075adff3 libarchive.2.dylib (54) <8FC28DD8-E315-3C3E-95FE-D1D2CBE49888> /usr/lib/libarchive.2.dylib
    0x1075b8000 - 0x10769ffff libxml2.2.dylib (31.10) <503721DB-0D8D-379E-B743-18CE59304155> /usr/lib/libxml2.2.dylib
    0x1076d8000 - 0x107a72ff7 com.apple.CFNetwork (897.15 - 897.15) <0C03AF39-3527-3E0D-8413-8E1B2A962F0D> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x107d9e000 - 0x107d9ffff liblangid.dylib (128) <39C39393-0D05-301D-93B2-F224FC4949AA> /usr/lib/liblangid.dylib
    0x107da4000 - 0x107dddff7 libCRFSuite.dylib (41) /usr/lib/libCRFSuite.dylib
    0x107df7000 - 0x107df7fff libenergytrace.dylib (16) /usr/lib/libenergytrace.dylib
    0x107dfc000 - 0x107e08ff3 libkxld.dylib (4570.51.1) /usr/lib/system/libkxld.dylib
    0x107e0e000 - 0x107e27ffb liblzma.5.dylib (10) <3D419A50-961F-37D2-8A01-3DC7AB7B8D18> /usr/lib/liblzma.5.dylib
    0x107e30000 - 0x107e38ffb com.apple.CoreServices.FSEvents (1239.50.1 - 1239.50.1) <3637CEC7-DF0E-320E-9634-44A442925C65> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
    0x107e40000 - 0x108117fff com.apple.CoreServices.CarbonCore (1178.4 - 1178.4) <0D5E19BF-18CB-3FA4-8A5F-F6C787C5EE08> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x10818e000 - 0x10823eff7 com.apple.Metadata (10.7.0 - 1191.4.13) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x1082bd000 - 0x10831dfff com.apple.CoreServices.OSServices (822.31 - 822.31) <690E3C93-8799-39FF-8663-190A49B002E3> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x108369000 - 0x1083d7fff com.apple.SearchKit (1.4.0 - 1.4.0) <3662545A-B1CF-3079-BDCD-C83855CEFEEE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x10841b000 - 0x10848fffb com.apple.AE (735.1 - 735.1) <08EBA184-20F7-3725-AEA6-C314448161C6> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x1084c1000 - 0x10867eff7 com.apple.LaunchServices (822.31 - 822.31) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x10878f000 - 0x1087c3fff com.apple.DictionaryServices (1.2 - 284.2) <6505B075-41C3-3C62-A4C3-85CE3F6825CD> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x1087ef000 - 0x108813ffb com.apple.coreservices.SharedFileList (71.21 - 71.21) <7DB79D78-9925-33F8-96BA-35AB7AEB326A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
    0x108837000 - 0x108843ffb com.apple.NetFS (6.0 - 4.0) <471DD96F-FA2E-3FE9-9746-2519A6780D1A> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x10884d000 - 0x108858fff com.apple.NetAuth (6.2 - 6.2) /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x108865000 - 0x108867ffb com.apple.loginsupport (1.0 - 1) /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
    0x10886d000 - 0x108875ff7 com.apple.TCC (1.0 - 1) /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x108880000 - 0x108aa8ff7 libmecabra.dylib (779.7.6) /usr/lib/libmecabra.dylib
    0x108b06000 - 0x109116fef com.apple.CoreGraphics (2.0 - 1161.10) <31C36FA0-4026-3347-93FD-71CD7287A6F0> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
    0x109233000 - 0x109383fff com.apple.CoreText (352.0 - 578.18) /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
    0x10944d000 - 0x1095c6fe7 com.apple.ImageIO.framework (3.3.0 - 1739.1) /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
    0x10967b000 - 0x109734fff com.apple.ColorSync (4.13.0 - 3325) /System/Library/Frameworks/ColorSync.framework/Versions/A/ColorSync
    0x109781000 - 0x1097e7fff com.apple.ApplicationServices.ATS (377 - 445.3) <000C4E9F-E0D9-371D-B304-83BA37460724> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
    0x109813000 - 0x109817ff3 com.apple.ColorSyncLegacy (4.13.0 - 1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSyncLegacy.framework/Versions/A/ColorSyncLegacy
    0x109820000 - 0x109872ffb com.apple.HIServices (1.22 - 624) <828E189A-62F9-3961-8A89-22F508870CC5> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
    0x1098ac000 - 0x1098bafff com.apple.LangAnalysis (1.7.0 - 1.7.0) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
    0x1098c9000 - 0x109915fff com.apple.print.framework.PrintCore (13.4 - 503.2) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
    0x109944000 - 0x10997efff com.apple.QD (3.12 - 404.2) <38B20AFF-9D54-3B52-A6DC-C0D71380AA5F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
    0x1099aa000 - 0x1099b6fff com.apple.speech.synthesis.framework (7.5.1 - 7.5.1) <84ADDF38-36F1-3D3B-B28D-8865FA10FCD7> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x1099cb000 - 0x109c67fff com.apple.SkyLight (1.600.0 - 312.50) <0CF4C608-8748-32BF-9586-A1601945F82C> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight
    0x109d49000 - 0x109d49fff com.apple.Accelerate (1.11 - Accelerate 1.11) <8632A9C5-19EA-3FD7-A44D-80765CC9C540> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x109d4d000 - 0x109e32ff7 com.apple.CoreDisplay (1.0 - 97.16) /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay
    0x109e61000 - 0x109e68ffb com.apple.IOSurface (211.12 - 211.12) <392CA7DE-B365-364E-AF4A-33EC2CC48E6F> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
    0x109e77000 - 0x109ef8ff7 com.apple.Metal (125.25 - 125.25) /System/Library/Frameworks/Metal.framework/Versions/A/Metal
    0x109fee000 - 0x10a018ffb com.apple.MultitouchSupport.framework (1404.4 - 1404.4) <45374A2A-C0BC-3A70-8183-37295205CDFA> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
    0x10a02d000 - 0x10a278ff7 com.apple.QuartzCore (1.11 - 584.40) /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x10a369000 - 0x10a867fc3 com.apple.vImage (8.1 - ???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x10a8c6000 - 0x10a8c6fff com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) <54FF3B43-E66C-3F36-B34B-A2B3B0A36502> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x10a8ca000 - 0x10aa77fc3 libvDSP.dylib (622.50.5) <40690941-CF89-3F90-A0AC-A4D200744A5D> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x10aa86000 - 0x10aab4fef libBNNS.dylib (38.1) <7BAEFDCA-3227-3E07-80D8-59B6370B89C6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
    0x10aabe000 - 0x10aac3ff3 libQuadrature.dylib (3) <3D6BF66A-55B2-3692-BAC7-DEB0C676ED29> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib
    0x10aac8000 - 0x10ab79fff libvMisc.dylib (622.50.5) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x10ab86000 - 0x10af45ff7 libLAPACK.dylib (1211.50.2) <40ADBA5F-8B2D-30AC-A7AD-7B17C37EE52D> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x10afa6000 - 0x10b100fe3 libBLAS.dylib (1211.50.2) <62C659EB-3E32-3B5F-83BF-79F5DF30D5CE> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x10b122000 - 0x10b137ff7 libLinearAlgebra.dylib (1211.50.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
    0x10b141000 - 0x10b1c1fff libSparse.dylib (79.50.2) <0DC25CDD-F8C1-3D6E-B472-8B060708424F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
    0x10b1db000 - 0x10b1eefff libSparseBLAS.dylib (1211.50.2) <722573CC-31CC-34B2-9032-E4F652A9CCFE> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
    0x10b1f6000 - 0x10b1fbff7 com.apple.GPUWrangler (3.18.48 - 3.18.48) /System/Library/PrivateFrameworks/GPUWrangler.framework/Versions/A/GPUWrangler
    0x10b202000 - 0x10b209ff7 com.apple.IOAccelerator (378.18.1 - 378.18.1) /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
    0x10b214000 - 0x10b22cfff com.apple.IOPresentment (1.0 - 35.1) <214AD582-466F-3844-A0A4-DE0742A8B899> /System/Library/PrivateFrameworks/IOPresentment.framework/Versions/A/IOPresentment
    0x10b247000 - 0x10b24bffb com.apple.DSExternalDisplay (3.1 - 380) <8D03D346-887A-3CE7-9483-4AD7804D1FBB> /System/Library/PrivateFrameworks/DSExternalDisplay.framework/Versions/A/DSExternalDisplay
    0x10b252000 - 0x10b257ffb libCoreFSCache.dylib (162.6.1) <879B2738-2E8A-3596-AFF8-9C3FB1B6828B> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib
    0x10b25d000 - 0x10b54cfff com.apple.CoreImage (13.0.0 - 579.4.11) <702F8035-26FE-3C78-8587-4C9563E03CC4> /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
    0x10b6ed000 - 0x10b727fff com.apple.CoreVideo (1.8 - 0.0) <86CCC036-51BB-3DD1-9601-D93798BCCD0F> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x10b750000 - 0x10b75ffff com.apple.opengl (16.5.10 - 16.5.10) /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x10b76a000 - 0x10b779fff com.apple.GraphVisualizer (1.0 - 5) /System/Library/PrivateFrameworks/GraphVisualizer.framework/Versions/A/GraphVisualizer
    0x10b784000 - 0x10b784ff7 com.apple.MetalPerformanceShaders.MetalPerformanceShaders (1.0 - 1) <20ECB52B-B5C2-39EA-88E3-DFEC0C3CC9FF> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders
    0x10b789000 - 0x10b953ff3 libFosl_dynamic.dylib (17.8) /usr/lib/libFosl_dynamic.dylib
    0x10b98b000 - 0x10bdb9fff com.apple.vision.FaceCore (3.3.2 - 3.3.2) /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
    0x10bfd7000 - 0x10c025fff com.apple.opencl (2.8.15 - 2.8.15) <83ED39D0-1D39-3593-BA25-70A8A911DE71> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
    0x10c03e000 - 0x10c054fff libcompression.dylib (47.50.1) <491784AE-CB90-3E27-9081-95C3A1211760> /usr/lib/libcompression.dylib
    0x10c05c000 - 0x10c17efff libFontParser.dylib (222.1.4) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
    0x10c201000 - 0x10c24bff7 libFontRegistry.dylib (221.3) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x10c27f000 - 0x10c2a2ff7 libJPEG.dylib (1739.1) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x10c2ab000 - 0x10c2f9fef libTIFF.dylib (1739.1) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x10c30a000 - 0x10c330feb libPng.dylib (1739.1) <48633B0C-BE01-3D94-9D9D-A95D50466AF9> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x10c33c000 - 0x10c340ffb libGIF.dylib (1739.1) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x10c346000 - 0x10c42dfef libJP2.dylib (1739.1) <053925CD-59DB-372F-98A8-C2372FF0B899> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x10c457000 - 0x10c459ffb libRadiance.dylib (1739.1) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x10c45e000 - 0x10c4a6ff3 com.apple.AppleJPEG (1.0 - 1) <8DD410CB-76A1-3F22-9A9F-0491FA0CEB4A> /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
    0x10c4b3000 - 0x10c4cefff com.apple.MetalPerformanceShaders.MPSCore (1.0 - 1) <0B4455FE-5C97-345C-B416-325EC6D88A2A> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Versions/A/MPSCore
    0x10c4e0000 - 0x10c54ffef com.apple.MetalPerformanceShaders.MPSImage (1.0 - 1) <87F14199-C445-34C2-90F8-57C29212483E> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSImage.framework/Versions/A/MPSImage
    0x10c57f000 - 0x10c666ff7 com.apple.MetalPerformanceShaders.MPSNeuralNetwork (1.0 - 1) /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Versions/A/MPSNeuralNetwork
    0x10c6cc000 - 0x10c6f0fff com.apple.MetalPerformanceShaders.MPSMatrix (1.0 - 1) /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSMatrix.framework/Versions/A/MPSMatrix
    0x10c700000 - 0x10c769ff7 com.apple.gpusw.MetalTools (1.0 - 1) /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools
    0x10c7ec000 - 0x10c82affb libGLU.dylib (16.5.10) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x10c83a000 - 0x10c843ff7 libGFXShared.dylib (16.5.10) <6024B1FE-ACD7-3314-B390-85972CB9B778> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
    0x10c84b000 - 0x10c856fff libGL.dylib (16.5.10) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x10c86b000 - 0x10c8a6fe7 libGLImage.dylib (16.5.10) <5B41D074-3132-3587-91B6-E441BA8C9F13> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
    0x10c8af000 - 0x10c8b1fff libCVMSPluginSupport.dylib (16.5.10) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
    0x10c8b7000 - 0x10c8bbfff libCoreVMClient.dylib (162.6.1) <64ED0A84-225F-39BC-BE0D-C896ACF5B50A> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
    0x10c8c3000 - 0x10c919ff3 libcups.2.dylib (462.2) <64864CBE-03A3-34C7-9DBB-C93601F183FD> /usr/lib/libcups.2.dylib
    0x10c933000 - 0x10c94cff7 com.apple.Kerberos (3.0 - 1) /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x10c966000 - 0x10c996fff com.apple.GSS (4.0 - 2.0) <41087278-74AE-3FA5-8C0E-9C78EB696299> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
    0x10c9b8000 - 0x10c9d4ffb libresolv.9.dylib (65) /usr/lib/libresolv.9.dylib
    0x10c9e0000 - 0x10cad1ff7 libiconv.2.dylib (51.50.1) <2FEC9707-3FAF-3828-A50D-8605086D060F> /usr/lib/libiconv.2.dylib
    0x10cae2000 - 0x10cb56fff com.apple.Heimdal (4.0 - 2.0) <18607D75-DB78-3CC7-947E-AC769195164C> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
    0x10cb88000 - 0x10cb8dff3 libheimdal-asn1.dylib (520.50.6) /usr/lib/libheimdal-asn1.dylib
    0x10cb94000 - 0x10cb9ffff com.apple.OpenDirectory (10.13 - 207.50.1) <220FB6F2-4892-3A66-8838-C134CF657D3A> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x10cbb4000 - 0x10cbbdff3 com.apple.CommonAuth (4.0 - 2.0) <4D237B25-27E5-3577-948B-073659F6D3C0> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
    0x10cbc5000 - 0x10cbe1ffb com.apple.CFOpenDirectory (10.13 - 207.50.1) /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x10cc03000 - 0x10cc8fff7 com.apple.securityfoundation (6.0 - 55185.50.5) <087D601E-7813-3F9E-97EE-BC7081F520BD> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x10ccfe000 - 0x10cd91ff7 com.apple.APFS (1.0 - 1) /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS
    0x10cda9000 - 0x10cdacffb libutil.dylib (51.20.1) <216D18E5-0BAF-3EAF-A38E-F6AC37CBABD9> /usr/lib/libutil.dylib
    0x10cdb3000 - 0x10ce46ff7 com.apple.audio.CoreAudio (4.3.0 - 4.3.0) <6E3F958D-79BB-3658-99AD-59F16BF756F1> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x10ce74000 - 0x10d101ff7 com.apple.audio.toolbox.AudioToolbox (1.14 - 1.14) <87D81714-F167-39F5-B5E7-A7A432EDAB5B> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x10d240000 - 0x10d268fff com.apple.applesauce (1.0 - ???) /System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce
    0x10d273000 - 0x10d27aff7 com.apple.LinguisticData (1.0 - 238.3) <49A54649-1021-3DBD-99B8-1B2EDFFA5378> /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData
    0x10d282000 - 0x10d298ff7 libmarisa.dylib (9) /usr/lib/libmarisa.dylib
    0x10d2a6000 - 0x10d2e8fff com.apple.Lexicon-framework (1.0 - 33.5) /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
    0x10d2f8000 - 0x10d303fff libChineseTokenizer.dylib (28) <53633C9B-A3A8-36F7-A53C-432D802F4BB8> /usr/lib/libChineseTokenizer.dylib
    0x10d312000 - 0x10d322fff libcmph.dylib (6) /usr/lib/libcmph.dylib
    0x10d32b000 - 0x10d420ff7 com.apple.LanguageModeling (1.0 - 159.5.3) <7F0AC200-E3DD-39FB-8A95-00DD70B66A9F> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
    0x10d446000 - 0x10d79cfef com.apple.CoreData (120 - 851) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x10d94c000 - 0x10d95cff7 com.apple.CoreEmoji (1.0 - 69.3) /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji
    0x10d966000 - 0x10d96affb com.apple.xpc.ServiceManagement (1.0 - 1) <5BFDB3ED-73A7-3035-A5BC-ADA6E4F74BFD> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x10d972000 - 0x10d979ff7 com.apple.coreservices.BackgroundTaskManagement (1.0 - 57.1) <51A41CA3-DB1D-3380-993E-99C54AEE518E> /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement
    0x10d985000 - 0x10d9adfff libxslt.1.dylib (15.12) <4A5E011D-8B29-3135-A52B-9A9070ABD752> /usr/lib/libxslt.1.dylib
    0x7fff5ded7000 - 0x7fff5df219df dyld (551.3) /usr/lib/dyld

    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: 51903
    thread_create: 0
    thread_set_state: 0

    VM Region Summary:
    ReadOnly portion of Libraries: Total=141.0M resident=0K(0%) swapped_out_or_unallocated=141.0M(100%)
    Writable regions: Total=78.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=78.7M(100%)

                                VIRTUAL   REGION 
    

    REGION TYPE SIZE COUNT (non-coalesced)
    =========== ======= =======
    Kernel Alloc Once 8K 2
    MALLOC 61.6M 49
    MALLOC guard page 32K 9
    MALLOC_LARGE (reserved) 512K 3 reserved VM address space (unallocated)
    VM_ALLOCATE 4K 2
    __DATA 15.2M 270
    __FONT_DATA 4K 2
    __LINKEDIT 29.8M 223
    __TEXT 111.2M 223
    __UNICODE 560K 2
    __UNIXSTACK 16.0M 2
    shared memory 12K 4
    =========== ======= =======
    TOTAL 234.9M 779
    TOTAL, minus reserved VM space 234.4M 779

  2. SimonOsipov commented on Apr 24, 2018

    @SimonOsipov
    Author

    Can someone comment on this? Any advice?

  3. jklymak commented on Apr 24, 2018

    @jklymak
    Member

    I'd reinstall using anaconda.

  4. tacaswell commented on Apr 24, 2018

    @tacaswell
    Member

    https://stackoverflow.com/questions/14268887/what-is-the-illegal-instruction-4-error-and-why-does-mmacosx-version-min-10 <- this looks like an installation / compilation issue

    attn @matthew-brett could this be a problem with our wheels?

    What is module://backend_interagg?

  5. tacaswell commented on Apr 24, 2018

    @tacaswell
    Member

    @SimonOsipov can you reproduce this not in pycharm?

  6. SimonOsipov commented on Apr 27, 2018

    @SimonOsipov
    Author

    @tacaswell
    Will try today.

  7. SimonOsipov commented on May 3, 2018

    @SimonOsipov
    Author

    @tacaswell
    Same problem.
    Ran everything from Terminal.

  8. SimonOsipov commented on May 3, 2018

    @SimonOsipov
    Author

    Assertion failed: (NSViewIsCurrentlyBuildingLayerTreeForDisplay() != currentlyBuildingLayerTree), function NSViewSetCurrentlyBuildingLayerTreeForDisplay, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.40.112/AppKit.subproj/NSView.m, line 14485. Illegal instruction: 4

    Got this in the terminal before the crash

  9. tschoonj commented on Jun 12, 2018

    @tschoonj

    I am observing the same problem using matplotlib 2.2.2, django 2.0.5 and python 3.6.5, all anaconda on macOS High Sierra.

    Code:

    def file_plot(request, file_id, xaxis_name, yaxis_name):
        file = XASFile.objects.get(id=file_id)
        xaxis = np.array(json.loads(file.xasarray_set.get(name = xaxis_name).array))
        yaxis = np.array(json.loads(file.xasarray_set.get(name = yaxis_name).array))
        fig = plt.figure()
        ax = fig.add_subplot(111)
        ax.set_xlabel(xaxis_name)
        ax.set_ylabel(yaxis_name)
        ax.plot(xaxis, yaxis)
        plt.draw()
        buf = io.BytesIO()
        plt.savefig(buf, format='png')
        plt_bytes = buf.getvalue()
        buf.close()
        return HttpResponse(plt_bytes, content_type="image/png")

    I should note that the page gets loaded with the plot as expected but the django server dies immediately afterwards with the same assertion failure that was mentioned in the previous post.

  10. tschoonj commented on Jun 12, 2018

    @tschoonj

    FYI: I managed to circumvent the bug by explicitly closing plt before returning:

    def file_plot(request, file_id, xaxis_name, yaxis_name):
        file = XASFile.objects.get(id=file_id)
        xaxis = np.array(json.loads(file.xasarray_set.get(name = xaxis_name).array))
        yaxis = np.array(json.loads(file.xasarray_set.get(name = yaxis_name).array))
        fig = plt.figure()
        ax = fig.add_subplot(111)
        ax.set_xlabel(xaxis_name)
        ax.set_ylabel(yaxis_name)
        ax.plot(xaxis, yaxis)
        buf = io.BytesIO()
        plt.savefig(buf, format='png')
        plt.close()
        plt_bytes = buf.getvalue()
        buf.close()
        return HttpResponse(plt_bytes, content_type="image/png")
  11. jklymak commented on Jun 12, 2018

    @jklymak
    Member

    Can you guys make this self contained? It’s not clear what’s causing the crash.

  12. elan69 commented on Oct 19, 2018

    @elan69

    @jklymak same problem to me, after it shows the image it crashes

    2018-10-19 20:34:35.071 Python[22178:12951097] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null) 127.0.0.1 - - [19/Oct/2018 20:34:35] "GET / HTTP/1.1" 200 - Assertion failed: (NSViewIsCurrentlyBuildingLayerTreeForDisplay() != currentlyBuildingLayerTree), function NSViewSetCurrentlyBuildingLayerTreeForDisplay, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.40.112/AppKit.subproj/NSView.m, line 14485.
    im on mac, is it working in linux or something?

  13. jklymak commented on Oct 19, 2018

    @jklymak
    Member

    We need a minimal self-contained working example to understand if this is reproducible or a setup issue.

  14. tacaswell commented on Oct 19, 2018

    @tacaswell
    Member

    What do you get if you do matplotlib.get_backend()?

  15. pawelad commented on Oct 23, 2018

    @pawelad

    Just happened to my colleague as well (weirdly enough, only to him, even though we all use the app and have similar-ish local setups) - plt.close() worked, but I'd still very much like to get to the bottom of this and help debug if possible.

    We need a minimal self-contained working example to understand if this is reproducible or a setup issue.

    Like I mentioned above, for whatever reason this only happened to one of my colleagues so it might be hard to create a reproducible sample. I'm happy to be a proxy to him and help give any information that'll help.

    What do you get if you do matplotlib.get_backend()?

    It returns MacOSX on his machine, on mine it's TkAgg. Weirldy enough, I tried forcing the backend on his machine to TkAgg, both via set_backend and a config file, but it still reported MacOSX.

    Possibly important nugget of information - he uses conda (anaconda3, conda 4.5.11)

  16. added this to the v3.0.x milestone on Oct 24, 2018
  17. tacaswell commented on Oct 25, 2018

    @tacaswell
    Member

    The cases of crashes with django (attn @tschoonj ) has the root cause as #12612 (but for django instead of flask). GUIs + threaded webservers to not mix well. The GUI demands that it be on the main thread (for it's own GUI reasons) and the webserver demands that the requests get handled in a thread.

  18. modified the milestones: v3.0.1, on Oct 25, 2018
  19. changed the title [-]Python crash with SIGILL during matplotlib.savefig on MacOS[/-] [+]can not use GUI backends inside django request handlers[/+] on Oct 25, 2018
  20. tacaswell commented on Oct 25, 2018

    @tacaswell
    Member

    The best solution here is to ensure that in the context of a web-server a non-gui backend is set. I am going to close this because there is nothing we can do on the Matplotlib side to fix this.

    [TAC edited to fix wording error]

  21. changed the title [-]can not use GUI backends inside django request handlers[/-] [+]cannot use GUI backends inside django request handlers[/+] on Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions