FC0.19 [Bug]: C++ exception thrown (ios_base::failbit set: iostream stream error)
Posted: Wed Dec 04, 2019 1:42 pm
with FC 0.19 I have this copying issue:
1) import the big STEP file linked here at GH (use right-click Save link as) icezum.step
2) select the main Part container (ASSEMBLY)
3) click on FC 'Copy' icon
4) simply click OK on the Object selection dialog
5) create a new FC document
6) click on FC 'Paste' icon
this will lead to the above errors.
The STEP import settings shouldn't count because I can reproduce the same issue when saving the STEP file as FC file and then repeat the copying procedure from the native FC format.
Anyway here my STEP import settings:
- -
And here my FC full info:
I also can reproduce the issue on Linux Mint, with a different PC and GPU.
FC0.18 just works fine.
Please note that I can correctly copy the objects on FC0.19 using the following python code:
Here the procedure to recreate the issue:Log: Could not create collator: 4
Log: QWidget::repaint: Recursive repaint detected
Err: C++ exception thrown (ios_base::failbit set: iostream stream error)
1) import the big STEP file linked here at GH (use right-click Save link as) icezum.step
2) select the main Part container (ASSEMBLY)
3) click on FC 'Copy' icon
4) simply click OK on the Object selection dialog
5) create a new FC document
6) click on FC 'Paste' icon
this will lead to the above errors.
The STEP import settings shouldn't count because I can reproduce the same issue when saving the STEP file as FC file and then repeat the copying procedure from the native FC format.
Anyway here my STEP import settings:
- -
And here my FC full info:
Code: Select all
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18822 (Git)
Build type: Release
Branch: master
Hash: 0935aa9f5c446ef493e45abb3eba5ffc1af9f57d
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
FC0.18 just works fine.
Please note that I can correctly copy the objects on FC0.19 using the following python code:
Code: Select all
import ImportGui
ImportGui.open(u"C:/Temp/icezum.step")
Gui.SendMsgToActiveView("ViewFit")
# Gui.runCommand('Std_Copy',0)
i=App.ActiveDocument.ASSEMBLY
App.newDocument("test")
newDoc= App.getDocument('test')
newDoc.copyObject(i,True)
Gui.SendMsgToActiveView("ViewFit")