0.97.1: Crash upon access to too many images
Posted: Thu Nov 19, 2020 12:55 am
XnView: MP 0.97.1 - 64-bit
OS: Windows 10 - 64-bit
Effect: XnView crashes (bug report window does not open)
XnView crashes either when lots of images are opened in multiple folders that each contain many images, or when images are rapidly opened in a single folder that cotains many images (usually 2000+ images). Because ntdll.dll is the faulting module with an error code of 0xc0000374 (according to Windows 10), I think it might be a heap corruption issue.
To reproduce:
1. Open an image (any format, larger images are more likely to crash)
2. Continually open more images, spread across different folders
OR
1. Open an image
2. Rapidly open more images in the same folder
Actual behaviour (bug): XnView crashes
Expected behaviour: No crash, images are displayed.
Something worth noting, on Windows 10's Reliability Monitor found in the Control Panel, there is a description on XnView MP's crash, particularly what dll was at fault and its error code. I'll paste the results from a recent crash underneath as I think it might be helpful:
Faulting application name: xnviewmp.exe, version: 0.97.1.0, time stamp: 0x5f856890
Faulting module name: ntdll.dll, version: 10.0.20257.1, time stamp: 0x12a774b2
Exception code: 0xc0000374
Fault offset: 0x0000000000106489
Faulting process id: 0xa54
Faulting application start time: 0x01d6bde280e38989
Faulting application path: C:\Program Files\XnViewMP\xnviewmp.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 72995992-2bc6-4a6e-a72d-2d1ac300e7b7
Faulting package full name:
Faulting package-relative application ID:
OS: Windows 10 - 64-bit
Effect: XnView crashes (bug report window does not open)
XnView crashes either when lots of images are opened in multiple folders that each contain many images, or when images are rapidly opened in a single folder that cotains many images (usually 2000+ images). Because ntdll.dll is the faulting module with an error code of 0xc0000374 (according to Windows 10), I think it might be a heap corruption issue.
To reproduce:
1. Open an image (any format, larger images are more likely to crash)
2. Continually open more images, spread across different folders
OR
1. Open an image
2. Rapidly open more images in the same folder
Actual behaviour (bug): XnView crashes

Expected behaviour: No crash, images are displayed.
Something worth noting, on Windows 10's Reliability Monitor found in the Control Panel, there is a description on XnView MP's crash, particularly what dll was at fault and its error code. I'll paste the results from a recent crash underneath as I think it might be helpful:
Faulting application name: xnviewmp.exe, version: 0.97.1.0, time stamp: 0x5f856890
Faulting module name: ntdll.dll, version: 10.0.20257.1, time stamp: 0x12a774b2
Exception code: 0xc0000374
Fault offset: 0x0000000000106489
Faulting process id: 0xa54
Faulting application start time: 0x01d6bde280e38989
Faulting application path: C:\Program Files\XnViewMP\xnviewmp.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 72995992-2bc6-4a6e-a72d-2d1ac300e7b7
Faulting package full name:
Faulting package-relative application ID: