swift-toolkit icon indicating copy to clipboard operation
swift-toolkit copied to clipboard

iOS Text to Speech feature crashing

Open shivshankarglassboxx opened this issue 1 year ago • 1 comments
trafficstars

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

shivshankarglassboxx avatar Jun 28 '24 13:06 shivshankarglassboxx

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

mickael-menu avatar Jun 28 '24 13:06 mickael-menu

@shivshankarglassboxx Could you confirm that this PR fixes the problem for you? Thanks https://github.com/readium/swift-toolkit/pull/482

mickael-menu avatar Sep 03 '24 08:09 mickael-menu