Page 1 of 1

XnView MP 1.8.6 Linux 64bit TAR: Trying to export JPEG w/ JPEG-LI results in crash

Posted: Fri Feb 21, 2025 8:53 pm
by BloodySword
Subject: XnView MP 1.8.6 Linux 64bit TAR: Trying to save JPEG w/ JPEG-LI results in crash

XnView: XnView MP 1.8.6 Linux 64bit TAR
OS: Fedora 41 KDE Spin | Wayland Session

XnView crashes when trying to export JPEG with JPEG-LI checkbox enabled.

Effect: XnView crashes

To reproduce:
1. Browse a folder and open a picture
2. Menu File -> Export...
3. Select JPEG tab
4. Enable JPEG-LI checkbox, other settings do not matter
Actual behaviour (bug): XnView crashes :bug:

Expected behaviour: No crash, JPEG image is saved using JPEG-LI encoder.

Log:

Code: Select all

╭─kyo at bedroom-pc in /opt
╰─○ ./XnView/xnview.sh                                                                                                                                                                   0s 
0.29.0 (git 9b548e5) - Multimedia Development Kit. Copyright (c) 2016-2024 WangBin(QtAV author) <wbsecg1 at gmail.com>
Build for: Linux x86_64; glibc2.24/2.40 libc++190000; Clang19.0.0 (++20240702031426+43b988821423-1~exp1~20240702151527.1781); 04:26:03 Jul  3 2024
QFont::fromString: Invalid description 'ChicagoFLF,10,-1,5,500,0,0,0,0,0,0,0,0,0,0,1,Regular'
QFont::fromString: Invalid description 'DejaVu Sans Mono,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1'
QFont::fromString: Invalid description 'ChicagoFLF,10,-1,5,500,0,0,0,0,0,0,0,0,0,0,1,Regular'
QFont::fromString: Invalid description 'ChicagoFLF,9,-1,5,500,0,0,0,0,0,0,0,0,0,0,1,Regular'
==> 2.000000  2.000000  51.841025  96.000000  (1)
XNVIEW restoreGeometry before : 640 480 
XNVIEW restoreGeometry after : 959 511 
ARG[] = /opt/XnView/XnView
XNVIEW SIZE 959 511 


########### BrowserWindow :: BrowserWindow 

MENU install : 0x248341d0 
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
QPngHandler: Failed to parse ICC profile
libpng warning: iCCP: known incorrect sRGB profile
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 178'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 255'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 178'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 255'
########### BrowserWindow :: ok create (640 480)


###### CHECK CHILDRENS 0
  ###### CHECK CHILDRENS ok (0)

QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 178'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 255'
BrowserWindow :: changeVisibility()
BrowserWindow :: changeVisibility()
BrowserWindow :: changeVisibility()
########### BrowserWindow :: restoreState (959 511)
ThumbLoaderThread :: stop()
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 178'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 255'
BrowserWindow :: restoreState => 959 511 
                              => 697 268 
BrowserWindow :: restoreState ok => 697 268 
XNVIEW SIZE ok 959 511 


###### CHECK CHILDRENS 0
  ###### CHECK CHILDRENS ok (0)

sizeHints : 203 
sizeHints : 105 
### BrowserWindow :: onStart go
#### onCategoryDockVisible (1)
########### BrowserWindow :: restoreState (1920 996)
sizeHints : 345 
ThumbLoaderThread :: stop()
BrowserWindow :: restoreState => 1920 996 
                              => 1520 910 
BrowserWindow :: restoreState ok => 1520 910 
### BrowserWindow :: onStart
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
BrowserWindow :: onStart 2
setPathname </mnt/data/Pictures/>
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(0)
### ThumbLoaderThread :: setFileList() wait
######ThumbLoaderThread :: run : 24a02720 
######ThumbLoaderThread :: forever : 24a02720 
 ** start condition wait
### ThumbLoaderThread :: setFileList() after wait
ThumbLoaderThread :: stop()
 ** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
