material editor crashes

A forum to discuss the implementation of a good Materials system in FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

material editor crashes

Post by uwestoehr »

Since the latest Win build for 0.18 the material editor crashes:

- open an existing simulation you created with FC 0.18x
- double-click on the material

result:

Code: Select all

Traceback (most recent call last):
  File "C:\Users\USti\Desktop\FreeCAD_0.18.15938_Conda_Py3QT5-WinVS2015_x64\Mod\Fem\femguiobjects\_ViewProviderFemMaterial.py", line 71, in setEdit
    taskd = _TaskPanelFemMaterial(self.Object)
  File "C:\Users\USti\Desktop\FreeCAD_0.18.15938_Conda_Py3QT5-WinVS2015_x64\Mod\Fem\femguiobjects\_ViewProviderFemMaterial.py", line 151, in __init__
    self.import_materials()
  File "C:\Users\USti\Desktop\FreeCAD_0.18.15938_Conda_Py3QT5-WinVS2015_x64\Mod\Fem\femguiobjects\_ViewProviderFemMaterial.py", line 567, in import_materials
    self.import_solid_materials()
  File "C:\Users\USti\Desktop\FreeCAD_0.18.15938_Conda_Py3QT5-WinVS2015_x64\Mod\Fem\femguiobjects\_ViewProviderFemMaterial.py", line 574, in import_solid_materials
    self.add_cards_from_a_dir(system_mat_dir, ":/icons/freecad.svg")
  File "C:\Users\USti\Desktop\FreeCAD_0.18.15938_Conda_Py3QT5-WinVS2015_x64\Mod\Fem\femguiobjects\_ViewProviderFemMaterial.py", line 613, in add_cards_from_a_dir
    self.materials[a_path] = Material.importFCMat(a_path)
  File "C:\Users\USti\Desktop\FreeCAD_0.18.15938_Conda_Py3QT5-WinVS2015_x64\Mod\Material\Material.py", line 65, in importFCMat
    Config.read(fileName)
  File "C:\Users\USti\Desktop\FreeCAD_0.18.15938_Conda_Py3QT5-WinVS2015_x64\bin\lib\configparser.py", line 697, in read
    self._read(fp, filename)
  File "C:\Users\USti\Desktop\FreeCAD_0.18.15938_Conda_Py3QT5-WinVS2015_x64\bin\lib\configparser.py", line 1111, in _read
    raise e
<class 'configparser.ParsingError'>: Source contains parsing errors: 'C:/Users/USti/Desktop/FreeCAD_0.18.15938_Conda_Py3QT5-WinVS2015_x64/data//Mod/Material/StandardMaterial\\TEMPLATE.FCMat'
	[line 47]: 'AngleOfFriction\n'
	[line 98]: 'ReferenceSource\n'
	[line 116]: 'SourceURL\n'
As result no task dialog is shown at ass and I see no other way than to restart FC since FC tells me that there is an active task dialog and denies all actions.

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15938 (Git)
Build type: Release
Branch: master
Hash: acdd4b097bbaf6d94bc09cf38f25924bd5d3e778
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: material editor crashes

Post by uwestoehr »

This bug does not occur with:

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15938 (Git)
Build type: Release
Branch: master
Hash: acdd4b097bbaf6d94bc09cf38f25924bd5d3e778
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: material editor crashes

Post by bernd »

Post Reply