getting a blank/empty window when trying to open a webpage
tedmoorman opened this issue · comments
Specification
- pywebview version: 5.1
- operating system: Windows 10
- web renderer: chromium (I think)
Description
Used example in simple_browser.py and am getting a blank/empty window. Web page appears with QtWebEngine and with webbrowser. System is an internal network. Glad to try whatever troubleshooting I can on my end.
Practicalities
-
NO, I am willing to work on this issue myself.
-
NO, I am prepared to support this issue financially.
Are there any errors?
Not getting any errors.
Tried another web address and was asked for login credentials, whereas webbrowser will open a new tab in an existing browser without asking for login credentials.
The particular site that is blank/empty quickly goes from a white background to a gray background upon closer inspection. Attaching screen shot below.
Are you using PyQT? This looks like a known issue, which is solved by disabling sandbox mode in qt.py line 49 for a selected platform.
Other than that, I suggest using Edge Chromium on Windows.
Are you using PyQT? This looks like a known issue, which is solved by disabling sandbox mode in qt.py line 49 for a selected platform.
I have PyQT installed in the environment, but I am not using PyQT in the code. I'm just using the example from simple_browser.py. Would this still be a problem?
I tried some other websites, and I am seeing those display in the browser. So, maybe it's just an issue with the configuration of certain websites?
It is a known QT problem with a fix for selected platforms here. Adding your platform there should help.
pywebview/webview/platforms/qt.py
Line 49 in 99f18d0
I recommend using EdgeChromium webview2 over QT on Windows, though
It is a known QT problem with a fix for selected platforms here. Adding your platform there should help.
I added 'windows' as a platform after running QtCore.QSysInfo.productType()
, and I still get the white to gray screen.
I recommend using EdgeChromium webview2 over QT on Windows, though
I also tried with webview.start(gui='edgechromium')
, and I still get the white to gray screen.
Please let me know if you think of anything else, and thank you for your help!