Skip to content

integrity_violation: render_row_count_mismatch causes terminal crash #12298

@Konoxx

Description

@Konoxx

Description

Terminal sessions crash with integrity_violation errors, specifically render_row_count_mismatch. This appears to be triggered when resuming sessions with large scrollback buffers.

Error logs

{"ts":1776269568,"source":"ghostty","event":"integrity_violation","severity":"error","reason":"render_row_count_mismatch","detail":1,"pid":28165}

Often preceded by multiple:

{"ts":1776269349,"source":"ghostty","event":"integrity_violation","severity":"error","reason":"increase_capacity_capped_at_std_size","detail":606208,"pid":28165}

Environment

  • Ghostty version: 1.3.0 (custom build "Ghostivate")
  • macOS: 15.7.5 (Build 24G624)
  • scrollback-limit: 50000000 (50MB)

Reproduction

  1. Have a terminal session with significant scrollback
  2. Run a command that produces large output (e.g., resuming a Claude Code session with ~2MB JSONL context)
  3. Terminal crashes with render_row_count_mismatch

Workaround

Reducing scrollback-limit from 50MB to 10MB appears to mitigate but not eliminate the issue.

Additional context

The increase_capacity_capped_at_std_size errors (detail: 606208) suggest the terminal buffer is hitting capacity limits, which may be corrupting internal state leading to render_row_count_mismatch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions