Skip to content

Crash in RewindOCRService.extractTextWithBounds — array index out of bounds #5151

Closed as not planned

Description

@omi-discord-vector

Bug: Omi macOS app crashes 1-2 minutes after launch when Rewind screen capture is active.

Version: Omi Beta 11.5, macOS 26.3

Crash details:

  • Thread 9 crashes with EXC_BREAKPOINT (SIGTRAP) — _assertionFailure in libswiftCore
  • Root cause: array index out of bounds in __SwiftNativeNSArrayWithContiguousStorage._objectAt()
  • Call stack: RewindOCRService.extractTextWithBounds(from:) → RewindIndexer.processFrame() → Apple Vision TextRecognition framework
  • The OCR result array is accessed at an invalid index, likely a race condition or empty result set not handled

Stack trace (key frames):

Thread 9 Crashed:: Dispatch queue: com.apple.root.utility-qos.cooperative
0  libswiftCore.dylib  _assertionFailure
1  libswiftCore.dylib  __SwiftNativeNSArrayWithContiguousStorage._objectAt(_:)
7  TextRecognition     (OCR processing)
36 Omi Computer        closure #2 in RewindOCRService.extractTextWithBounds(from:)
40 Omi Computer        RewindIndexer.processFrame(cgImage:appName:windowTitle:captureTime:)

Reported by: Discord user wattmto

Activity

  1. added
    bug
    on Feb 26, 2026
  2. added
    capture
    maintainer
    p2
    on Feb 27, 2026
  3. added a commit that references this issue on Apr 1, 2026
    0e92eb7
  4. 2 remaining items

  5. omi-discord-vector commented on Apr 2, 2026

    @omi-discord-vector
    Author

    Still crashing in latest build (0.11.221 / 11221) with identical stack trace.

    New crash log: 2026-04-03, macOS 26.3 (25D125)

    Thread 3 (crashed):

    0   libswiftCore.dylib  _assertionFailure(_:_:file:line:flags:)
    1   libswiftCore.dylib  closure #1 in __SwiftNativeNSArrayWithContiguousStorage._objectAt(_:)
    36  Omi Computer        closure #2 in RewindOCRService.extractTextWithBounds(from:)
    40  Omi Computer        closure #1 in RewindIndexer.processFrame(cgImage:appName:windowTitle:captureTime:)
    

    Same root cause: array out-of-bounds in OCR result handling.

  6. omi-discord-vector commented on Apr 12, 2026

    @omi-discord-vector
    Author

    Still crashing in build 0.11.286 (11286) — April 11, 2026. Third crash report, identical stack.

    This has now been reproduced across builds 11.5 → 11221 → 11286. The fix has not shipped yet.

    Requesting prioritization — user has been waiting since Feb 25.

  7. omi-discord-vector commented on Apr 15, 2026

    @omi-discord-vector
    Author

    New report: user on 0.11.318 (11318) says screen capture still doesn't work even with all permissions enabled. They previously had Rewind installed.

    Likely still same Rewind capture/OCR pipeline issue.

  8. omi-discord-vector commented on Apr 15, 2026

    @omi-discord-vector
    Author

    Another user report (0.11.318 / 11318): no crash, but screen capture permission flow is stuck. In-app authorization popup never dismisses and screen capture never gets access despite permissions being enabled. They previously had Rewind installed.

  9. omi-discord-vector commented on Apr 16, 2026

    @omi-discord-vector
    Author

    New crash log (user wattmto) on 0.11.318 (11318), macOS 26.3 (25D125), 2026-04-16. Incident ID: C1FA0883-96C8-4966-9D5E-D6DEE88FB0DB.

    Still same failure mode: libswiftCore _assertionFailure → __SwiftNativeNSArrayWithContiguousStorage._objectAt while in OCR path (RewindOCRService.extractTextWithBounds / Vision TextRecognition). Thread 16 triggered.

  10. added 2 commits that reference this issue on Apr 28, 2026
    ba82fab
    19f289f
  11. undivisible commented on Jul 20, 2026

    @undivisible
    Collaborator

    OCR crash — confirmed: RewindOCRService.swift has bounds checking (guard count checks, contextStart/contextEnd safety).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcapturemaintainerp2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions