Splash screen takes a long time to appear unless console=True

13 views
Skip to first unread message

Brian Craigie

unread,
Oct 27, 2025, 11:26:32 AM (10 days ago) Oct 27
to PyInstaller
When compiling a program as one file (exe), I am able to make a splash screen appear in a few seconds if the console is also turned on, but if the console is not turned on, the splash screen can take 30 seconds to appear, and the gui for my program then appears about 4 seconds later.

Does anyone know why that might be?

Thanks in advance.

bwoodsend

unread,
Oct 28, 2025, 2:58:45 PM (9 days ago) Oct 28
to PyInstaller

I don’t suppose building with --debug=bootloader makes any difference?

The only code difference between console and windowed modes on Windows beyond the compiler flag that tells Windows not to spawn a console is the exception handling (redirecting errors to a popup dialog so that they’re not invisible) which doesn’t kick in until application shutdown so no, it shouldn’t make a difference. On the other hand, windowed mode is the one used most often by malware distributors so it’s not that unlikely that the slowdown is just MS defender scrutinising the application more thoroughly.

Reply all
Reply to author
Forward
0 new messages