Crash on reducing chamfer size

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
mithrandil
Posts: 7
Joined: Tue Jun 20, 2017 8:56 am

Crash on reducing chamfer size

Post by mithrandil »

Dear All,

I found a bug which crashes the program when reducing the chamfer size (e.g. to 0,6mm)

Please test the attached file changing last chamfer to 0,6 mm

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13452 (Git)
Build type: Release
Branch: master
Hash: 34633c144de9133c1f9aeb7da783f369cae9bfaf
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: Italian/Italy (it_IT)
Attachments
BugSettingChamferto06mm.FCStd
(148.2 KiB) Downloaded 72 times
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Crash on reducing chamfer size

Post by Chris_G »

Hi,
No bug here.
I can change chamfer size to any value up to 1.8mm ( where it starts to go over hexagonal pockets ).

Code: Select all

OS: Ubuntu Bionic Beaver (development branch)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13470 (Git)
Build type: Unknown
Branch: master
Hash: 656a669cb0dc3d2d3becf20a5330531233b56834
Python version: 2.7.14+
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: French/France (fr_FR)
freecad-heini-1
Veteran
Posts: 7788
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: Crash on reducing chamfer size

Post by freecad-heini-1 »

No bug or chrash here.

Code: Select all

OS: Ubuntu 16.04.4 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13472 (Git)
Build type: None
Branch: master
Hash: 7fd1e543febced04e779bda3debb7fbfdee7ffa3
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Crash on reducing chamfer size

Post by sgrogan »

Confirmed on:
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13471 (Git)
Build type: Release
Branch: master
Hash: 71f0f1a6d5a500c8221945417eb67a72b914919b
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)

It happens when typing the 0 if I enter .6 it works. If the input field is 0(.00) at any point during editing FreeCAD crashes.
"fight the good fight"
chrisb
Veteran
Posts: 53933
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash on reducing chamfer size

Post by chrisb »

I can reproduce a crash here, although it's not the 0.6 chamfer directly:
- use the panel to edit the chamfer
- it opens with the value of 1.000 selected
- if I start entering the value of 0.6 I start with a radius of "0" and before I can continue with ".6" FreeCAD crashes.

If the value isn't preselected try selecting it before changing.

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13450 (Git)
Build type: Release
Branch: (HEAD detached at 129e2f7)
Hash: 129e2f7a1b55c91880f2db2da264746acdc14d38
Python version: 2.7.14
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Crash on reducing chamfer size

Post by GeneFC »

I too can reproduce the crash/no-crash scenario.

This seems similar to the problems with entering negative numbers in some fields. The parser immediately starts to work, and the negative sign is taken as an undo for the previous operation.

Many operations in FreeCAD allow for the complete entry into a number box before doing anything, but some operations seem to want to try to act on every single digit as entered. Seems like a bad idea in general. At best it causes a lot of cluttered action in the display, and at worst it causes an error or a crash.

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13452 (Git)
Build type: Release
Branch: master
Hash: 34633c144de9133c1f9aeb7da783f369cae9bfaf
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)

Gene
HBC0
Posts: 237
Joined: Wed Sep 23, 2015 5:44 pm
Location: MRN(Germany)

Re: Crash on reducing chamfer size

Post by HBC0 »

Hello

I fixed your file.
What have I done?
I set the value Refine in the Data Tab of Mirror004 to true, the fillet took a different position.
I deleted Chamfer and Fillet and recreated it.
Now it seems to be working.

I work with

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13452 (Git)
Build type: Release
Branch: master
Hash: 34633c144de9133c1f9aeb7da783f369cae9bfaf
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)


and had received the following error message.

Problemsignatur:
Problemereignisname: BEX64
Anwendungsname: FreeCAD_017_13452.exe
Anwendungsversion: 0.0.0.0
Anwendungszeitstempel: 5ab6519e
Fehlermodulname: TKGeomAlgo.dll
Fehlermodulversion: 7.1.0.0
Fehlermodulzeitstempel: 5893c6c2
Ausnahmeoffset: 000000000012bb9c
Ausnahmecode: c0000409
Ausnahmedaten: 0000000000000000
Betriebsystemversion: 6.1.7601.2.1.0.256.1
Gebietsschema-ID: 1031
Zusatzinformation 1: 1e78
Zusatzinformation 2: 1e78cd82fb0a64f9ae39a27b1701bb81
Zusatzinformation 3: efab
Zusatzinformation 4: efabb60e6d3b2e8b1afa5ce8d8441644



Maybe it helps to prevent this behavior in case of a corrupted file.

Changes in the Data Tab have been accepted.

Bruno
Attachments
BugSettingChamferto06mm_fix.FCStd
(146.66 KiB) Downloaded 63 times
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Crash on reducing chamfer size

Post by wmayer »

chrisb
Veteran
Posts: 53933
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash on reducing chamfer size

Post by chrisb »

wmayer wrote: Wed Apr 04, 2018 2:25 pm fixed with git commit deaef0a
Confirmed, the error is fixed. Thank you for the speed.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply