BCML icon indicating copy to clipboard operation
BCML copied to clipboard

White Screen without any error in log

Open foxwhite25 opened this issue 1 year ago • 7 comments

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

foxwhite25 avatar Apr 18 '23 08:04 foxwhite25

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)

GingerAvalanche avatar Apr 18 '23 13:04 GingerAvalanche

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.

foxwhite25 avatar Apr 18 '23 17:04 foxwhite25

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.

GingerAvalanche avatar Apr 21 '23 09:04 GingerAvalanche

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

foxwhite25 avatar Apr 21 '23 09:04 foxwhite25

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

GingerAvalanche avatar Apr 21 '23 09:04 GingerAvalanche

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.

foxwhite25 avatar Apr 21 '23 09:04 foxwhite25

Neither UKMM nor BCML have access to code libraries that can edit sbfres archives (models and textures) so any issues with textures will almost never be either of their fault. There's no merging involved with those files, they're just copied from mod to merge.

What should be the only exception is if you have two mods that edit the same actor, where the first edits both the model and textures and the second only edits one of those (under the assumption that the other is unchanged from vanilla - this wouldn't count for, say, a remodel or retexture submod/patch).

I would guess that your texture bug is either an error with the mod file, or a mod conflict.

On Fri, Apr 21, 2023 at 2:59 AM Fox_white @.***> wrote:

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 BCML.

— Reply to this email directly, view it on GitHub https://github.com/NiceneNerd/BCML/issues/533#issuecomment-1517584793, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH2XOUFQCLROKCGF4N5HBIDXCJLANANCNFSM6AAAAAAXCJSL5Q . You are receiving this because you commented.Message ID: @.***>

GingerAvalanche avatar Apr 21 '23 10:04 GingerAvalanche