flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
10.68k stars 412 forks source link

Flet Build macOS Thread 21 Crash #2733

Open TheHanswolo opened 6 months ago

TheHanswolo commented 6 months ago

Description

Code example to reproduce the issue:

(paste your program here)

Describe the results you received:

STACK GUARD 16fb10000-16fb14000 [ 16K] ---/rwx SM=NUL ...for thread 21 Stack 16fb14000-16fb9c000 [ 544K] rw-/rwx SM=PRV thread 21 Thread 21 Crashed: 0 libsystem_pthread.dylib 0x18450ce7c ___chkstk_darwin + 60 1 libopenblas64_.0.dylib 0x114871ce0 dgetrf_parallel + 52 2 libopenblas64_.0.dylib 0x114719b30 dgesv_64_ + 372 3 _umath_linalg.cpython-311-darwin.so 0x1110dd488 void inv(char**, long const*, long const*, void*) + 616 4 _multiarray_umath.cpython-311-darwin.so 0x111926438 generic_wrapped_legacy_loop + 40 5 _multiarray_umath.cpython-311-darwin.so 0x11192db40 ufunc_generic_fastcall + 15976 6 serious_python_darwin 0x101fa78d4 PyObject_Vectorcall + 80 7 serious_python_darwin 0x10209796c _PyEval_EvalFrameDefault + 34524 8 serious_python_darwin 0x10208f1f0 _PyEval_Vector + 200 9 serious_python_darwin 0x101fa78d4 PyObject_Vectorcall + 80 10 _multiarray_umath.cpython-311-darwin.so 0x1118429a8 dispatcher_vectorcall + 628 11 serious_python_darwin 0x101fa78d4 PyObject_Vectorcall + 80 12 serious_python_darwin 0x10209796c _PyEval_EvalFrameDefault + 34524 13 serious_python_darwin 0x10208f1f0 _PyEval_Vector + 200 14 serious_python_darwin 0x101fa78d4 PyObject_Vectorcall + 80 15 _multiarray_umath.cpython-311-darwin.so 0x1118429a8 dispatcher_vectorcall + 628 16 serious_python_darwin 0x101fa78d4 PyObject_Vectorcall + 80 17 serious_python_darwin 0x10209796c _PyEval_EvalFrameDefault + 34524 18 serious_python_darwin 0x10208f0c0 PyEval_EvalCode + 272 19 serious_python_darwin 0x10208ba00 builtin_exec + 916 20 serious_python_darwin 0x101ff4834 cfunction_vectorcall_FASTCALL_KEYWORDS + 160 21 serious_python_darwin 0x1020995dc _PyEval_EvalFrameDefault + 41804 22 serious_python_darwin 0x10208f1f0 _PyEval_Vector + 200 23 serious_python_darwin 0x101fa8f00 object_vacall + 256 24 serious_python_darwin 0x101fa8d68 PyObject_CallMethodObjArgs + 92 25 serious_python_darwin 0x1020cd0bc PyImport_ImportModuleLevelObject + 1308 26 serious_python_darwin 0x102094cc4 _PyEval_EvalFrameDefault + 23092 27 serious_python_darwin 0x10208f0c0 PyEval_EvalCode + 272 28 serious_python_darwin 0x10208ba00 builtin_exec + 916 29 serious_python_darwin 0x101ff4834 cfunction_vectorcall_FASTCALL_KEYWORDS + 160 30 serious_python_darwin 0x1020995dc _PyEval_EvalFrameDefault + 41804 31 serious_python_darwin 0x10208f1f0 _PyEval_Vector + 200 32 serious_python_darwin 0x101fa8f00 object_vacall + 256 33 serious_python_darwin 0x101fa8d68 PyObject_CallMethodObjArgs + 92 34 serious_python_darwin 0x1020cd0bc PyImport_ImportModuleLevelObject + 1308 35 serious_python_darwin 0x102094cc4 _PyEval_EvalFrameDefault + 23092 36 serious_python_darwin 0x10208f0c0 PyEval_EvalCode + 272 37 serious_python_darwin 0x10208ba00 builtin_exec + 916 38 serious_python_darwin 0x101ff4834 cfunction_vectorcall_FASTCALL_KEYWORDS + 160 39 serious_python_darwin 0x1020995dc _PyEval_EvalFrameDefault + 41804 40 serious_python_darwin 0x10208f1f0 _PyEval_Vector + 200 41 serious_python_darwin 0x101fa8f00 object_vacall + 256 42 serious_python_darwin 0x101fa8d68 PyObject_CallMethodObjArgs + 92 43 serious_python_darwin 0x1020cd0bc PyImport_ImportModuleLevelObject + 1308 44 serious_python_darwin 0x10208aa2c builtin___import__ + 256 45 serious_python_darwin 0x101ff4834 cfunction_vectorcall_FASTCALL_KEYWORDS + 160 46 serious_python_darwin 0x1020995dc _PyEval_EvalFrameDefault + 41804 47 serious_python_darwin 0x10208f1f0 _PyEval_Vector + 200 48 serious_python_darwin 0x101fa8f00 object_vacall + 256 49 serious_python_darwin 0x101fa8d68 PyObject_CallMethodObjArgs + 92 50 serious_python_darwin 0x1020cd0bc PyImport_ImportModuleLevelObject + 1308 51 serious_python_darwin 0x102094cc4 _PyEval_EvalFrameDefault + 23092 52 serious_python_darwin 0x10208f0c0 PyEval_EvalCode + 272 53 serious_python_darwin 0x10208ba00 builtin_exec + 916 54 serious_python_darwin 0x101ff4834 cfunction_vectorcall_FASTCALL_KEYWORDS + 160 55 serious_python_darwin 0x1020995dc _PyEval_EvalFrameDefault + 41804 56 serious_python_darwin 0x10208f1f0 _PyEval_Vector + 200 57 serious_python_darwin 0x101fa8f00 object_vacall + 256 58 serious_python_darwin 0x101fa8d68 PyObject_CallMethodObjArgs + 92 59 serious_python_darwin 0x1020cd0bc PyImport_ImportModuleLevelObject + 1308 60 serious_python_darwin 0x102094cc4 _PyEval_EvalFrameDefault + 23092 61 serious_python_darwin 0x10208f0c0 PyEval_EvalCode + 272 62 serious_python_darwin 0x10208ba00 builtin_exec + 916 63 serious_python_darwin 0x101ff4834 cfunction_vectorcall_FASTCALL_KEYWORDS + 160 64 serious_python_darwin 0x101fa78d4 PyObject_Vectorcall + 80 65 serious_python_darwin 0x10209796c _PyEval_EvalFrameDefault + 34524 66 serious_python_darwin 0x10208f0c0 PyEval_EvalCode + 272 67 serious_python_darwin 0x1020e7bb0 PyRun_StringFlags + 220 68 serious_python_darwin 0x1020e9404 PyRun_SimpleString + 60 69 serious_python_darwin 0x101f5b4f4 specialized SeriousPythonPlugin.runPythonScript(script:) + 48 70 serious_python_darwin 0x101f5ae3c @objc SeriousPythonPlugin.runPythonFile(appPath:) + 64 71 Foundation 0x1856f0fb4 __NSThread__start__ + 716 72 libsystem_pthread.dylib 0x184512034 _pthread_start + 136 73 libsystem_pthread.dylib 0x18450ce3c thread_start + 8 -->

