Open tigercosmos opened 2 years ago
It looks like an uncaught Python exception of missing module on import. Could you try adding Python exception handling code around it to see what is the Python call stack?
And most likely you did not have PySide6 installed.
Do you want to use a separate issue for the Python call stack enhancement, or just this one?
@yungyuc Maybe a new issue. I think they are separated.
the reason is due to this line win = ApplicationWindow()
, when it run super().__init__()
in ApplicationWindow
error message: QWidget: Must construct a QApplication before a QWidget
if MacOS or Linux work, maybe it's an issue from upstream (from matplotlib.backends.qt_compat import QtWidgets
)?
cc @yungyuc
QtWidgets
uses PySide6, in which you can trace into too (through the mpl code).
cc @tychuang1211
If it's about matplotlib, maybe it's related with this?
linear_wave
is an old prototype. Once the prototype euler1d
is done, it should be migrated to the new style.
@yungyuc this issue is caused by win = ApplicationWindow()
, which is in both old and new prototypes.
@tigercosmos euler1d
does not work like that anymore. Please take a look at: https://github.com/solvcon/modmesh/blob/315f69c76e6015a1260a198bba029a0550b68d3f/modmesh/app/euler1d.py#L145
@tigercosmos could you help test if #168 fixes this issue?
@tigercosmos do you think this issue is still there?
Windows11, VS2022, QT6.3.2, source code with the latest master
when loading an app except the sample_mesh, it will crash with: