Converted epub causes Kobo Glo to freeze, when reloading the converted book

Bug #1258521 reported by Chris
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Kobo Touch Extended Driver
Invalid
Critical
Unassigned

Bug Description

I have one epub, that successfully converts to a kebup with unchanged settings in Calibre 1.14.0 (win x64). I then transfer the created kepub to a Kobo Glo, running FW 3.1.0. The transferred kepub opens initially, and I can read it without problems. When I close the book and reopen it (for instance after switching to the menu), the reader displays "Loading page X of chapter Y" and freezes.

Both the epub and the kepub are attached. The epub itself loads fine on the reader.

Revision history for this message
Joel Goguen (jgoguen) wrote :

What options do you have enabled in the conversion settings? You said 'unchanged' but can you please list which conversion options are enabled to make sure we're working with the same settings?

information type: Private Security → Public
Changed in calibre-kobo-driver:
assignee: nobody → Joel Goguen (jgoguen)
importance: Undecided → Critical
status: New → Incomplete
Revision history for this message
Chris (rct3master) wrote :

Look & Feel:
    - No checkboxes activated
    - Base font size: 0,0 pt
    - Minimum line height 120,0 %
    - Text justification: Original
    - Line size: 0,5 em
    - Extra CSS empty

Heuristic Processing:
    - Deactivated

Page setup:
    - Output profile: Kobo Reader
   - Input profile: Default Input Profile, all Margins set to 5,0 pt

Structure detection:
    - Detect chapters at: //*[((name()='h1' or name()='h2') and re:test(., '\s*((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))', 'i')) or @class = 'chapter']
   - Chapter mark: pagebreak
   - Remove fake margins checked
   - Insert page breaks before: /

Table of contents:
    - Number of links to add to ToC: 50
    - Chapter threshold: 6

Search and replace:
    - no settings activated

KEpub output:
    - Split files larger than: 260 KB
    - Hyphenate Files: activated
    - Clean up ePub markup: activated
    - Replace Content Language Code: activated

Debug:
    - no settings activated

If you want I can post screenshots of the settings as well.

Revision history for this message
Joel Goguen (jgoguen) wrote :

Yes, please do. There's some settings that I know I haven't changed but they're different from what you've listed here. Also, please try converting your ePub to KePub again using debug mode, and post the debug log here. The size of your KePub is much smaller than the size of your ePub, which should not be the case if you're using default settings. Once you've done the conversion, post your debug log here and also check the size of your ePub and the converted KePub and let me know what the size of each file is.

Revision history for this message
Chris (rct3master) wrote :
Download full text (16.5 KiB)

I deleted the KEPUB and recreated it without changing any settings. The settings screenshots can be found here:

http://imgur.com/a/off2P

The created KEPUB is 357KB, the input EPUB is 3.05MB. The folders of the debug output have the following sizes:

    input - 3,44MB
    parsed - 11MB
    processed - 713KB
    structure - 3,43MB

The log is as follows:

