[FIXED] FreeCAD v0.19pre crashes when using Copy in PartDesign Body

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Post Reply
aapo
Posts: 95
Joined: Mon Oct 29, 2018 6:41 pm

[FIXED] FreeCAD v0.19pre crashes when using Copy in PartDesign Body

Post by aapo » Wed Aug 28, 2019 2:01 pm

Hi!

FreeCAD crashes when using Copy in PartDesign Body, even for a newly created document with simple cube. Selecting a body in PartDesign, and choosing "Copy" from Edit-menu causes an illegal storage access. This does not happen every time, but very often.

Code: Select all

Illegal storage access...
<Exception> Illegal storage access! Please save your work under a new file name and restart the application!
20190828-PartDesign-bug-01.gif
20190828-PartDesign-bug-01.gif (676.97 KiB) Viewed 1271 times

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17877 (Git)
Build type: Release
Branch: master
Hash: 1e19ef5be4735f4200eaf99ce9e487d2be6f4151
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)
Last edited by aapo on Tue Sep 03, 2019 7:25 pm, edited 1 time in total.
aapo
Posts: 95
Joined: Mon Oct 29, 2018 6:41 pm

Re: [Bug?] FreeCAD v0.19pre crashes when using Copy in PartDesign Body

Post by aapo » Tue Sep 03, 2019 5:38 am

This crash bug seems to still exist after realthunder's latest bug fix series for (possibly) related problems.
realthunder wrote:
Fri Aug 23, 2019 11:16 am
I have just added fix for this. Please try build my LinkMerge branch here.
However, this particular crash problem refuses to go away, at least for me. It would be nice to know, if I'm the only one experiencing the crash in PartDesign. Does Edit->Copy work for everyone else for PartDesign with v0.19 after the Big Merge? I get a soft crash on maybe every third Edit->Copy attempt on a body, and this is only after the Big Merge of Link-related stuff. I get no crashes with v0.19.17502 or older. Might be unrelated, though!

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18024 (Git)
Build type: Release
Branch: master
Hash: 9cc8f6eb666b0a0ae2dc256f7bc0beb8c987710c
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)
realthunder
Posts: 1345
Joined: Tue Jan 03, 2017 10:55 am

Re: [Bug?] FreeCAD v0.19pre crashes when using Copy in PartDesign Body

Post by realthunder » Tue Sep 03, 2019 6:14 am

Yes, I can confirm this bug, under Qt5. I'll fix it soon.
Try Assembly3 (latest version 0.10.2) along with my custom build of FreeCAD at here.
And if you'd like to show your support, you can donate through patreon, liberapay, or paypal
chrisb
Posts: 21445
Joined: Tue Mar 17, 2015 9:14 am

Re: [Bug?] FreeCAD v0.19pre crashes when using Copy in PartDesign Body

Post by chrisb » Tue Sep 03, 2019 6:35 am

No problem here. Tested on a body containing a padded sketch:
- Copy/Paste Body with dependencies
- Copy/Paste Body without dependencies
- Copy/Paste Pad with dependencies
- Copy/Paste Pad without dependencies
- Copy/Paste Sketch with dependencies
- Copy/Paste Sketch without dependencies

OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18009 (Git)
Build type: Release
Branch: master
Hash: 0641ca0d1e020d18f23d2adb49959195266f04f7
Python version: 3.7.3
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Germany (en_DE)
realthunder
Posts: 1345
Joined: Tue Jan 03, 2017 10:55 am

Re: [Bug?] FreeCAD v0.19pre crashes when using Copy in PartDesign Body

Post by realthunder » Tue Sep 03, 2019 6:50 am

chrisb wrote:
Tue Sep 03, 2019 6:35 am
No problem here. Tested on a body containing a padded sketch:
That's weird. My conda linux build crash. Qt version is the same. Anyway, I have submitted PR here.
Try Assembly3 (latest version 0.10.2) along with my custom build of FreeCAD at here.
And if you'd like to show your support, you can donate through patreon, liberapay, or paypal
aapo
Posts: 95
Joined: Mon Oct 29, 2018 6:41 pm

Re: [Bug?] FreeCAD v0.19pre crashes when using Copy in PartDesign Body

Post by aapo » Tue Sep 03, 2019 7:01 am

realthunder wrote:
Tue Sep 03, 2019 6:50 am
Anyway, I have submitted PR here.
Great, thanks for a REALLY swift resolution! Unfortunately, I cannot test the patch on Windows until it'll hit the official master builds. But I can probably try it on Linux with Qt4 later today. Not sure if this crash happens at all under Qt4, though! I'll try to also test that later.
aapo
Posts: 95
Joined: Mon Oct 29, 2018 6:41 pm

Re: [Bug?] FreeCAD v0.19pre crashes when using Copy in PartDesign Body

Post by aapo » Tue Sep 03, 2019 7:24 pm

Realthunder's patch for the bug has already been committed and merged to v0.19pre master, and I had no crash on Edit->Copy, using Linux and Qt4. So it's fixed, thanks! :D

OS: Debian GNU/Linux bullseye/sid (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18051 (Git)
Build type: Release
Branch: master
Hash: bc4a220ad194e1b1c989adb39ff29567f3f25751
Python version: 2.7.16+
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest