Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Sources/wired3/Controllers/IndexController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,13 @@ public class IndexController: TableController {
// If cancelled, forceReindex() has already queued a fresh rebuild via
// indexQueue.async; letting pendingRebuild fire here too would cause a
// redundant extra traversal immediately after the forced one.
//
// IMPORTANT: use indexQueue.async, not a direct recursive call.
// A synchronous call here overflows the stack when finalisation keeps
// failing (pendingRebuild stays true → 400+ frames → SIGBUS).
if !wasCancelled && pendingRebuild {
pendingRebuild = false
performFullRebuild()
indexQueue.async { [weak self] in self?.performFullRebuild() }
}
}

Expand Down
Loading