## OPEN FOLDER
######ThumbLoaderThread :: forever 2 : 24a02720 
CHECK <0> 
######ThumbLoaderThread :: forever : 24a02720 
 ** start condition wait
## Check folder
  ## Check companion  0
  ## Check companion ok  0
  ## OPEN DB FOLDER ok  0
  ## UPDATE DB FOLDER ok  4
  ## OPEN FOLDER ok  4
## updateLabel  4
## updateLabels ok  4
ThumbLoaderThread :: stop()
SORT the list...
STD::SORT... 4
  STL::SORT... 0
SORT the list... 0 
SORT the list... 0 
BitmapLoadThread :: stop()
@@ BitmapResizeThread:: clear
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
QPngHandler: Failed to parse ICC profile
Create children /
Create children /mnt/
Create children /mnt/data/
Create children /mnt/data/Pictures/
## OPEN FOLDER done  8
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(2)
ThumbLoaderThread :: stop()
 ** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 24a02720 
CHECK <1> 
### BrowserWindow :: finish
### START 2 
######ThumbLoaderThread :: start : 1     -1 -1
######ThumbLoaderThread :: forever : 24a02720 
 ** start condition wait
sizeHints : 345 
sizeHints : 345 
SORT the list...
STD::SORT... 4
  STL::SORT... 0
SORT the list... 0 
SORT the list... 0 
### ThumbLoaderThread :: updateFileList
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: updateFileList ok
sizeHints : 345 
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(2)
ThumbLoaderThread :: stop()
 ** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 24a02720 
CHECK <1> 
### START 2 
######ThumbLoaderThread :: start : 1     -1 -1
######ThumbLoaderThread :: forever : 24a02720 
 ** start condition wait
SORT the list...
STD::SORT... 4
  STL::SORT... 0
SORT the list... 0 
SORT the list... 0 
### ThumbLoaderThread :: updateFileList
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: updateFileList ok
sizeHints : 345 
######### CategoryModel :: checkAndSave()
LOAD INFO </mnt/data/Pictures/Wallapers>
  LOAD INFO </mnt/data/Pictures/Wallapers> ok
######### CategoryModel :: checkAndSave()
BitmapLoadThread :: stop()
@@ BitmapResizeThread:: clear
## onItemPressed
setPathname </mnt/data/Pictures/Wallapers/>
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(0)
ThumbLoaderThread :: stop()
 ** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 24a02720 
CHECK <0> 
######ThumbLoaderThread :: forever : 24a02720 
 ** start condition wait
## OPEN FOLDER
## Check folder
  ## Check companion  0
  ## Check companion ok  0
  ## OPEN DB FOLDER ok  0
  ## UPDATE DB FOLDER ok  4
  ## OPEN FOLDER ok  4
## updateLabel  4
## updateLabels ok  4
ThumbLoaderThread :: stop()
######### CategoryModel :: checkAndSave()
SORT the list...
STD::SORT... 4
  STL::SORT... 0
SORT the list... 0 
SORT the list... 0 
BitmapLoadThread :: stop()
@@ BitmapResizeThread:: clear
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
QPngHandler: Failed to parse ICC profile
Create children /mnt/data/Pictures/Wallapers/
## UPDATE ==> (Wallapers) 
## OPEN FOLDER done  6
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(5)
ThumbLoaderThread :: stop()
 ** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 24a02720 
