Video Thumbnail Generation Crashing XnView
Posted: Sun Apr 06, 2025 5:30 pm
XnView: 1.8.7 64-bit (Linux) - Libformat 7.220
OS: Linux 64 bit
Effect: Hanging of thread related to thumbnail generation (for videos).
To reproduce: Difficult to do individually, occurs randomly on different video files. Which video file does not appear to make a difference, it will crash in the same directory on a different video each time, while videos that previously caused the crash may generate thumbnails just fine.
Actual behaviour (bug): <Current wrong behaviour of XnView>
Part of the program hangs when a video thumbnail fails to generate.
When this crash occurs, the last lines in output will look like this for the video that crashed it:
Once this occurs, the entire program does not crash immediately, only thumbnail generation stops at the video file.
Most UI elements still function, but certain subsequent actions after the thumbnail fails to generate will cause the entire program to crash (stopped responding):
- Using Ctrl+1, Ctrl+2, etc... To Add a rating. Adding a rating from the context menu does not cause XnView to crash
- Navigating to any other folder
- Refreshing current folder
- Renaming, moving, deleting a file or folder
After any of these actions, right before the crash this will be outputted to the console:
Usually a few hundred thumbnails will be generated before one crashes. No videos in particular seem to cause this, it is only random. Mostly seen it occur on .mp4 format but I believe it also occurred on a .webm video.
If I try to generate thumbnails for the folder in Settings -> Catalog, eventually a random video will cause it to hang indefinitely and crash the program, likely same error. With thousands of videos it's not feasible to upload this folder.
Expected behaviour: All thumbnails generate correctly or if not, ensure stability of program. (Create a generic "error" thumbnail and continue generating thumbnails?)
OS: Linux 64 bit
Effect: Hanging of thread related to thumbnail generation (for videos).
To reproduce: Difficult to do individually, occurs randomly on different video files. Which video file does not appear to make a difference, it will crash in the same directory on a different video each time, while videos that previously caused the crash may generate thumbnails just fine.
Actual behaviour (bug): <Current wrong behaviour of XnView>

When this crash occurs, the last lines in output will look like this for the video that crashed it:
Code: Select all
BLOB length 75
==> daawiolewzlo1.mp4 0
MDK ==> 51767 0
decoded @0.000000. out size: 1280x720, stride: 5120, format: 10
MDK2 ==> 51767 0
==> isdolfasop2.mp4 25
MDK ==> 51767 12941
decoded @12.500000. out size: 1280x720, stride: 5120, format: 10
MDK2 ==> 51767 0
Most UI elements still function, but certain subsequent actions after the thumbnail fails to generate will cause the entire program to crash (stopped responding):
- Using Ctrl+1, Ctrl+2, etc... To Add a rating. Adding a rating from the context menu does not cause XnView to crash
- Navigating to any other folder
- Refreshing current folder
- Renaming, moving, deleting a file or folder
After any of these actions, right before the crash this will be outputted to the console:
Code: Select all
ThumbLoaderThread :: stop()
If I try to generate thumbnails for the folder in Settings -> Catalog, eventually a random video will cause it to hang indefinitely and crash the program, likely same error. With thousands of videos it's not feasible to upload this folder.
Expected behaviour: All thumbnails generate correctly or if not, ensure stability of program. (Create a generic "error" thumbnail and continue generating thumbnails?)