Hello,
When I scroll and zoom a lot when viewing a PDF, I start to get a lot of garbage collection messages, and eventually a PlatformException is thrown with the following error message:
Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
Hello,
Here are the details you requested.
The physical device where I have experienced the issue is a Motorola Moto G8 Power, with 4GB RAM, running Android 11.
The document can be downloaded from https://core.ac.uk/download/pdf/132195195.pdf (although I have seen the issue on multiple documents).
The basic app that I have used to exclude any other dependencies or issue causing code, can be found at https://github.com/lukertaylor/pdf_viewer.git
Flutter Doctor ourput:
The issue is that when scrolling and zooming, the screen updates get more and more 'sticky' and eventually the app crashes.