Out of Memory Exception with Thumbnail Viewer open in Portrait orientation
Posted: Mon Jan 08, 2024 10:33 pm
Hello,
We are encountering out of memory exceptions when loading large documents in portrait mode with the thumbnail viewer open. When the thumbnail viewer is closed the document is able to load without encountering out of memory exceptions. I suspect having both the Image Viewer for the document and the Thumbnail Viewer for the thumbnails open at the same time is causing the memory issue. I am hoping we you can suggest some changes which would optimize this situation.
I have tried modifying some of the settings in our Thumbnail Viewer control, but they do not seem to solve the issue unfortunately. We reduced the ThumbnailScale to Smallest, reduced the number of threads available for rendering the thumbnails in ThumbnailRenderingThreadCount, Changed ThumbnailFlowStyle to SingleColumn from WrappedRows. This somewhat improved behavior but still experience the errors.
The document in question is 66MB. When loading the document, memory used by our application will jump from the regular 200-400MB range up the 1000MB, at which point it shows the out of memory exceptions and the memory usage drops back down. Our customer uses a Portrait orientation monitor, so the thumbnail viewer is quite tall when using the full screen's height. When viewed on a Landscape orientation, or shortened the height of application window, the same document does not experience out of memory exceptions.
Please advise on next steps, thank you.
Nick Nansen
RedSail Technologies
We are encountering out of memory exceptions when loading large documents in portrait mode with the thumbnail viewer open. When the thumbnail viewer is closed the document is able to load without encountering out of memory exceptions. I suspect having both the Image Viewer for the document and the Thumbnail Viewer for the thumbnails open at the same time is causing the memory issue. I am hoping we you can suggest some changes which would optimize this situation.
I have tried modifying some of the settings in our Thumbnail Viewer control, but they do not seem to solve the issue unfortunately. We reduced the ThumbnailScale to Smallest, reduced the number of threads available for rendering the thumbnails in ThumbnailRenderingThreadCount, Changed ThumbnailFlowStyle to SingleColumn from WrappedRows. This somewhat improved behavior but still experience the errors.
The document in question is 66MB. When loading the document, memory used by our application will jump from the regular 200-400MB range up the 1000MB, at which point it shows the out of memory exceptions and the memory usage drops back down. Our customer uses a Portrait orientation monitor, so the thumbnail viewer is quite tall when using the full screen's height. When viewed on a Landscape orientation, or shortened the height of application window, the same document does not experience out of memory exceptions.
Please advise on next steps, thank you.
Nick Nansen
RedSail Technologies