Skip to content
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

The pywebview-5.2 shows a blank window with Windows, AMD Radeon(TM) Vega 8 Graphics, AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx #1484

Open
4 tasks done
creeperyyds opened this issue Oct 1, 2024 · 5 comments

Comments

@creeperyyds
Copy link

creeperyyds commented Oct 1, 2024

Specification

  • pywebview version: 5.2
  • operating system: Windows 11
  • web renderer: Chromium (I think so)
  • Python Version: 3.12.5

Description

(English is not my native language; please excuse typing errors.)
When I run this code

import webview

window = webview.create_window('Woah dude!', 'https://pywebview.flowrl.com')
webview.start(debug=True)

It shows nothing but a blank window:(I can open the website on Edge)
image
And the console only shows:

[pywebview] Using WinForms / Chromium

(I have another software that use pywebview,it will shows a native html file,and before I can use it correctly,but now it throws an exception webview.errors.WebViewException: Main window failed to start)

I tried:

  • use Python 3.9 (Failed)
  • use Windows 10 in VMware (Failed)
  • modify the website (Failed)
  • use local html file (Failed, only shows:
[pywebview] Using WinForms / Chromium
Bottle v0.12.25 server starting up (using ThreadedAdapter())...
Listening on http://127.0.0.1:38771/
Hit Ctrl-C to quit.

)

Thanks in advance for your attention.

Practicalities

  • YES I am willing to work on this issue myself.

  • NO I am prepared to support this issue financially.(I don't have any money)

@creeperyyds creeperyyds changed the title The pywebview-5.2 shows a blank window on Windows 11,Python 3.12.5 The pywebview-5.2 shows a blank window with Windows, AMD Radeon(TM) Vega 8 Graphics, AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx Oct 1, 2024
@r0x0r
Copy link
Owner

r0x0r commented Oct 1, 2024

It is difficult to debug without error log, but my bet is that there is something wrong with EdgeChromium runtime. You may try to see if webview runtime ever gets initialized by placing print statements (breakpoints do not work here) inside on_webview_ready handler

def on_webview_ready(self, sender, args):

@creeperyyds
Copy link
Author

creeperyyds commented Oct 2, 2024

It looks like it didn't run on_webview_ready. And sorry because I didn't know how to get an error log.
I will keep trying to fix it.

@Ciarands
Copy link

Ciarands commented Oct 2, 2024

Exact same issue here, strangely, using pyenv-win and prepending with pyenv exec fixes the issue?
Also using AMD GPU + CPU.

@creeperyyds
Copy link
Author

Works fine up to and including 5.1,maybe 5.2 changed something

divadsn added a commit to divadsn/UBahnSimBerlinInstaller that referenced this issue Oct 2, 2024
@creeperyyds
Copy link
Author

creeperyyds commented Oct 3, 2024

Make a pull request to fix it:#1489
Not really sure it can work on other device, but I think it can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants