Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Application crash

More
IP: 192.168.0.71 11 years 4 months ago - 11 years 4 months ago #7866 by petr.sklenicka
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
Last edit: 11 years 4 months ago by sanyu erisa.
More
IP: 192.168.0.158 11 years 4 months ago #7884 by nermeen
Replied by nermeen on topic Application crash
Please check the new beta version 3.2beta5 it should have a fix for your issue.
More
IP: 192.168.0.71 11 years 4 months ago #7885 by petr.sklenicka
Replied by petr.sklenicka on topic Application crash
Thanks for quick fix, but it does not work.
More
IP: 192.168.0.158 11 years 4 months ago #7886 by nermeen
Replied by nermeen on topic Application crash
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.
More
IP: 192.168.0.71 11 years 4 months ago - 11 years 4 months ago #7887 by petr.sklenicka
Replied by petr.sklenicka on topic Application crash
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.
Last edit: 11 years 4 months ago by sanyu erisa.
More
IP: 192.168.0.71 11 years 4 months ago #7891 by radaee
Replied by radaee on topic Application crash
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.
Time to create page: 0.432 seconds
Powered by Kunena Forum