You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.
I am using advance_pdf_viewer in my flutter app and am getting the following error regarding a memory leak
Please look into it!!
W/System (12561): A resource failed to call close.
════════ Exception caught by image resource service ════════════════════════════
The following assertion was thrown by an image listener:
setState() called after dispose(): _PDFPageState#a30fd(lifecycle state: defunct, not mounted)
This error happens if you call setState() on a State object for a widget that no longer appears in the widget tree (e.g., whose parent widget no longer includes the widget in its build). This error can occur when code calls setState() from a timer or an animation callback.
The preferred solution is to cancel the timer or stop listening to the animation in the dispose() callback. Another solution is to check the "mounted" property of this object before calling setState() to ensure the object is still in the tree.
This error might indicate a memory leak if setState() is being called because another object is retaining a reference to this State object after it has been removed from the tree. To avoid memory leaks, consider breaking the reference to this object during dispose().
When the exception was thrown, this was the stack
#0 State.setState. #1 State.setState #2 _PDFPageState._repaint. #3 ImageStreamCompleter.setImage #4 MultiFrameImageStreamCompleter._emitFrame
...
════════════════════════════════════════════════════════════════════════════════
The text was updated successfully, but these errors were encountered:
I am using advance_pdf_viewer in my flutter app and am getting the following error regarding a memory leak
Please look into it!!
W/System (12561): A resource failed to call close.
════════ Exception caught by image resource service ════════════════════════════
The following assertion was thrown by an image listener:
setState() called after dispose(): _PDFPageState#a30fd(lifecycle state: defunct, not mounted)
This error happens if you call setState() on a State object for a widget that no longer appears in the widget tree (e.g., whose parent widget no longer includes the widget in its build). This error can occur when code calls setState() from a timer or an animation callback.
The preferred solution is to cancel the timer or stop listening to the animation in the dispose() callback. Another solution is to check the "mounted" property of this object before calling setState() to ensure the object is still in the tree.
This error might indicate a memory leak if setState() is being called because another object is retaining a reference to this State object after it has been removed from the tree. To avoid memory leaks, consider breaking the reference to this object during dispose().
When the exception was thrown, this was the stack
#0 State.setState.
#1 State.setState
#2 _PDFPageState._repaint.
#3 ImageStreamCompleter.setImage
#4 MultiFrameImageStreamCompleter._emitFrame
...
════════════════════════════════════════════════════════════════════════════════
The text was updated successfully, but these errors were encountered: