[Bug] SIGSEGV on opening dxf file

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [Bug] SIGSEGV on opening dxf file

Post by openBrain »

PrzemoF wrote: Tue May 02, 2023 7:30 pm Looks like it's not it or not only it.
Hmmm. Your version number is the same as in the OP. :?
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [Bug] SIGSEGV on opening dxf file

Post by PrzemoF »

Ooops, there is something wrong with the nightlies. Last 14 build are the same. Ignore my back check please and thanks for catching it!
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [Bug] SIGSEGV on opening dxf file

Post by wmayer »

With the same file as above? I can load it now without problems.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [Bug] SIGSEGV on opening dxf file

Post by PrzemoF »

I was testing wrong version - nightlies didn't catch up with the change.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [Bug] SIGSEGV on opening dxf file

Post by PrzemoF »

@wmayer Could you pull this one please? https://github.com/PrzemoF/FreeCAD/pull ... pr_fix_v63
I messed the numbering, that most likely caused my system not to catch up with the update hence it was not working for me.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [Bug] SIGSEGV on opening dxf file

Post by PrzemoF »

Finally tested - works like a charm! Thank you! :D
kpmartin
Posts: 10
Joined: Tue Feb 07, 2023 9:50 pm
Contact:

Re: [Bug] SIGSEGV on opening dxf file

Post by kpmartin »

Just for the record, the problem was triggered by the absence of any information in the HEADER section of the dxf file that would identify the file format version, and thus whether UTF-8 encoding was used. As a result a pointer to a function that decoded TEXT and MTEXT contents remained uninitialized.
-Kevin Martin
the Papertrail Handmade Paper & Book Arts
Post Reply