TechDraw Multithread Testing

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
wandererfan
Veteran
Posts: 6238
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Multithread Testing

Post by wandererfan »

user1234 wrote: Thu Aug 04, 2022 5:32 pm I did a little stress test. When change often really fast scale, direction, generally views or anything else with many views like in the projection group task, then FreeCAD can (must not) crash. Normally that is not a problem, if that happens, then someone demand this.
I see where this fails, but I can't make it happen. Can you reproduce this on command, or is it random?
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Multithread Testing

Post by user1234 »

wandererfan wrote: Thu Aug 04, 2022 11:57 pm Can you reproduce this on command, or is it random?
More or less random. For example when i change very fast the direction. Sometimes i need 10 clicks, sometimes in need much more. But as said, very fast. In the video i clicks around 7-8 times per second.

1.webm
(167.56 KiB) Downloaded 36 times
test46_multithreading_views.FCStd
(167.92 KiB) Downloaded 30 times

Greetings
user1234
User avatar
babaroga
Posts: 178
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: Multithread Testing

Post by babaroga »

This post is, maybe, offtopic. I want to share 2 pages of my assembly instructions generated totally with mutithreading branch of TD. All pictures and details were generated in FC, with some touches in Inkscape.

I didn't have any hickups and everything was painless and very fast compared to working with version in master. According to some rough measurement generation of pictures is 7-8 times faster.

Thank you for your work.


MARTIN krevet na sprat AI 1.jpg
MARTIN krevet na sprat AI 1.jpg (109.78 KiB) Viewed 1478 times
Attachments
MARTIN krevet na sprat AI.jpg
MARTIN krevet na sprat AI.jpg (140.16 KiB) Viewed 1478 times
Syres
Veteran
Posts: 2891
Joined: Thu Aug 09, 2018 11:14 am

Re: Multithread Testing

Post by Syres »

This is sounding like quality work, I'm hoping to get some time this weekend to give it a spin with some new and older files. Thanks to all involved.
User avatar
wandererfan
Veteran
Posts: 6238
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Multithread Testing

Post by wandererfan »

babaroga wrote: Fri Aug 05, 2022 10:11 am I want to share 2 pages of my assembly instructions generated totally with mutithreading branch of TD. All pictures and details were generated in FC, with some touches in Inkscape.
These drawings are lovely. Well done. And thanks for testing!
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Multithread Testing

Post by user1234 »

babaroga wrote: Fri Aug 05, 2022 10:11 am This post is, maybe, offtopic. I want to share 2 pages of my assembly instructions generated totally with mutithreading branch of TD. All pictures and details were generated in FC, with some touches in Inkscape.
That is really good work!
User avatar
wandererfan
Veteran
Posts: 6238
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Multithread Testing

Post by wandererfan »

The closest to a crash I can get is to invalidate Dimension references by pressing buttons in TaskProjectGroup as fast as I can. Maybe my finger are just not fast enough.

In any case, I have added some protections to prevent the crash in extractFaces. Let me know if you manage to crash the new version.
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Multithread Testing

Post by user1234 »

wandererfan wrote: Fri Aug 05, 2022 7:30 pm In any case, I have added some protections to prevent the crash in extractFaces. Let me know if you manage to crash the new version.
Many thanks!

Will test it asap.

Greetings
user1234
user1234
Veteran
Posts: 3261
Joined: Mon Jul 11, 2016 5:08 pm

Re: Multithread Testing

Post by user1234 »

wandererfan wrote: Fri Aug 05, 2022 7:30 pm Let me know if you manage to crash the new version.
No crash more and i really really stressed it out.

Many thanks! This feature is a must have in the master.

Greetings
user1234
bleber
Posts: 258
Joined: Thu Jun 30, 2016 5:12 pm

Re: Multithread Testing

Post by bleber »

There are plans to multithread other parts of FreeCAD, constraints in sketcher for example.?
Post Reply