Skip to content

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

@omi-discord-vector

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcaptureLayer: Audio recording, device pairing, BLEmaintainerLane: High-risk, cross-system changesp2Priority: Important (score 14-21)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions