-
-
Notifications
You must be signed in to change notification settings - Fork 549
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
debug mode often fails to load resources #1025
Comments
What do server requests looks like in Network tab of the dev tools? |
No request.When I tried to access port 42001 in my browser, it took a long time to respond |
There is a similar issue here #1020 |
This may not be the case. I am running a packaged pyinstaller application. no virtual environment |
Sounds like this might be caused by the default single-threaded server. Maybe switching to Would you able to give it a go? |
server.thread = threading.Thread(
target=lambda: bottle.run(app=app, port=server.port, quiet=not _debug['mode'], server='cheroot'),
daemon=True) According to the documentation, after setting multithreading mode, it worked fine ,Thank you |
I have implemented a simple multithreaded server in https://github.com/r0x0r/pywebview/tree/multithreaded-server branch. @geekzsp would you be able to test it and see if it solves the problem? |
It's perfect |
Specification
Description
When I use the
debug=True, http_server=True
, I often run into situations where I can't load front-end resourcesResources are loaded only after multiple restarts
Practicalities
The text was updated successfully, but these errors were encountered: