Arch materials

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Arch materials

Post by yorik »

Strange! Can you try this in the python console?

Code: Select all

import MaterialEditor
editor=MaterialEditor.MaterialEditor()
editor.show()
Renato Rebelo
Posts: 255
Joined: Mon May 19, 2014 1:14 pm
Location: Vouzela - Portugal

Re: Arch materials

Post by Renato Rebelo »

The same thing happens ...
In line 2.

greetings,
Renato
my native language is not English, please excuse me any incorrectness, I apologize for any inconvenience caused, thank you
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Arch materials

Post by yorik »

Very strange. Could you repeat that by running FreeCAD from a terminal, or, even better, get a gdb backtrace ( viewtopic.php?f=4&t=7052#p56918 )?
Renato Rebelo
Posts: 255
Joined: Mon May 19, 2014 1:14 pm
Location: Vouzela - Portugal

Re: Arch materials

Post by Renato Rebelo »

Code: Select all

renato@UbuntuSSD:~$ gdb freecad
GNU gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvs
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Lendo símbolos de freecad...(no debugging symbols found)...concluído.
(gdb) run
Starting program: /usr/bin/freecad 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
FreeCAD 0.16, Libs: 0.16R4903 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

[New Thread 0x7fffddfa0700 (LWP 4686)]
[New Thread 0x7fffdd79f700 (LWP 4687)]
[New Thread 0x7fffd6c28700 (LWP 4688)]
[New Thread 0x7fffd6427700 (LWP 4689)]
[New Thread 0x7fffd5c26700 (LWP 4690)]
[Thread 0x7fffd6427700 (LWP 4689) exited]
Arch workbench activated
[Thread 0x7fffd5c26700 (LWP 4690) exited]
Traceback (most recent call last):
  File "/usr/lib/freecad/Mod/Arch/ArchSectionPlane.py", line 410, in onChanged
    cutface,cutvolume,invcutvolume = ArchCommands.getCutVolume(obj.Source.Shape.copy(),shapes)
  File "/usr/lib/freecad/Mod/Arch/ArchCommands.py", line 376, in getCutVolume
    p = cutplane.copy().Faces[0]
<type 'exceptions.IndexError'>: list index out of range
Traceback (most recent call last):
  File "/usr/lib/freecad/Mod/Arch/ArchSectionPlane.py", line 410, in onChanged
    cutface,cutvolume,invcutvolume = ArchCommands.getCutVolume(obj.Source.Shape.copy(),shapes)
  File "/usr/lib/freecad/Mod/Arch/ArchCommands.py", line 376, in getCutVolume
    p = cutplane.copy().Faces[0]
<type 'exceptions.IndexError'>: list index out of range
Traceback (most recent call last):
  File "/usr/lib/freecad/Mod/Arch/ArchSectionPlane.py", line 410, in onChanged
    cutface,cutvolume,invcutvolume = ArchCommands.getCutVolume(obj.Source.Shape.copy(),shapes)
  File "/usr/lib/freecad/Mod/Arch/ArchCommands.py", line 376, in getCutVolume
    p = cutplane.copy().Faces[0]
<type 'exceptions.IndexError'>: list index out of range

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7804818 in QFormInternal::domPropertyToVariant(QFormInternal::QAbstractFormBuilder*, QMetaObject const*, QFormInternal::DomProperty const*) ()
   from /usr/lib/freecad/lib/libFreeCADGui.so
(gdb) # let freecad crash
(gdb) bt
#0  0x00007ffff7804818 in QFormInternal::domPropertyToVariant(QFormInternal::QAbstractFormBuilder*, QMetaObject const*, QFormInternal::DomProperty const*) ()
   from /usr/lib/freecad/lib/libFreeCADGui.so
#1  0x00007ffff77b3649 in QFormInternal::QAbstractFormBuilder::toVariant(QMetaObject const*, QFormInternal::DomProperty*) ()
   from /usr/lib/freecad/lib/libFreeCADGui.so
#2  0x00007ffff77ccb74 in QFormInternal::QFormBuilder::applyProperties(QObject*, QList<QFormInternal::DomProperty*> const&) ()
   from /usr/lib/freecad/lib/libFreeCADGui.so
#3  0x00007ffff77ae9c1 in QFormInternal::FormBuilderPrivate::applyProperties(QObject*, QList<QFormInternal::DomProperty*> const&) ()
   from /usr/lib/freecad/lib/libFreeCADGui.so
#4  0x00007ffff77ba9be in QFormInternal::QAbstractFormBuilder::create(QFormInternal::DomWidget*, QWidget*) () from /usr/lib/freecad/lib/libFreeCADGui.so
#5  0x00007ffff77cd9a5 in QFormInternal::QFormBuilder::create(QFormInternal::DomWidget*, QWidget*) () from /usr/lib/freecad/lib/libFreeCADGui.so
#6  0x00007ffff77af06e in QFormInternal::FormBuilderPrivate::create(QFormInternal::DomWidget*, QWidget*) () from /usr/lib/freecad/lib/libFreeCADGui.so
#7  0x00007ffff77bcc43 in QFormInternal::QAbstractFormBuilder::create(QFormInternal::DomUI*, QWidget*) () from /usr/lib/freecad/lib/libFreeCADGui.so
#8  0x00007ffff77af008 in QFormInternal::FormBuilderPrivate::create(QFormInternal::DomUI*, QWidget*) () from /usr/lib/freecad/lib/libFreeCADGui.so
#9  0x00007fff9ca62e71 in QFormInternal::QAbstractFormBuilder::load(QIODevice*, ---Type <return> to continue, or q <return> to quit---Quit
(gdb) 
#0  0x00007ffff7804818 in QFormInternal::domPropertyToVariant(QFormInternal::QAbstractFormBuilder*, QMetaObject const*, QFormInternal::DomProperty const*) ()
   from /usr/lib/freecad/lib/libFreeCADGui.so
#1  0x00007ffff77b3649 in QFormInternal::QAbstractFormBuilder::toVariant(QMetaObject const*, QFormInternal::DomProperty*) ()
   from /usr/lib/freecad/lib/libFreeCADGui.so
#2  0x00007ffff77ccb74 in QFormInternal::QFormBuilder::applyProperties(QObject*, QList<QFormInternal::DomProperty*> const&) ()
   from /usr/lib/freecad/lib/libFreeCADGui.so
#3  0x00007ffff77ae9c1 in QFormInternal::FormBuilderPrivate::applyProperties(QObject*, QList<QFormInternal::DomProperty*> const&) ()
   from /usr/lib/freecad/lib/libFreeCADGui.so
#4  0x00007ffff77ba9be in QFormInternal::QAbstractFormBuilder::create(QFormInternal::DomWidget*, QWidget*) () from /usr/lib/freecad/lib/libFreeCADGui.so
#5  0x00007ffff77cd9a5 in QFormInternal::QFormBuilder::create(QFormInternal::DomWidget*, QWidget*) () from /usr/lib/freecad/lib/libFreeCADGui.so
#6  0x00007ffff77af06e in QFormInternal::FormBuilderPrivate::create(QFormInternal::DomWidget*, QWidget*) () from /usr/lib/freecad/lib/libFreeCADGui.so
#7  0x00007ffff77bcc43 in QFormInternal::QAbstractFormBuilder::create(QFormInternal::DomUI*, QWidget*) () from /usr/lib/freecad/lib/libFreeCADGui.so
#8  0x00007ffff77af008 in QFormInternal::FormBuilderPrivate::create(QFormInternal::DomUI*, QWidget*) () from /usr/lib/freecad/lib/libFreeCADGui.so
#9  0x00007fff9ca62e71 in QFormInternal::QAbstractFormBuilder::load(QIODevice*, ---Type <return> to continue, or q <return> to quit---
QWidget*) () from /usr/lib/python2.7/dist-packages/PySide/QtUiTools.so
#10 0x00007fff9ca5afe2 in QUiLoader::load(QIODevice*, QWidget*) ()
   from /usr/lib/python2.7/dist-packages/PySide/QtUiTools.so
