[TechDraw] crash on showing invisible edges

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
uwestoehr
Posts: 1979
Joined: Sun Jan 27, 2019 3:21 am

[TechDraw] crash on showing invisible edges

Postby uwestoehr » Fri Nov 01, 2019 10:52 pm

- select in the tree view a ProjectionGroup
- press in the toolbar the button "Show/hide invisible edges in a View"

result:

Code: Select all

Reading failed from embedded file: PartShape48.bin (0 bytes, 2 bytes compressed)
Illegal storage access...
<Exception> Illegal storage access! Please save your work under a new file name and restart the application!
- press the toolbar button again

result: crash

OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18652 (Git)
Build type: Release
Branch: master
Hash: 223d41c676aa9ef0afb6e5061c3f0438ab9f0e0c
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
User avatar
wandererfan
Posts: 4078
Joined: Tue Nov 06, 2012 5:42 pm

Re: [TechDraw] crash on showing invisible edges

Postby wandererfan » Sat Nov 02, 2019 12:28 am

uwestoehr wrote:
Fri Nov 01, 2019 10:52 pm
result:

Code: Select all

Reading failed from embedded file: PartShape48.bin (0 bytes, 2 bytes compressed)
Illegal storage access...
<Exception> Illegal storage access! Please save your work under a new file name and restart the application!
I get a completely different error, but still a crash.
OS: Linux Mint 19 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18646 +2 (Git)
Build type: debug
Branch: Extent
Hash: ce4cad08f520c54e963ea624a72ce86a529fe3bf
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)

It should give you a selection error since show/hide only works on Views, not ProjectionGroups. Fix to master tomorrow.
User avatar
uwestoehr
Posts: 1979
Joined: Sun Jan 27, 2019 3:21 am

Re: [TechDraw] crash on showing invisible edges

Postby uwestoehr » Sat Nov 02, 2019 12:52 am

wandererfan wrote:
Sat Nov 02, 2019 12:28 am
It should give you a selection error since show/hide only works on Views, not ProjectionGroups. Fix to master tomorrow.
Many thanks for your quick help, however, I vote that the button is only enabled when you are in a view. Otherwise it is disabled.
User avatar
wandererfan
Posts: 4078
Joined: Tue Nov 06, 2012 5:42 pm

Re: [TechDraw] crash on showing invisible edges

Postby wandererfan » Sun Nov 03, 2019 6:49 pm

uwestoehr wrote:
Sat Nov 02, 2019 12:52 am
Many thanks for your quick help, however, I vote that the button is only enabled when you are in a view. Otherwise it is disabled.
Crash should be fixed by git commit f3c6db990c.

Selection rules and active/inactive state adjusted too.
User avatar
uwestoehr
Posts: 1979
Joined: Sun Jan 27, 2019 3:21 am

Re: [TechDraw] crash on showing invisible edges

Postby uwestoehr » Sun Nov 03, 2019 7:04 pm

wandererfan wrote:
Sun Nov 03, 2019 6:49 pm
Crash should be fixed by git commit f3c6db990c.
Selection rules and active/inactive state adjusted too.
Thanks! The crash is fixed but not the state. Select e.g. a balloon or whatever you like and you can see that the toolbar button never gets disabled. it should be disabled by default and only be enabled if the selection makes sense.