Hangs when plugging USB-drives

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
tim
Posts: 54
Joined: 19 Apr 2014 03:49

Hangs when plugging USB-drives

Post by tim »

Hello!
Ever since I used XY first time I have been encountering this problem. Every time device with storage plugged in via USB, XY hangs in about a minute performing some CPU work, blocking whole interface. Any hints what can be a reason?

admin
Site Admin
Posts: 65382
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hangs when plugging USB-drives

Post by admin »

Is that a device that turns up with a drive letter, or is it a "Portable Device" that turns up with the device name?

tim
Posts: 54
Joined: 19 Apr 2014 03:49

Re: Hangs when plugging USB-drives

Post by tim »

admin wrote:Is that a device that turns up with a drive letter, or is it a "Portable Device" that turns up with the device name?
I think both. Ordinary USB stick, smartphone with a card (different smartphones use different schemes: they appear either as Portable Device or as a drive with letter; both schemes cause hangs). So, as I said, general idea is that every device with storage connecting via USB can cause this.

admin
Site Admin
Posts: 65382
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hangs when plugging USB-drives

Post by admin »

That's really strange. I don't see this here at all. Portable Devices usually take some time to appear, but that's true for Explorer as well, so it's just Windows doing its thing.

Could it be related to the AV mentioned in your signature?

tim
Posts: 54
Joined: 19 Apr 2014 03:49

Re: Hangs when plugging USB-drives

Post by tim »

admin wrote:Could it be related to the AV mentioned in your signature?
Maybe, but XY is in exclusions there. Explorer shows connected drives and allows to work with them while XY is hanging. It starts right after device is plugged. XY takes up to 40% of CPU while doing it. Interface freezes. After some time (up to 1 min) XY is ok.

Here is what Process Explorer shows:
Image

admin
Site Admin
Posts: 65382
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hangs when plugging USB-drives

Post by admin »

XYplorer calls some synchronous Windows functions in the main thread, so it has to wait for Windows to return. There is no other way to do this at the moment. The question remains: Why only you? I don't see these delays here. :?

tim
Posts: 54
Joined: 19 Apr 2014 03:49

Re: Hangs when plugging USB-drives

Post by tim »

Image

tim
Posts: 54
Joined: 19 Apr 2014 03:49

Re: Hangs when plugging USB-drives

Post by tim »

admin wrote:XYplorer calls some synchronous Windows functions in the main thread, so it has to wait for Windows to return. There is no other way to do this at the moment. The question remains: Why only you? I don't see these delays here. :?
Oh :D Many reasons. Maybe one Windows update did it, maybe it's because I haven't some needed update... But it's only assumption.
There is no other way to do this at the moment.
Do what?

admin
Site Admin
Posts: 65382
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hangs when plugging USB-drives

Post by admin »

tim wrote:
There is no other way to do this at the moment.
Do what?
I mean this: XYplorer calls some synchronous Windows functions in the main thread. No background threading possible.

tim
Posts: 54
Joined: 19 Apr 2014 03:49

Re: Hangs when plugging USB-drives

Post by tim »

admin wrote:I mean this: XYplorer calls some synchronous Windows functions in the main thread. No background threading possible.
What kind of functions XY calls at that moment?

admin
Site Admin
Posts: 65382
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hangs when plugging USB-drives

Post by admin »

Oh, that was just a general theory. I wanted to say: It's not XYplorer who is working on anything for one minute. It has to be some Windows function that does not return, and XYplorer just sits there and waits. But to pinpoint the particular line that's responsible I would have to write some special debug code and run a test series.

Do you get the same delays also with a fresh instance? (see https://www.xyplorer.com/faq-topic.php?id=fresh)

tim
Posts: 54
Joined: 19 Apr 2014 03:49

Re: Hangs when plugging USB-drives

Post by tim »

admin wrote:Do you get the same delays also with a fresh instance? (see https://www.xyplorer.com/faq-topic.php?id=fresh)
Oh. Suddenly no, I don't get. Works fine on fresh. :? Something wrong with my configuration? Where to dig?

admin
Site Admin
Posts: 65382
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hangs when plugging USB-drives

Post by admin »

Hmm, there is no setting "1 minute delay when plugging USB-drives". Seriously, no idea since I have no idea what's causing this. However, if the delay is really gone now, that's a) good news, and b) puts part of the blame back to XY.

Play with your settings, let me know.

:!: Uh, wait, i have an idea! Untick this:
Configuration | Startup & Exit | Reconnect mapped network drives on startup

(Checkbox only exists since v17.10.0007!)

tim
Posts: 54
Joined: 19 Apr 2014 03:49

Re: Hangs when plugging USB-drives

Post by tim »

admin wrote: Play with your settings, let me know.
So far I tried untick these:
— Refresh, Icons, History | Auto-refresh | Include removable drives
— Thumbnails | Cache thumbnails on disk | Include removable media
No effect. I don't know which should be next, so many settings (including tweaks). Maybe some tweaks can affect? You as a developer know more than I do. Which settings can affect at the moment when USB-drive is plugging?
admin wrote: :!: Uh, wait, i have an idea! Untick this:
Configuration | Startup & Exit | Reconnect mapped network drives on startup

(Checkbox only exists since v17.10.0007!)
I have v16.50.0200. I'll try this one.

tim
Posts: 54
Joined: 19 Apr 2014 03:49

Re: Hangs when plugging USB-drives

Post by tim »

Untick this:
Configuration | Startup & Exit | Reconnect mapped network drives on startup
No effect on v17.20.0000.

Post Reply