Hey StackOverflow detectives.
I've been pulling my hair out for a few months trying to figure out the crashes which happen at a line never exists.
In the crash log below, CustomClass.swift does exist but the line 25 doesn't.
What would be the true reason for this crash?
Hint: we run heavy processing and allocate a lot of memory (about 700MB) in the background that was written in c++, which is in OUR_CUSTOM_FRAMEWORK below.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001934c6df0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001933e6930 pthread_kill + 228 (pthread.c:1458)
2 libsystem_c.dylib 0x0000000193374ba4 abort + 104 (abort.c:110)
3 libsystem_malloc.dylib 0x00000001933d7fdc malloc_vreport + 564 (malloc_printf.c:183)
4 libsystem_malloc.dylib 0x00000001933d81a4 malloc_report + 64 (malloc_printf.c:192)
5 libsystem_malloc.dylib 0x00000001933cbd1c free + 436 (malloc.c:1733)
6 [OUR_CUSTOM_FRAMEWORK] 0x000000010324ccf8 0x1031a4000 + 691448
7 libsystem_c.dylib 0x0000000193355164 __cxa_finalize_ranges + 416 (atexit.c:284)
8 libsystem_c.dylib 0x00000001933554a0 exit + 28 (exit.c:81)
9 UIKitCore 0x000000019782eb88 -[UIApplication _terminateWithStatus:] + 508 (UIApplication.m:6735)
10 UIKitCore 0x0000000196f97718 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 128 (_UISceneLifecycleMultiplexer.m:765)
11 UIKitCore 0x0000000196f9737c -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 220 (_UISceneLifecycleMultiplexer.m:418)
12 UIKitCore 0x0000000197824ac4 -[UIApplication workspaceShouldExit:withTransitionContext:] + 216 (UIApplication.m:3725)
13 FrontBoardServices 0x000000019893bcf8 -[FBSUIApplicationWorkspaceShim workspaceShouldExit:withTransitionContext:] + 88 (FBSUIApplicationWorkspace.m:144)
14 FrontBoardServices 0x0000000198968d68 __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke_2 + 80 (FBSWorkspaceScenesClient.m:281)
15 FrontBoardServices 0x000000019894debc -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240 (FBSWorkspace.m:357)
16 FrontBoardServices 0x0000000198968cf4 __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke + 140 (FBSWorkspaceScenesClient.m:278)
17 libdispatch.dylib 0x000000019338033c _dispatch_client_callout + 20 (object.m:495)
18 libdispatch.dylib 0x00000001933830d4 _dispatch_block_invoke_direct + 264 (queue.c:466)
19 FrontBoardServices 0x000000019898f6c4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48 (FBSSerialQueue.m:173)
20 FrontBoardServices 0x000000019898f370 -[FBSSerialQueue _queue_performNextIfPossible] + 432 (FBSSerialQueue.m:216)
21 FrontBoardServices 0x000000019898f8dc -[FBSSerialQueue _performNextFromRunLoopSource] + 32 (FBSSerialQueue.m:247)
22 CoreFoundation 0x000000019365baf4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1922)
23 CoreFoundation 0x000000019365ba48 __CFRunLoopDoSource0 + 84 (CFRunLoop.c:1956)
24 CoreFoundation 0x000000019365b198 __CFRunLoopDoSources0 + 196 (CFRunLoop.c:1992)
25 CoreFoundation 0x0000000193655f38 __CFRunLoopRun + 796 (CFRunLoop.c:2882)
26 CoreFoundation 0x00000001936558f4 CFRunLoopRunSpecific + 480 (CFRunLoop.c:3192)
27 GraphicsServices 0x000000019da6c604 GSEventRunModal + 164 (GSEvent.c:2246)
28 UIKitCore 0x0000000197829358 UIApplicationMain + 1944 (UIApplication.m:4823)
29 [APPNAME] 0x0000000100d45128 main + 68 (CustomClass.swift:25)
30 libdyld.dylib 0x00000001934d12dc start + 4
After upgrading to Mac OS X Catalina my parallel django tests cash.
With this in settings I get a crash, without them (when sqlite is used everything is fine)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'xx',
'USER': 'xx',
'PASSWORD': 'xx',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}
Execution command is:
python manage.py test --settings=app.settings.test --parallel
The crash report contains this:
Process: Python [30650]
Path: /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.7.5 (3.7.5)
Code Type: X86-64 (Native)
Parent Process: Python [30634]
Responsible: Terminal [1592]
User ID: 501
Date/Time: 2019-12-15 10:04:41.315 -0800
OS Version: Mac OS X 10.15.2 (19C57)
Report Version: 12
Bridge OS Version: 4.2 (17P2551)
Anonymous UUID: 9B583AD7-1D7E-AA15-3286-DADFF9B92A49
Sleep/Wake UUID: 41900DFA-568F-4B5B-BFA4-0C5FF8D8C05F
Time Awake Since Boot: 54000 seconds
Time Since Wake: 2000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000011554baba
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [30650]
VM Regions Near 0x11554baba:
VM_ALLOCATE 000000011550b000-000000011554b000 [ 256K] rw-/rwx SM=COW
-->
shared memory 000000011558b000-000000011558f000 [ 16K] r--/r-- SM=SHM
Application Specific Information:
*** multi-threaded process forked ***
crashed on child side of fork pre-exec
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_trace.dylib 0x00007fff6ee9fc45 _os_log_preferences_refresh + 75
1 libsystem_trace.dylib 0x00007fff6eea0624 os_log_type_enabled + 618
2 com.apple.security 0x00007fff43daa6ad Security::DLDbListCFPref::loadPropertyList(bool) + 341
3 com.apple.security 0x00007fff43fee5f4 Security::KeychainCore::StorageManager::getSearchList(std::__1::vector<Security::KeychainCore::Keychain, std::__1::allocator<Security::KeychainCore::Keychain> >&) + 142
4 com.apple.security 0x00007fff43ff0704 Security::KeychainCore::StorageManager::optionalSearchList(void const*, std::__1::vector<Security::KeychainCore::Keychain, std::__1::allocator<Security::KeychainCore::Keychain> >&) + 114
5 com.apple.security 0x00007fff43fb3ea5 SecIdentitySearchCreate + 139
6 com.apple.security 0x00007fff43fc1548 _CreateSecItemParamsFromDictionary(__CFDictionary const*, int*) + 4109
7 com.apple.security 0x00007fff43fbf73b SecItemCopyMatching_osx(__CFDictionary const*, void const**) + 104
8 com.apple.security 0x00007fff43fc3024 SecItemCopyMatching + 338
9 com.apple.Heimdal 0x00007fff5976f303 keychain_query + 531
10 com.apple.Heimdal 0x00007fff5976cf4c hx509_certs_find + 92
11 com.apple.Heimdal 0x00007fff5972bb52 _krb5_pk_find_cert + 466
12 com.apple.GSS 0x00007fff3a2539bb _gsspku2u_acquire_cred + 619
13 com.apple.GSS 0x00007fff3a238c1c gss_acquire_cred + 940
14 libpq.5.dylib 0x00000001054526e3 pg_GSS_have_cred_cache + 54
15 libpq.5.dylib 0x0000000105440eb0 PQconnectPoll + 6356
16 libpq.5.dylib 0x000000010543e026 connectDBComplete + 231
17 libpq.5.dylib 0x000000010543e1ad PQconnectdb + 36
18 _psycopg.cpython-37m-darwin.so 0x00000001053fe587 conn_connect + 135
19 _psycopg.cpython-37m-darwin.so 0x00000001053ffbc0 connection_init + 336
20 org.python.python 0x00000001033dc7ee type_call + 172
21 org.python.python 0x00000001033a1453 _PyObject_FastCallDict + 264
22 org.python.python 0x00000001033a292f _PyObject_CallFunctionVa + 207
23 org.python.python 0x00000001033a2a90 _PyObject_CallFunction_SizeT + 129
24 _psycopg.cpython-37m-darwin.so 0x00000001053f98e0 psyco_connect + 192
25 org.python.python 0x00000001033a1cda PyCFunction_Call + 208
26 org.python.python 0x000000010342f70e _PyEval_EvalFrameDefault + 7738
27 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
28 org.python.python 0x00000001033a1678 _PyFunction_FastCallDict + 444
29 org.python.python 0x000000010342f627 _PyEval_EvalFrameDefault + 7507
30 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
31 org.python.python 0x00000001034363d5 call_function + 737
32 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
33 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
34 org.python.python 0x00000001034363d5 call_function + 737
35 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
36 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
37 org.python.python 0x00000001034363d5 call_function + 737
38 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
39 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
40 org.python.python 0x00000001034363d5 call_function + 737
41 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
42 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
43 org.python.python 0x00000001034363d5 call_function + 737
44 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
45 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
46 org.python.python 0x00000001034363d5 call_function + 737
47 org.python.python 0x000000010342f343 _PyEval_EvalFrameDefault + 6767
48 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
49 org.python.python 0x00000001033a1a00 _PyFunction_FastCallKeywords + 212
50 org.python.python 0x00000001034363d5 call_function + 737
51 org.python.python 0x000000010342f3de _PyEval_EvalFrameDefault + 6922
52 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
53 org.python.python 0x00000001034363d5 call_function + 737
54 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
55 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
56 org.python.python 0x00000001033a1678 _PyFunction_FastCallDict + 444
57 org.python.python 0x00000001033a277f _PyObject_Call_Prepend + 131
58 org.python.python 0x00000001033a1b45 PyObject_Call + 136
59 org.python.python 0x000000010342f627 _PyEval_EvalFrameDefault + 7507
60 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
61 org.python.python 0x00000001033a1678 _PyFunction_FastCallDict + 444
62 org.python.python 0x00000001033a277f _PyObject_Call_Prepend + 131
63 org.python.python 0x00000001033df0ce slot_tp_call + 71
64 org.python.python 0x00000001033a18ae _PyObject_FastCallKeywords + 358
65 org.python.python 0x00000001034363ce call_function + 730
66 org.python.python 0x000000010342f3de _PyEval_EvalFrameDefault + 6922
67 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
68 org.python.python 0x00000001034363d5 call_function + 737
69 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
70 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
71 org.python.python 0x000000010342f627 _PyEval_EvalFrameDefault + 7507
72 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
73 org.python.python 0x00000001033a1678 _PyFunction_FastCallDict + 444
74 org.python.python 0x000000010342f627 _PyEval_EvalFrameDefault + 7507
75 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
76 org.python.python 0x00000001034363d5 call_function + 737
77 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
78 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
79 org.python.python 0x00000001034363d5 call_function + 737
80 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
81 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
82 org.python.python 0x00000001034363d5 call_function + 737
83 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
84 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
85 org.python.python 0x00000001033a277f _PyObject_Call_Prepend + 131
86 org.python.python 0x00000001033dfac2 slot_tp_init + 80
87 org.python.python 0x00000001033dc7ee type_call + 172
88 org.python.python 0x00000001033a18ae _PyObject_FastCallKeywords + 358
89 org.python.python 0x00000001034363ce call_function + 730
90 org.python.python 0x000000010342f3de _PyEval_EvalFrameDefault + 6922
91 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
92 org.python.python 0x00000001034363d5 call_function + 737
93 org.python.python 0x000000010342f343 _PyEval_EvalFrameDefault + 6767
94 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
95 org.python.python 0x00000001034363d5 call_function + 737
96 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
97 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
98 org.python.python 0x00000001034363d5 call_function + 737
99 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
100 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
101 org.python.python 0x00000001033a1678 _PyFunction_FastCallDict + 444
102 org.python.python 0x00000001033a277f _PyObject_Call_Prepend + 131
103 org.python.python 0x00000001033dfac2 slot_tp_init + 80
104 org.python.python 0x00000001033dc7ee type_call + 172
105 org.python.python 0x00000001033a18ae _PyObject_FastCallKeywords + 358
106 org.python.python 0x00000001034363ce call_function + 730
107 org.python.python 0x000000010342f486 _PyEval_EvalFrameDefault + 7090
108 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
109 org.python.python 0x00000001033a1a00 _PyFunction_FastCallKeywords + 212
110 org.python.python 0x00000001034363d5 call_function + 737
111 org.python.python 0x000000010342f486 _PyEval_EvalFrameDefault + 7090
112 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
113 org.python.python 0x00000001033a1678 _PyFunction_FastCallDict + 444
114 org.python.python 0x00000001033a277f _PyObject_Call_Prepend + 131
115 org.python.python 0x00000001033a1b45 PyObject_Call + 136
116 org.python.python 0x000000010342f627 _PyEval_EvalFrameDefault + 7507
117 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
118 org.python.python 0x00000001033a1678 _PyFunction_FastCallDict + 444
119 org.python.python 0x00000001033a277f _PyObject_Call_Prepend + 131
120 org.python.python 0x00000001033df0ce slot_tp_call + 71
121 org.python.python 0x00000001033a18ae _PyObject_FastCallKeywords + 358
122 org.python.python 0x00000001034363ce call_function + 730
123 org.python.python 0x000000010342f3de _PyEval_EvalFrameDefault + 6922
124 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
125 org.python.python 0x00000001034363d5 call_function + 737
126 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
127 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
128 org.python.python 0x00000001033a1a00 _PyFunction_FastCallKeywords + 212
129 org.python.python 0x00000001034363d5 call_function + 737
130 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
131 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
132 org.python.python 0x00000001033a1a00 _PyFunction_FastCallKeywords + 212
133 org.python.python 0x00000001034363d5 call_function + 737
134 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
135 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
136 org.python.python 0x00000001033a1678 _PyFunction_FastCallDict + 444
137 org.python.python 0x00000001033a277f _PyObject_Call_Prepend + 131
138 org.python.python 0x00000001033a1b45 PyObject_Call + 136
139 org.python.python 0x000000010342f627 _PyEval_EvalFrameDefault + 7507
140 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
141 org.python.python 0x00000001033a1678 _PyFunction_FastCallDict + 444
142 org.python.python 0x00000001033a277f _PyObject_Call_Prepend + 131
143 org.python.python 0x00000001033a1b45 PyObject_Call + 136
144 org.python.python 0x000000010342f627 _PyEval_EvalFrameDefault + 7507
145 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
146 org.python.python 0x00000001034363d5 call_function + 737
147 org.python.python 0x000000010342f343 _PyEval_EvalFrameDefault + 6767
148 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
149 org.python.python 0x00000001033a1a00 _PyFunction_FastCallKeywords + 212
150 org.python.python 0x00000001034363d5 call_function + 737
151 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
152 org.python.python 0x00000001033a1e0c function_code_fastcall + 106
153 org.python.python 0x00000001034363d5 call_function + 737
154 org.python.python 0x000000010342f32a _PyEval_EvalFrameDefault + 6742
155 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
156 org.python.python 0x00000001033a1a00 _PyFunction_FastCallKeywords + 212
157 org.python.python 0x00000001034363d5 call_function + 737
158 org.python.python 0x000000010342f3de _PyEval_EvalFrameDefault + 6922
159 org.python.python 0x0000000103436bc9 _PyEval_EvalCodeWithName + 1698
160 org.python.python 0x000000010342d831 PyEval_EvalCode + 51
161 org.python.python 0x000000010345bc3c run_mod + 54
162 org.python.python 0x000000010345ac6f PyRun_FileExFlags + 160
163 org.python.python 0x000000010345a326 PyRun_SimpleFileExFlags + 270
164 org.python.python 0x0000000103472b2e pymain_main + 5445
165 org.python.python 0x000000010347319c _Py_UnixMain + 56
166 libdyld.dylib 0x00007fff6ec827fd start + 1
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x000000011554bab8 rbx: 0x0000000000000000 rcx: 0x00000001072cee6c rdx: 0x0000000000000000
rdi: 0x00007ff2617da290 rsi: 0x0000000000000001 rbp: 0x00007ffeec87a340 rsp: 0x00007ffeec879f00
r8: 0x2bf4e2fa4089247b r9: 0x00000000a5baadb8 r10: 0x00000000a5baadb9 r11: 0x000000001c2a1c07
r12: 0x000000011554babc r13: 0x0000000000000024 r14: 0x0000000000000002 r15: 0x00007ff2617da290
rip: 0x00007fff6ee9fc45 rfl: 0x0000000000010206 cr2: 0x000000011554baba
...
I was trying to resize an image in a function using opencv that is called within a continous loop for socket transmissions and I obtained this error
2017-04-10 15:46:47.200 python[1541:16193] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8ce2b37b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffa1c1f48d objc_exception_throw + 48
2 CoreFoundation 0x00007fff8cd44b5c -[__NSArrayM objectAtIndex:] + 204
3 libopencv_highgui.2.4.dylib 0x0000000114d31280 _ZN13CvCaptureFileC2EPKc + 350
4 libopencv_highgui.2.4.dylib 0x0000000114d2fcf2 _Z32cvCreateFileCapture_AVFoundationPKc + 34
5 libopencv_highgui.2.4.dylib 0x0000000114d237ee cvCreateFileCapture + 14
6 libopencv_highgui.2.4.dylib 0x0000000114d23a9e _ZN2cv12VideoCapture4openERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 64
7 libopencv_highgui.2.4.dylib 0x0000000114d238fe _ZN2cv12VideoCaptureC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 42
8 cv2.so 0x00000001144ccbce _ZL34pyopencv_VideoCapture_VideoCaptureP7_objectS0_S0_ + 275
9 libpython2.7.dylib 0x000000010e6c61bd PyEval_EvalFrameEx + 30141
10 libpython2.7.dylib 0x000000010e6be8f2 PyEval_EvalCodeEx + 1538
11 libpython2.7.dylib 0x000000010e64943c function_call + 364
12 libpython2.7.dylib 0x000000010e623333 PyObject_Call + 99
13 libpython2.7.dylib 0x000000010e6305b6 instancemethod_call + 182
14 libpython2.7.dylib 0x000000010e623333 PyObject_Call + 99
15 libpython2.7.dylib 0x000000010e6ca80d PyEval_CallObjectWithKeywords + 93
16 libpython2.7.dylib 0x000000010e62e5c6 PyInstance_New + 134
17 libpython2.7.dylib 0x000000010e623333 PyObject_Call + 99
18 libpython2.7.dylib 0x000000010e6c5e8f PyEval_EvalFrameEx + 29327
19 libpython2.7.dylib 0x000000010e6cb0b2 fast_function + 274
20 libpython2.7.dylib 0x000000010e6c5db3 PyEval_EvalFrameEx + 29107
21 libpython2.7.dylib 0x000000010e6cb0b2 fast_function + 274
22 libpython2.7.dylib 0x000000010e6c5db3 PyEval_EvalFrameEx + 29107
23 libpython2.7.dylib 0x000000010e6be8f2 PyEval_EvalCodeEx + 1538
24 libpython2.7.dylib 0x000000010e6be2e6 PyEval_EvalCode + 54
25 libpython2.7.dylib 0x000000010e6ed254 PyRun_FileExFlags + 164
26 libpython2.7.dylib 0x000000010e6ecdd1 PyRun_SimpleFileExFlags + 769
27 libpython2.7.dylib 0x000000010e702a12 Py_Main + 3154
28 python 0x000000010e610f24 start + 52
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
The code that I used that I assume generates this error is
import numpy as np
import cv2
class video_read():
def __init__(self, filename):
self.cap = cv2.VideoCapture(filename)
def read_frames(self):
frame = self.cap.read()[1]
image = cv2.imencode('.png', frame)[1]
image_resized = cv2.resize(image, (width/10, height/10))
return image_resized
Could someone point out to me what did I do wrong that called this exception?
I've developed a GitHub repo with an example of a multiprocess script in python2.7 for plotting. Basically, the script allocates one process to generate the data, and such data are passed via a queue to a second process that is responsible to generate the plot. When I run both the examples 'multiproc_processIPC.py' or 'multiproc_poolQUEUE.py' I get the following error.
Note that this error came up AFTER upgrading my mac to OSX Sierra.
Has anyone a clue of the origin of this issue?
Any help will be highly appreciated
===== ERROR REPORT =====
Process: python2.7 [82890]
Path: /Users/USER/*/python
Identifier: python2.7
Version: ???
Code Type: X86-64 (Native)
Parent Process: python2.7 [82883]
Responsible: python2.7 [82890]
User ID: 501
Date/Time: 2016-12-04 22:34:29.874 +0100
OS Version: Mac OS X 10.12.1 (16B2555)
Report Version: 12
Anonymous UUID: 689587A6-D759-0F81-671D-1079942B7C42
Time Awake Since Boot: 9000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [0]
Application Specific Information:
BUG IN CLIENT OF LIBDISPATCH: _dispatch_main_queue_callback_4CF called from the wrong thread
crashed on child side of fork pre-exec
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libdispatch.dylib 0x00007fff8f9ddd21 _dispatch_main_queue_callback_4CF + 1291
1 com.apple.CoreFoundation 0x00007fff7a97abe9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
2 com.apple.CoreFoundation 0x00007fff7a93c00d __CFRunLoopRun + 2205
3 com.apple.CoreFoundation 0x00007fff7a93b514 CFRunLoopRunSpecific + 420
4 com.apple.HIToolbox 0x00007fff79ed8fbc RunCurrentEventLoopInMode + 240
5 com.apple.HIToolbox 0x00007fff79ed8df1 ReceiveNextEventCommon + 432
6 com.apple.HIToolbox 0x00007fff79ed8c26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
7 com.apple.AppKit 0x00007fff785c2b79 _DPSNextEvent + 1093
8 com.apple.AppKit 0x00007fff78cd81c3 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1637
9 Tk 0x0000000104b01285 0x104a47000 + 762501
10 Tk 0x0000000104b0171f 0x104a47000 + 763679
11 Tcl 0x00000001049d75f8 Tcl_DoOneEvent + 317
12 Tk 0x0000000104a55932 0x104a47000 + 59698
13 Tcl 0x00000001049695b7 0x10495b000 + 58807
14 Tcl 0x0000000104969e46 Tcl_EvalObjv + 59
15 _tkinter.so 0x00000001037dfe39 Tkapp_Call + 617
16 libpython2.7.dylib 0x00000001000a3302 PyEval_EvalFrameEx + 3730
17 libpython2.7.dylib 0x00000001000ac913 fast_function + 179
18 libpython2.7.dylib 0x00000001000a338a PyEval_EvalFrameEx + 3866
19 libpython2.7.dylib 0x00000001000ac7dc PyEval_EvalCodeEx + 2092
20 libpython2.7.dylib 0x00000001000ac988 fast_function + 296
21 libpython2.7.dylib 0x00000001000a338a PyEval_EvalFrameEx + 3866
22 libpython2.7.dylib 0x00000001000ac7dc PyEval_EvalCodeEx + 2092
23 libpython2.7.dylib 0x00000001000ac988 fast_function + 296
24 libpython2.7.dylib 0x00000001000a338a PyEval_EvalFrameEx + 3866
25 libpython2.7.dylib 0x00000001000ac7dc PyEval_EvalCodeEx + 2092
26 libpython2.7.dylib 0x0000000100035c1b function_call + 347
27 libpython2.7.dylib 0x000000010000c761 PyObject_Call + 97
28 libpython2.7.dylib 0x00000001000a3cea PyEval_EvalFrameEx + 6266
29 libpython2.7.dylib 0x00000001000ac7dc PyEval_EvalCodeEx + 2092
30 libpython2.7.dylib 0x00000001000ac988 fast_function + 296
31 libpython2.7.dylib 0x00000001000a338a PyEval_EvalFrameEx + 3866
32 libpython2.7.dylib 0x00000001000ac7dc PyEval_EvalCodeEx + 2092
33 libpython2.7.dylib 0x0000000100035c1b function_call + 347
34 libpython2.7.dylib 0x000000010000c761 PyObject_Call + 97
35 libpython2.7.dylib 0x000000010001e7d7 instancemethod_call + 503
36 libpython2.7.dylib 0x000000010000c761 PyObject_Call + 97
37 libpython2.7.dylib 0x000000010006673a slot_tp_init + 106
38 libpython2.7.dylib 0x0000000100062465 type_call + 229
39 libpython2.7.dylib 0x000000010000c761 PyObject_Call + 97
40 libpython2.7.dylib 0x00000001000a35a5 PyEval_EvalFrameEx + 4405
41 libpython2.7.dylib 0x00000001000ac7dc PyEval_EvalCodeEx + 2092
42 libpython2.7.dylib 0x0000000100035c1b function_call + 347
43 libpython2.7.dylib 0x000000010000c761 PyObject_Call + 97
44 libpython2.7.dylib 0x000000010001e7d7 instancemethod_call + 503
45 libpython2.7.dylib 0x000000010000c761 PyObject_Call + 97
46 libpython2.7.dylib 0x000000010006673a slot_tp_init + 106
47 libpython2.7.dylib 0x0000000100062465 type_call + 229
48 libpython2.7.dylib 0x000000010000c761 PyObject_Call + 97
49 libpython2.7.dylib 0x00000001000a3cea PyEval_EvalFrameEx + 6266
50 libpython2.7.dylib 0x00000001000ac913 fast_function + 179
51 libpython2.7.dylib 0x00000001000a338a PyEval_EvalFrameEx + 3866
52 libpython2.7.dylib 0x00000001000ac913 fast_function + 179
53 libpython2.7.dylib 0x00000001000a338a PyEval_EvalFrameEx + 3866
54 libpython2.7.dylib 0x00000001000ac7dc PyEval_EvalCodeEx + 2092
55 libpython2.7.dylib 0x0000000100035c1b function_call + 347
56 libpython2.7.dylib 0x000000010000c761 PyObject_Call + 97
57 libpython2.7.dylib 0x000000010001e7d7 instancemethod_call + 503
58 libpython2.7.dylib 0x000000010000c761 PyObject_Call + 97
59 libpython2.7.dylib 0x000000010006673a slot_tp_init + 106
60 libpython2.7.dylib 0x0000000100062465 type_call + 229
61 libpython2.7.dylib 0x000000010000c761 PyObject_Call + 97
62 libpython2.7.dylib 0x00000001000a35a5 PyEval_EvalFrameEx + 4405
63 libpython2.7.dylib 0x00000001000ac913 fast_function + 179
64 libpython2.7.dylib 0x00000001000a338a PyEval_EvalFrameEx + 3866
65 libpython2.7.dylib 0x00000001000ac7dc PyEval_EvalCodeEx + 2092
66 libpython2.7.dylib 0x00000001000ac856 PyEval_EvalCode + 54
67 libpython2.7.dylib 0x00000001000cb3d4 PyRun_FileExFlags + 164
68 libpython2.7.dylib 0x00000001000cc709 PyRun_SimpleFileExFlags + 409
69 libpython2.7.dylib 0x00000001000e01ca Py_Main + 2938
70 python 0x0000000100000f14 start + 52
Thread 1:
0 libsystem_kernel.dylib 0x00007fff8fb354e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8fc1d622 _pthread_wqthread + 1023
2 libsystem_pthread.dylib 0x00007fff8fc1d211 start_wqthread + 13
Thread 2:
0 libsystem_kernel.dylib 0x00007fff8fb354e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8fc1d622 _pthread_wqthread + 1023
2 libsystem_pthread.dylib 0x00007fff8fc1d211 start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff8fb354e6 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8fc1d7b5 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fff8fc1d211 start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8fb34f4e __select + 10
1 Tcl 0x0000000104a08271 0x10495b000 + 709233
2 libsystem_pthread.dylib 0x00007fff8fc1daab _pthread_body + 180
3 libsystem_pthread.dylib 0x00007fff8fc1d9f7 _pthread_start + 286
4 libsystem_pthread.dylib 0x00007fff8fc1d221 thread_start + 13
Thread 5:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff8fb2d41a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8fb2c867 mach_msg + 55
2 libsystem_kernel.dylib 0x00007fff8fb21ed1 _kernelrpc_mach_port_set_attributes + 150
3 libdispatch.dylib 0x00007fff8f9e7739 _dispatch_runloop_queue_handle_init + 171
4 libdispatch.dylib 0x00007fff8f9d84b7 _dispatch_runloop_root_queue_create_4CF + 133
5 com.apple.CoreFoundation 0x00007fff7a9091e6 __CFRunLoopFindMode + 502
6 com.apple.CoreFoundation 0x00007fff7a909889 CFRunLoopAddSource + 201
7 com.apple.HIToolbox 0x00007fff79ed9897 AdjustCGSSourceInRunLoop(void ()(__CFRunLoop, __CFRunLoopSource*, __CFString const*), __CFRunLoop*, __CFRunLoopSource*) + 180
8 com.apple.HIToolbox 0x00007fff79ed97bb AddCGSSourceToRunLoop(__CFRunLoop*) + 78
9 com.apple.HIToolbox 0x00007fff79eecc52 _BeginEventReceiptOnThread + 181
10 com.apple.AppKit 0x00007fff7870f4f8 _NSEventThread + 37
11 libsystem_pthread.dylib 0x00007fff8fc1daab _pthread_body + 180
12 libsystem_pthread.dylib 0x00007fff8fc1d9f7 _pthread_start + 286
13 libsystem_pthread.dylib 0x00007fff8fc1d221 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000307 rbx: 0x00000001003d93f0 rcx: 0x00007fff8f9f9530 rdx: 0x0000000000000307
rdi: 0x0000000000000001 rsi: 0x0000000000000006 rbp: 0x00007fff5fbfa160 rsp: 0x00007fff5fbfa0f0
r8: 0x0000000000000040 r9: 0x00000001003d9408 r10: 0xffffffffffffffff r11: 0x0000000000012068
r12: 0x00000001003d93e0 r13: 0x00000001003d94a0 r14: 0x00007fff986f5a80 r15: 0x0000000102076898
rip: 0x00007fff8f9ddd21 rfl: 0x0000000000010202 cr2: 0x00007fff9db1224b
Logical CPU: 3
Error Code: 0x00000000
Trap Number: 6
Binary Images:
0x100000000 - 0x100000ff7 +python (???) /Users/USER//python
0x100003000 - 0x100146ff7 +libpython2.7.dylib (2.7) <87FF0E63-058F-3190-A882-8E25F3D889C7> /Users/USER//libpython2.7.dylib
0x1002db000 - 0x1002dcff7 +_locale.so (???) /Users/USER//_locale.so
0x1002e0000 - 0x1002e6ff7 +itertools.so (???) /Users/USER//itertools.so
<<<<<< LINES OMITTED FOR BREVITY >>>>>>
0x7fff8fc2b000 - 0x7fff8fc32fff libsystem_symptoms.dylib (532.1.1) <8FB7CA37-79EF-3651-B5B9-B5E1E0947067> /usr/lib/system/libsystem_symptoms.dylib
0x7fff8fc33000 - 0x7fff8fc53ff7 libsystem_trace.dylib (518.20.8) /usr/lib/system/libsystem_trace.dylib
0x7fff8fc54000 - 0x7fff8fc59ffb libunwind.dylib (35.3) <9F7C2AD8-A9A7-3DE4-828D-B0F0F166AAA0> /usr/lib/system/libunwind.dylib
0x7fff8fc5a000 - 0x7fff8fc83ff7 libxpc.dylib (972.20.3) <85EB25FD-218F-38EE-9E69-391CC8EBE6C5> /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: 542465
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=254.5M resident=0K(0%) swapped_out_or_unallocated=254.5M(100%)
Writable regions: Total=96.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=96.5M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Activity Tracing 256K 2
CoreUI image file 144K 3
Dispatch continuations 8192K 2
Kernel Alloc Once 8K 2
MALLOC 61.8M 54
MALLOC guard page 32K 7
Memory Tag 242 12K 2
STACK GUARD 56.0M 7
Stack 10.1M 7
VM_ALLOCATE 48K 7
__DATA 21.0M 292
__IMAGE 528K 2
__LINKEDIT 115.0M 66
__TEXT 139.5M 288
__UNICODE 556K 2
mapped file 43.2M 9
shared memory 16.3M 12
=========== ======= =======
TOTAL 472.4M 747
Model: MacBookPro11,1, BootROM MBP111.0138.B17, 2 processors, Intel Core i5, 2,4 GHz, 8 GB, SMC 2.16f68
Graphics: Intel Iris, Intel Iris, Built-In
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343531533641465238412D50422020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343531533641465238412D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x112), Broadcom BCM43xx 1.0 (7.21.171.47.1a8)
Bluetooth: Version 5.0.1f7, 3 services, 17 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en0
Serial ATA Device: APPLE SSD SM0256F, 251 GB
USB Device: USB 3.0 Bus
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 17.2
Try setting the "start method" to "spawn" instead of the default of "fork". See https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods for further details.
This worked for me on a similar problem.
Ok, more info: If I run a first process from terminal, whose script 'visl.py' is:
#!/usr/bin/env python
from multiprocessing import Process
import sys
sys.path.insert(0, './lib')
import visualizer
visualizer.Visualizer()
and then a second process from a different terminal instance, whose script 'logr.py' is:
#!/usr/bin/env python
from multiprocessing import Process
import sys
sys.path.insert(0, './lib')
import logger
args_logger = {'sampling_time_ms': 5, 'plotting_time_ms': 100}
logger.Logger(args_logger)
It works. Then: how to run two python processes from a single script?
0 WTFCrash assertions.cpp 345 0x10f50517
1 WTF::OwnPtr::operator-> ownptr.h 72 0xffbc8cd
2 WebCore::BitmapTextureImageBuffer::updateContents texturemapperimagebuffer.cpp 62 0x109cb865
3 WebCore::TextureMapperTile::updateContents texturemappertile.cpp 70 0x109cfdb5
4 WebCore::TextureMapperTiledBackingStore::updateContents texturemappertiledbackingstore.cpp 147 0x109c1831
5 WebCore::GraphicsLayerTextureMapper::updateBackingStoreIfNeeded graphicslayertexturemapper.cpp 624 0x103b852e
6 WebCore::GraphicsLayerTextureMapper::flushCompositingStateForThisLayerOnly graphicslayertexturemapper.cpp 444 0x103b79b4
7 WebCore::GraphicsLayerTextureMapper::flushCompositingState graphicslayertexturemapper.cpp 591 0x103b78c7
8 WebCore::GraphicsLayerTextureMapper::flushCompositingState graphicslayertexturemapper.cpp 596 0x103b796f
9 WebCore::GraphicsLayerTextureMapper::flushCompositingState graphicslayertexturemapper.cpp 596 0x103b796f
10 WebCore::GraphicsLayerTextureMapper::flushCompositingState graphicslayertexturemapper.cpp 596 0x103b796f
11 WebCore::GraphicsLayerTextureMapper::flushCompositingState graphicslayertexturemapper.cpp 596 0x103b796f
12 WebCore::GraphicsLayerTextureMapper::flushCompositingState graphicslayertexturemapper.cpp 596 0x103b796f
13 WebCore::RenderLayerCompositor::flushPendingLayerChanges renderlayercompositor.cpp 399 0x1010ef84
14 WebCore::FrameView::flushCompositingStateForThisFrame frameview.cpp 937 0xffda850
15 WebCore::FrameView::paintContents frameview.cpp 3613 0xffdd1a0
16 QWebFrameAdapter::renderRelativeCoords qwebframeadapter.cpp 539 0xfb0787c
17 QWebFrame::render qwebframe.cpp 644 0x60e96a96
18 QWebFrame::render qwebframe.cpp 655 0x60e96a54
19 QWebView::paintEvent qwebview.cpp 833 0x60ea34e8
20 QWidget::event qwidget.cpp 8114 0x778e9b5c
21 QWebView::event qwebview.cpp 732 0x60ea30dc
22 QApplicationPrivate::notify_helper qapplication.cpp 3500 0x778a1dde
23 QApplication::notify qapplication.cpp 3465 0x7789fdbe
24 QCoreApplication::notifyInternal qcoreapplication.cpp 935 0x66412d04
25 QCoreApplication::sendSpontaneousEvent qcoreapplication.h 240 0x66528938
26 QWidgetPrivate::drawWidget qwidget.cpp 5151 0x778ef4f1
27 QWidgetBackingStore::doSync qwidgetbackingstore.cpp 1180 0x778b2a74
28 QWidgetBackingStore::sync qwidgetbackingstore.cpp 1027 0x778b0f40
29 QWidgetPrivate::syncBackingStore qwidget.cpp 1693 0x778f13e1
30 QWidget::event qwidget.cpp 8252 0x778e9ee2
31 QWebView::event qwebview.cpp 732 0x60ea30dc
32 QApplicationPrivate::notify_helper qapplication.cpp 3500 0x778a1dde
33 QApplication::notify qapplication.cpp 3465 0x7789fdbe
34 QCoreApplication::notifyInternal qcoreapplication.cpp 935 0x66412d04
35 QCoreApplication::sendEvent qcoreapplication.h 237 0x6641c0d9
36 QCoreApplicationPrivate::sendPostedEvents qcoreapplication.cpp 1539 0x66413ce6
37 QCoreApplication::sendPostedEvents qcoreapplication.cpp 1397 0x664117c2
38 QWindowsGuiEventDispatcher::sendPostedEvents qwindowsguieventdispatcher.cpp 88 0x5223bf1
39 qt_internal_proc qeventdispatcher_win.cpp 423 0x664aa392
40 _InternalCallWinProc USER32 0x77467834
41 UserCallWinProcCheckWow USER32 0x77467a9a
42 DispatchMessageWorker USER32 0x7746988e
43 DispatchMessageW USER32 0x774698f1
44 QEventDispatcherWin32::processEvents qeventdispatcher_win.cpp 757 0x664aac85
45 QWindowsGuiEventDispatcher::processEvents qwindowsguieventdispatcher.cpp 80 0x5223b1c
46 QEventLoop::processEvents qeventloop.cpp 137 0x6640eb8c
47 QEventLoop::exec qeventloop.cpp 212 0x6640ed82
48 MainWindow::waitForLoad mainwindow.cpp 345 0xe10fd2
49 MainWindow::thread mainwindow.cpp 460 0xe0729b
50 MainWindow::on_GoButton_clicked mainwindow.cpp 99 0xe04b32
51 MainWindow::qt_static_metacall moc_mainwindow.cpp 72 0xe2f5a8
52 MainWindow::qt_metacall moc_mainwindow.cpp 100 0xe2f53b
53 QMetaObject::metacall qmetaobject.cpp 309 0x6641ede0
54 QMetaObject::activate qobject.cpp 3695 0x6645da56
55 QMetaObject::activate qobject.cpp 3546 0x6645d411
56 QAbstractButton::clicked moc_qabstractbutton.cpp 294 0x77d4809b
57 QAbstractButtonPrivate::emitClicked qabstractbutton.cpp 544 0x779f6657
58 QAbstractButtonPrivate::click qabstractbutton.cpp 536 0x779f5bdb
59 QAbstractButton::mouseReleaseEvent qabstractbutton.cpp 1141 0x779f5042
60 QWidget::event qwidget.cpp 7962 0x778e957c
61 QAbstractButton::event qabstractbutton.cpp 1098 0x779f4ba1
62 QPushButton::event qpushbutton.cpp 682 0x77ab6f1b
63 QApplicationPrivate::notify_helper qapplication.cpp 3500 0x778a1dde
64 QApplication::notify qapplication.cpp 3067 0x7789e5ee
65 QCoreApplication::notifyInternal qcoreapplication.cpp 935 0x66412d04
66 QCoreApplication::sendSpontaneousEvent qcoreapplication.h 240 0x66528938
67 QApplicationPrivate::sendMouseEvent qapplication.cpp 2540 0x778a3123
68 QWidgetWindow::handleMouseEvent qwidgetwindow.cpp 505 0x779249f1
69 QWidgetWindow::event qwidgetwindow.cpp 180 0x77923c0e
70 QApplicationPrivate::notify_helper qapplication.cpp 3500 0x778a1dde
71 QApplication::notify qapplication.cpp 2953 0x7789dfb7
72 QCoreApplication::notifyInternal qcoreapplication.cpp 935 0x66412d04
73 QCoreApplication::sendSpontaneousEvent qcoreapplication.h 240 0x66528938
74 QGuiApplicationPrivate::processMouseEvent qguiapplication.cpp 1701 0x10c82af
75 QGuiApplicationPrivate::processWindowSystemEvent qguiapplication.cpp 1502 0x10ca1d9
76 QWindowSystemInterface::sendWindowSystemEvents qwindowsysteminterface.cpp 579 0x10acad1
77 QWindowsGuiEventDispatcher::sendPostedEvents qwindowsguieventdispatcher.cpp 89 0x5223c01
78 qt_internal_proc qeventdispatcher_win.cpp 423 0x664aa392
79 _InternalCallWinProc USER32 0x77467834
80 UserCallWinProcCheckWow USER32 0x77467a9a
81 DispatchMessageWorker USER32 0x7746988e
82 DispatchMessageW USER32 0x774698f1
83 QEventDispatcherWin32::processEvents qeventdispatcher_win.cpp 757 0x664aac85
84 QWindowsGuiEventDispatcher::processEvents qwindowsguieventdispatcher.cpp 80 0x5223b1c
85 QEventLoop::processEvents qeventloop.cpp 137 0x6640eb8c
86 QEventLoop::exec qeventloop.cpp 212 0x6640ed82
87 QCoreApplication::exec qcoreapplication.cpp 1188 0x66411312
88 QGuiApplication::exec qguiapplication.cpp 1437 0x10c6e78
89 QApplication::exec qapplication.cpp 2746 0x7789dab9
90 main main.cpp 10 0xe02c18 91 WinMain qtmain_win.cpp 131 0xe3145a
92 __tmainCRTStartup crtexe.c 528 0xe30872
93 WinMainCRTStartup crtexe.c 377 0xe3063d
94 BaseThreadInitThunk KERNEL32 0x772f919f
95 __RtlUserThreadStart ntdll 0x7771a8cb
96 _RtlUserThreadStart ntdll 0x7771a8a1
It outputs
QPainter::begin: Paint device returned engine == 0, type: 2 ASSERTION
FAILED: m_ptr
c:\work\build\qt5_workdir\w\s\qtwebkit\Source\WTF\wtf/OwnPtr.h(72) :
WTF::OwnPtr::operator ->
In function
bool MainWindow::waitForLoad(QWebView& view)
{
QEventLoop loopLoad;
QTimer timer;
QObject::connect(&view, SIGNAL(loadFinished(bool)), &loopLoad, SLOT(quit()));
QObject::connect(&view, SIGNAL(loadFinished(bool)), &timer, SLOT(stop()));
QObject::connect(&timer, SIGNAL(timeout()), &loopLoad, SLOT(quit()));
timer.start(timeout);
loopLoad.exec();
if(timer.isActive())
{
timer.stop();
view.stop();
return false;
}
return true;
}
On the line "loopLoad.exec();"
Please help me. What's wrong with my code? Or how to fix that? I ready to disable any user-controls, css, images and ect. Advise me how to make it work
I know the answer! To fix this problem, enable autoload images!