swift-toolkit
swift-toolkit copied to clipboard
iOS Text to Speech feature crashing
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
Could you share the book and location where it crashes, as well as the stacktrace?
@shivshankarglassboxx Could you confirm that this PR fixes the problem for you? Thanks https://github.com/readium/swift-toolkit/pull/482