Crashes on video

Ask for help and post your question on how to use XnView MP.

Moderator: xnview

Post Reply
olmaverick
Posts: 5
Joined: Thu Aug 21, 2025 6:11 pm

Crashes on video

Post by olmaverick »

Hi, I've been trying to track down an issue that's been affecting me for a few weeks now, trying to click on a video crashes XnViewMP.
  • type of video doens't seem to matter, I've tried mp4, webm and mkv and all are affected
  • I've tried purging my cache and it doesn't seem to matter
  • autoplay or loop options don't seem to change anything
  • both flatpak and appimage versions are affected, at least (as those are the only ones I can easily try)
  • versions from current back to at least 1.88 are affected, which makes me think this may be something in xnview that was affected by a system update, as it was at least playing video up to a month ago or so.
  • OS: Fedora Kinoite(Silverblue) 42
  • Other tools (gwenview, smplayer, vlc, etc.) seem to be unaffected.
When I use the flatpak version, it crashes with no error message; the AppImage crashes with the error:

Code: Select all

/tmp/.mount_XnViewGopDMJ/usr/bin//xnviewmp: line 5: 57943 Segmentation fault      (core dumped) "$usr/XnView/XnView" "$@"
Any suggestions/ideas for other things I can try?
User avatar
xnview
Author of XnView
Posts: 47074
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Crashes on video

Post by xnview »

please try to start xnview from a terminal to see logs
Pierre.
olmaverick
Posts: 5
Joined: Thu Aug 21, 2025 6:11 pm

Re: Crashes on video

Post by olmaverick »

I did that, but the only useful output when it crashed was the single line that I put in the post above. Here's what seems to be the point when it loads a video to the point where it crashes:

Code: Select all

### ThumbLoaderThread :: setFirstItemToLoad
 ** start condition wake one 3
### ThumbLoaderThread :: setFirstItemToLoad ok
######### CategoryModel :: checkAndSave()
MyView::set LOAD FULL /var/home/mav/Nextcloud/MEEMS/JIFS/supernatural-spn.mp4 
BitmapLoadThread :: stop()
## MyView::onLoaded </var/home/mav/Nextcloud/MEEMS/JIFS/supernatural-spn.mp4> </var/home/mav/Nextcloud/MEEMS/JIFS/supernatural-spn.mp4> </var/home/mav/Nextcloud/MEEMS/JIFS/supernatural-spn.mp4> (0) 
## MyView::onLoaded ok 
@@ BitmapResizeThread:: clear
######ThumbLoaderThread :: forever 2 : 3e7f9630 
CHECK <0> 
######ThumbLoaderThread :: forever : 3e7f9630 
 ** start condition wait
MyView::change /var/home/mav/Nextcloud/MEEMS/JIFS/supernatural-spn.mp4 
OPEN player /var/home/mav/Nextcloud/MEEMS/JIFS/supernatural-spn.mp4
X11 display: 0x3e4889e0
QMDKWidget setMedia /var/home/mav/Nextcloud/MEEMS/JIFS/supernatural-spn.mp4 


############################################ InfoPropertiesView

resizeGL>>>>>dpr: 2.000000, logical dpi: (96.000000,96.000000), phy dpi: (129.615947,129.702128)


############################################ InfoPropertiesView

######### CategoryModel :: checkAndSave()
###  checkChanged : 1
######### CategoryModel :: checkAndSave()
/tmp/.mount_XnViewEnokjd/usr/bin//xnviewmp: line 5: 162602 Segmentation fault      (core dumped) "$usr/XnView/XnView" "$@"
It says it's dumping core but I'm not sure where it's putting the dump, it doesn't seem to be in /tmp or in my home directory.
User avatar
xnview
Author of XnView
Posts: 47074
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Crashes on video

Post by xnview »

i've tried on a clean Fedora 42, and no problem to play mp4 files
Please change debug=2 in your xnview.ini
Pierre.
BlackOverlord
Posts: 1
Joined: Thu Sep 11, 2025 8:43 pm

Re: Crashes on video

Post by BlackOverlord »

I have the same issue on Bazzite. The app crashes whenever I select a video file in the file browser (apparently it tries to load a preview)
OS version: Bazzite 42.20250908
App version: XnView MP 1.9.3 (flatpak version)
Logs are attached (with debug=2 in the config)
Here is a core dump: https://mega.nz/file/w4MDDaCB#JADp2ed36 ... dI-PbJvvns

I hope this helps fixing the issue
Attachments
xnview.log.7z
(8.52 KiB) Downloaded 1901 times
olmaverick
Posts: 5
Joined: Thu Aug 21, 2025 6:11 pm

Re: Crashes on video

Post by olmaverick »