CHECK <4> 
sizeHints : 345 
### START 5 
######ThumbLoaderThread :: start : 4     -1 -1
LOAD BITMAP </mnt/data/Pictures/Wallapers/Bianca Fan Art Galaxy 4k.png>
######### CategoryModel :: checkAndSave()
BitmapLoadThread :: stop()
@@ BitmapResizeThread:: clear
######### CategoryModel :: checkAndSave()
BitmapLoadThread :: stop()
@@ BitmapResizeThread:: clear
GFF :: LoadThumbnail : 590 332  (0) 
LOADED & CREATED
BLOB length 100 
LOAD BITMAP </mnt/data/Pictures/Wallapers/tear_wp.png>
GFF :: LoadThumbnail : 590 332  (0) 
LOADED & CREATED
LOAD BITMAP </mnt/data/Pictures/Wallapers/Binaca Tech Tank Collage WP 4k.png>
GFF :: LoadThumbnail : 590 332  (0) 
LOADED & CREATED
LOAD BITMAP </mnt/data/Pictures/Wallapers/Bianca_Tech_Wallpaper_4K_16by9.png>
GFF :: LoadThumbnail : 590 332  (0) 
LOADED & CREATED
######ThumbLoaderThread :: forever : 24a02720 
 ** start condition wait
SORT the list...
STD::SORT... 4
  STL::SORT... 0
SORT the list... 0 
SORT the list... 0 
### ThumbLoaderThread :: updateFileList
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: updateFileList ok
sizeHints : 345 
######### CategoryModel :: checkAndSave()
LOAD INFO </mnt/data/Pictures/Wallapers/Bianca Fan Art Galaxy 4k.png>
10  IHDR 13 
29  IDAT 9564057 
  LOAD INFO </mnt/data/Pictures/Wallapers/Bianca Fan Art Galaxy 4k.png> ok


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

######### CategoryModel :: checkAndSave()
## onItemPressed
QObject::connect: No such slot AbstractViewWindow::onPagePrevious()
QObject::connect: No such slot AbstractViewWindow::onPageNext()
QObject::connect: No such slot AbstractViewWindow::onPageFirst()
QObject::connect: No such slot AbstractViewWindow::onPageLast()
QObject::connect: No such slot AbstractViewWindow::onUseSmooth()
QObject::connect: No such slot AbstractViewWindow::onNormalize2()
QObject::connect: No such slot AbstractViewWindow::onAlign()
MENU install : 0x2510a630 
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 178'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 255'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 178'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 255'
@@@@@@@@@@
Create window finished
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 178'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 255'
==> 1920 
ThumbLoaderThread :: stop()
@@ BitmapResizeThread:: clear
MyView::change /mnt/data/Pictures/Wallapers/Bianca Fan Art Galaxy 4k.png 
@@ BitmapResizeThread:: clear
## Bitmap :: load 0 
###### GFF:load </mnt/data/Pictures/Wallapers/Bianca Fan Art Galaxy 4k.png>
####LOAD </mnt/data/Pictures/Wallapers/Bianca Fan Art Galaxy 4k.png>  0 
@@ BitmapResizeThread:: clear
### resetViewport (0x250fdbc0)  ==> 1920 908  (1614 908) 0 0
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
SORT the list...
STD::SORT... 4
  STL::SORT... 0
SORT the list... 0 
SORT the list... 0 
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(4)
### ThumbLoaderThread :: setFileList() wait
######ThumbLoaderThread :: run : 250ed3e0 
######ThumbLoaderThread :: forever : 250ed3e0 
 ** start condition wait
### ThumbLoaderThread :: setFileList() after wait
ThumbLoaderThread :: stop()
 ** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 250ed3e0 
CHECK <0> 
######ThumbLoaderThread :: forever : 250ed3e0 
 ** start condition wait
setCurrentFilename </mnt/data/Pictures/Wallapers/Bianca Fan Art Galaxy 4k.png>
#### onCurrentChanged 0 
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 178'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 255'
### ThumbLoaderThread :: setFirstItemToLoad
 ** start condition wake one 3
### ThumbLoaderThread :: setFirstItemToLoad ok
######ThumbLoaderThread :: forever 2 : 250ed3e0 
CHECK <0> 
######ThumbLoaderThread :: forever : 250ed3e0 
 ** start condition wait
########################################
############### UPDATE MENU ############
########################################
########################################
############### UPDATE MENU ############
########################################
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(4)
ThumbLoaderThread :: stop()
 ** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 250ed3e0 
