mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 11:45:49 +03:00
[GH-ISSUE #306] Infinite initialization when trying to import config #269
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kapertdog on GitHub (Aug 31, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/306
Originally assigned to: @brentvollebregt on GitHub.
Quick Checks For You
Describe the bug
Failed to import config: application closes, browser window goes into infinite initialization
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots


Your Environment:
python --version): Python 3.10.6pip show auto-py-to-exe): 2.22.0pip show pyinstaller): 5.3pip show eel): 0.14.0Additional context
Add any other context about the problem here.
@brentvollebregt commented on GitHub (Sep 1, 2022):
I just performed those reproduction steps and was unable to reproduce the issues. Is there a certain config file that makes this happen?
In terms of debugging, can you look at these for me:
@kapertdog commented on GitHub (Sep 1, 2022):
Happens to anyone config file
Entered again all the parameters manually, saved the config, loaded it, everything still the same
The problem appeared after updating auto-py-to-exe (don’t remember what version it was before)
If don't import config, all's work
@brentvollebregt commented on GitHub (Sep 1, 2022):
Potentially
886bac6789broke this. If you checkout and use7b708cb59b, does this still happen?@kapertdog commented on GitHub (Sep 1, 2022):
No, everything works on 2.21.0
@kapertdog commented on GitHub (Sep 1, 2022):
This error hangs in the web console, but everything is successfully imported and converted

@brentvollebregt commented on GitHub (Sep 1, 2022):
Sweet, so definitely is an issue with
886bac6789then. The issue would be caused by when the config is loaded, the whole page reloads. Typically this works completely fine (like on my machine) but potentially yours may be loading slower for some reason.Digging into Eel's source, I see that it calls
_shutdown = gvt.spawn_later(1.0, _detect_shutdown)when a websocket disconnects - this makes the application wait 1 second to see if any more websockets are connected and if there are none, terminate.Just as I was thinking of ways to get around this. I see ChrisKnott/Eel#529 was added recently - increasing this value should fix this issue! I'll drag it up to three seconds and get you to test the fix.Dam, a release hasn't been made for this yet.@brentvollebregt commented on GitHub (Sep 24, 2022):
Sorry for the delay on this - I have moved away from the reload-based import to clearing everything before importing the config.
The changes will be in 2.23.1 in a bit
@chaush-server commented on GitHub (Sep 25, 2023):
@brentvollebregt commented on GitHub (Sep 25, 2023):
@chaush-server this was fixed in 2.40.0 - see #431
@chaush-server commented on GitHub (Sep 25, 2023):
wow so fast answer ty