Macro crash problem

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
mopy
Posts: 20
Joined: Fri Oct 08, 2021 4:58 am

Macro crash problem

Post by mopy »

Hi,
I have a QT based app. When I try to launch it via a macro it takes down FreeCad after a short amount of time. I'm not sure if it is crashing or some unwanted side effect. It even ejects me from a debugger (while single stepping).
When I run the very same app via an embedded FreeCad it runs quite stable.
My current suspicion is that it is somehow connected to the quiting of some QThread workers I'm using.

Anybody any ideas?

Regards,
Rolf
chrisb
Veteran
Posts: 53939
Joined: Tue Mar 17, 2015 9:14 am

Re: Macro crash problem

Post by chrisb »

Can you provide something - preferably simple - that others can test?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
mopy
Posts: 20
Joined: Fri Oct 08, 2021 4:58 am

Re: Macro crash problem

Post by mopy »

Simple? rather not.
For a start I was hoping that someone knows about any problems to look for in such a multi-threaded scenario with respect to macro vs embedded
mopy
Posts: 20
Joined: Fri Oct 08, 2021 4:58 am

Re: Macro crash problem

Post by mopy »

Threading gives to many problems. Nasty stack buffer overflow and the like. I had to disable most of the threading stuff. But now it works in both versions.
This is what the little thing looks like.
Sample2.jpg
Sample2.jpg (31.88 KiB) Viewed 1091 times
If there's interest, I can share it.
Post Reply