calibre Debug log
calibre 1.14 [64bit] isfrozen: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.5
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Starting up...
Started up in 10.41 seconds with 8 books
Worker Launch took: 0.162999868393
Job: 1 Convert book 1 of 1 (Der Pfad Des Friedvollen Kriegers) finished
Convert book 1 of 1 (Der Pfad Des Friedvollen Kriegers)
 C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:336: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
 Resolved conversion options
 calibre version: 1.14.0
 {'asciiize': False,
  'author_sort': None,
  'authors': None,
  'base_font_size': 0.0,
  'book_producer': None,
  'change_justification': u'original',
  'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
  'chapter_mark': u'pagebreak',
  'comments': None,
  'cover': u'C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\calibre_fv7vib\\o5gbu2.jpeg',
  'debug_pipeline': u'D:\\tmp',
  'dehyphenate': True,
  'delete_blank_paragraphs': True,
  'disable_font_rescaling': False,
  'dont_split_on_page_breaks': False,
  'duplicate_links_in_toc': False,
  'embed_all_fonts': False,
  'embed_font_family': None,
  'enable_heuristics': False,
  'epub_flatten': False,
  'epub_inline_toc': False,
  'epub_toc_at_end': False,
  'expand_css': False,
  'extra_css': None,
  'extract_to': None,
  'filter_css': u'',
  'fix_indents': True,
  'flow_size': 260,
  'font_size_mapping': None,
  'format_scene_breaks': True,
  'html_unwrap_factor': 0.4,
  'input_encoding': None,
  'input_profile': <calibre.customize.profiles.InputProfile object at 0x00000000054AAAC8>,
  'insert_blank_line': False,
  'insert_blank_line_size': 0.5,
  'insert_metadata': False,
  'isbn': None,
  'italicize_common_cases': True,
  'keep_ligatures': False,
  'kepub_clean_markup': True,
  'kepub_hyphenate': True,
  'kepub_replace_lang': True,
  'language': None,
  'level1_toc': None,
  'level2_toc': None,
  'level3_toc': None,
  'line_height': 0.0,
  'linearize_tables': False,
  'margin_bottom': 5.0,
  'margin_left': 5.0,
  'margin_right': 5.0,
  'margin_top': 5.0,
  'markup_chapter_headings': True,
  'max_toc_links': 50,
  'minimum_line_height': 120.0,
  'no_chapters_in_toc': False,
  'no_default_epub_cover': False,
  'no_inline_navbars': False,
  'no_svg_cover': False,
  'output_profile': <calibre.customize.profiles.KoboReaderOutput object at 0x00000000054B0198>,
  'page_breaks_before': u'/',
  'prefer_metadata_cover': False,
  'preserve_cover_aspect_ratio': False,
  'pretty_print': True,
  'pubdate': None,
  'publisher': None,
  'rating': None,
  'read_metadata_from_opf': u'C...

Revision history for this message
Chris (rct3master) wrote :

looks like the pasted log got truncated. See attached file for full log.

Revision history for this message
Joel Goguen (jgoguen) wrote :

Can you please attach the ePub file again? There was a problem with Barracuda Copy, the app I use to sync files between computers, and I lost the ePub as part of that.

information type: Public → Private
Revision history for this message
Chris (rct3master) wrote :

The following epub seems to cause freezing as well.

Revision history for this message
Joel Goguen (jgoguen) wrote :

I can't reproduce this, but my reader upgraded itself to 3.1.1 unexpectedly. I've tried converting the book and sending it over, converting the book and manually copying it, and letting the device driver convert the books during transfer.

Can you upgrade to Kobo firmware 3.1.1 and see if the problem still happens?

Changed in calibre-kobo-driver:
status: Incomplete → In Progress
status: In Progress → Incomplete
Joel Goguen (jgoguen)
information type: Private → Public
Revision history for this message
RoadBug (roadbug) wrote :

This bug is happening with all files I converted using the latest calibre (version 1.16.0) and the latest kobo firmware (3.1.1), just with the kepub.epub files that calibre generates when sideloading the .epub files to my reader (Kobo Glo). I manually deleted the .kepub.epub file from the device and replaced it with a .epub file copied from the calibre library. The bug disappeared.

Revision history for this message
Joel Goguen (jgoguen) wrote :

Let's try to nail down some steps to reproduce this. Are these correct, and are there more?

- Open a sideloaded KePub
- Turn a few pages
- Close the book (go back to the main screen)
- Re-open the book and the Glo freezes

- Open a side-loaded KePub
- Don't turn pages, but the same as above

Revision history for this message
Joel Goguen (jgoguen) wrote :

Please check what font you're using on the reader. If you're using "Document Default", please choose another font and see if the problem still happens. If not, let me know what font you're using.

Joel Goguen (jgoguen)
Changed in calibre-kobo-driver:
assignee: Joel Goguen (jgoguen) → nobody
Revision history for this message
Iago Macedo (iagommc) wrote :

Hey, this affects me too. Im using Amasis.

Revision history for this message
Iago Macedo (iagommc) wrote :

Joel, I tried using an old version of the plugin (2.0.2) and the bug disappeared. Everything else is working properly except for the error that appears in Calibre saying that it can not transfer the epub, but still transfer. I used "FullBookPageNumbers = true" command in .kobo/Kobo/Kobo eReader.conf and everything is working as it should.

I'm using Calibre 1:20 / HD in Kobo Aura 3.1.1 / 8.1 64-bit Windows

Revision history for this message
Joel Goguen (jgoguen) wrote :

Thanks for that info, that gives me somewhere to start looking. Next chance I get I'll compare differences between 2.0.2 and now.

Revision history for this message
Iago Macedo (iagommc) wrote :

Joel , the bug has returned yesterday. So i restored the Kobo and the bug really disappeared.

Revision history for this message
Joel Goguen (jgoguen) wrote :

I suspect what you've really found is that this bug is transient or that it's the result of a bug exposed by continuous upgrades. Either way, this would be a device issue unfortunately.

I really wish Launchpad allowed custom statuses, so I could close this bug as "Kobo's Problem" instead of Invalid...

Changed in calibre-kobo-driver:
status: Incomplete → Invalid
Revision history for this message
Cardineau (loic-cardineau) wrote :

Also affected I just delete the kepub file and replace it by an epub, apparently it works but reading isn't so confortable :/

Revision history for this message
Cardineau (loic-cardineau) wrote :

More information :
Apparently the loading of the Kepub file works only if you are on the first page of the chapter, if you are on an other page the kobo freeze and I can unfreeze it only if I plug it to my computer.

Revision history for this message
Marc (laflamme-marc) wrote :

Hi - this is affecting me too. The regular epub is super sluggish and would really like to use the kepub. I am on firmware 3.1.1 of glo and using Calibre 1.21 and KoboExtended 2.2.14.

Under Preferences --> Plugins --> Device Plugins
Kobo Touch 2.1.6 by David Forrester is disabled
KoboTouchExtended 2.2.14 is enabled

At first only loading chapter start would work but a recent test showed that loading a chapter from the ToC froze as well.
I'm using Kobo Nickel font.

Revision history for this message
Joel Goguen (jgoguen) wrote :

Please set the bug visibility to Private, attach your ePub and KePub, and set the bug status to Triaged. Make sure the bug is Private after uploading the books! I'm not sure if you will be able to see this bug once it's Private.

Revision history for this message
Marc (laflamme-marc) wrote :

Joel, I cannot change status to Triaged.

I THINK I did the stuff as you asked properly.

information type: Public → Private
Joel Goguen (jgoguen)
Changed in calibre-kobo-driver:
status: Invalid → In Progress
Joel Goguen (jgoguen)
information type: Private → Public
Revision history for this message
Polynesia (tetavahi) wrote :

grieve I posted the same bug in another post, sorry

Apparently, it is still not set

Revision history for this message
Mark (markdiender) wrote :

I'm having the same problem, I just want to add this workaround:

When it seems "frozen", just wait a couple of seconds, then tap the book title twice (top-center of the screen). it should open the top menu. then tap on the blank area below the menu. After that, the page is loaded correctly and you can read on.

Revision history for this message
Joel Goguen (jgoguen) wrote :

Please ensure you're using the latest Kobo firmware (3.2.0) and see if you're still having problems. I remain unable to reproduce the issue.

Changed in calibre-kobo-driver:
status: In Progress → Incomplete
Revision history for this message
Heike Runkel (heike-runkel) wrote :

Maybe it helps a little bit,

have had the prob months ago I did NOT mark that I load eBooks with DRM, (have ignored) ,
but after an update with Kobo firmware it was frozen,
so it was tricky to fix the problem but I did.

So it works until that Firmware and plugin version you are talking about here,
maybe that was in the root the reason of the older mistake my Kobo freezed than after the update to Kobo firmware 3.1,

and nothing was to do for me, nothing works, not older firmware, not older plugin, so that I, in that point, have had the luck to could give my Kobo back to get a new one.. after that everything works fine with the fresh Kobo, and now I am allways checking first Calibre and your plugin before i do an update at kobo.

Does you latetest Plugin work with Kobo Firmware 3.3? .. ;) better, does Kobo want to work with your Plugin?

