Isotropix Forums

Qt, clarisse crash on exit

Clarisse Scripting related topics

Qt, clarisse crash on exit

Unread postby rogerbr » Thu Feb 13, 2020 11:45 am

Hello,

We have few modules with base UIs and widgets that allows our TDs to reuse and keep our tools consistent .

We have noticed however that clarisse would crash on exit if we import modules defining classes derived from Qt
but it wouldn't crash if the main class is defined on the same file as the import pyqt_clarisse

Here below, this won't crash clarisse

python code

from PySide2 import QtCore,QtWidgets
import pyqt_clarisse

class UI_Dialog(QtWidgets.QWidget):
def __init__(self,parent=None):
super(UI_Dialog,self).__init__()
self.setupUI()

def setupUI:
self.setWindowTitle('Test')
layout= QtWidgets.QVBoxLayout(self)
btn=QtWidgets.QPushButton("button")
layout.addWidget(btn)

App=None
if not QtWidgets.QApplication.instance():
App = QtWidgets.QApplication(["Clarisse"])
else:
App = QtWidgets.QApplication.instance()

dialog = UI_Dialog()
dialog.show()

pyqt_clarisse.exec_(App)


However defining the class in its own module and importing it like this:

python code

from PySide2 import QtCore,QtWidgets
from myModule import UI_Dialog()
import pyqt_clarisse

...


would result in clarisse crashing when exiting ( segmentation fault related to pyside)
The crash only occurs at exit time ( you can close, reopen etc...) but when quitting clarisse the isotropix Crash Reporter would complain about the segmentation fault.

Any idea what can cause this and perhaps, a workaround?

Thanks
rogerbr
 
Posts: 1
Joined: Thu Feb 13, 2020 11:09 am

Re: Qt, clarisse crash on exit

Unread postby anemoff » Thu Feb 20, 2020 5:10 pm

Sorry for the late validation of the post!
We will take a look.
Anthony Nemoff
Isotropix
R&D Engineer
User avatar
anemoff
 
Posts: 281
Joined: Wed Jan 13, 2016 10:10 am

Re: Qt, clarisse crash on exit

Unread postby anemoff » Wed Apr 01, 2020 4:05 pm

Hi,

We have not reproduced your issue.
Since you are using PySide2, I suppose you are using Linux, is that correct?
Do you have a crash callstack? If yes could you create a bug report with the callstack and specify which Clarisse version you are using?

Thanks,
Anthony Nemoff
Isotropix
R&D Engineer
User avatar
anemoff
 
Posts: 281
Joined: Wed Jan 13, 2016 10:10 am

Re: Qt, clarisse crash on exit

Unread postby anemoff » Thu Apr 02, 2020 2:27 pm

We have finally reproduced the crash and created a bug report with ID #10617.
We don't have any ETA or workaround yet, but we'll keep you posted.

Cheers,
Anthony Nemoff
Isotropix
R&D Engineer
User avatar
anemoff
 
Posts: 281
Joined: Wed Jan 13, 2016 10:10 am


Return to Scripting