Thread scan stuck: diagnostics and solutions

Started by WindowsStar

Thread scan stuck: diagnostics and solutions   26 August 2017, 00:19

Good Morning,

Many times I scan a network and NetScan gets stuck with something like "Threads 62 Devices 62 /62" and never continues. I assume it is stuck trying to gather the information I have requested but cannot for some reason. I have let the software run all day and it will stay stuck. If I stop the scan and then force the Threads to end the software will stay stuck on 62 threads and eventually I have to use task manager to end the software or worse reboot the computer.

Is there a way to add an option to tell you where a thread is stuck? In other words an option to put NetScan into say a diagnostics mode so when you are scanning a network with a lot of options you could find out where NetScan is stuck?

Thanks,
WS
SoftPerfect Support forum - Andrew avatar image

Re: Thread scan stuck: diagnostics and solutions   26 August 2017, 11:48

There's no out of the box diagnostics for that, but I believe it's caused by a bug in the Windows API FindFirstFileExW (or underlying network driver), which for some reason never returns. Try:
  • Unchecking Check for write access under Options - Shares; and
  • Unchecking all items under Remote File.
Then rescan the problematic addresses to see if the issue persists and please let me know.

Re: Thread scan stuck: diagnostics and solutions   29 August 2017, 14:23

Andrew, been slammed with work. I thought I would have some time to work on this. I will get back to you. Thanks so much. -WS

Re: Thread scan stuck: diagnostics and solutions   01 September 2017, 04:50

I made the changes. Didn't seem to help. I have a massive amount of stuff I am scanning for and something I changed a while back made it get stuck and I cannot find it. -WS
SoftPerfect Support forum - Andrew avatar image

Re: Thread scan stuck: diagnostics and solutions   01 September 2017, 10:20

That's pretty strange then, and I'd love to identify the cause of it.

Please submit a ticket here and I will send you a personalised build with debug information to find out what's going on there.
borekon

Re: Thread scan stuck: diagnostics and solutions   13 September 2017, 05:49

The same happens to me since many versions. It was working well but suddenly that problem happens, no matter which version.
SoftPerfect Support forum - Andrew avatar image

Re: Thread scan stuck: diagnostics and solutions   13 September 2017, 09:17

It could the same issue as OP's. In that case it happens deep in the WNetAddConnection2() system API call, which is used to authenticate custom user name and password in several types of scan. It's a fairly common issue, for example discussed here.

Unfortunately there seems to be no solution for this problem. The recommended CancelSynchronousIo() call doesn't seem to cancel WNetAddConnection2(), which is also confirmed by this discussion.

Re: Thread scan stuck: diagnostics and solutions   17 September 2017, 13:00

Why can't microsoft fix this? Do they know about it?

Sometimes you can get the answer faster if you try the forum search and/or have a look at the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • If possible, check your spelling and grammar.

Author:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

  *******   ********   ******    *******    ******   
 **     **  **        **    **  **     **  **    **  
 **     **  **        **        **         **        
  ********  ******    **        ********   **   **** 
        **  **        **        **     **  **    **  
 **     **  **        **    **  **     **  **    **  
  *******   **         ******    *******    ******   

Message: