Fusion crashes after running C++ script

Fusion crashes after running C++ script

Anonymous
Not applicable
981 Views
5 Replies
Message 1 of 6

Fusion crashes after running C++ script

Anonymous
Not applicable

I have a short script in C++ which iterates over all the files in a folder, generates the toolpaths for each then calls a postprocessor. This works fine, but crashes somewhere after exiting the script. All I can tell you from looking at the stack trace on thread 1 is this is in ~QRenderRule called from QHashData::free_helper ( that's a little suspicious ) on what looks like a bad address, if that's a clue of any sort. Not really seeing anything in my code that might have clobberred something.

Other than that running debugging in Xcode is pretty nice.

 

0 Likes
Accepted solutions (1)
982 Views
5 Replies
Replies (5)
Message 2 of 6

ekinsb
Alumni
Alumni

Do you have an f3d and program that you can share with use that can be used to reproduce the problem?


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 3 of 6

Anonymous
Not applicable

I beleive you can run this over any folder that has an arbitrary amount ( more than 1 ) models in it. The output path and postprocessor filename is hard coded in the constructor of '

testDocsList' ( the one class ).

Here is a zipped file of the C++ ( xcode ). My issue is with lathe models.

0 Likes
Message 4 of 6

marshaltu
Autodesk
Autodesk
Accepted solution

Hello,

 

I can reproduce the crash in MAC and log UP-26458 to track the issue in our internal system.

 

I am guessing it may be related to ProgressDialog. If I comment out ProgressDialog-related codes, the crash would be gone. We will do more investigation and find root cause out.

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes
Message 5 of 6

Anonymous
Not applicable

I am guessing it may be related to ProgressDialog. If I comment out ProgressDialog-related codes, the crash would be gone.

 

I get the same here. No ProgressDialog, no crash.

 - Adam

0 Likes
Message 6 of 6

Anonymous
Not applicable

There's another problem!

 

If the call to 'ProgressDialog' is taken out not all the operations get post processed.

If the call to 'ProgressDialog' is put back in, all the ops get processed but Fusion crashes!

 

This is going to be a little more complicated.

 

Edit: no sorry, forget this, I need to do a little more reading on the way 'GenerateToolpathFuture' works...

 

0 Likes