I was hoping for a compiled app.

Additional information you deem important (e.g. issue happens only occasionally):

Flet 0.20.2:

flet==0.20.2 flet-core==0.20.2 flet-runtime==0.20.2 openpyxl==3.1.2 pyautogui==0.9.54 pandas==2.1.4

(The requirements)

Mac Sonoma Version 14.2.1:

python 3.12

TheHanswolo commented 6 months ago

Translated Report (Full Report Below)

Process: interview_worksheet [57189] Path: /Volumes/VOLUME/*/interview_worksheet.app/Contents/MacOS/interview_worksheet Identifier: com.flet.interview_worksheet Version: 1.0.0 (1) Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501

Date/Time: 2024-02-22 15:05:08.9001 -0500 OS Version: macOS 14.2.1 (23C71) Report Version: 12 Anonymous UUID: 16B1DBE8-F74A-C4AA-267B-F01D023472AB

Sleep/Wake UUID: 5094A776-6ED5-4487-BED5-A1A2AEF74CDD

Time Awake Since Boot: 670000 seconds Time Since Wake: 613612 seconds

System Integrity Protection: enabled

Crashed Thread: 21

Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x000000016fb13ff8 Exception Codes: 0x0000000000000002, 0x000000016fb13ff8

Termination Reason: Namespace SIGNAL, Code 10 Bus error: 10 Terminating Process: exc handler [57189]

VM Region Info: 0x16fb13ff8 is in 0x16fb10000-0x16fb14000; bytes after start: 16376 bytes before end: 7 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL Stack 16fa08000-16fb10000 [ 1056K] rw-/rwx SM=PRV thread 20 ---> STACK GUARD 16fb10000-16fb14000 [ 16K] ---/rwx SM=NUL ...for thread 21 Stack 16fb14000-16fb9c000 [ 544K] rw-/rwx SM=PRV thread 21