Python crash

55 views
Skip to first unread message

shadi abu samra

unread,
Jan 18, 2021, 11:15:16 AM1/18/21
to Swift for TensorFlow
Hello,

I call python function from swift using PythonKit. In my python file I use OpenCV ( import cv2)
The app crash and below crash stack trace:

Thread 2 Crashed:
0   libopenblas.0.dylib           0x000000020ead7718 dgetrf_parallel + 24
1   libopenblas.0.dylib           0x000000020e7bd007 dgesv_ + 407
2   _umath_linalg.cpython-37m-darwin.so 0x0000000218670a69 DOUBLE_inv + 921
3   _multiarray_umath.cpython-37m-darwin.so 0x000000020e5b61f8 PyUFunc_GenericFunction_int + 20936
4   _multiarray_umath.cpython-37m-darwin.so 0x000000020e5b7dbd ufunc_generic_call + 189
5   python3                       0x000000020d8bfa0c _PyObject_FastCallKeywords + 172
6   python3                       0x000000020d9f0c13 call_function + 515
7   python3                       0x000000020d9e8f5b _PyEval_EvalFrameDefault + 22347
8   python3                       0x000000020d8be770 _PyFunction_FastCallDict + 240
9   _multiarray_umath.cpython-37m-darwin.so 0x000000020e34e06c array_implement_array_function + 300
10  python3                       0x000000020d8c02d1 _PyMethodDef_RawFastCallKeywords + 353
11  python3                       0x000000020d9f0b7c call_function + 364
12  python3                       0x000000020d9e8ebb _PyEval_EvalFrameDefault + 22187
13  python3                       0x000000020d9e2157 _PyEval_EvalCodeWithName + 551
14  python3                       0x000000020d8bffc9 _PyFunction_FastCallKeywords + 409
15  python3                       0x000000020d9f0acc call_function + 188
16  python3                       0x000000020d9e8720 _PyEval_EvalFrameDefault + 20240
17  python3                       0x000000020d8bff1b _PyFunction_FastCallKeywords + 235
18  python3                       0x000000020d9f0acc call_function + 188
19  python3                       0x000000020d9e8720 _PyEval_EvalFrameDefault + 20240
20  python3                       0x000000020d8bff1b _PyFunction_FastCallKeywords + 235
21  python3                       0x000000020d9f0acc call_function + 188
22  python3                       0x000000020d9e8720 _PyEval_EvalFrameDefault + 20240
23  python3                       0x000000020d9e2157 _PyEval_EvalCodeWithName + 551
24  python3                       0x000000020d8bffc9 _PyFunction_FastCallKeywords + 409
25  python3                       0x000000020d9f0acc call_function + 188
26  python3                       0x000000020d9e8720 _PyEval_EvalFrameDefault + 20240
27  python3                       0x000000020d8bff1b _PyFunction_FastCallKeywords + 235
28  python3                       0x000000020d9f0acc call_function + 188
29  python3                       0x000000020d9e8720 _PyEval_EvalFrameDefault + 20240
30  python3                       0x000000020d8bff1b _PyFunction_FastCallKeywords + 235
31  python3                       0x000000020d9f0acc call_function + 188
32  python3                       0x000000020d9e8697 _PyEval_EvalFrameDefault + 20103
33  python3                       0x000000020d9e2157 _PyEval_EvalCodeWithName + 551
34  python3                       0x000000020d8be842 _PyFunction_FastCallDict + 450
35  python3                       0x000000020d8c2aaa method_call + 122
36  python3                       0x000000020d8c083f PyObject_Call + 127
37  python3                       0x000000020d9e9066 _PyEval_EvalFrameDefault + 22614
38  python3                       0x000000020d9e2157 _PyEval_EvalCodeWithName + 551
39  python3                       0x000000020d8be842 _PyFunction_FastCallDict + 450
40  python3                       0x000000020d93bd70 slot_tp_call + 176
41  python3                       0x000000020d8c083f PyObject_Call + 127
42  com.apple.taggingStation       0x000000010246bc0b ThrowingPythonObject.dynamicallyCall(withArguments:) + 779
43  com.apple.taggingStation       0x00000001023b448a PythonObject.callFunction(name:withArguments:) + 106
44  com.apple.taggingStation       0x000000010239ea78 specialized closure #1 in PythonScanner.performFunction<A>(function:withArguments:completion:) + 504
45  com.apple.taggingStation       0x00000001023a506e partial apply for specialized closure #1 in PythonScanner.performFunction<A>(function:withArguments:completion:) + 46
46  com.apple.taggingStation       0x00000001023459a9 thunk for @escaping @callee_guaranteed () -> () + 25
47  libdispatch.dylib             0x00007fff68d9a6c4 _dispatch_call_block_and_release + 12
48  libdispatch.dylib             0x00007fff68d9b658 _dispatch_client_callout + 8
49  libdispatch.dylib             0x00007fff68da0c44 _dispatch_lane_serial_drain + 597
50  libdispatch.dylib             0x00007fff68da15d6 _dispatch_lane_invoke + 363
51  libdispatch.dylib             0x00007fff68daac09 _dispatch_workloop_worker_thread + 596
52  libsystem_pthread.dylib       0x00007fff68ff5a3d _pthread_wqthread + 290
53  libsystem_pthread.dylib       0x00007fff68ff4b77 start_wqthread + 15
 
Please advice me

Dan Zheng

unread,
Jan 18, 2021, 11:18:22 AM1/18/21
to shadi abu samra, Swift for TensorFlow
Hi Shadi,

Could you please share a minimal reproducer program? Thanks!

Dan

--
To unsubscribe from this group and stop receiving emails from it, send an email to swift+un...@tensorflow.org.
Reply all
Reply to author
Forward
0 new messages