Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Kodi freezes in menu access when network share is mounted but inaccessible #21191

Closed
6 tasks
amosstorkey opened this issue Mar 25, 2022 · 2 comments · Fixed by #21198
Closed
6 tasks
Labels
Platform: Windows Resolution: Fixed issue was resolved by a code change Triage: Confirmed issue has been reproduced by a team member

Comments

@amosstorkey
Copy link

amosstorkey commented Mar 25, 2022

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

When a windows network drive is mounted but not accessible, kodi freezes for about 20-40 seconds on menu traversal at any point that requires file or directory access, and takes aver 30 secs to boot up. This happens even if that network drive plays no part in the kodi installation - i.e. no library items or file mounts in kodi are at that network location. The mere existence of the share on the device is sufficient to scupper kodi.

Expected Behavior

Here is a clear and concise description of what was expected to happen:

Mounted but inaccessible drives on a windows machine is normal in many settings (portable devices, drives dependent on VPN, kerberos authenticated shares etc). Kodi should not be rendered inoperable in such settings. No other applications suffer from this deficit, so this seems to be a kodi implementation issue. Kodi should smoothly move through menu items independent of an unrelated setup regarding the windows network.

Actual Behavior

Kodi is rendered unusable as it stalls at every menu item or traversal involving directory or file access: going in to any main menu item, into files, into settings etc. The stalls are significant - generally 10-20 seconds, but sometimes longer.

Possible Fix

Sadly I do not know the cause of this at this time.

To Reproduce

Steps to reproduce the behavior:

  1. Mount a network drive in windows.
  2. Detatch the machine with the mounted drive from the network
  3. Perform a fresh install of kodi
  4. Load kodi
  5. Traverse kodi menus, especially menus that require drive access (e.g. Music Menu, Settings: Files menu or other such menus).

Debuglog

The debuglog can be found here:
https://paste.kodi.tv/amurejirut.kodi

Vanilla kodi install
Log details:
12:03:18 - disconnect mounted windows network drive - everything fine before then
12:03:45 - first freeze (> 1 min)
12:05:33 - second freeze (22 secs)
12:06:31 - third freeze (22 secs)

Screenshots

Here are some links or screenshots to help explain the problem:

N/A

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

This bug renders kodi effectively inoperable.

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • OSX

  • [x ] Windows

  • Windows UWP

  • Operating system version/name: Windows 10

  • Kodi version: 19.4 fresh install, no user addons. Git 20220303-e12e66e019

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label Mar 25, 2022
@amosstorkey amosstorkey changed the title Kodi freezes in menu access Windows Kodi freezes in menu access when network share is mounted but inaccessible Mar 25, 2022
@thexai thexai added Platform: Windows Triage: Confirmed issue has been reproduced by a team member and removed Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it labels Mar 26, 2022
@thexai
Copy link
Member

thexai commented Mar 27, 2022

Seems that delay is caused due use GetVolumeInformationW for network drives (mapped shares) here:

nResult= GetVolumeInformationW( strWdrive.c_str() , cVolumeName, 100, 0, 0, 0, NULL, 25);

I'm testing alternate method to use "remote name" instead of "volume name" on remote drives.

Y: is a unavailable network drive ---> volume name cannot be obtained

Volume name:
Captura de pantalla 2022-03-27 104440

Remote name:
Captura de pantalla 2022-03-27 103846

In my case I can only reproduce delays of 5-6 second in any case. I'll do a test build to confirm it's the same issue.

@thexai
Copy link
Member

thexai commented Mar 27, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Windows Resolution: Fixed issue was resolved by a code change Triage: Confirmed issue has been reproduced by a team member
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants