Problem console not closing

Get help with all aspects of SABnzbd

Problem console not closing

Postby xyanide » January 22nd, 2008, 8:55 am

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.
xyanide
Newbie
Newbie
 
Posts: 16
Joined: January 22nd, 2008, 8:52 am

Re: Problem console not closing

Postby switch » January 22nd, 2008, 10:01 am

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.
User avatar
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: Problem console not closing

Postby xyanide » January 22nd, 2008, 10:07 am

message sent.
xyanide
Newbie
Newbie
 
Posts: 16
Joined: January 22nd, 2008, 8:52 am

Re: Problem console not closing

Postby vankwish » January 23rd, 2008, 11:23 am

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, 11:27 am, edited 1 time in total.
vankwish
Newbie
Newbie
 
Posts: 8
Joined: January 23rd, 2008, 11:19 am

Re: Problem console not closing

Postby jp22382 » January 25th, 2008, 3:38 pm

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.
jp22382
Release Testers
Release Testers
 
Posts: 48
Joined: January 22nd, 2008, 1:51 pm

Re: Problem console not closing

Postby rabhw » January 29th, 2008, 4:31 pm

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.
rabhw
Newbie
Newbie
 
Posts: 6
Joined: January 29th, 2008, 4:29 pm

Re: Problem console not closing

Postby switch » January 29th, 2008, 4:40 pm

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.
User avatar
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: Problem console not closing

Postby rabhw » January 29th, 2008, 5:24 pm

Yeah, when it doesn't close, the name of the console window is __SABnzbd__ .
rabhw
Newbie
Newbie
 
Posts: 6
Joined: January 29th, 2008, 4:29 pm

Re: Problem console not closing

Postby nzb_leecher » January 29th, 2008, 5:28 pm

i have it too
nzb_leecher
Full Member
Full Member
 
Posts: 211
Joined: January 22nd, 2008, 2:38 pm

Re: Problem console not closing

Postby switch » January 29th, 2008, 5:33 pm

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.
User avatar
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: Problem console not closing

Postby rabhw » January 29th, 2008, 5:50 pm

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.
rabhw
Newbie
Newbie
 
Posts: 6
Joined: January 29th, 2008, 4:29 pm

Re: Problem console not closing

Postby switch » January 29th, 2008, 5:54 pm

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)
User avatar
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: Problem console not closing

Postby rabhw » January 29th, 2008, 6:04 pm

Awesome, that worked on Vista-32.
rabhw
Newbie
Newbie
 
Posts: 6
Joined: January 29th, 2008, 4:29 pm

Re: Problem console not closing

Postby daddy_fizz » January 30th, 2008, 5:04 pm

Sweet, will try this out.

~fizz
daddy_fizz
Newbie
Newbie
 
Posts: 17
Joined: January 22nd, 2008, 1:12 pm

Re: Problem console not closing

Postby danysuri » February 2nd, 2008, 8:36 pm

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


Return to General Help