Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

White Screen without any error in log #533

Open
foxwhite25 opened this issue Apr 18, 2023 · 7 comments
Open

White Screen without any error in log #533

foxwhite25 opened this issue Apr 18, 2023 · 7 comments

Comments

@foxwhite25
Copy link

Platform: Windows 10
GPU: RTX 3070

[pywebview] Using WinForms / CEF

DevTools listening on ws://127.0.0.1:57615/devtools/browser/85493678-2244-4803-8397-82fe36350881
CEF window with uid master does not exist
[0418/164252.725:ERROR:CONSOLE(101)] "Uncaught (in promise) TypeError: Cannot read property 'url' of undefined", source: chrome-devtools://devtools/inspector.js (101)
[0418/164252.726:ERROR:CONSOLE(101)] "Uncaught (in promise) TypeError: Cannot read property 'url' of undefined", source: chrome-devtools://devtools/inspector.js (101)

This is all the log, if I switch to gui="gtk" it is also a white screen.

If I KeybordIntecept the script, it lands at

Process Process-1:
Traceback (most recent call last):
  File "C:\Users\DELL\AppData\Local\Programs\Python\Python38\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "C:\Users\DELL\AppData\Local\Programs\Python\Python38\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "D:\PycharmProjects\bcml\venv\lib\site-packages\bcml\_server.py", line 18, in start_server
    httpd.serve_forever()
  File "C:\Users\DELL\AppData\Local\Programs\Python\Python38\lib\socketserver.py", line 232, in serve_forever
    ready = selector.select(poll_interval)
  File "C:\Users\DELL\AppData\Local\Programs\Python\Python38\lib\selectors.py", line 323, in select
    r, w, _ = self._select(self._readers, self._writers, [], timeout)
  File "C:\Users\DELL\AppData\Local\Programs\Python\Python38\lib\selectors.py", line 314, in _select
    r, w, x = select.select(r, w, w, timeout)
KeyboardInterrupt
[CEF Python] ExceptHook: catched exception, will shutdown CEF

Traceback (most recent call last):
  File "C:\Users\DELL\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\DELL\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "D:\PycharmProjects\bcml\venv\Scripts\bcml-debug.exe\__main__.py", line 7, in <module>
    sys.exit(main_debug())
  File "D:\PycharmProjects\bcml\venv\lib\site-packages\bcml\__main__.py", line 155, in main_debug
    main(True)
  File "D:\PycharmProjects\bcml\venv\lib\site-packages\bcml\__main__.py", line 149, in main
    webview.start(gui=gui, debug=debug, http_server=True, func=_oneclick.process_arg)
  File "D:\PycharmProjects\bcml\venv\lib\site-packages\webview\__init__.py", line 140, in start
    guilib.create_window(windows[0])
  File "D:\PycharmProjects\bcml\venv\lib\site-packages\webview\platforms\winforms.py", line 519, in create_window
    thread.Join()
KeyboardInterrupt
@GingerAvalanche
Copy link
Collaborator

Which python and bcml versions are you using? Looks like the react server url isn’t getting defined, which is strange since it’s hardcoded.

gtk only works for linux. On windows you would want to force edgechromium if you didn’t want to use cef (though that comes with its own problems, as sometimes pywebview can’t find it even when it’s installed)

@foxwhite25
Copy link
Author

foxwhite25 commented Apr 18, 2023

Which python and bcml versions are you using? Looks like the react server url isn’t getting defined, which is strange since it’s hardcoded.

gtk only works for linux. On windows you would want to force edgechromium if you didn’t want to use cef (though that comes with its own problems, as sometimes pywebview can’t find it even when it’s installed)

I am using python 3.8.10, edgechromium also does not show the webpage, it just says empty response after a while, seems like the front-end is not working properly.

I also tried to set it up in a linux vm and it works fine, I just don't want to move the entire emulator in a vm.

Here is the log when I switch to edgechromium

[pywebview] Using WinForms / Chromium
Bottle v0.12.25 server starting up (using ThreadedAdapter())...
Listening on http://127.0.0.1:32196/
Hit Ctrl-C to quit.

@GingerAvalanche
Copy link
Collaborator

GingerAvalanche commented Apr 21, 2023

Can’t reproduce it here. Every python version from 3.7 to 3.9 works with cef for me, and 3.7 to 3.11 works with edgechromium. Whatever it is, is on your end.

Did you have .NET Framework 4.6.2 installed when testing edgechromium? pywebview requires it to interface with the edgechromium engine.

Normally, the white screen occurs because of a null reference when trying to call an engine it can’t access. I’ve never seen it succeed in firing up the server, only to lose access to hardcoded information.

@foxwhite25
Copy link
Author

foxwhite25 commented Apr 21, 2023

Can’t reproduce it here. Every python version from 3.7 to 3.9 works with cef for me, and 3.7 to 3.11 works with edgechromium. Whatever it is, is on your end.

Did you have .NET Framework 4.6.2 installed when testing edgechromium? pywebview requires it to interface with the edgechromium engine.

Yes I have .net Framework installed, I even made a few BepInEx mod with it, but I will try to reinstall it and see if it works.

Edit: nvm it doesn't even allow a reinstall, it just says it is already installed

@GingerAvalanche
Copy link
Collaborator

Sounds like a ghost in the machine. I suggest you try UKMM, instead. BCML is no longer supported, anyway, as UKMM is just better.

@foxwhite25
Copy link
Author

foxwhite25 commented Apr 21, 2023

Sounds like a ghost in the machine. I suggest you try UKMM, instead. BCML is no longer supported, anyway, as UKMM is just better.

Yeah, I have been using UKMM, got a weird texture bug with linkle 3 and just want to ensure it is not a issue with UKMM.

@GingerAvalanche
Copy link
Collaborator

GingerAvalanche commented Apr 21, 2023 via email

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

No branches or pull requests

2 participants