#11 0x00007fff9ca58263 in ?? ()
   from /usr/lib/python2.7/dist-packages/PySide/QtUiTools.so
#12 0x00007ffff6794b2c in PyEval_EvalFrameEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#13 0x00007ffff6807000 in PyEval_EvalCodeEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#14 0x00007ffff675710d in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#15 0x00007ffff675f8e3 in PyObject_Call ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#16 0x00007ffff67a1cf5 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#17 0x00007ffff675f8e3 in PyObject_Call ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#18 0x00007ffff66ce95d in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#19 0x00007ffff66e468f in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#20 0x00007ffff675f8e3 in PyObject_Call ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
---Type <return> to continue, or q <return> to quit---
#21 0x00007ffff6793112 in PyEval_EvalFrameEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#22 0x00007ffff6794f3d in PyEval_EvalFrameEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#23 0x00007ffff6807000 in PyEval_EvalCodeEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#24 0x00007ffff675702c in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#25 0x00007ffff675f8e3 in PyObject_Call ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#26 0x00007ffff67a1cf5 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#27 0x00007ffff675f8e3 in PyObject_Call ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#28 0x00007ffff6806557 in PyEval_CallObjectWithKeywords ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#29 0x00007fffc350272c in PySide::SignalManager::callPythonMetaMethod(QMetaMethod const&, void**, _object*, bool) ()
   from /usr/lib/x86_64-linux-gnu/libpyside-python2.7.so.1.2
