[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6
New submission from Nythepegasus : Using tkinter.filedialog crashes on macOS 12.0 Beta (21A5294g) on M1 when the open file dialog window is created. Full crash below: 2021-08-04 07:19:04.239 Python[40251:323363] *** Assertion failure in -[NSOpenPanel beginServicePanel:asyncExHandler:], NSVBOpenAndSavePanels.m:1910 2021-08-04 07:19:04.241 Python[40251:323363] -[NSSavePanel beginWithCompletionHandler:]_block_invoke caught non-fatal NSInternalInconsistencyException ' is attempting to advance this Open/Save panel to run phase while another self.advanceToRunPhaseCompletionHandler is in waiting for a previous attempt. An Open/Save panel cannot start to advance more than once.' with user dictionary { NSAssertFile = "NSVBOpenAndSavePanels.m"; NSAssertLine = 1910; } and backtrace ( 0 CoreFoundation 0x0001a9d47150 __exceptionPreprocess + 240 1 libobjc.A.dylib 0x0001a9a986e8 objc_exception_throw + 60 2 Foundation 0x0001aac3b4a4 -[NSCalendarDate initWithCoder:] + 0 3 AppKit 0x0001ad1f02b0 -[NSSavePanel beginServicePanel:asyncExHandler:] + 512 4 AppKit 0x0001ad1f1708 -[NSSavePanel runModal] + 332 5 libtk8.6.dylib 0x0001013d8c18 showOpenSavePanel + 360 6 libtk8.6.dylib 0x0001013d99e4 Tk_ChooseDirectoryObjCmd + 992 7 libtcl8.6.dylib 0x0001011cbafc TclNRRunCallbacks + 80 8 _tkinter.cpython-39-darwin.so 0x000100c111a4 Tkapp_Call + 400 9 Python 0x000100d66a40 cfunction_call + 96 10 Python 0x000100d184e0 _PyObject_Call + 128 11 Python 0x000100e10150 _PyEval_EvalFrameDefault + 40288 12 Python 0x000100e053f0 _PyEval_EvalCode + 444 13 Python 0x000100d1877c _PyFunction_Vectorcall + 364 14 Python 0x000100e12590 call_function + 128 15 Python 0x000100e0ff08 _PyEval_EvalFrameDefault + 39704 16 Python 0x000100e053f0 _PyEval_EvalCode + 444 17 Python 0x000100d1877c _PyFunction_Vectorcall + 364 18 Python 0x000100e12590 call_function + 128 19 Python 0x000100e0ff84 _PyEval_EvalFrameDefault + 39828 20 Python 0x000100e053f0 _PyEval_EvalCode + 444 21 Python 0x000100e5cce4 run_eval_code_obj + 136 22 Python 0x000100e5cbf8 run_mod + 112 23 Python 0x000100e5a434 pyrun_file + 168 24 Python 0x000100e59d58 pyrun_simple_file + 276 25 Python 0x000100e59c04 PyRun_SimpleFileExFlags + 80 26 Python 0x000100e79d2c pymain_run_file + 320 27 Python 0x000100e7947c Py_RunMain + 916 28 Python 0x000100e7a6c4 pymain_main + 36 29 Python 0x000100e7a93c Py_BytesMain + 40 30 dyld0x0001007990fc start + 520 ) . -- components: Tkinter files: tkinter_crash.py messages: 398889 nosy: Nythepegasus priority: normal severity: normal status: open title: Using tkinter.filedialog crashes on macOS Python 3.9.6 type: crash versions: Python 3.9 Added file: https://bugs.python.org/file50200/tkinter_crash.py ___ Python tracker <https://bugs.python.org/issue44828> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6
Nythepegasus added the comment: I used brew.sh to install Python, which I think uses the universal installer (although I can’t check, reinstalling macOS after hours of failing to downgrade back to Big Sur). I can’t remember the exact error, but it seemed to be from Apple’s end since it complained about not having access to the save/open dialog box. After I reinstall macOS, if you need further testing, i’m open to trying. On Aug 4, 2021, 2:53 PM -0400, E. Paine , wrote: > > E. Paine added the comment: > > Thanks for reporting issue and for including the backtrace. I presume you > used the Universal 2 installer, given that you are running an M1 mac? > > Kevin, do you have access to the macOS 12 beta to help test whether this is a > Tkinter or Tk bug? (I assume the latter, as it is likely Apple have changed > the API again) > > -- > components: +macOS > nosy: +epaine, ned.deily, ronaldoussoren, serhiy.storchaka, wordtech > > ___ > Python tracker > <https://bugs.python.org/issue44828> > ___ -- title: Using tkinter.filedialog crashes on macOS 12 Monterey beta 4 with tk8.6.11 from python.org installers -> Using tkinter.filedialog crashes on macOS Python 3.9.6 ___ Python tracker <https://bugs.python.org/issue44828> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com