python3 tkinter filedialog has memory fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
New
|
Undecided
|
Unassigned |
Bug Description
The following code
from tkinter import Tk,filedialog
count = 0
while count < 3:
root = Tk()
filename = filedialog.
#filename = filedialog.
#color = colorchooser.
#msg = messagebox.
print("dialog closed")
root.destroy()
count += 1
print(
gives a alloc: invalid block error and halts on an rpi 3 running Jessie. It works fine on a windows 7 PC, i.e. root can be repetitively created and destroyed. The choosecolor and message box dialogs work as expected on both platforms.
I have installed python3-dev and matplotlib python related packages in addition to the python3 that came with raspbian, but as far as I know, that shouldn't matter.
the exact output from running python3 testtk.py is
dialog closed
count 1
alloc: invalid block: ox1ff23b8: 38 1
Aborted
The information after invalid block: changes everytime it's run.
Running within Idle3 has the same behavior though error output.
A less rigorous investigation makes me think python2 may have the same problem.
REPL says
Python 3.4.2 (default, Oct 19 2014, 13:31:11)
[GCC 4.9.1] on linux
Running within Idle3 has the same behavior though NO error output.