DuckDB helper crashes lose their cause and are reported as a "row cap clamp" in sql_materialize
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- sql, typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 810
- Forks
- 121
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 88
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AltimateAI/altimate-code
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
AltimateAI/altimate-code#1454 ·
Los mantenedores suelen responder en 1 día
-
test: MCP tests fail when the developer's ~/.claude.json has MCP servers (HOME is not sandboxed)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
AltimateAI/altimate-code#1386 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
AltimateAI/altimate-code#1384 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
AltimateAI/altimate-code#1323 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
AltimateAI/altimate-code#1288 ·
Los mantenedores suelen responder en 1 día
Todos los issues de AltimateAI/altimate-code
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Pet submission: Sleepwing / 眠翼鸟Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
OpenPetsHQ/openpets#273 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
fritzprix/libr-agent#2161 ·
Los mantenedores suelen responder en 1 día
-
macOS: clicking a menu item that has a submenu closes the menu instead of opening the submenuAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
blackboardsh/electrobun#581 ·
-
backlog-skill effort:xs frontend infra ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
LucasSantana-Dev/Lucky#2862 ·
Los mantenedores suelen responder en 1 día