-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
During volume scanning, progress updates are not showing in the UI after the initial "Starting scan of [Volume]..." message. Additionally, when scanning large hard drives or volumes with many files, the UI becomes unresponsive.
Steps to Reproduce
- Start scanning a large external volume with many audio files
- Observe the progress message in the sidebar
- Notice that it only shows "Starting scan of [Volume]..." and doesn't update
- Try to interact with the UI during the scan
- Notice the UI is frozen/unresponsive
Expected Behavior
- Progress updates should show frequently during scanning:
- Current folder being scanned
- Number of files found so far
- Real-time feedback as the scan progresses
- UI should remain responsive during long-running scans
Current Behavior
- Only shows "Starting scan of [Volume]..."
- No further progress updates are visible
- UI freezes during scan on large volumes
- User cannot interact with the application while scanning
Technical Details
- Progress callback is called every 50 files and for each directory
- Progress updates are wrapped in
Task { @MainActor in ... } - Scan runs in
Task.detachedbackground thread - Batch size: 2000 files
- Related to issue UI freezes during volume scanning #2 (UI freezing during volume scanning)
Files Affected
prism/Scanner/FileScanner.swiftprism/ViewModels/SearchViewModel.swiftprism/Views/SidebarView.swift
Observations
The issue appears to be worse with:
- Large hard drives (1TB+)
- High file counts (10,000+ files)
- Deep directory structures
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels