topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 5:25 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: FARR hangs when %SPECIALSYS_DOCS% included in search folders  (Read 10215 times)

skajfes

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 267
    • View Profile
    • Donate to Member
I've noticed yesteday that FARR hangs when i have %SPECIALSYS_DOCS% included (and activated) in the search folder list.
I assume that this was added in some of the newer versions, but I haven't noticed that it affected me up until yesterday.

I assume that something changed in the %SPECIALSYS_DOCS% folders themselves so the search is hanging.
I am wondering what actual folders and documents is FARR searching when searching this folder?
I did not find anything in the docs that relates to the %SPECIALSYS_DOCS% search folder.

It is impossible to make anything foolproof because fools are so ingenious.

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • View Profile
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #1 on: July 03, 2015, 04:16 AM »
I have FARR regularly hanging too since Mouser started to update FARR again. Didn't try to track it down yet though. It hangs for several seconds saying Searching history.. in the status bar. Unticking %SPECIALSYS_DOCS% does not solve the problem for me unfortunately.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #2 on: July 03, 2015, 08:07 AM »
i may have a fix -- something lanux found.
i'll upload beta today to try.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #3 on: July 03, 2015, 06:10 PM »
Can you guys try this beta:


And let me know if it solves your issue?

skajfes

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 267
    • View Profile
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #4 on: July 04, 2015, 07:58 AM »
This one seems to solve my issue.
Thanks mouser.

I am wondering as to what does FARR search with those two special folders (I don't notice any diference in the results)?
%SPECIALSYS_DOCS%
%SPECIALSYS_APPS%
It is impossible to make anything foolproof because fools are so ingenious.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #5 on: July 04, 2015, 08:04 AM »
See here for info: https://www.donation...ex.php?topic=40658.0

The bug was that FARR normally is smart enough not to try to resolve network paths -- but a recent change resulted in it trying to resolve some, and this was frequently happening in the list of recently launched system files (which is what those %SPECIALSYS_DOCS% are).  Even if you don't have network mapped drives, it seems that some shortcuts (like the link to Steam) use a \\ network path.  This was causing the hang.

Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,939
    • View Profile
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #6 on: July 04, 2015, 09:16 AM »
Microsoft uses the guidelines for TCP/IP connections. That is, it will wait till 30 seconds (which feels a lot longer when you wait for something to happen on a computer) before it will give up on any network connection. This is part of a (sub-)set of parameters you can only change in the registry. MS doesn't have any window, field, picker, drop-down menu, check box or radio button for these parameters to be adjusted...on purpose.

The information is available on the MSDN/TechNet websites. Have found it there myself, but those settings can have serious implications, so I won't link to it either.

"Funny" thing is...if your application isn't multi-threaded and it tries to make a network connection it will wait 30 seconds before continuing, if the application needs to make another network connection, it will wait again for 30 seconds. This cycle is repeated every time for every network connection. The user gets the impression the application hangs, but in reality the application works like specified. It's the TCP/IP specifications that create the problem here.

skajfes

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 267
    • View Profile
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #7 on: July 05, 2015, 11:15 AM »
Well, that has nothing to do with that. The application can hang for various reasons, usually it is either long running processes that take some time, or waiting on some resource (disk, network etc). You can't rely on the fact that IO (especially over the network) will work instantly, or reliably. The guideline is that your UI thread should never be doing any work, so that it remains responsive to the user. Any jobs (either long running or potentially on unreliable IO) should be running in a separate thread.
It is impossible to make anything foolproof because fools are so ingenious.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #8 on: July 05, 2015, 11:32 AM »
Well what Shades said is related to what's causing the FARR delay; although FARR is multithreaded in some respects, it will hang while waiting trying to resolve network paths -- I need to make improve the multithreading to avoid that.

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • View Profile
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #9 on: July 06, 2015, 02:51 AM »
Fixed for me as well. Thanks :Thmbsup:

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • View Profile
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #10 on: July 07, 2015, 01:38 AM »
Well, the latest beta still freezes 'Searching history..' when I haven't used it for a while (a couple of minutes?)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #11 on: July 07, 2015, 01:39 AM »
Are there items in your history that are on different/network drives that might be asleep or offline?

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • View Profile
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #12 on: July 07, 2015, 01:41 AM »
No. I'm only launching local stuff and I don't use drive mapping for network drives. I'll go and clear the whole history to see if it changes anything though.

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • View Profile
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #13 on: July 07, 2015, 06:12 AM »
Sorry, that information was not correct. I'm regularly launching a shortcut that points to a file on the network. This server is never offline or asleep though.

wjamoe

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 99
    • View Profile
    • Donate to Member
Re: FARR hangs when %SPECIALSYS_DOCS% included in search folders
« Reply #14 on: April 15, 2016, 05:56 PM »
You have to wait many seconds (seems to hang) when one of the files in the launch history is situated on an external USB drive which went into power save/sleep mode. (farr  v2.226.01 26 June 2015). If you try a second time it is lot faster, because the drive is active again ;-)