nPDF icon indicating copy to clipboard operation
nPDF copied to clipboard

Bug report + feature request

Open critor opened this issue 10 years ago • 12 comments

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.

critor avatar Oct 29 '14 09:10 critor

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.

Legimet avatar Oct 29 '14 15:10 Legimet

I just fixed the third bug.

Legimet avatar Oct 30 '14 23:10 Legimet

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.

Legimet avatar Nov 02 '14 03:11 Legimet

Hm, can you tell me how that happened, Ndless SDK ver, Ndless version and OS version?

Vogtinator avatar Nov 02 '14 11:11 Vogtinator

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.

critor avatar Nov 02 '14 12:11 critor

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.

Vogtinator avatar Nov 02 '14 12:11 Vogtinator

critor was right, it's not always 8 bit-aligned See @matrefeytontias's comment in #1.

Legimet avatar Nov 02 '14 14:11 Legimet

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?

Legimet avatar Nov 23 '14 19:11 Legimet

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 avatar Jan 14 '15 02:01 EduardoPoco

@EduardoPoco, could you try with the latest version? You can download it from http://ti-pla.net/a139503. Sorry for the delay.

Legimet avatar Jan 17 '15 02:01 Legimet

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.

EduardoPoco avatar Jan 17 '15 03:01 EduardoPoco

OK, good to hear :)

Legimet avatar Jan 17 '15 03:01 Legimet