[issue22810] tkinter: alloc: invalid block: after askopenfilename
lccat added the comment: Your output is different because you did not close the file dialog by selecting something and the pressing OK, or pressing cancel before destroying the main window. This is also the case here: Traceback (most recent call last): File tktest.py, line 6, in module filename = tkinter.filedialog.askopenfilename() File /usr/lib/python3.4/tkinter/filedialog.py, line 375, in askopenfilename return Open(**options).show() File /usr/lib/python3.4/tkinter/commondialog.py, line 48, in show s = w.tk.call(self.command, *w._options(self.options)) _tkinter.TclError: can't invoke grab command: application has been destroyed alloc: invalid block: 0x1d2cda0: a0 1 zsh: abort python tktest.py However, only the last two lines are relevant here, which you could not reproduce. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22810 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22810] tkinter: alloc: invalid block: after askopenfilename
lccat added the comment: print(TkVersion) 8.6 Tk version in package manager: python-pmw 2.0.0-2 Distribution: arch linux, kernel 3.17.2-1-ARCH -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22810 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22810] tkinter: alloc: invalid block: after askopenfilename
New submission from lccat: After running the Tkinter file dialog ( tkinter.filedialog.askopenfilename() ), and closing the tkinter window the following error message is displayed: alloc: invalid block: 0xb035e0: b0 0 To reproduce see the attached python script tktest. This does not stop the program as far as i can see. Also happens for the directory selector. Platform is linux. -- components: Tkinter files: tktest.py messages: 230768 nosy: lccat priority: normal severity: normal status: open title: tkinter: alloc: invalid block: after askopenfilename versions: Python 3.4 Added file: http://bugs.python.org/file37142/tktest.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22810 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com