Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fusion 360 crashes on filedialog.askopenfile() method call

3 REPLIES 3
Reply
Message 1 of 4
t_tkacp
323 Views, 3 Replies

Fusion 360 crashes on filedialog.askopenfile() method call

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.

3 REPLIES 3
Message 2 of 4
marshaltu
in reply to: t_tkacp

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 360 Developer
Autodesk, Inc.

Message 3 of 4
t_tkacp
in reply to: marshaltu

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.

Message 4 of 4
marshaltu
in reply to: t_tkacp

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 360 Developer
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report