Skip to content

TestApp fails using TTS #277

Closed
Closed
@morismoris

Description

@morismoris

Bug Report

Opening a book that has a graphic cover and starting the vocal reproduction the TestApp (branch main) crashes.

What happened?

The Locator crash with fatal error "Highlight is nil"

public subscript<R>(range: R) -> Text where R : RangeExpression, R.Bound == String.Index {
            guard let highlight = highlight else {
                preconditionFailure("highlight is nil")    <----- !!!
            }

Expected behavior

Jump to the first page of text

How to reproduce?

  1. Download the book "Moby-Dick" from OPDS 2.0 Test Catalog
  2. Open it
  3. Start the voice playback.

Environment

  • Readium version: 2.4.0

Development environment

macOS: 13.2.1
platform: x86_64
carthage: 0.38.0
Xcode 14.2
Build version 14C18

Testing device

  • iOS version: 15.x
  • Model (e.g. iPhone 11 Pro Max): iPhone 7
  • Is it an emulator? No

Additional context

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