DuckDB helper crashes lose their cause and are reported as a "row cap clamp" in sql_materialize
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- sql, typescript
Direção de pesquisa
Start in packages/drivers/src/local-engine.ts: the helper is spawned with stderr ignored near line 416, and the exit handler near line 438 reports only a generic message, so capture stderr and the exit code/signal there. Then check packages/opencode/src/altimate/tools/sql-materialize.ts around lines 321-328, where a failed pre-flight count is reported as a row cap clamp. Done when killing the helper with SIGKILL produces an error naming the signal, and a pre-flight crash in sql_materialize surfaces as a crash rather than a cap clamp.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
When the DuckDB helper process dies (typically out of memory on a heavy join), the tool reports only "helper process exited unexpectedly"; in sql_materialize the crash occurs during the pre-flight count and is presented as a cap problem.
Mechanism
- The helper is spawned with
stderr: "ignore"(packages/drivers/src/local-engine.ts:416); the exit handler reports only "helper process exited unexpectedly" (:438) without exit code or signal. - In
sql_materializethe failed count falls into "Pre-flight estimate unavailable (...); extraction row cap clamped to 200,000 rows" (packages/opencode/src/altimate/tools/sql-materialize.ts:321-328). - No DuckDB
memory_limitortemp_directoryis set.
Evidence
7 crashes in 7 sessions, each after 32-150 s (about 460 s total), all from json_each over a 277,813-row scratch table with correlated EXISTS/LIKE. Scratch tables survived (the file database reopened), and each crash restarted the helper.
Impact
About 460 s of wasted time; the model cannot tell OOM from a bad query, and the misleading cap message hides the cause.
Proposed fix
- Capture helper stderr and exit code/signal; report "DuckDB helper killed (signal / out of memory)".
- Configure
memory_limitandtemp_directorysized to the host. - Never describe a crash as a cap clamp; propagate the crash error.
Acceptance check
Killing the helper mid-query (SIGKILL) yields an error naming the signal; a pre-flight crash in sql_materialize surfaces as a crash, not a cap clamp.
- Linguagem predominante
- TypeScript
- Estrelas
- 813
- Forks
- 124
- Merge médio
- 1d 19h
- PRs com merge (30d)
- 68
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um 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 AltimateAI/altimate-code
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
AltimateAI/altimate-code#1623 ·
Mantenedores costumam responder em até 1 dia
-
TUI hangs on a blank screen when a worker RPC request fails (e.g. --port already in use)Talvez já em andamento @devin-ai-integration assumiu há 5 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
AltimateAI/altimate-code#1616 ·
Mantenedores costumam responder em até 1 dia
-
fix(workspace): don't offer the engine install when a workspace declares no integration toolsAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
AltimateAI/altimate-code#1593 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
AltimateAI/altimate-code#1591 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
AltimateAI/altimate-code#1590 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de AltimateAI/altimate-code
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
Broken links in the docsAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 83/100
Mantenedores costumam responder em até 1 dia
-
🔊 a11y
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
betagouv/mon-entreprise#4726 ·
Mantenedores costumam responder em até 9 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Deltares/fews-pi-requests#357 ·
Mantenedores costumam responder em até 1 dia
-
bug confirmed js v6
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia