Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 02-02-2016, 12:37 PM   #1
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,274
Karma: 5935030
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
Cover View Browsing crashes Paperwhite

One problem I have observed with every Paperwhite, (1, 2 and 3.) and many firmware versions, including the latest, is that browsing my library in "Grid View" will eventually cause the Paperwhite to self-restart.

This can be reproduced once I have about 500 books on the device, by browsing the books. Usually, if the Paperwhite is recently restarted, I can make it through the entire library once, but trying to do so a second time, or to page backwards several pages, it will crash and re-start.

All of my books are sideloaded with Calibre, so the cover thumbnails are Calibre generated. I guess my question is, does this same crash happen with the Amazon supplied thumbnails? It seems odd to me this bug would have existed for so long and never been corrected if it also affects Amazon loaded books.
rashkae is offline   Reply With Quote
Old 02-02-2016, 03:14 PM   #2
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
It's quite possible the algorithm used to load in cover images for display has issues once you exceed some numerical threshold (whether the images are from Amazon or anywhere else). Kindle system resources are relatively limited, so there are always trade-offs between performance and stability.

Also possible that there are certain calibre-generated cover images that the thumbnail algorithm has problems with. I've seen a number of discussions where it seemed they had to be of specific dimensions, or thumbnails would not get generated and that sort of thing.

But knowing there is a problem doesn't necessarily give way to some simple solution. It could take considerable effort to isolate the origin of the problem. And you could be getting some reading in instead.

If you were to raise the issue with the right people in Amazon Customer Support, they could pull logs off of your Kindle and probably ascertain something about why it is happening. That doesn't necessarily mean a solution would be forthcoming from their side, of course, but in my experience they do try. The calibre forums here might also be a good place to ask about this.

Short of that, the advice I would take away would be to use Cover View more sparingly. "Doctor, it hurts when I do THIS" "Then don't do THAT".

In general, I almost always find it a lot quicker to use Search to find things in my library. A few keystrokes is usually sufficient.
tomsem is offline   Reply With Quote
Advert
Old 02-04-2016, 04:22 AM   #3
Axanar
Enthusiast
Axanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of it
 
Axanar's Avatar
 
Posts: 39
Karma: 66828
Join Date: Feb 2016
Device: Kindle
Quote:
Originally Posted by rashkae View Post
One problem [...] is that browsing my library in "Grid View" will eventually cause the Paperwhite to self-restart.
Confirmed with my Paperwhite 2 (6 Gen) and 5.7.2 Update. Exactly this happened yesterday to me.
Axanar is offline   Reply With Quote
Old 02-04-2016, 08:07 AM   #4
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,274
Karma: 5935030
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
Quote:
Originally Posted by Axanar View Post
Confirmed with my Paperwhite 2 (6 Gen) and 5.7.2 Update. Exactly this happened yesterday to me.
Are your books sideloaded or sent from Amazon? (or a mix.). I'm trying to figure out if Calibre sideloaded thumbnails are what's triggering this.
rashkae is offline   Reply With Quote
Old 02-04-2016, 09:05 AM   #5
Axanar
Enthusiast
Axanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of it
 
Axanar's Avatar
 
Posts: 39
Karma: 66828
Join Date: Feb 2016
Device: Kindle
Quote:
Originally Posted by rashkae View Post
(or a mix.)
I have a mixture of both. My Library contains around 40 books whith 2/3 of it downloaded from Amazon. Though I really doubt that this is Calibres fault and I would like to explain this:

The Kindle underlaying system is Linux if I recall correctly. The Kernel differs between Userland and Kernel processes. If a Userland application crashes (by any means) then this should never ever cause a full system crash (including reboot).

Therefore the issue might be related elsewhere and could be anything. Starting from experimental gcc compiler flags (or maybe they use clang). The Kernel as well as libraries (like libpng or some xlib libraries) could be compiled and generate badly optimized code (cpu mnemonic) and so on. Of course it could also be Kindle's proprietary Startpage and Booklauncher. Though even if this has issues, it shouldn't cause the Kernel to completely reboot or reset.

Anyways I don't know much about how the Kindle stuff really works, therefore I am more speculating here.

The explaination about "big" covers might make sense. Amazon usually has 300x500 pixels or something. And if you use covers with bigger sizes then it might cause crashes because the covers must be load into memory. And if there is not enough ram... Well then it might crash.

But then. All books sideloaded with Calibre (on my system) has covers from amazon only! so the covers should match the requirements.

But! if you have 500 books and eveyone of them is thumbnailed on Kindle launch (e.g. all covers loaded) then you might end up with this. Example!

300x500x32 (300 pixel width, 500 pixel height, 32bit png)

= 4.8mb per cover

If you have 500 books and all of them load on the go (rather than on demand) then you might end up with this:

500 x 4.8mb = 2.4gb of ram

That's theoretically now. If you go into the thumbnails folder of your Kindle, then you usually end up seeing gray-scaled png or jpg files. Maybe 16 colors ? (8 bit). This could be calculated like this:

300x500x8 = 1.2mb per cover

500 x 1.2mb = 600mb of ram

In case the covers are loaded on demand (e.g. loaded when swiping) and removed once the next page got loaded. Then it may be that the covers are not memory free'd correctly. E.g. memory leaks.

Now if we continue:

I saw that the entire kindle shop seems to be based upon index.html page containing a shitload of javascript magic. It could be that the underlaying javascript engine - in case it's used the same way for the "grid books library" - may suffer from heavy memory leaks. This of course (if you swipe through a library full with 500 books) end up in a shitload of memory leaks - which causes the system to ... yea .... to crash!
Axanar is offline   Reply With Quote
Advert
Old 02-04-2016, 10:05 AM   #6
Axanar
Enthusiast
Axanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of it
 