CHECK <0> 
######ThumbLoaderThread :: forever : 250ed3e0 
 ** start condition wait
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
QObject::connect: Cannot connect (nullptr)::settingsChanged() to DlgExport::onUpdate()
@@ BitmapResizeThread:: clear
@@ BitmapResizeThread:: clear
#### 0x25381390 : 278 
### resetViewport (0x2536a2b0)  ==> 100 30  (53 30) 0 0
#### 0x25381390 : 1698 
### resetViewport (0x2536a2b0)  ==> 326 196  (326 183) 0 0
/opt/XnView/XnView: symbol lookup error: /opt/XnView/Plugins/libJPEGXL.so: undefined symbol: _ZN3hwy15GetChosenTargetEv
╭─kyo at bedroom-pc in /opt
╰─○                                                                                                                                                                                     21s 
OS and hardware details:

Code: Select all

             .',;::::;,'.                 kyo@bedroom-pc
         .';:cccccccccccc:;,.             --------------
      .;cccccccccccccccccccccc;.          OS: Fedora Linux 41 (KDE Plasma) x86_64
    .:cccccccccccccccccccccccccc:.        Kernel: Linux 6.12.13-200.fc41.x86_64
  .;ccccccccccccc;.:dddl:.;ccccccc;.      Uptime: 4 hours, 49 mins
 .:ccccccccccccc;OWMKOOXMWd;ccccccc:.     Packages: 3059 (rpm)
.:ccccccccccccc;KMMc;cc;xMMc;ccccccc:.    Shell: zsh 5.9
,cccccccccccccc;MMM.;cc;;WW:;cccccccc,    Display (PHL 436M6VBP): 3840x2160 @ 60 Hz (as 1920x1080) in 43" [External]
:cccccccccccccc;MMM.;cccccccccccccccc:    DE: KDE Plasma 6.3.0
:ccccccc;oxOOOo;MMM000k.;cccccccccccc:    WM: KWin (Wayland)
cccccc;0MMKxdd:;MMMkddc.;cccccccccccc;    WM Theme: Breeze
ccccc;XMO';cccc;MMM.;cccccccccccccccc'    Theme: Breeze (Dark) [Qt], Breeze [GTK3]
ccccc;MMo;ccccc;MMW.;ccccccccccccccc;     Icons: breeze-dark [Qt], breeze-dark [GTK3/4]
ccccc;0MNc.ccc.xMMd;ccccccccccccccc;      Font: ChicagoFLF (10pt, Regular) [Qt], ChicagoFLF Medium (10pt) [GTK3/4]
cccccc;dNMWXXXWM0:;cccccccccccccc:,       Cursor: HighContrast (24px)
cccccccc;.:odl:.;cccccccccccccc:,.        Terminal: konsole 24.12.2
ccccccccccccccccccccccccccccc:'.          Terminal Font: DejaVu Sans Mono (12pt)
:ccccccccccccccccccccccc:;,..             CPU: AMD Ryzen 7 5700G (16) @ 4.67 GHz
 ':cccccccccccccccc::;,.                  GPU: AMD Radeon Vega Series / Radeon Vega Mobile Series [Integrated]
                                          Memory: 6.71 GiB / 58.72 GiB (11%)
                                          Swap: 0 B / 104.00 GiB (0%)
                                          Disk (/): 38.73 GiB / 256.00 GiB (15%) - btrfs
                                          Disk (/mnt/data): 8.57 GiB / 579.01 GiB (1%) - btrfs
                                          Local IP (enp1s0f0u2): 192.168.0.3/24
                                          Locale: en_US.UTF-8

Re: XnView MP 1.8.6 Linux 64bit TAR: Trying to export JPEG w/ JPEG-LI results in crash

Posted: Thu Feb 27, 2025 3:05 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: XnView MP 1.8.6 Linux 64bit TAR: Trying to export JPEG w/ JPEG-LI results in crash

Posted: Sat Mar 08, 2025 4:40 pm
by AjorgeDErosario
me pasa lo mismo, en version pasada a la 1.8.6 venia usando la conversion a jpeg-li sin problemas.
The same thing happens to me, in the version past 1.8.6 I was using the conversion to jpeg-li without problems.

