readium / swift-toolkit

A toolkit for ebooks, audiobooks and comics written in Swift
https://readium.org/mobile/
BSD 3-Clause "New" or "Revised" License
221 stars 95 forks source link

iOS Text to Speech feature crashing #459

Open shivshankarglassboxx opened 4 days ago

shivshankarglassboxx commented 4 days ago

Describe the bug

iOS Text to Speech feature crashing with (fixed layout epub/ only images no text), Its seems it is getting stuck in recurrence to find the text and finally getting crash.

How to reproduce?

1- Open a ebook(Fixed Layout Epub/ No text book only images) 2- Click on Text To Speech icon 3- App hanging for second and crashing (Checked in iPhone 12)

Class PublicationSpeechSynthesizer Function Crashing private func loadNextUtterances(_ direction: Direction) -> Bool

Readium version

3.0.0-alpha.1

OS version

iOS 17.0

Testing device

iPhone 12 Physical device

Environment

macOS: 13.6.6
platform: x86_64
carthage: 0.39.1
Xcode 15.2
Build version 15C500b

Additional context

No response

mickael-menu commented 4 days ago

Could you share the book and location where it crashes, as well as the stacktrace?