kbwbe wrote: ↑Sun Dec 23, 2018 1:46 pm
Hi Manuel, many thanks for the report.
I cannot reproduce the error.
On my system the worksflow shows as:
* Create a planesParallel constraint <== works
* Push 'Delete this constraint' <== works
* A confirmation dialog opens "Confirmation required","Really delete this constraint?" <== This does not show on your system ??
* I confirm this dialog
* Confirmation dialog and constraint properties dialog disappear
* Constraint tools dialog is shown again, constraint is deleted. No error message.
Also the report dump is very strange and does not give a really good hint to me. It looks like there is another error present.
(Constraint dialog seems to be destroyed instead of only been hidden)
I will do some tests with different AppImages.
Hi Klaus,
yes sorry, just forgotten to also list the "Confirmation required" "Really delete this constraint?" one. It shows up here as well and I confirm it, too.
But in my FC the "Constraint Properties" then remains open after the confirmation window disappeared (...until the time I close the whole FreeCAD).
I've tried a more detailed look at the error messages (instead of just copying them all at once from the Report view).
This one comes when invoking "Constraint Tools":
Code: Select all
Running the Python command 'a2p_ConstraintDialogCommand' failed:
Traceback (most recent call last):
File "/home/manuel/.FreeCAD/Mod/A2plus/a2p_constraintDialog.py", line 820, in Activated
p = a2p_ConstraintPanel()
File "/home/manuel/.FreeCAD/Mod/A2plus/a2p_constraintDialog.py", line 783, in __init__
self.move(screen_center(self))
File "/home/manuel/.FreeCAD/Mod/A2plus/a2p_constraintDialog.py", line 782, in <lambda>
screen_center = lambda widget: QtGui.QApplication.desktop().screen().rect().center()- widget.rect().center()
Internal C++ object (PySide2.QtWidgets.QWidget) already deleted.
This one comes when adding planesParallel constraint:
Code: Select all
Traceback (most recent call last):
File "/home/manuel/.FreeCAD/Mod/A2plus/a2p_constraintDialog.py", line 709, in onPlanesParallelButton
self.manageConstraint()
File "/home/manuel/.FreeCAD/Mod/A2plus/a2p_constraintDialog.py", line 651, in manageConstraint
'createConstraint'
File "/home/manuel/.FreeCAD/Mod/A2plus/a2p_constraintDialog.py", line 754, in __init__
self.move(screen_center(self))
File "/home/manuel/.FreeCAD/Mod/A2plus/a2p_constraintDialog.py", line 753, in <lambda>
screen_center = lambda widget: QtGui.QApplication.desktop().screen().rect().center()- widget.rect().center()
RuntimeError: Internal C++ object (PySide2.QtWidgets.QWidget) already deleted.
Then, no further error messages in Report view (e.g. upon deleting the constraint).
BTW, the "Confirmation Dialog" window has a somehow different look than the "Constraint Properties" and "Constraint Tool", maybe some old code remainders? (Just an idea, not sure if useful.)
And some FC cross version testing:
FreeCAD_0.18.15417.glibc2.17-x86_64.AppImage does not show any of these errors, while
FreeCAD_0.18.15419_Conda_Py3Qt5_glibc2.12-x86_64.AppImage does show them all.
Best regards,
Manuel