#30 0x00007fffc35088a0 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpyside-python2.7.so.1.2
#31 0x00007ffff53c4dd0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
#32 0x00007ffff5edec86 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#33 0x00007ffff5edf4ec in QAbstractButton::mousePressEvent(QMouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#34 0x00007ffff5b75509 in QWidget::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#35 0x00007ffff5b2511c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#36 0x00007ffff5b2b9be in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#37 0x00007ffff74e2885 in Gui::GUIApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/freecad/lib/libFreeCADGui.so
#38 0x00007ffff53b086d in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#39 0x00007ffff5b2b07f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#40 0x00007ffff5ba0bde in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#41 0x00007ffff5ba0477 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#42 0x00007ffff5bc8432 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#43 0x00007fffee6ecc5d in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007fffee6ecf48 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#45 0x00007fffee6ecffc in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007ffff53de031 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#47 0x00007ffff5bc84e6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#48 0x00007ffff53af4f1 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#49 0x00007ffff53af805 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#50 0x00007ffff53b4f67 in QCoreApplication::exec() ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#51 0x00007ffff74d953f in Gui::Application::runApplication() ()
   from /usr/lib/freecad/lib/libFreeCADGui.so
#52 0x0000000000404308 in main ()
(gdb) 
my native language is not English, please excuse me any incorrectness, I apologize for any inconvenience caused, thank you
Renato Rebelo
Posts: 255
Joined: Mon May 19, 2014 1:14 pm
Location: Vouzela - Portugal

Re: Arch materials

Post by Renato Rebelo »

Renato Rebelo wrote:hello,
I think there is a problem, because I can not open the material editor, whenever I click the icon the program crashes ...
material 2015-04-27.png
OS: Ubuntu 14.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.4903 (Git)
Branch: master
Hash: d449cab27975eee14278b812c362c4a4db989f87
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

greetings,
Renato
Hello,
still giving the same error ...
any suggestion?
thank you,
Renato Rebelo

OS: Ubuntu 15.04
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.5086 (Git)
Build type: None
Branch: master
Hash: 4f5534a87a7e2d224022ff98729a341bf57e7f9e
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
my native language is not English, please excuse me any incorrectness, I apologize for any inconvenience caused, thank you
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Arch materials

Post by yorik »

Hi Renato,
Thanks for reminding, I had forgotten about this...
It's strange, I don't see why this error would happen when calling the Materials panel... But I just committed ( git commit 8b4492e ) a fix that should hopefully solve this issue.
Renato Rebelo
Posts: 255
Joined: Mon May 19, 2014 1:14 pm
Location: Vouzela - Portugal

Re: Arch materials

Post by Renato Rebelo »

Hello,
the error with the material editor continues, but now I could already see something else, the error message it gives is this:

Arch workbench activated
*** Abort *** an exception was raised, but no catch was found.
... The exception is:SIGSEGV 'segmentation violation' detected. Address 0

any suggestion?
thank you,
Renato Rebelo
my native language is not English, please excuse me any incorrectness, I apologize for any inconvenience caused, thank you
Renato Rebelo
Posts: 255
Joined: Mon May 19, 2014 1:14 pm
Location: Vouzela - Portugal

Re: Arch materials

Post by Renato Rebelo »

yorik wrote:Hi Renato,
Thanks for reminding, I had forgotten about this...
It's strange, I don't see why this error would happen when calling the Materials panel... But I just committed ( git commit 8b4492e ) a fix that should hopefully solve this issue.
Hello,
I was reviewing this topic and I think you did confusion :D with another topic that was related to the cutting plane, I was referring here to the problems with the material editor that does not open.
thank you,
Renato
my native language is not English, please excuse me any incorrectness, I apologize for any inconvenience caused, thank you
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Arch materials

Post by yorik »

I really don't know how to fix this problem, because I'm unable to reproduce it here...
Have you added any custom material?
Renato Rebelo
Posts: 255
Joined: Mon May 19, 2014 1:14 pm
Location: Vouzela - Portugal

Re: Arch materials

Post by Renato Rebelo »

no, I did not add any material.
It happens whenever I try to open the material editor at any CIRCUMSTANCES.
The error is this one:
*** Abort *** an exception was raised, but no catch was found.
... The exception is:SIGSEGV 'segmentation violation' detected. Address 0
thank you,
Renato

OS: Ubuntu 15.04
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.5265 (Git)
Build type: None
Branch: master
Hash: d95003e92c7e8786fac5a6cd2ab09652ef3e53e1
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
my native language is not English, please excuse me any incorrectness, I apologize for any inconvenience caused, thank you
Post Reply