sorry for my english, i am german.

greets, Heike

Revision history for this message
Joel Goguen (jgoguen) wrote : Re: [Bug 1258521] Re: Converted epub causes Kobo Glo to freeze, when reloading the converted book

> Does you latetest Plugin work with Kobo Firmware 3.3? .. ;)
I was not aware that firmware 3.3 had been released, but it should work fine if the main KoboTouch driver works.

> better, does Kobo want to work with your Plugin?
I haven't approached them, but every indication is that they do not. They have not worked with David on the main KoboTouch driver (not officially; as I understand it, they have not hindered his work or made him stop, and some employees may have given some basic info on their own time) despite David being a member of the beta testers group. My plugin could be seen as an active competitor to their store (since it enables any ePub from anywhere to have Kobo's unique features) and I'm sure the way they do the conversion of their books is proprietary so they have plenty of reason not to work with me and even to hinder me or make me stop.

Despite all that, Kobo has never even hinted that I should stop my plugin aside from a warning that no support can be offered on books that don't come from the Kobo store. Kobo has also made no effort to obfuscate their system or to break anything we've done. Aside from the reading stats in-book, but they at least tried to have a real reason for that.

Revision history for this message
Heike Runkel (heike-runkel) wrote :

the last update of calibre makes it fine to work with the kobo firmware 3.3, so it has to work with your plugin too?! Thanks.

You are so nice.. it was a little bit ironical my question if kobo want to work with your plugin, but you are right to explain.
I was, in the past, and after my mystake with the drm (or drm free after calibre) option, that it is NOT possible in Calibre to set up a complete new firmware. But after all, with a bit of care, everything works fine with your plugin, a lot of thank for your work!

greets

Revision history for this message
Heike Runkel (heike-runkel) wrote :

uh... correction

I was, in the past worried, after my mistake with the drm (or drm free after calibre) option, that it is NOT possible in Calibre to set up a complete new firmware.

Revision history for this message
Joel Goguen (jgoguen) wrote :

It's always good to take time to explain how Kobo has reacted to the plugin. They have a lot of bad sentiment against them (some of it they deserve) but this is an area where they've handled things about as well as can be expected.

Revision history for this message
Joel Goguen (jgoguen) wrote :

This looks more and more like Kobo's problem unfortunately, in the same vein as their problem with Document Default.

Changed in calibre-kobo-driver:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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