Read Aloud not working on Windows

Bug #2006062 reported by Koen De Groote
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

I just ran into this on Windows10. On the 64 bit install and on the portable install, I'm trying to use the "Read Aloud" option and I'm getting this:

calibre, version 6.12.0
ERROR: Unhandled exception: <b>TypeError</b>:'size' must be &gt; 0

calibre 6.12 embedded-python: True
Windows-10-10.0.19044-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19044')
Python 3.10.1
Windows: ('10', '10.0.19044', 'SP0', 'Multiprocessor Free')
Interface language: None
Traceback (most recent call last):
  File "calibre\gui2\viewer\tts.py", line 95, in action
  File "calibre\gui2\viewer\tts.py", line 101, in play
  File "calibre\gui2\tts\windows.py", line 117, in speak_marked_text
  File "calibre\gui2\tts\windows.py", line 76, in speak_current_chunk
  File "calibre\utils\windows\winspeech.py", line 415, in speak
  File "calibre\utils\shm.py", line 64, in __init__
TypeError: 'size' must be > 0

It seems to be coming from here: https://github.com/kovidgoyal/calibre/blob/master/src/calibre/utils/shm.py#L52-L64

Which seems to be about the ability to create shared memory.

Tags: windows
Revision history for this message
Kovid Goyal (kovid) wrote :

Is this for a specific book? If so attach the book and I will try to
reproduce.

Changed in calibre:
status: New → Incomplete
Revision history for this message
Koen De Groote (koendg) wrote :

It appears to be all epub and mobi files

Revision history for this message
Koen De Groote (koendg) wrote :

Example of each

Revision history for this message
Kovid Goyal (kovid) wrote :

Just scroll past the cover and it will work, there is a bug in this release that prevents it working on pages that have no text.

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Incomplete → Fix Released
Revision history for this message
Koen De Groote (koendg) wrote :

Thank you for your effort

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.