Page 1 of 1

4.2 Alpha 1 startup issue

Posted: October 19th, 2023, 12:57 pm
by buzzword
After installing 4.2 Alpha 1, starting SABNZBd opens an empty Powershell window which does not close.
Reinstalling 4.1 resumes normal startup.

Re: 4.2 Alpha 1 startup issue

Posted: October 19th, 2023, 1:10 pm
by safihre
What version of Windows do you use?

Re: 4.2 Alpha 1 startup issue

Posted: October 19th, 2023, 4:00 pm
by buzzword
Windows 11 Pro
22H2 Build 22621.2428

Re: 4.2 Alpha 1 startup issue

Posted: October 20th, 2023, 12:02 am
by safihre
Hmmm, just to be sure: you just click the shortcut in the Start menu or the Desktop and this happens?
Does it also happen when you go to the actual location of SABnzbd.exe and open it directly?

Re: 4.2 Alpha 1 startup issue

Posted: October 20th, 2023, 2:06 am
by automan3
Got the same here on win 11home. Powershell window opens, when starting sabnzbd. Closing the window closes sabnzbd aswell.

Re: 4.2 Alpha 1 startup issue

Posted: October 20th, 2023, 2:16 am
by buzzword
safihre wrote: October 20th, 2023, 12:02 am Hmmm, just to be sure: you just click the shortcut in the Start menu or the Desktop and this happens?
Does it also happen when you go to the actual location of SABnzbd.exe and open it directly?
Happens in all 3 cases, whether started from Start Menu, Desktop, or direct from .exe

- I was mistaken, it's not a Powershell window, but a blank command prompt window (right clicking on the taskbar icon, Powershell was simply first in the list)

- If I close the window, SABnzbd shuts down

- If I shutdown SABnzbd via right click shutdown on system tray icon, window closes but just before closing flashes the following error:
WNDPROC return value cannot be converted to LRESULT
TypeError: WPARAM is simple, so must be an int object (got NoneType)

Re: 4.2 Alpha 1 startup issue

Posted: October 20th, 2023, 6:48 am
by safihre
I was able to reproduce on my work laptop 😄

https://github.com/pyinstaller/pyinstal ... 1772485556

Re: 4.2 Alpha 1 startup issue

Posted: October 30th, 2023, 4:09 pm
by buzzword
Here's a fix for this, it involves setting the Windows 11 Terminal app to default to 'Windows Console Host' instead of 'Windows Terminal' on startup. It's default is Let Windows Decide and it appears to always "decide" on Windows Terminal.

- Open Terminal

- To the right of any existing tabs, right click on a blank area of the tab bar
(or left click on the drop down symbol next to the + sign)
in either case then choose Settings

- Once in settings, set 'Default terminal application' to 'Windows Console Host'

- 'Save' settings

- Did you remember to save settings?

After doing the above, SABnzbd will start correctly without leaving a terminal window
open.

Note these are *not* the same set of settings found for Terminal in the app list, so if you can't find it, maybe that's where you went looking. Do the above.

Also posted on https://github.com/pyinstaller/pyinstaller/issues/8022