Closed yopito closed 1 year ago
using pdb on https://github.com/coin3d/pivy/blob/master/pivy/quarter/QuarterWidget.py:
...
(Pdb) n
> /usr/lib/python3.10/site-packages/pivy/quarter/QuarterWidget.py(226)__init__()
-> if statemachine and statemachine.isOfType(coin.SoScXMLStateMachine.getClassTypeId()):
(Pdb) l
221 # callbacks which depends on other state being initialized
222 self.eventmanager = EventManager(self)
223 self.devicemanager = DeviceManager(self)
224
225 statemachine = coin.ScXML.readFile(values["scxml"])
226 -> if statemachine and statemachine.isOfType(coin.SoScXMLStateMachine.getClassTypeId()):
227 sostatemachine = coin.cast(statemachine, "SoScXMLStateMachine")
228 statemachine.addStateChangeCallback(statechangeCB, self)
229 self.soeventmanager.addSoScXMLStateMachine(sostatemachine)
230 sostatemachine.initialize()
231 else:
(Pdb) p statemachine
<pivy.coin.ScXMLStateMachine; proxy of <Swig Object of type 'ScXMLStateMachine *' at 0x7f813bd02cd0> >
(Pdb) p statemachine.isOfType(coin.SoScXMLStateMachine.getClassTypeId())
1
> /usr/lib/python3.10/site-packages/pivy/quarter/QuarterWidget.py(227)__init__()->None
-> sostatemachine = coin.cast(statemachine, "SoScXMLStateMachine")
(Pdb) n
SystemError: <built-in function cast> returned NULL without setting an exception
On Gentoo opencascade fails to build with musl[1][2]. I wonder if this errors might be related to musl as well?
[1] https://bugs.gentoo.org/832742 [2] https://dev.opencascade.org/content/support-different-libc-implementations-linux
IMHO, not relevant: this issue is a runtime problem, not a build one. and related packages are fine with musl.
I suspect some troubles with pivy or coin3, but I'm unsure.
Yes, it's an issue with pivy's coin.cast function. This function has been re-implemented recently to fix another issue but causes a segmentation fault now.
For more details see: https://github.com/coin3d/pivy/pull/91#issuecomment-1154992357
@wwmayer : ah, ok. thanks for pointing this. hope that someone can fix this (my C++ knowledge is inexistant).
FYI, I've applied patch of PR #99 on pivy and used it with FreeCAD 20.1: a lot more integrated tests passing now (via FreeCAD -t 0)
Edit: for me this issue will be fixed if #99 is getting merged.
hello, while packaging FreeCAD 0.20, I have numerous SIGSEGV on FreeCAD's runtime (build is fine) I suspect some troubles with pivy or coin3, but I'm unsure.
Context: VoidLinux on x86_64, musl libc, python 3.10.5, pyside2 5.15.5, coin3 4.0.0, pivy 0.6.7
FreeCAD failure that make me think of coin3/pivy problem:
So I ran tests/ from pivy with various results:
Reusing content of
pivy-0.6.7/tests/visual_test.py
:any thoughts ?