8000 Please destroy the QApplication singleton before creating a new QApplication instance. · Issue #1363 · tpaviot/pythonocc-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Please destroy the QApplication singleton before creating a new QApplication instance. #1363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LZHLZHOOO opened this issue Aug 18, 2024 · 2 comments
Labels

Comments

@LZHLZHOOO
Copy link
4b96f0dc14cb857437a767d6ca03e5d I want to upload a 3D model in STP format, but I'm encountering this error. Does anyone know what might be causing this issue? Please help.
@jnwalther
Copy link
Contributor
jnwalther commented Oct 31, 2024

I'm not 100% sure if this is the same issue, but I got the same error message when trying to open a display window for a second time in a single Python session. It seems to be related to Pyside6. Other projects seem to have similar issues.

The solution given in that issue seems to do the trick for me, i.e. go to https://github.com/tpaviot/pythonocc-core/blob/master/src/Display/SimpleGui.py and do

-  app = QtWidgets.QApplication(sys.argv)
+  app = QtWidgets.QApplication.instance() or QtWidgets.QApplication(sys.argv)

in line 230.

I haven't tested it completely, so I can't say if this change breaks anything for the other Qt versions.

@tpaviot
Copy link
Owner
tpaviot commented Nov 15, 2024

Fixed by #1381

@tpaviot tpaviot closed this as completed Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
0