Copying (parts of) image in XnView causes KDE to freeze after closing XnView

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

Moderators: xnview, Dreamer

Konzertheld
Posts: 58
Joined: Sun Feb 27, 2011 9:43 pm

Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by Konzertheld »

Hi,

I encounter the following reproducible behaviour that I think is caused by something in XnView MP:

When I open an image with XnView, select a part of that image and copy it (Ctrl + C), then close XnView, KDE Plasma freezes for a couple seconds. Usually I am in Dolphin in a folder with image files and I immediately notice I can't select another file. Plasma always unfreezes after a couple seconds.

This happens in 100% of the cases where I copied something, sometimes also when I just used XnView to look at images. Therefore I am not sure if it is related to the clipboard. However, the content of the clipboard is gone after I closed XnView.

The images are of normal size (less than 5 MB JPG).

I cannot reproduce this behaviour on the same system with another image viewer so I guess XnView does something or doesn't do something that is causing this, but unfortunately, I don't really know what to check. I'm happy to help figure it out if you have any suggestions where to investigate and I appreciate any help.

This is XnViewMP 1.8.6 on SteamOS, which is based on Arch Linux.
User avatar
xnview
Author of XnView
Posts: 48859
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by xnview »

if you don't close XnView, no problem?
Konzertheld
Posts: 58
Joined: Sun Feb 27, 2011 9:43 pm

Re: Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by Konzertheld »

Correct.

It also doesn't matter how much time passes after the copying. The freezing always happens immediately after closing XnView / while XnView is closing.
Konzertheld
Posts: 58
Joined: Sun Feb 27, 2011 9:43 pm

Re: Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by Konzertheld »

Addition: There is another circumstance that I can reproduce that might help.

1. Open XnView with an image and copy something
2. Open a second XnView with another image
3. Close the second XnView
4. KDE Plasma will freeze
5. Close the first XnView where you copied something
6. The freeze will not occur again
User avatar
xnview
Author of XnView
Posts: 48859
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by xnview »

i'm not able to reproduce on KDE plasma 6.1.5
Konzertheld
Posts: 58
Joined: Sun Feb 27, 2011 9:43 pm

Re: Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by Konzertheld »

I'd like to add an update. I get the freeze very frequently now. Copying etc is no longer necessary. It doesn't occur always, but more than half of the time when I close XnView the freeze occurs. I also confirmed that this is not specific to the Flatpak, it also happens with the package from the AUR natively installed.
Konzertheld
Posts: 58
Joined: Sun Feb 27, 2011 9:43 pm

Re: Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by Konzertheld »

This issue is still relevant. I checked the journal to figure out if it is related to something else. The last entry suggests that no, it is XnView eating up my system.

I should probably mention that this is a system using X11.

Code: Select all

