Hangs when plugging USB-drives
Forum rules
READ THIS AND DO IT!!!
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%).
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.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
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%).
Hangs when plugging USB-drives
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?
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
Is that a device that turns up with a drive letter, or is it a "Portable Device" that turns up with the device name?
FAQ | XY News RSS | XY X
Re: Hangs when plugging USB-drives
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 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?
-
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
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?
Could it be related to the AV mentioned in your signature?
FAQ | XY News RSS | XY X
Re: Hangs when plugging USB-drives
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.admin wrote:Could it be related to the AV mentioned in your signature?
Here is what Process Explorer shows:

-
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
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. 
FAQ | XY News RSS | XY X
Re: Hangs when plugging USB-drives
Ohadmin 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.
Do what?There is no other way to do this at the 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
I mean this: XYplorer calls some synchronous Windows functions in the main thread. No background threading possible.tim wrote:Do what?There is no other way to do this at the moment.
FAQ | XY News RSS | XY X
Re: Hangs when plugging USB-drives
What kind of functions XY calls at that moment?admin wrote:I mean this: XYplorer calls some synchronous Windows functions in the main thread. No background threading possible.
-
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
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)
Do you get the same delays also with a fresh instance? (see https://www.xyplorer.com/faq-topic.php?id=fresh)
FAQ | XY News RSS | XY X
Re: Hangs when plugging USB-drives
Oh. Suddenly no, I don't get. Works fine on fresh.admin wrote:Do you get the same delays also with a fresh instance? (see https://www.xyplorer.com/faq-topic.php?id=fresh)
-
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
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!)
Play with your settings, let me know.
Configuration | Startup & Exit | Reconnect mapped network drives on startup
(Checkbox only exists since v17.10.0007!)
FAQ | XY News RSS | XY X
Re: Hangs when plugging USB-drives
So far I tried untick these:admin wrote: Play with your settings, let me know.
— 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?
I have v16.50.0200. I'll try this one.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!)
Re: Hangs when plugging USB-drives
No effect on v17.20.0000.Untick this:
Configuration | Startup & Exit | Reconnect mapped network drives on startup
XYplorer Beta Club
