Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

Application crash 9 years 5 months ago #7866

  • petr.sklenicka
  • petr.sklenicka's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 0
Hello,
I have a PDF document, which causes crash of my application. This crash is very specific, because there is no error message in LogCat.
I have tested this PDF on your application from Google Play (Radaee PDF Reader) and also on your demo application, which is included in 3.2Beta4 SDK. Both of these applications crashed as well.
Link to this PDF:
www.dropbox.com/s/0oi16fuc2ezf013/PDFAppCrash.pdf?dl=0
Can you solve this issue, please?
Thanks a lot.
Petr

Please Log in or Create an account to join the conversation.

Last edit: by sanyu erisa.

Application crash 9 years 4 months ago #7884

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Please check the new beta version 3.2beta5 it should have a fix for your issue.

Please Log in or Create an account to join the conversation.

Application crash 9 years 4 months ago #7885

  • petr.sklenicka
  • petr.sklenicka's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 0
Thanks for quick fix, but it does not work.

Please Log in or Create an account to join the conversation.

Application crash 9 years 4 months ago #7886

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
On wich devices did you try?

We have tried on 4.0.4, 4.1.2 and 4.4.4...

The issue is because of the number of images, need a lot of memory to be loaded. so, memory lack in some devices.

Please Log in or Create an account to join the conversation.

Application crash 9 years 4 months ago #7887

  • petr.sklenicka
  • petr.sklenicka's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 0
I tried on Samsung Galaxy S3 with Android 4.4.4 and Motorola Xoom 4.0.4.
This crash is specific only for "older" devices, which have a smaller heap space. On some devices, like Samsung Galaxy S4, it works fine.

Application crash on devices, which have heap size 64MB and lower. Galaxy S4 has heap size 128MB and it works fine on this device.

Galaxy S3 has 64MB heap size and Motorola Xoom has only 32MB.

Please Log in or Create an account to join the conversation.

Last edit: by sanyu erisa.

Application crash 9 years 4 months ago #7891

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
memory total size are key point, this PDF file has handards of large(about 2000 * 2000 pixels) images.
as normally, native library store all images in memory cache.
the current logic is: when cache exceed 400M then release the new rendered image.
it is balance considering between zooming speed and memory space.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum