Page 1 of 1

1.8.3 deb packaged version does not open JPEG XL

Posted: Wed Jan 15, 2025 11:57 pm
by lynxyxy
XnView: MP 1.8.3 64 bit (Linux) - Libformat 7.196
OS: Linux 64bit (debian testing)

After updating XnView 1.6.5 -> 1.8.3 I seem to still unable to open JPEG XL files. No mention of JXL format anywhere in preferences.

Actual behavior (bug): If I try to open jxl file in file browser or directly call xnview in console I get error window "Error" "File can't be loaded!". Nothing out of the ordinary in console output as far as I can tell:

Code: Select all

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
==> 1.000000  1.000000  91.793814  96.000000  (0)
XNVIEW restoreGeometry before : 640 480 
XNVIEW restoreGeometry after : 200 212 
ARG[] = /opt/XnView/XnView
ARG[] = /home/user/Games/XnView/New Folder/Bonus.jxl
libpng warning: iCCP: known incorrect sRGB profile
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 : 0x1e3d2dd0 
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 76'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 255'
@@@@@@@@@@
Create window finished
==> 200 
ThumbLoaderThread :: stop()
@@ BitmapResizeThread:: clear
MyView::change /home/user/Games/XnView/New Folder/Bonus.jxl 
@@ BitmapResizeThread:: clear
## Bitmap :: load 0 
###### GFF:load </home/user/Games/XnView/New Folder/Bonus.jxl>
@@ BitmapResizeThread:: clear
########################################
############### UPDATE MENU ############
########################################
## BaseViewWindow :: ~BaseViewWindow()
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
## BaseViewWindow :: ~BaseViewWindow() ok
AbstractViewWindow :: ~AbstractViewWindow()
BitmapLoadThread :: stop()
@@ BitmapResizeThread:: clear
@@ BitmapResizeThread:: clear
To reproduce:
1. Install deb package
2. Open jxl file with file browser, xdg-open or directly with /usr/bin/xnview

Expected behavior: It should work with JXL format.

If I try to use tgz packaged version - no such error occurs. It works fine with JXL format as far as I can tell.

Re: 1.8.3 deb packaged version does not open JPEG XL

Posted: Thu Jan 16, 2025 12:12 am
by lynxyxy
More info:
After checking /usr/bin/xnview (it is a shell script that starts /opt/XnView/XnView), I found that it is not symbolic link to /opt/XnView/xnview.sh, which I first assumed. So it does have different LD_LIBRARY_PATH and QT_PLUGIN_PATH variables.

Using /opt/XnView/xnview.sh works, /usr/bin/xnview does not.

Replacing /usr/bin/xnview with symbolic link to /opt/XnView/xnview.sh seems to fix issue.

Re: 1.8.3 deb packaged version does not open JPEG XL

Posted: Thu Jan 23, 2025 4:01 pm
by xnview
ok, thanks i'll fix it