Quote:
Originally Posted by vdp
For me personally the biggest issue is that my DXG consistently reboots after browsing maybe 20 or 30 pages. I am running the "bleeding edge" from the repo now, but this still happens with both DJVU and PDF documents. I think there are memory leaks somewhere(caching?). Don't know if this is a known problem, but it's clearly visible with 'top'. The allocated memory steadily raises from about 20% to little above 50% at which time the kernel's OOM killer kicks in and the device restarts itself. Dave said something about limiting memory - do I have to set something somewhere in order to configure this?
|
Oh, since I don't have a DXG for testing, when eLiNK told me kindlepdfviewer reboots his device, I thought it was caused by the amazon framework. If it is caused by OOM killer, stopping the framework with "killall -stop" won't help, too bad.
Currently, there is no memory control for DJVU, maybe you can bring down the memory usage by changing the cache size of kindlepdfviewer. It can be controlled by editing file ".reader.kpdfview.lua", refer to
https://github.com/hwhw/kindlepdfviewer/wiki/Userguide. But I guess it won't help too much since the default cache is only 5MB.
As for PDF, we just found a way to decrease the memory usage of MuPDF, but no one add relevant code for this yet. If you want to give it a try, the cache size of MuPDF can be changed in the "pdfreader.lua", on line 11, the last arguemtn of pcall. This should be able to greatly decrease the memory usage of MuPDF. We will add a configurable entry for this in ".reader.kdpfview.lua" in next release.