Importing a IFC file and FC crashes

This forum section is only for IFC-related issues
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: Importing a IFC file and FC crashes

Post by paullee »

johnwang wrote: Mon Dec 13, 2021 11:26 am Version: 0.20.26155 (Git)
Thanks testing. Can you also try latest 0.20_pre ?
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: Importing a IFC file and FC crashes

Post by paullee »

paullee wrote: Sat Dec 11, 2021 11:35 am [EDIT]
FreeCAD_0.19-24291-Linux-Conda_glibc2.12-x86_64.AppImage
import seems ok
For me, on Fedora 34,

FreeCAD_0.19.3-Linux-Conda_glibc2.12-x86_64.AppImage

Crash on import previous Villa Savoye model.
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: Importing a IFC file and FC crashes

Post by paullee »

Better back to testing : QUA_EST_BLE_NAO_OFICIAL.ifc

Crash with -
paullee wrote: Sat Dec 04, 2021 6:29 pm FreeCAD_weekly-builds-26306-Linux-Conda_glibc2.12-x86_64.AppImage
FreeCAD_0.19.3-Linux-Conda_glibc2.12-x86_64.AppImage


OK with -
FreeCAD_0.19-24291-Linux-Conda_glibc2.12-x86_64.AppImage


All tested on Fedora 34 -
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: Importing a IFC file and FC crashes

Post by paullee »

Created a log until crashes, extracted the last few lines before crash

Code: Select all

Msg: 649Msg:  Msg: /Msg:  Msg: 1199Msg:  Msg: object #8105Msg:  Msg: :Msg:  Msg: IfcFastenerMsg: Msg:  layer Msg:  Msg: 0 Msg:  Msg:  foundMsg:  Msg: IfcFastenerMsg: Msg:  (arch)Msg: Msg:  11k Msg: Msg: : Weld029 Msg: Msg: 1 solidsMsg: Msg: Msg: 
Msg: 650Msg:  Msg: /Msg:  Msg: 1199Msg:  Msg: object #8120Msg:  Msg: :Msg:  Msg: IfcPlateMsg: Msg:  layer Msg:  Msg: 1 Phase 1Msg:  Msg:  foundMsg:  Msg: IfcPlateMsg: Msg:  (arch)Msg: Msg:  2k Msg: Msg: : CHAPA245 Msg: Msg: Msg: Msg: Msg: 
Msg: 651Msg:  Msg: /Msg:  Msg: 1199Msg:  Msg: object #8159Msg:  Msg: :Msg:  Msg: IfcPlateMsg: Msg:  layer Msg:  Msg: 1 Phase 1Msg:  Msg:  foundMsg:  Msg: IfcPlateMsg: Msg:  (arch)Msg: Err: Program received signal SIGSEGV, Segmentation fault.
FreeCAD_Crash.log
(167.53 KiB) Downloaded 94 times
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: Importing a IFC file and FC crashes

Post by paullee »

Crash log on importing the Villa Savoye model (1F only)



FreeCAD_Crash_VillaSavoye.log
(31.67 KiB) Downloaded 104 times
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Importing a IFC file and FC crashes

Post by thomas-neemann »

johnwang wrote: Mon Dec 13, 2021 11:26 am no problem here.
...
Version: 0.20.26155 (Git)
..



here it worked no with 0.20.26155 but with:


OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.19.2)
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: German/Germany (de_DE)


it is ok
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Importing a IFC file and FC crashes

Post by thomas-neemann »

bitacovir wrote: Sat Dec 04, 2021 3:50 pm ..
Too many elements for FreeCAD to handle?
...
this is a nice example of how an ifc file shouldn't be. with welds, screws and washers. this relatively small project creates files that are very slow and complicated to import. because ifc files are not used as a data exchange format in the bim process, but only for referencing, a fast dae file is sufficient. converted from ifc
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
MRx
Posts: 319
Joined: Wed Jul 08, 2020 5:59 am
Location: Tainan / Taiwan

Re: Importing a IFC file and FC crashes

Post by MRx »

OS: macOS 10.15
Word size of FreeCAD: 64-bit
Version: 0.20.26559 (Git)
Build type: Release
Branch: adaptive_dicretize_bugfix
Hash: 3507f7fc0d81b5281f4194220dc890952320be29
Python version: 3.10.8
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/Germany (en_DE)


still crashes
the issue seems to be fixed a similar way in the latest git source (just checked)

https://www.soil-parts.at/downloads/
https://www.soil-parts.at/app/download/ ... 1637736812

Code: Select all

0, debug map time is 2022-10-02 05:59:04.000000000) since this executable was linked, file will be ignored
* thread #1, name = 'CrBrowserMain', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x00007fff6dceae52 libsystem_platform.dylib`_platform_strlen + 18
    frame #1: 0x00000001000101e5 FreeCAD`std::__1::char_traits<char>::length(__s=0x0000000000000000) at __string:253:53
    frame #2: 0x00000001052eb149 libFreeCADApp.dylib`std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string<std::nullptr_t>(this="%\x9es\x01\0\0\0 >???\0\0*", __s=0x0000000000000000) at string:819:19
    frame #3: 0x00000001052d681d libFreeCADApp.dylib`std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string<std::nullptr_t>(this="%\x9es\x01\0\0\0 >???\0\0*", __s=0x0000000000000000) at string:817:88
    frame #4: 0x00000001052e5f43 libFreeCADApp.dylib`App::ObjectIdentifier::access(this=0x00007ffeefbf4070, obj=0x0000000132d07800, prop=0x0000000000000000, propName=0x0000000000000000) const::$_0::operator()(App::DocumentObject*, App::Property*, char const*) const at ObjectIdentifier.cpp:1686:28 <<<<------

        if(propset.size()!=1 || propset.begin()->size()) {
            if(!propName)
                propset.clear();
----
>>            if (propName == nullptr)
>>                propName = strdup("");
----
            propset.insert(propName);
        }

that's what I did for now but certainly at another side it probably expects a nullptr coming out from propset
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Importing a IFC file and FC crashes

Post by thomas-neemann »

MRx wrote: Thu Apr 27, 2023 5:24 am
here it works

Code: Select all

OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.0.32985 (Git) AppImage
Build type: Release
Branch: master
Hash: 5cd377f931312ede305e4c764ba2028b20eaacfd
Python 3.10.10, Qt 5.15.8, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * Curves 0.6.8
  * fasteners 0.4.56
Bildschirmfoto_2023-04-27_07-44-17.png
Bildschirmfoto_2023-04-27_07-44-17.png (135.77 KiB) Viewed 8314 times
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
MRx
Posts: 319
Joined: Wed Jul 08, 2020 5:59 am
Location: Tainan / Taiwan

Re: Importing a IFC file and FC crashes

Post by MRx »

it also works here, with the patch. Latest Git Sourcecode is already fixed as mentioned.
Post Reply