error when change to FEM

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!
Post Reply
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

error when change to FEM

Post by bernd »

- start FreeCAD
- activate loggin
- change to FEM

Code: Select all

Loading Fem module... done
Loading GUI of Fem module... done
<input>:66:16: Could not add child element to parent element because the types are incorrect.
I would assume this is some problem in workbench.cpp ?!?


OS: Debian GNU/Linux 10 (buster) (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20226 (Git)
Build type: Unknown
Branch: master
Hash: 9749d08d89a6cf9092720a59f831d4b81516459f
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: error when change to FEM

Post by bernd »

I know which code causes the error, but I do not know how to fix it ...

https://github.com/berndhahnebach/FreeC ... a6c0598741
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: error when change to FEM

Post by bernd »

up,

Someone around an idea?
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: error when change to FEM

Post by vocx »

bernd wrote: Sun Mar 22, 2020 12:48 pm - start FreeCAD
- activate loggin
- change to FEM
How do you reproduce this error? What do you mean by "loggin"?
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: error when change to FEM

Post by bernd »

vocx wrote: Mon Apr 06, 2020 12:49 am
bernd wrote: Sun Mar 22, 2020 12:48 pm - start FreeCAD
- activate loggin
- change to FEM
How do you reproduce this error? What do you mean by "loggin"?
Report view, right mouse button, options, logging
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: error when change to FEM

Post by vocx »

bernd wrote: Mon Apr 20, 2020 12:21 am Report view, right mouse button, options, logging
Well, given that the message only appears as a log message it is not an error.

I did a git grep and I couldn't find the message, so it seems to be generated somewhere else. Maybe it's generated by the Qt libraries?

See the qsvghandler.cpp, https://code.woboq.org/qt5/qtsvg/src/sv ... r.cpp.html, the string is there.

Code: Select all

# QSvgHander::startElement
const QByteArray msg = QByteArrayLiteral("Could not add child element to parent element because the types are incorrect.");
Maybe it's something with the SVG icons in FEM?
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
davidosterberg
Posts: 529
Joined: Fri Sep 18, 2020 5:40 pm

Re: error when change to FEM

Post by davidosterberg »

User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: error when change to FEM

Post by bernd »

Post Reply