Material improvements

A forum to discuss the implementation of a good Materials system in FreeCAD
ian.rees
Posts: 684
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: Material improvements

Postby ian.rees » Tue Sep 25, 2018 4:53 am

Apologies for the delay - I've rebased Eivind's work on to the latest master at https://github.com/ianrrees/FreeCAD_tin ... al2-rebase . Haven't been able to compile it yet, as my machine is only setup for building against Python 3 at the moment, which wasn't supported by the old branch.
ian.rees
Posts: 684
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: Material improvements

Postby ian.rees » Tue Sep 25, 2018 5:47 am

OK, I've got a compile (pushed a few fixes to my branch), but am running in to a crash on startup, which seems to relate to initialising Python types. I'm really rusty in this area, and can't see an easy solution:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff54eab38 in PyUnicode_InternInPlace () from /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0
(gdb) bt
#0  0x00007ffff54eab38 in PyUnicode_InternInPlace () from /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0
#1  0x00007ffff54eac0d in PyUnicode_InternFromString () from /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0
#2  0x00007ffff5595545 in PyType_Ready () from /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0
#3  0x00007ffff5597408 in PyType_Ready () from /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0
#4  0x00007ffff5b0fac2 in Py::PythonType::readyType (this=0x5555557b60f0)
    at /home/irees/Projects/freecad-code/src/CXX/Python3/cxx_extensions.cxx:283
#5  0x00007ffff64866e3 in Py::SolidMaterialArray::init_type ()
    at /home/irees/Projects/freecad-code/src/App/PropertyPartMaterial.cpp:321
#6  0x00007ffff64860f4 in Py::PropertyPartMaterial::init_type ()
    at /home/irees/Projects/freecad-code/src/App/PropertyPartMaterial.cpp:423
#7  0x00007ffff64d4615 in App::Application::initTypes ()
    at /home/irees/Projects/freecad-code/src/App/Application.cpp:1359
#8  0x00007ffff64d4421 in App::Application::init (argc=1, argv=0x7fffffffdbe8)
    at /home/irees/Projects/freecad-code/src/App/Application.cpp:1253
#9  0x000055555555c38e in main (argc=1, argv=0x7fffffffdbe8)
    at /home/irees/Projects/freecad-code/src/Main/MainGui.cpp:192
User avatar
bernd
Posts: 6135
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Material improvements

Postby bernd » Tue Sep 25, 2018 3:22 pm

Great :D compiles and starts for me on Python2 . It even rebases on the latest commits from master

OS: Debian GNU/Linux 9.5 (stretch)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14805 (Git)
Build type: Unknown
Branch: materialian2
Hash: e16950459ae4e9c8e9ffd3852f8ccbe017443d01
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Locale: German/Switzerland (de_CH)


first find ... it is not possible to load a saved file. Not one saved with master not one saved with this branch.