[MacOS] Recovery fails with IO error: File exists (os error 17) and cannot be retried
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- macos, rust
- Domínio
- desktop, operating-systems
Direção de pesquisa
Start with the attached debug log and trace the desktop recovery flow after fragmented segments are found, focusing on the finalization step that reports OS error 17. Reproduce the failure on macOS, identify the conflicting file-handling condition, and verify that recovery succeeds or reports a meaningful error without deleting the original recording.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Description
After a recording unexpectedly enters the recovery state, attempting to recover it consistently fails with:
IO error: File exists (os error 17)
The error is reproducible on every recovery attempt. Restarting the recovery process does not help, and the recording remains unrecoverable through the UI.
The debug log shows that the recording pipeline finishes successfully, but finalization fails afterward:
Found 1 fragmented segments in "...cap" with estimated duration 0ns
Failed to finalize fragmented recording: Failed to finalize recording: IO error: File exists (os error 17)
This appears to be an internal file-handling or finalization issue. The recovery process may be attempting to create a file that already exists, but the exact conflicting path is unclear.
Expected behavior:
- Recovery should successfully finalize the recording, or provide a meaningful error identifying the underlying problem.
- Repeated recovery attempts should not get permanently stuck on the same error.
- The original recording data should be preserved when recovery fails.
Actual behavior:
- Recovery repeatedly fails with the same File exists error.
- The only apparent alternative is Discard, which permanently deletes the recording.
Reproduction
- Record the screen for an extended period (approximately 30 minutes in my case).
- Let the recording finish.
- When Cap enters the recovery state, attempt to recover the recording.
- Recovery fails with IO error: File exists (os error 17).
- Retry recovery — the same error occurs again.
- The recording cannot be recovered through the UI.
Additional Context
Cap version: 0.6.0
Operating system, version: macOS 26.2 (25C56)
Device: MacBook Pro M1 Pro, 16 GB RAM
The recording was approximately 30 minutes long.
- Linguagem predominante
- Rust
- Estrelas
- 22.8k
- Forks
- 2k
- Merge médio
- 10h 44min
- PRs com merge (30d)
- 88
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de CapSoftware/Cap
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
CapSoftware/Cap#2384 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
CapSoftware/Cap#2305 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
CapSoftware/Cap#1714 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
CapSoftware/Cap#2392 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
CapSoftware/Cap#2367 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de CapSoftware/Cap
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 3 dias
-
state:triage-needed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Automattic/harper#4503 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
tobi/walgit#84 · 1 comentário ·
Mantenedores costumam responder em até 2 dias