Unexpected closure of the app using the flutter widget syncfusion_flutter_pdfviewer: ^ 19.4.43-beta

Good morning
use the aforementioned widget, when I repeatedly zoom or scrool the pdf file, the app closes unexpectedly

14 Replies

LU Luke January 23, 2022 07:40 AM UTC

Hi Vincenzo,


I have the same issue. 

See: https://www.syncfusion.com/forums/172209/scrolling-and-zooming-in-sfpdfviewer-causes-platformexception


It occurs when I test on a physical Android phone. But I can't seem to reproduce on iOS Simulator or Android Emulator. What about for you?


Luke



VI Vincenzo Izzo January 23, 2022 07:48 AM UTC

I have tried on two physical devices, both on iphone and android, same problem.


LU Luke January 23, 2022 07:51 AM UTC

One thing I haven't tried yet is running in release mode rather than debug to see if that makes a difference. Have you tried that?



VI Vincenzo Izzo January 23, 2022 07:56 AM UTC

on andorid si same problem, for ios duties ask some testers i have


VI Vincenzo Izzo January 23, 2022 08:08 AM UTC

To be precise, in android I have a debug version on google paly, which I also downloaded and it gives me the same problem. On iphone on physical device same problem, maybe later I ask my ios tester and let you know


DR Deepika Ravi Syncfusion Team January 24, 2022 11:53 AM UTC

 
We are unable to reproduce the reported issue from our side. But , we are still analyzing on the issue from our end and will update you the further details on 27 January 2021.  
We also suspect that the issue might be device/document specific so kindly share us the following details. 
1.Device details along with OS version and RAM information. 
2.Issue reproducing document. 
3.Flutter doctor log. 
 
Regards, 
Deepika Ravi 



VI Vincenzo Izzo January 24, 2022 07:50 PM UTC

good evening
the devices used were a samsung a51, an iphone 5 16gb and a samsung galaxy J4 +, same problem I attach pubspec.yaml one working and one not. I attach debug galaxy j4 + and flutter doctor

Attachment: file_flutter_ec4df85a.rar


DR Deepika Ravi Syncfusion Team January 25, 2022 11:35 AM UTC

Hi Vincenzo Izzo,  
  
We can reproduce the reported issue from our side. We are analyzing on this and will update the further details on January 27, 2022 as promised earlier.  
  
Regards,  
Deepika R 



VI Vincenzo Izzo January 27, 2022 03:12 PM UTC

Good morning
is there any news?


DR Deepika Ravi Syncfusion Team January 27, 2022 04:19 PM UTC

Hi Vincenzo Izzo , 
 
On analyzing, we found that issue was caused due to image extraction with high quality with respective to zoom value. We need to analyze further on this issue based on the memory heap and will update the further details on 31 January 2022. 
 
However, android is a platform with restricted memory, since rendering PDFs can be quite a memory-consuming task, there are certain limits in what you can do before the OS is going to kill the app. The limits are based on many factors such as device memory, manufacturer, and Android OS version. We don’t know how much memory on a device is free, so SfPdfViewer will adapt and restrict usage when we get low memory notifications. However, if you’re getting lots of warnings and the system kills the app after receiving them, then you should look into the issue. So, we recommended the below suggestion for the android platform. Kindly try this suggestion and let us if the issue is resolved on your end. 
Set android:largeHeap="true" to your <application> tag in AndroidManifest.xml. This will create your application’s processes with a large Dalvik heap.   
 
Regards,  
Deepika Ravi 



VI Vincenzo Izzo January 27, 2022 04:57 PM UTC

Salutations,
I wanted to report that I have the same problem also on iphone, iphone 5 16 gb ram, however I do not know if it can be useful, but with a previous version of the library it did not happen, in fact in the previous discussions I have attached two .yaml files indicating the working one and the one no. I await your reply.
Greetings


DR Deepika Ravi Syncfusion Team January 28, 2022 01:54 PM UTC

Hi Vincenzo Izzo, 
 
We have confirmed that the reported issue “Unexpected closure of the app when zooming and scrolling the pdf continuously” is a defect. The issue fix will be included in our upcoming weekly release, which is estimated to be available on February 8, 2022.The status of this issue can be tracked using the following link, 
 
Regards, 
Deepika Ravi. 



DR Deepika Ravi Syncfusion Team February 8, 2022 12:54 PM UTC

Hi Vincenzo Izzo, 
   
We have included the fix for the issue " Unexpected closure of the app when zooming and scrolling the pdf continuously " in our latest weekly NuGet release, so kindly upgrade to the latest version v19.4.50 to get the issue resolved.   
 
Regards,  
Deepika Ravi 



VI Vincenzo Izzo February 8, 2022 07:23 PM UTC

Thank you :)

Loader.
Up arrow icon