I set debugging on as requested and here is the output. I also have a core dump for this same crash if it would be helpful.
Attachments
output.tgz
Output log on crash
(40 KiB) Downloaded 2077 times
User avatar
xnview
Author of XnView
Posts: 47074
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Crashes on video

Post by xnview »

olmaverick wrote: Fri Sep 12, 2025 4:53 pm I set debugging on as requested and here is the output. I also have a core dump for this same crash if it would be helpful.
Thanks, the output txt seems to be incomplete?
Pierre.
olmaverick
Posts: 5
Joined: Thu Aug 21, 2025 6:11 pm

Re: Crashes on video

Post by olmaverick »

I'll try again.
Attachments
xnview-output.tgz
(30 KiB) Downloaded 710 times
User avatar
xnview
Author of XnView
Posts: 47074
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Crashes on video

Post by xnview »

Try to set

Code: Select all

QT_XCB_GL_INTEGRATION=xcb_egl
Pierre.
olmaverick
Posts: 5
Joined: Thu Aug 21, 2025 6:11 pm

Re: Crashes on video

Post by olmaverick »

I set that environment variable and tried the standalone binary version again, but it still crashes. Output attached.
Attachments
xnview-output.tgz
(20 KiB) Downloaded 1288 times
dandv
Posts: 49
Joined: Sat Nov 08, 2008 10:46 pm
Location: Digital Nomad
Contact:

Re: Crashes on video

Post by dandv »

v1.9.4 crashing as well on Ubuntu 25.04, KDE Plasma 6.3.4, Wayland.

Intel® Iris® Xe Graphics & NVIDIA GeForce RTX 3050 Ti Laptop GPU
$ QT_XCB_GL_INTEGRATION=xcb_egl ./XnView_MP_1.9.4.AppImage
0.33.1 (git 8da6cdd) - Multimedia Development Kit. Copyright (c) 2016-2025 WangBin(QtAV author) <wbsecg1 at gmail.com>
Build for: ubuntu/25.04 4KB x86_64; glibc2.24/2.41 libc++210000; Clang21.0.0 (++20250702083737+272576543246-1~exp1~20250702203908.1008); 15:48:47 Jul 5 2025.
==> 2.000000 2.000000 151.218605 96.000000 (1)
XNVIEW restoreGeometry before : 640 480
XNVIEW restoreGeometry after : 1594 984
ARG[] = /tmp/.mount_XnViewMOEJjM/usr/XnView/XnView
QObject::connect: No such signal InfoPropertiesView::itemDoubleClicked(QTreeWidgetItem*,int)
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 127'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 255'
BookmarkNode::BookmarkNode : 0x36d98cf0
TAGS : 168
: 168
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
BLOB length 75
## onItemPressed
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 127'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 255'
#### onCurrentChanged 27
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 127'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 255'
## BaseViewWindow :: ~BaseViewWindow()
QMutex: destroying locked mutex
## BaseViewWindow :: ~BaseViewWindow() ok
X11 display: 0x36a3ec40
QMDKWidget setMedia /media/dandv/SD_Card/DCIM/DJI_001/DJI_20251012235820_0046_D.MP4
resizeGL>>>>>dpr: 2.000000, logical dpi: (96.000000,96.000000), phy dpi: (151.218605,151.218605)
Segmentation fault (core dumped)
I posted a related thread in July 2024: Crash when opening any DJI drone MP4 file
wairu
Posts: 1
Joined: Wed Dec 31, 2025 11:25 am

Re: Crashes on video

Post by wairu »

I think you're not alone with this as I experienced the very same symptoms.
I changed the debug parameter in ~/.config/xnviewmp/xnview.ini as instructed above by others, and fed the output into a logfile, which I just attached here.
At line 324 where it loads the .webm video, it gave me a clue at line 434 where it tried to load X11 display, to no avail, because I'm running on Wayland Plasma, specifically on CachyOS.

Let me summarize my config:
  • OS: CachyOS
  • DE: Plasma 6.5.4
  • Kernel: Linux 6.18.2-3-cachyos
  • CPU: MD Ryzen 9 7900X (24) @ 5.74 GHz
  • GPU: NVIDIA GeForce RTX 4070 Ti [Discrete]
  • ffmpeg: n8.0.1 - built with gcc 15.2.1 (GCC) 20251112
Downloaded .tar.gz version, extracted, ran it, focused on video files in XnView Filebrowser: Crash
Downloaded AUR version, ocused on video files in XnView Filebrowser: Crash

This does not alone happen with .webm, but with any other video file.

The dilemma: Since X11 is being passively-, but surely rolled out in the future to be exchanged by Wayland, what would be the preferred practice to avert this issue?
Attachments
xnview_debug_output.tar.gz
(8.61 KiB) Downloaded 929 times
Post Reply