I deleted your duplicate post, if I missed something please post again.
[Fixed] Bug: Sketcher makes FreeCAD crash as soon as a tool is selected
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Bug: Sketcher makes FreeCAD crash as soon as a tool is selected
I can confirm the problem ubuntu17.04/16.04 12624. Testing the latest commits it seems to be related to this commit: https://github.com/FreeCAD/FreeCAD/comm ... a114ce9213
Re: Bug: Sketcher makes FreeCAD crash as soon as a tool is selected
Is the crash random or does it happen all the time?
Re: Bug: Sketcher makes FreeCAD crash as soon as a tool is selected
Happens every time you click one of the tools in sketcher.
Re: Bug: Sketcher makes FreeCAD crash as soon as a tool is selected
I get no crash at all, neither on Windows nor on Ubuntu 14.04 nor on Ubuntu 16.04.
But if someone could test if replacing the line
with
fixes it.
If not then it should be also checked if replacing
with
fixes it.
But if someone could test if replacing the line
Code: Select all
static char cursor_crosshair_color[11];
Code: Select all
static char cursor_crosshair_color[12];
If not then it should be also checked if replacing
Code: Select all
unsigned long color = 0xFFFFFFFF; // white
Code: Select all
unsigned int color = 0xFFFFFFFF; // white
Re: Bug: Sketcher makes FreeCAD crash as soon as a tool is selected
solves the problem.wmayer wrote:Code: Select all
static char cursor_crosshair_color[12];
Re: Bug: Sketcher makes FreeCAD crash as soon as a tool is selected
OK, the problem then is that the buffer is too short to add the null-termination character at the end.
-
- Veteran
- Posts: 7790
- Joined: Tue Jan 07, 2014 11:10 am
- Contact:
Re: Bug: Sketcher makes FreeCAD crash as soon as a tool is selected
The same bug in the German forum:
https://forum.freecadweb.org/viewtopic. ... 46#p200646
https://forum.freecadweb.org/viewtopic. ... 46#p200646
Re: Bug: Sketcher makes FreeCAD crash as soon as a tool is selected
According to looo (thanks for testing!) this should fix the crash: git commit 399dca7