View Issue Details

IDProjectCategoryView StatusLast Update
0004643FreeCADBugpublic2022-01-22 21:57
Reporternoahk Assigned To 
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionno change required 
PlatformMacOSOSBig SurOS Version11.2.3
Product Version0.20 
Summary0004643: Crash on save
DescriptionSave crashes on MacOS. Previously version compiled a few weeks ago worked fine. Version compiled last night via 'brew upgrade' crashes.
Steps To ReproduceCreate a new project, add something to it (eg circle on sketch). Cmd-s. Crash. Crash happens with file menu save as well.
Additional InformationProcess: FreeCAD [49009]
Path: /usr/local/Cellar/freecad/HEAD-ae0a315/FreeCAD.app/Contents/MacOS/FreeCAD
Identifier: ???
Version: 0.20.0 (0.20.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: FreeCAD [49009]

Date/Time: 2021-04-24 09:21:20.078 -0700
OS Version: macOS 11.2.3 (20D91)
Report Version: 12
Bridge OS Version: 3.0 (14Y908)
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000028
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [49009]

See backtrace in attached log1.txt
Tags#pending, #tobeclosed, macOS
FreeCAD InformationOS: macOS 11.2
Word size of FreeCAD: 64-bit
Version: 0.20.24779 (Git)
Build type: Release
Branch: master
Hash: ae0a31542f4be57d3b9e22fb59d327e6e5ede822
Python version: 3.9.0
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.0
Locale: English/United States (en_US)

Activities

noahk

2021-04-24 16:46

reporter   ~0015644

Crash occurs with both native and QT file save dialogs

ipatch

2021-11-29 16:14

reporter   ~0016057

https://github.com/FreeCAD/homebrew-freecad/issues/177

wmayer

2021-12-12 15:30

administrator   ~0016079

Last edited: 2021-12-12 15:31


0 libc++.1.dylib 0x0000000111d6ed52 std::__1::istreambuf_iterator<char, std::__1::char_traits<char> > std::__1::num_get<char, std::__1::istreambuf_iterator<char, std::__1::char_traits<char> > >::__do_get_signed<long>(std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >, std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >, std::__1::ios_base&, unsigned int&, long&) const + 50
1 libc++.1.dylib 0x00007fff2033bdd0 std::__1::basic_ostream<char, std::__1::char_traits<char> >::operator<<(int) + 272
2 libTKBRep.7.dylib 0x000000017db6b05e TopTools_ShapeSet::Write(TopoDS_Shape const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const + 110
3 Part.so 0x000000017b9eae48 Part::PropertyPartShape::SaveDocFile(Base::Writer&) const + 446
4 libFreeCADBase.dylib 0x000000010d86c06c Base::ZipWriter::writeFiles() + 96
The problem might be that your OCC version and FreeCAD have been built with different compilers. In this case the i/o streams can cause trouble.
A workaround is to avoid to directly use the streams but first write the BRep file to the disk and from there copy the data to the project file. Therefore open the parameter editor and go to:
BaseApp/Preferences/Mod/Part/General and create the boolean key DirectAccess settings its value to false.

yorik

2021-12-15 09:39

administrator   ~0016094

Last edited: 2021-12-15 09:44

Put the backtrace of the OP in an attached txt file to workaround export issues
log1.txt (1,240 bytes)   
VM Regions Near 0x28:
-->
    __TEXT 10c2e0000-10c2f0000 [ 64K] r-x/r-x SM=COW /usr/local/Cellar/freecad/HEAD-ae0a315/FreeCAD.app/Contents/MacOS/FreeCAD

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 libc++.1.dylib 0x0000000111d6ed52 std::__1::istreambuf_iterator<char, std::__1::char_traits<char> > std::__1::num_get<char, std::__1::istreambuf_iterator<char, std::__1::char_traits<char> > >::__do_get_signed<long>(std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >, std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >, std::__1::ios_base&, unsigned int&, long&) const + 50
1 libc++.1.dylib 0x00007fff2033bdd0 std::__1::basic_ostream<char, std::__1::char_traits<char> >::operator<<(int) + 272
2 libTKBRep.7.dylib 0x000000017db6b05e TopTools_ShapeSet::Write(TopoDS_Shape const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const + 110
3 Part.so 0x000000017b9eae48 Part::PropertyPartShape::SaveDocFile(Base::Writer&) const + 446
4 libFreeCADBase.dylib 0x000000010d86c06c Base::ZipWriter::writeFiles() + 96
5 libFreeCADApp.dylib 0x000000010d3861a0 App::Document::saveToFile(char const*) const + 1042
6 libFreeCADApp.dylib 0x000000010d385b70 App::Document::save() + 978
log1.txt (1,240 bytes)   

Kunda1

2022-01-22 21:51

administrator   ~0016241

Hi @chrisb, can you recreate this issue? If not then it very well may be a dependency issue as wmayer writes in 0004643:0016079

Kunda1

2022-01-22 21:57

administrator   ~0016242

Closing ticket in favor of https://github.com/FreeCAD/homebrew-freecad/issues/177 (as this is dependency problem)

Issue History

Date Modified Username Field Change
2021-04-24 16:45 noahk New Issue
2021-04-24 16:46 noahk Note Added: 0015644
2021-11-29 16:14 ipatch Note Added: 0016057
2021-12-12 15:30 wmayer Note Added: 0016079
2021-12-12 15:31 wmayer Note Edited: 0016079
2021-12-15 04:53 chennes Additional Information Updated
2021-12-15 09:39 yorik Note Added: 0016094
2021-12-15 09:39 yorik File Added: log1.txt
2021-12-15 09:40 yorik Additional Information Updated
2021-12-15 09:44 yorik Note Edited: 0016094
2022-01-22 21:51 Kunda1 Note Added: 0016241
2022-01-22 21:53 Kunda1 Tag Attached: #pending
2022-01-22 21:53 Kunda1 Tag Attached: #tobeclosed
2022-01-22 21:53 Kunda1 Tag Attached: macOS
2022-01-22 21:57 Kunda1 Status new => closed
2022-01-22 21:57 Kunda1 Resolution open => no change required
2022-01-22 21:57 Kunda1 Note Added: 0016242