#296 och-convert write rejects some generated large timelines: rational_index invalid mutation or index error (9)
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#296
- issue
- state:closed
Found while benchmarking #204 (PR #295): converting the timelines generated by `bench/export-cache.mjs` to `.och` fails at 20,000 and 100,000 moments. `och-convert write` exits with `rational_index: invalid mutation or index error (9)`, and the server's `/file` download answers 400 "Invalid or unsupported timeline file". It happens without the export cache too, so it isn't caused by #295. 5,000 moments converts fine. It was seen with the `och-convert` binary already built in the main checkout, which may be older than main; the first step is to rebuild it from main and retry, then reduce the generated timeline to the smallest input that fails (likely something about the generated times: duplicates, ordering or very close rationals). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/issues/296
Related
- #204 cached exports / downloads through a file server
- #295 Whole-timeline downloads are cached per revision
- #299 The file conversion test writes a large generated timeline (#296)
- The file conversion test writes a large generated timeline (#296)
- Merge pull request #299 from openchronology/fix/296-och-convert-index