1.12.3 - crashes on viewing mp4 (Ubuntu, Intel integrated GPU)

*** Please report new bugs here! ***

Moderators: xnview, Dreamer

ccombsdc
Posts: 5
Joined: Tue Nov 25, 2025 3:44 pm

1.12.3 - crashes on viewing mp4 (Ubuntu, Intel integrated GPU)

Post by ccombsdc »

When I view mp4s in XnViewMP 1.12.3 on my Dell Latitude with intel GPU (I am i7-6600u) running Ubuntu LTS 22.04, it crashes to desktop after double-clicking the file.

Effect: XnViewMP perishes ;_;

Steps to reproduce:
1. Navigate to a folder containing mp4s in XnViewMP
2. Thumbnails generate OK
3. Double-click to play
4. Application crashes

Here is the output from running xnview in a terminal during this process:

Code: Select all


[AVHWFramesContext @ 0x7feeb4053b00] Failed to read image from surface 0x4000003: 20 (the requested function is not implemented)
Error transferring the data to system memory: -5
Cannot map a video frame in ReadOnly mode!

some tea-leaf reading on other repos suggests that mdk-sdk 0.29/0.30 may be to blame?
ccombsdc
Posts: 5
Joined: Tue Nov 25, 2025 3:44 pm

Re: 1.12.3 - crashes on viewing mp4 (Ubuntu, Intel integrated GPU)

Post by ccombsdc »

Ooo, interesting update: I saw in another video-related thread the suggestion to try environment variable

Code: Select all

QT_XCB_GL_INTEGRATION=xcb_egl
This prevents the crash described in this bug report.

(I am on x11 not wayland btw)


for now I am making this change permanent in my /usr/share/applications/XnView.desktop:

BEFORE:

Code: Select all

Exec=xnview %F
AFTER:

Code: Select all

Exec=env QT_XCB_GL_INTEGRATION=xcb_egl xnview %F