Axanar's Avatar
 
Posts: 39
Karma: 66828
Join Date: Feb 2016
Device: Kindle
I just verified it again.

The covers downloaded from Amazon (For Kindle eInk) are usually between 200-220 width and 300-330 height grayscale (8bit).

Using the same maths will result in around 500kb ram for one cover displayed. For 500 covers you might end up in using 256mb of ram (in case all covers are loaded once rather than 6 covers on demand per slide).

It might make sense (and I keep a mental note for myself here). To scale all calibre covers to around that size + turning them into 8 bit grayscale. To avoid possible crashes.

Maybe calibre has an option to scale covers before side-loading them to the Kindle ?
Axanar is offline   Reply With Quote
Old 02-04-2016, 10:17 AM   #7
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Axanar View Post
I just verified it again.

The covers downloaded from Amazon (For Kindle eInk) are usually between 200-220 width and 300-330 height grayscale (8bit).

Using the same maths will result in around 500kb ram for one cover displayed. For 500 covers you might end up in using 256mb of ram (in case all covers are loaded once rather than 6 covers on demand per slide).
I very much doubt that the library loads all covers in your library into RAM; it would be far more sensible to load them for each page as it's displayed.
HarryT is offline   Reply With Quote
Old 02-04-2016, 03:50 PM   #8
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,274
Karma: 5935030
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
This is purely speculation on my part, but I suspect there's a memory leak in the cover thumbnail view, and the 'crashes' are OOM process terminations.
rashkae is offline   Reply With Quote
Old 02-04-2016, 06:57 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Question is, if it is really restarting.

I assume you just saw the boy-under-the-tree, with the progress bar.



If you use Menu ==> Settings ==> Menu ==> Restart, you will notice it takes a little while to start up.
After a while, the progress bar starts loading, and then it stutters halfway through. (The stutter is when the java framework takes over drawing the screen.)

If you restart the framework from the command line (or during the MrPI hack) you will go back to that screen, but it goes much faster (i.e. it starts loading almost immediately).

I've had my KT crash on me (running skipstone, some websites are complex and crash everything somehow). It has the same effect of restarting the framework, not a complete reboot.



So, is it rebooting, or just restarting the framework?
eschwartz is offline   Reply With Quote
Old 02-04-2016, 09:04 PM   #10
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,274
Karma: 5935030
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
Quote:
Originally Posted by eschwartz View Post
Question is, if it is really restarting.

I assume you just saw the boy-under-the-tree, with the progress bar.



If you use Menu ==> Settings ==> Menu ==> Restart, you will notice it takes a little while to start up.
After a while, the progress bar starts loading, and then it stutters halfway through. (The stutter is when the java framework takes over drawing the screen.)

If you restart the framework from the command line (or during the MrPI hack) you will go back to that screen, but it goes much faster (i.e. it starts loading almost immediately).

I've had my KT crash on me (running skipstone, some websites are complex and crash everything somehow). It has the same effect of restarting the framework, not a complete reboot.



So, is it rebooting, or just restarting the framework?
Just re-starting the framework.

Sometimes that's ok. Other times, even after the framework has restarted, the Kindle remains slow and relatively unresponsive until a proper restart is done.
rashkae is offline   Reply With Quote
Old 02-05-2016, 07:09 AM   #11
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Quote:
Originally Posted by Axanar View Post
But! if you have 500 books and eveyone of them is thumbnailed on Kindle launch (e.g. all covers loaded) then you might end up with this. Example!

300x500x32 (300 pixel width, 500 pixel height, 32bit png)

= 4.8mb per cover
How do you end up with this number?

32 bits is 4 bytes. 300x500 is 150.000 pixels. Total memory consumption would be 600.000 bytes, or roughly 586 KB.

Last edited by Katsunami; 02-05-2016 at 08:03 AM.
Katsunami is offline   Reply With Quote
Old 02-05-2016, 07:49 AM   #12
Axanar
Enthusiast
Axanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of itAxanar has read War And Peace ... all of it
 
Axanar's Avatar
 
Posts: 39
Karma: 66828
Join Date: Feb 2016
Device: Kindle
Quote:
Originally Posted by Katsunami View Post
How do you end up with this number?
Damn! Yes you are right. I totally forgot, dividing my calculation by 8 (8bit => 1byte). Nice catch!
Axanar is offline   Reply With Quote
Old 02-05-2016, 08:02 AM   #13
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Quote:
Originally Posted by Axanar View Post
Damn! Yes you are right. I totally forgot, dividing my calculation by 8 (8bit => 1byte). Nice catch!
Forgot to divide by 8. I see it now. Should have seen it myself
Katsunami is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle (2012) cover similar to Paperwhite smart cover? crashprime Amazon Kindle 4 01-15-2014 09:04 AM
Paperwhite in Cover View jswinden Amazon Kindle 7 10-07-2012 07:01 PM
Browsing by cover your Calibre library on the Kindle SirBC Amazon Kindle 2 05-10-2010 09:58 AM
Displaying Covers (Cover Browsing) Gwen Morse Calibre 2 02-19-2010 09:59 PM
view LRF crashes in 6.39 Phil_C Calibre 1 02-10-2010 11:32 PM


All times are GMT -4. The time now is 08:18 AM.


MobileRead.com is a privately owned, operated and funded community.