Fusion 360 crashes on filedialog.askopenfile() method call

Fusion 360 crashes on filedialog.askopenfile() method call

t_tkacp
Alumni Alumni
645 Views
3 Replies
Message 1 of 4

Fusion 360 crashes on filedialog.askopenfile() method call

t_tkacp
Alumni
Alumni

Hi guys!

 

I have some small issue while I'm try to use OpenFileDilog. Fusion crashes all the time when I try to select file in OpenFileDilog window.

I'm using TK lib. Method -  filedialog.askopenfile()

 

My Python code looks like this:

...

root = Tk()

Button(root, text = 'Open', command = OpenFile)

...

def OpenFile():

    fname = filedialog.askopenfile(filetypes=("JSON files", ".json"))

...

 

P.S. This code works fine outside Fusion enviroment.

0 Likes
646 Views
3 Replies
Replies (3)
Message 2 of 4

marshaltu
Autodesk
Autodesk

Hello,

 

We had known issue whick Tkinter cannot work well with Fusion in MAC. Though it worked well in Windows. We are pursuing a solution for that.

 

I would ask if you only got the crash in MAC? If not, it might be different issue. Please provide a runnable test case to us to reproduce the crash.

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes
Message 3 of 4

t_tkacp
Alumni
Alumni

Hello,

 

Here is some additional info:

 

OS: Windows 8.1 x64

Fusion: latest version (updated today 07/27/2015)

 

Steps to reproduce:
1) Unpack attached files to AddIns folder
2) Run Addin in Fusion
3) In opened window click 'Open' button
4) OpenFileDialog will appear. You can navigate through folders, but once you click on any file Fusion will crash.

 

Thanks,

Pavel.

0 Likes
Message 4 of 4

marshaltu
Autodesk
Autodesk

Hello,

 

Thank you for sharing the addin sample. I can reproduce the issue in Win 8. It worked well in Win 7. We will investigate what's the problem.

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes