-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unable to freeze minimal QWebEngineView app #8184
Comments
To clarify - it exits even if you run it from command prompt (so you can see its output even after it exits), or are you running it by double-clicking on the executable? Because I cannot reproduce this - your example seems to work as expected if I freeze it either in Win 10 22H2 VM (no OpenGL) or on Win 10 22H2 notebook (OpenGL available). And we also have QtWebEngine tests in our test suite, so if something was fundamentally wrong with PySide6 and QtWebEngine, we would (hopefully) see that from the test failures. |
The first one: "it exits even if you run it from command prompt (so you can see its output even after it exits)".
I am also unable to reproduce using a VM. Furthermore, the same frozen app failing to run on my laptop actually works on a VM! After some trials and attempts, I have identified the issue in having old drivers in my integrated Intel graphic card. Updating them fixed the issue. The weirdness is that the unfrozen app works without issues on the same laptop. The laptop also has an NVIDIA graphic card. At this point, my best guess is that the unfrozen app uses the NVIDIA card, but the frozen app the integrated graphic card. I have no idea of the reasons for such a behavior (and how to control it!). |
You can verify this by setting |
Just tested. The outputs do NOT differ between unfrozen and frozen program. Additional information: before updating the drivers of the integrated graphics, I tested that setting the preferred graphics processor to "Integrated graphics" (in place of "Auto-select") in the NVIDIA Control Panel was making the unfrozen app to also exit without output. |
Description of the issue
I am attempting to move from PySide2 to PySide6, but I cannot manage to freeze the app when using QWebEngineView.
Context information (for bug reports)
pyinstaller --version
:6.3.0
3.12.1
conda
A minimal example program which shows the error
The frozen app is created by simply running:
pyinstaller --clean -y qtwebengine.py
Stacktrace / full error message
There are no error messages. The frozen app exits after a few seconds.
The text was updated successfully, but these errors were encountered: