Skip to content

[BUG]: Player freezes indefinitely when linking private music collection from NAS #192

Open

Description

@MVRSHMELL0

Pre-flight Checklist

  • I searched existing open and closed issues and confirmed this is not a duplicate.
  • I confirm this issue is NOT related to mobile builds (iOS / Android).
  • I replaced the issue title with a concise summary instead of leaving it blank or default.
  • I have included relevant logs below (or terminal output).

Describe the bug

When attempting to link a private music collection from a NAS (Network Attached Storage), the player starts loading, freezes completely, and becomes unresponsive. Restarting the application does not resolve the issue.

To Reproduce

  1. Open the application.

  2. Go to the settings / library section to add music.

  3. Select and try to link a private music collection located on a NAS.

  4. Observe the player loading and subsequently freezing.

Expected behavior

The player should successfully connect to the NAS, index/link the music collection, and remain responsive throughout the process.

Desktop Environment

OS: Windows 11 (Version 26H2)

CPU: Intel Core i9-11900KF
RAM: 128 GB DDR4 RAM
GPU: NVIDIA RTX 4080 (16 GB VRAM)

Storage:
2TB Samsung NVMe SSD
1TB Crucial NVMe SSD
4TB HDD
32TB Synology NAS

Console Logs

Riff 43.2.2
OS win32 x64 10.0.26300
Electron 41.7.1 Chromium 146.0.7680.216 Node 24.15.0
Locale de
Data X:\Plex\Musik
yt-dlp: X:\Plex\Musik\bin\yt-dlp.exe
ffmpeg: X:\Plex\Musik\bin\ffmpeg.exe
--- last log lines ---
2026-10-30T09:56:43.937Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] y4MmcSHyQac: The page needs to be reloaded.
2026-10-30T09:56:46.720Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] y4MmcSHyQac: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:56:51.029Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] E2zS9qqEQV4: The page needs to be reloaded.
2026-10-30T09:56:53.756Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] E2zS9qqEQV4: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:56:54.912Z [ERROR] maybeShowYtAuthSheet is not defined
2026-10-30T09:56:57.596Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] _k5VEY__yWQ: The page needs to be reloaded.
2026-10-30T09:57:00.563Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] _k5VEY__yWQ: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:57:05.371Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] mwkpWmaGrho: The page needs to be reloaded.
2026-10-30T09:57:08.028Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] mwkpWmaGrho: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:57:12.021Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] gMoP5dYgDX0: The page needs to be reloaded.
2026-10-30T09:57:14.899Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] gMoP5dYgDX0: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:57:18.344Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] i93ScWJffNI: The page needs to be reloaded.
2026-10-30T09:57:21.601Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] i93ScWJffNI: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:57:41.967Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] ymLp0W1on8o: The page needs to be reloaded.
2026-10-30T09:57:44.616Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] ymLp0W1on8o: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:57:48.495Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] tY8artocWWc: The page needs to be reloaded.
2026-10-30T09:57:51.990Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] tY8artocWWc: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:57:53.799Z [ERROR] maybeShowYtAuthSheet is not defined
2026-10-30T09:57:55.800Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] nUmk5nCfHac: The page needs to be reloaded.
2026-10-30T09:57:58.468Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] nUmk5nCfHac: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:58:02.969Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] DjvnjWL6TRU: The page needs to be reloaded.
2026-10-30T09:58:06.072Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] DjvnjWL6TRU: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:58:10.329Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] 4JIa47Xuh1s: The page needs to be reloaded.
2026-10-30T09:58:13.101Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] 4JIa47Xuh1s: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:58:16.538Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] UUODVoj-llo: The page needs to be reloaded.
2026-10-30T09:58:16.785Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] aKeojadUbpA: The page needs to be reloaded.
2026-10-30T09:58:19.339Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] UUODVoj-llo: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:58:19.527Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] aKeojadUbpA: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:58:23.840Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] dVxGMfT0S74: The page needs to be reloaded.
2026-10-30T09:58:26.633Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] dVxGMfT0S74: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:58:28.789Z [ERROR] maybeShowYtAuthSheet is not defined
2026-10-30T09:58:30.483Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] Ak3SSym9W4o: The page needs to be reloaded.
2026-10-30T09:58:33.310Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] Ak3SSym9W4o: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:58:37.772Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] KIMFZtYCrEQ: The page needs to be reloaded.
2026-10-30T09:58:40.528Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] KIMFZtYCrEQ: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:58:44.514Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] pi4-PMBcgZw: The page needs to be reloaded.
2026-10-30T09:58:47.330Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] pi4-PMBcgZw: Requested format is not available. Use --list-formats for a list of available formats
2026-10-30T09:58:50.778Z [error] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] mqT9ON75-Ak: The page needs to be reloaded.
2026-10-30T09:58:53.421Z [warn] yt-dlp failed: --no-config -g --no-warnings - ERROR: [youtube] mqT9ON75-Ak: Requested format is not available. Use --list-formats for a list of available formats

Screenshots / Media (Optional)

Image

Folderstructure is made by Riff

Activity

  1. added
    Bug
    on Oct 30, 2026
  2. MVRSHMELL0 commented on Oct 30, 2026

    @MVRSHMELL0
    Author

    Not fixed yet in 44.0.0.

  3. OpenTeto commented on Nov 19, 2026

    @OpenTeto

    🤖 This is @tetoverse's AI Agent OpenTeto (openai/gpt-6-luna)

    I traced the folder-import path in src/main/main.js (pick-local-folder). The most likely cause of the freeze is that scanDir() recursively calls synchronous fs.readdirSync() from the Electron main process, then reads metadata for every discovered track sequentially. On a NAS/network share, a slow or stalled directory read blocks the main process (and therefore the UI); the catch also silently skips filesystem errors, so users get no feedback. The logs in this report don't prove this is the only trigger, but the code path matches the reported “loading then completely unresponsive” behavior.

    Suggested investigation/fix:

    1. Reproduce with the same NAS path on a current build and log scan duration/progress around each directory.
    2. Replace recursive synchronous traversal with asynchronous directory reads, ideally off the Electron main process; surface permission/network errors instead of swallowing them.
    3. Add progress and cancellation, and process metadata with bounded concurrency so large libraries don't look hung or overwhelm the NAS.
    4. Add tests for a slow directory, inaccessible/disconnected share, and a large nested folder; verify the UI remains responsive and the scan can be cancelled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions