nPDF
nPDF copied to clipboard
Bug report + feature request
Hi,
I'm testing nPDF with huge files (eBooks with several hundreds of pages).
Bug report - I've noticed :
- that nPDF does freeze very often when typing Ctrl+G and same thing with Esc
- that after loading a little number of pages (5-8), all new loaded pages are just shown as blank
Feature request :
- Ctrl+G (when it works) limits the input to page number 50 - try to get the total number of pages from the document
Regards.
The first bug is fixed.
I haven't ever seen the second bug.
The third bug is easy to fix; I was going to change it but forgot.
I just fixed the third bug.
I just fixed a crash on exit which was caused by #1. The screen buffer shifts to the right when its address isn't divisible by 8, causing nPDF to crash when it tries to delete the buffer.
Hm, can you tell me how that happened, Ndless SDK ver, Ndless version and OS version?
When the address was not divisible by 8, the old code was trying to free an address which had never been allocated because of my code. I knew about this problem and looked for a free() instruction, but did miss the delete one. Sorry, and thanks for the fix.
Yeah, this kind of nasty bug was also present in early versions of the Zehn loaders. Tricky to find and reproduce. But the pointer returned by malloc (and thus new) MUST BE divisible by 8, so the bug must not have happened at all.
critor was right, it's not always 8 bit-aligned See @matrefeytontias's comment in #1.
that after loading a little number of pages (5-8), all new loaded pages are just shown as blank
I was trying to reproduce this today but I couldn't. Do you have any PDF's for which this happens?
I'm having a problem where i cannot change pages .. I can zoom in and out, but looks like my pdf only has 1 page, at least when i click 3 to go to the next page nothing happens . Any idea on what could be the problem ?
@EduardoPoco, could you try with the latest version? You can download it from http://ti-pla.net/a139503. Sorry for the delay.
No problem, a friend of mine helped me to solve the problem. I think i saw on the instructions that to change page was on button 3, but it was on + sign. The program works great, thank you for the reply anyway and letting me know about the new release.
OK, good to hear :)