Ticket #4254 - Crash when canceling duplicate sketch in PartDesign

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Genues
Posts: 23
Joined: Thu Jan 02, 2020 9:56 pm

Ticket #4254 - Crash when canceling duplicate sketch in PartDesign

Postby Genues » Thu Jan 23, 2020 7:17 am

FreeCAD crash when canceling duplicate skecth in PartDesign.
Steps for repeat:
1. Create new document.
2. Create new body and sketch in PartDesign.
3. Draw rectangle in sketch.
4. Close sketch.
5. Select sketch and press "Duplicate selection" in menu "Edit".
6. Press "Cancel".

Code: Select all

OS: Arch Linux (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19323 (Git) AppImage
Build type: Release
Branch: master
Hash: 1b198453b8eb6aa2eaca4e4be4b49fee74e9de6e
Python version: 3.8.1
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Russian/Russia (ru_RU)
Attachments
crash.log
Crash log
(4.99 KiB) Downloaded 9 times
Last edited by Kunda1 on Wed Feb 05, 2020 4:25 pm, edited 2 times in total.
Reason: Added ticket number to thread title
chrisb
Posts: 27955
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash when canceling duplicate sketch in PartDesign

Postby chrisb » Thu Jan 23, 2020 7:39 am

Confirmed.

To add to the description above: step 4 is not performed while in sketcher. There is an additional step

3.5. Close Sketcher

OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19310 (Git)
Build type: Release
Branch: master
Hash: a3622ee49feb4391e3c1015f8922095e75af538f
Python version: 3.8.1
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/Germany (en_DE)
Genues
Posts: 23
Joined: Thu Jan 02, 2020 9:56 pm

Re: Crash when canceling duplicate sketch in PartDesign

Postby Genues » Thu Jan 23, 2020 7:49 am

chrisb wrote:
Thu Jan 23, 2020 7:39 am
To add to the description above: step 4 is not performed while in sketcher. There is an additional step
Append, thank you.
Genues
Posts: 23
Joined: Thu Jan 02, 2020 9:56 pm

Re: Crash when canceling duplicate sketch in PartDesign

Postby Genues » Thu Jan 23, 2020 9:49 am

chrisb wrote:
Thu Jan 23, 2020 7:39 am
Confirmed.
Should I create a bug report?
chrisb
Posts: 27955
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash when canceling duplicate sketch in PartDesign

Postby chrisb » Thu Jan 23, 2020 10:52 am

Genues wrote:
Thu Jan 23, 2020 9:49 am
Should I create a bug report?
Yes please. Add crossreferences on both sides to this discussion.
Genues
Posts: 23
Joined: Thu Jan 02, 2020 9:56 pm

Re: Crash when canceling duplicate sketch in PartDesign

Postby Genues » Thu Jan 23, 2020 8:44 pm

Bag tracker number 4254
chrisb
Posts: 27955
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash when canceling duplicate sketch in PartDesign

Postby chrisb » Thu Jan 23, 2020 9:00 pm

Genues wrote:
Thu Jan 23, 2020 8:44 pm
Bag tracker number 4254
Just a hint for your next bug report: You can use the "bug" button above the message edit field and simply insert the number; as so:

Code: Select all

[bug]4254[/bug]
Genues
Posts: 23
Joined: Thu Jan 02, 2020 9:56 pm

Re: Crash when canceling duplicate sketch in PartDesign

Postby Genues » Thu Jan 23, 2020 9:37 pm

chrisb wrote:
Thu Jan 23, 2020 9:00 pm
Just a hint for your next bug report: You can use the "bug" button above the message edit field and simply insert the number; as so:

Code: Select all

[bug]4254[/bug]
Thank you!
User avatar
Kunda1
Posts: 8413
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #4254 - Crash when canceling duplicate sketch in PartDesign

Postby Kunda1 » Wed Feb 05, 2020 4:25 pm

Added ticket to thread title
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Syres
Posts: 803
Joined: Thu Aug 09, 2018 11:14 am

Re: Ticket #4254 - Crash when canceling duplicate sketch in PartDesign

Postby Syres » Tue Mar 24, 2020 11:14 am

As this hard crash only occurs in Part Design I wasn't aware until this morning and yes I lost a lot of work down to my failure of not regularly saving :oops:

Could it please be looked at before 0.19 release or at least have the priority increased from Normal, I believe it was introduced during the Big Merge last year as build 0.19.17651 works as expected but the crash appears in build 0.19.17803.