Okt 04 00:37:17 steamdeck-arch xnviewmp[289785]: XNVIEW restoreGeometry before : 640 480
Okt 04 00:37:17 steamdeck-arch xnviewmp[289785]: XNVIEW restoreGeometry after : 1918 1114
Okt 04 00:37:17 steamdeck-arch xnviewmp[289785]: ARG[] = /opt/xnviewmp/XnView
Okt 04 00:37:17 steamdeck-arch xnviewmp[289785]: ARG[] = /home..REDACTED....jpg
Okt 04 00:37:17 steamdeck-arch xnviewmp[289785]: #### onCurrentChanged 0
Okt 04 00:37:17 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:17 steamdeck-arch xnviewmp[289785]: QThread::setPriority: Cannot set priority, thread is not running
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 33540
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: #### onCurrentChanged 7
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: MyBitmapView :: mousePressEvent
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 79
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 96
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 28574
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 674
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 10  IHDR 13
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 29  pHYs 9
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 3e  tIME 7
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 51  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 205d  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 4069  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 6075  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 8081  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: a08d  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: c099  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: e0a5  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 100b1  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 120bd  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 140c9  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 160d5  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 180e1  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 1a0ed  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 1c0f9  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 1e105  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 20111  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 2211d  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 24129  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 26135  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 28141  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 2a14d  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 2c159  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 2e165  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 30171  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 3217d  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 34189  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 36195  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 381a1  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 3a1ad  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 3c1b9  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 3e1c5  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 401d1  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 421dd  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 441e9  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 461f5  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 48201  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 4a20d  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 4c219  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 4e225  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 50231  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 5223d  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 54249  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 56255  IDAT 8192
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 58261  IDAT 6560
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 100
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 136
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 35337
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 32266
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 31973
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 34044
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 34479
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 7246
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 10413
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 7133
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 7105
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 96
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: BLOB length 6822
Okt 04 00:37:21 steamdeck-arch xnviewmp[289785]: 101  Unregistered schema namespace URI
Okt 04 00:37:26 steamdeck-arch xnviewmp[289785]: QMutex: destroying locked mutex
Okt 04 00:37:26 steamdeck-arch kwin_x11[1074]: XCB error: 3 (BadWindow), sequence: 42123, resource id: 140509191, major code: 129 (SHAPE), minor code: 3 (Combine)
Okt 04 00:37:26 steamdeck-arch kwin_x11[1074]: XCB error: 3 (BadWindow), sequence: 42124, resource id: 140509191, major code: 129 (SHAPE), minor code: 3 (Combine)
Okt 04 00:37:26 steamdeck-arch kwin_x11[1074]: XCB error: 3 (BadWindow), sequence: 42197, resource id: 140509191, major code: 129 (SHAPE), minor code: 3 (Combine)
Okt 04 00:37:26 steamdeck-arch kwin_x11[1074]: XCB error: 3 (BadWindow), sequence: 42198, resource id: 140509191, major code: 129 (SHAPE), minor code: 3 (Combine)
Okt 04 00:37:26 steamdeck-arch xnviewmp[289785]: BLOB length 7812
Okt 04 00:37:26 steamdeck-arch xnviewmp[289785]: ## BaseViewWindow :: ~BaseViewWindow()
Okt 04 00:37:26 steamdeck-arch xnviewmp[289785]: ## BaseViewWindow :: ~BaseViewWindow() ok
Okt 04 00:37:26 steamdeck-arch systemd[931]: [email protected]: Consumed 2.035s CPU time over 9.137s wall clock time, 69.8M memory peak.
Konzertheld
Posts: 58
Joined: Sun Feb 27, 2011 9:43 pm

Re: Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by Konzertheld »

KDE community members pointed me to

Code: Select all

QMutex: destroying locked mutex
. Looks like that should be the clue to what's causing the hangs.
User avatar
xnview
Author of XnView
Posts: 48859
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by xnview »

Konzertheld wrote: Sat Oct 03, 2026 10:41 pm This issue is still relevant. I checked the journal to figure out if it is related to something else. The last entry suggests that no, it is XnView eating up my system.
do you have tried 1.12.1?
Konzertheld
Posts: 58
Joined: Sun Feb 27, 2011 9:43 pm

Re: Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by Konzertheld »

xnview wrote: Sun Oct 04, 2026 6:42 am do you have tried 1.12.1?
Yes, the log I posted above is from after the upgrade to 1.12.1.
User avatar
xnview
Author of XnView
Posts: 48859
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by xnview »

Konzertheld wrote: Sun Oct 04, 2026 12:56 pm
xnview wrote: Sun Oct 04, 2026 6:42 am do you have tried 1.12.1?
Yes, the log I posted above is from after the upgrade to 1.12.1.
which SteamOS do you use?
Konzertheld
Posts: 58
Joined: Sun Feb 27, 2011 9:43 pm

Re: Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by Konzertheld »

xnview wrote: Mon Oct 05, 2026 4:11 pm which SteamOS do you use?
The last version of SteamOS I used says:
VERSION_ID=3.8.16
BUILD_ID=20260716.1

I have meanwhile switched to pure Arch. The log message I posted occured on Arch. I use KDE Plasma, X11 and KWin, with KDE Plasma 6.7.5 and KDE Frameworks 6.30.0. Qt Version is 6.11.2.

I have the same issue on Manjaro, too.
User avatar
xnview
Author of XnView
Posts: 48859
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Copying (parts of) image in XnView causes KDE to freeze after closing XnView

Post by xnview »

Konzertheld wrote: Mon Oct 05, 2026 4:25 pm I have the same issue on Manjaro, too.
I have tried on Manjaro 26 (KDE Plasma, X11), & XnView 1.12.1. I open an image file, copy, quit and no lock :(