Skip to content

macOS Screen Capture crash on enable - VNRecognizeTextRequest array bounds failure #5891

Closed

Description

@omi-discord-vector

Environment

  • Version: 0.11.135
  • macOS: 15.7.4 (Sequoia)
  • Reproducibility: 100% when enabling Screen Capture in settings

Crash Details

Thread: RewindIndexer.processFrame → RewindOCRService.extractTextWithBounds → VNRecognizeTextRequest

Exception: EXC_BREAKPOINT (SIGTRAP) in __SwiftNativeNSArrayWithContiguousStorage._objectAt

Root Cause

Assertion failure attempting to access an element in an empty array during OCR text extraction initialization.

Expected Behavior

Screen Capture should enable without crashing.

Actual Behavior

App crashes immediately when Screen Capture is enabled in settings.

Fix Suggestion

Add bounds checking in RewindOCRService.extractTextWithBounds before accessing VNRecognizeTextRequest results array.


Reported by: Discord user ブタキチ (@butakichi8747)
CC: @krushna for Mac

Activity

  1. added
    bug
    on Mar 22, 2026
  2. added
    p2
    on Mar 23, 2026
  3. added 3 commits that reference this issue on Mar 24, 2026
    dc410fb
    4cfb452
    c0b694d
  4. omi-discord-vector commented on Mar 27, 2026

    @omi-discord-vector
    Author

    Update from Discord user:

    Still crashes on macOS Tahoe 26.4 (build 25E246) with app version 0.11.183.

    Same crash signature - confirms this is an app-side bug, not OS-specific. Root cause: RewindOCRService.extractTextWithBounds accesses empty array from VNRecognizeTextRequest without bounds checking.

    User upgraded from Sequoia → Tahoe but crash persists.

    Thread 12:

    libswiftCore.dylib: closure #1 in __SwiftNativeNSArrayWithContiguousStorage._objectAt(_:)
    ↓
    TextRecognition framework
    ↓  
    RewindOCRService.extractTextWithBounds
    

    Needs code fix - simple nil/empty check before array access.

  5. added a commit that references this issue on Apr 1, 2026
    f054747
  6. added 2 commits that reference this issue on Apr 28, 2026
    ba82fab
    19f289f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcrashmacp2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions