Problem console not closing

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
xyanide
Newbie
Newbie
Posts: 16
Joined: January 22nd, 2008, 7:52 am
Contact:

Problem console not closing

Post by xyanide »

Hi, i`ve got a problem with sabnzbd+ (0.3.0).

When i start the program the console window won`t close automatically, it opens the browser window perfectly and it all works fine.
But the window just won`t close.
The sabnzbd.log doesn`t show any strange things.

I`m using Windows XP 32 bit.

Thanks in advance.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Problem console not closing

Post by switch »

I made a version of sabnzbd with more logging around the window closing code to try and debug this issue.

If you private message me your email address I can send it to you.
xyanide
Newbie
Newbie
Posts: 16
Joined: January 22nd, 2008, 7:52 am
Contact:

Re: Problem console not closing

Post by xyanide »

message sent.
vankwish
Newbie
Newbie
Posts: 8
Joined: January 23rd, 2008, 10:19 am

Re: Problem console not closing

Post by vankwish »

I too am having this problem  ;D


I am running vista 32bit ult, i used the win32 setup to install sab, i changed the port to 8181, i have firefox as my default browser and sab set to auto open and i have the new nod32 smart security programme running if it is of any help.
Last edited by vankwish on January 23rd, 2008, 10:27 am, edited 1 time in total.
jp22382
Release Testers
Release Testers
Posts: 30
Joined: January 22nd, 2008, 12:51 pm

Re: Problem console not closing

Post by jp22382 »

I'm running Vista 32-bit and was having this problem occasionally.

I set it up to run as a service instead (which is working great in 0.3.0 btw!) and no more problem.
rabhw
Newbie
Newbie
Posts: 6
Joined: January 29th, 2008, 3:29 pm

Re: Problem console not closing

Post by rabhw »

Same issue on 0.3.0, Vista 32.

The program starts and works great, the console won't hide itself though. It seems to work occasionally but most of the time it stays open.

Nothing abnormal in the logs that I could see.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Problem console not closing

Post by switch »

What is the name of the console window? __SABnzbd__?

There will likely be a fix for this soon, it just requires a lot of testing.
rabhw
Newbie
Newbie
Posts: 6
Joined: January 29th, 2008, 3:29 pm

Re: Problem console not closing

Post by rabhw »

Yeah, when it doesn't close, the name of the console window is __SABnzbd__ .
nzb_leecher
Full Member
Full Member
Posts: 211
Joined: January 22nd, 2008, 1:38 pm

Re: Problem console not closing

Post by nzb_leecher »

i have it too
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Problem console not closing

Post by switch »

May just need a small delay between naming the window __SABnzbd__ and hiding it.

The new hiding implementation was made quite quickly after we discovered the reason why the old one would sometimes fail. Was tested, but works fine on our systems.

We are testing out compiling the exe without the need for a console window at all, still needs to be tested thoroughly.
Sorry for the annoying window, we shall try to get this fix out as soon as it is fully tested.
rabhw
Newbie
Newbie
Posts: 6
Joined: January 29th, 2008, 3:29 pm

Re: Problem console not closing

Post by rabhw »

Is there some sort of modification I could do to a batch file for startup that could work in the meantime?

Thanks for the support, looking forward to the next release.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Problem console not closing

Post by switch »

You could use this vbs script I use to hide the sab console when running from source.

Create a text file, copy+paste, change the path on the last line to that of your exe, and save as a .vbs file (make sure it is not .vbs.txt the icon should be a blue script)

Code: Select all

Const HIDDEN_WINDOW = 12

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objStartup = objWMIService.Get("Win32_ProcessStartup")

Set objConfig = objStartup.SpawnInstance_
objConfig.ShowWindow = HIDDEN_WINDOW
Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process")
errReturn = objProcess.Create("C:\path\to\sabnzbd.exe", null, objConfig, intProcessID)
(Only tested on XP)
rabhw
Newbie
Newbie
Posts: 6
Joined: January 29th, 2008, 3:29 pm

Re: Problem console not closing

Post by rabhw »

Awesome, that worked on Vista-32.
daddy_fizz
Newbie
Newbie
Posts: 17
Joined: January 22nd, 2008, 12:12 pm

Re: Problem console not closing

Post by daddy_fizz »

Sweet, will try this out.

~fizz
danysuri

Re: Problem console not closing

Post by danysuri »

Awesome, that worked.
Last edited by danysuri on March 28th, 2010, 10:21 am, edited 1 time in total.
Post Reply