Ticket #4233 - Access violation and file corruption after undo duplicate sketch
Posted: Tue Dec 24, 2019 6:02 am
This is the discussion topic for issue #4233
Duplicating and then undoing causes, I guess, internal memory corruption, leading to access violations on subsequent operations and unusable corrupted file on save.
Steps to reproduce:
- Open file attached to the bug report. (Or just create a cube by padding a sketch.)
- Go to Part Design workbench.
- Select top face of cube.
- Create new sketch attached to selected face.
- Draw something, maybe a circle around the coordinate center.
- Close sketch.
- Select sketch in tree view.
- Click Edit --> Duplicate selected object.
- Click Yes.
- Click Edit --> Undo
- Click Edit --> Duplicate selected object.
- Click No.
- Observe "Exception - Access violation"
- Click OK twice.
- Save file.
- Close and reopen FreeCAD.
- Open recently saved file.
- Observe a totally unusable file.
FreeCAD infos:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
Duplicating and then undoing causes, I guess, internal memory corruption, leading to access violations on subsequent operations and unusable corrupted file on save.
Steps to reproduce:
- Open file attached to the bug report. (Or just create a cube by padding a sketch.)
- Go to Part Design workbench.
- Select top face of cube.
- Create new sketch attached to selected face.
- Draw something, maybe a circle around the coordinate center.
- Close sketch.
- Select sketch in tree view.
- Click Edit --> Duplicate selected object.
- Click Yes.
- Click Edit --> Undo
- Click Edit --> Duplicate selected object.
- Click No.
- Observe "Exception - Access violation"
- Click OK twice.
- Save file.
- Close and reopen FreeCAD.
- Open recently saved file.
- Observe a totally unusable file.
FreeCAD infos:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)