XnView MP 1.8.6 Linux 64bit:
https://download.xnview.com/XnViewMP-linux-x64.deb
https://download.xnview.com/XnView_MP.g ... 4.AppImage
y del repositorio de kubuntu de flatpak
and from the flatpak kubuntu repository

tambien probe xnconvert y no se sale la aplicacion, pero da error.
I also tried xnconvert and the application does not exit, but gives an error.
https://download.xnview.com/XnConvert-linux-x64.deb

in terminal:
$ xnview
...
...
....
..
/opt/XnView/XnView: symbol lookup error: /opt/XnView/Plugins/libJPEGXL.so: undefined symbol: _ZN3hwy15GetChosenTargetEv


####
Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.8.0-55-generic (64-bit)
Graphics Platform: X11
Processors: 2 × AMD Phenom(tm) II X2 555 Processor
Memory: 11.7 GiB of RAM
Graphics Processor: VERDE
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: GA-880GM-UD2H
####

Re: XnView MP 1.8.6 Linux 64bit TAR: Trying to export JPEG w/ JPEG-LI results in crash

Posted: Thu Mar 27, 2025 8:59 am
by xnview
This problem is supposed to be fixed in XnView MP 1.8.7. Please check and confirm the bug fix here.

Re: XnView MP 1.8.6 Linux 64bit TAR: Trying to export JPEG w/ JPEG-LI results in crash

Posted: Tue Apr 08, 2025 2:44 am
by AjorgeDErosario
in XnView MP 1.8.7 no more crash in jpegli convert, but the image is green!, with convert to color space XYB

Re: XnView MP 1.8.6 Linux 64bit TAR: Trying to export JPEG w/ JPEG-LI results in crash

Posted: Tue Apr 08, 2025 5:42 am
by xnview
AjorgeDErosario wrote: Tue Apr 08, 2025 2:44 am in XnView MP 1.8.7 no more crash in jpegli convert, but the image is green!, with convert to color space XYB
do you have enabled 'use icc profile'

Re: XnView MP 1.8.6 Linux 64bit TAR: Trying to export JPEG w/ JPEG-LI results in crash

Posted: Wed Apr 09, 2025 1:50 am
by AjorgeDErosario
The icc profile isn't the problem, the image is still green... Thank you Pierre
But I notice that when I open it with another program, it looks fine!! (Gwenview or Chromium), that is, XNVIEW MP encodes it correctly, but the XNVIEW MP viewer opens it green.

Re: XnView MP 1.8.6 Linux 64bit TAR: Trying to export JPEG w/ JPEG-LI results in crash

Posted: Wed Apr 09, 2025 7:09 am
by xnview
please send the output file?

Re: XnView MP 1.8.6 Linux 64bit TAR: Trying to export JPEG w/ JPEG-LI results in crash

Posted: Thu Apr 10, 2025 10:57 am
by AjorgeDErosario
When uploading the image, it also looks correct in the forum, so I take a screenshot of how it looks in xnview mp in kubuntu

Re: XnView MP 1.8.6 Linux 64bit TAR: Trying to export JPEG w/ JPEG-LI results in crash

Posted: Fri Apr 11, 2025 6:15 am
by xnview
when color profile is not enabled, it's like your screenshot

Re: XnView MP 1.8.6 Linux 64bit TAR: Trying to export JPEG w/ JPEG-LI results in crash

Posted: Sat Apr 12, 2025 3:06 am
by AjorgeDErosario
When the color profile isn't enabled, it looks like your screenshot.
Yes, you're right. I used to set the ICC profile, but in the jpeg-li format settings, and it wasn't there.
Now I've tested it and it works fine. When I activate it in: Settings => General => Color Management => Use ICC profile for the monitor (very slow).
Thanks, Pierre. You gave me the right direction, and I didn't realize it. Your help is very useful.