moonD4rk/HackBrowserData · error
locked file copy not supported on this platform
Error message
locked file copy not supported on this platform
What it means
Unconditional sentinel error from the non-Windows build of copyLocked (guarded by //go:build !windows). The duplicate-handle/file-mapping strategy for reading files another process holds open is Windows-only, so on macOS/Linux the function always returns this error instead of attempting a copy. It signals a platform capability gap, not a runtime failure of any particular file.
Source
Thrown at filemanager/copy_other.go:11
//go:build !windows
package filemanager
import "fmt"
// copyLocked is not supported on non-Windows platforms and always returns an error.
// File locking is primarily a Windows issue where Chrome holds exclusive
// locks on Cookie files via PRAGMA locking_mode=EXCLUSIVE.
func copyLocked(_, _ string) error {
return fmt.Errorf("locked file copy not supported on this platform")
}
View on GitHub (pinned to 0503d04d7a)
Solutions
- On Unix-likes, rely on normal file copies — advisory locking rarely blocks reads
- Build/run the tool on Windows where copyLocked is implemented
- If a Unix browser truly blocks reads, copy via /proc/<pid>/fd or ask the user to close the browser
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at filemanager/copy_other.go:11 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of moonD4rk/HackBrowserData@0503d04d7a (2026-09-06).
Data as JSON: /api/errors/114864cde091de7e.
Report an issue: GitHub.