Page 1 of 1
XnView crashes with greyscale 32 bit XCF
Posted: Thu Aug 13, 2020 12:20 pm
by blewbubbles
XnView crashes in the directory where there is a gimp XCF file present which is saved as grayscale 32 bit.
To reproduce the crash, please create a file in Gimp with the settings, Image --> Mode -> Greyscale, and Image --> Precision -> 32 bit integer or 32 bit floating point. Save the file in a directory, and try to open the directory in XnView. XnView will crash. Tested in XnView 0.9.6 and 0.9.4. Linux.
In Gimp, when the XCF file is changed to Greyscale 16 bit, and saved, XnView will open the folder and show a preview of the file.
(It is probably better to save greyscale images as 16 bit, but it needs to be pointed out that XnView will crash whenever a greyscale 32 bit file is present.)
Re: XnView crashes with greyscale 32 bit XCF
Posted: Thu Aug 13, 2020 2:05 pm
by xnview
please send me a sample file
Re: XnView crashes with greyscale 32 bit XCF
Posted: Thu Aug 13, 2020 7:13 pm
by blewbubbles
Hi, and sorry but the forum interface wouldn't allow the extension. (EDIT) So I'm sending the file via FilePush. Hope this helps
https://filepush.co/4Zyx/greyscale_32.xcf
The file is saved as stated above. Gimp XCF Greyscale, 32 bit. Thanks.
Re: XnView crashes with greyscale 32 bit XCF
Posted: Fri Aug 14, 2020 5:30 pm
by blewbubbles
Pardon me,
I've done a few more tests and found that the crash is not necessarily caused by the 32 bit greyscale combination as such. I found another image on my desktop that is saved like that, without making Xnview crash, however, it doesn't show a preview, like other multi-layered XCF's. So, when I change this image from greyscale 32 bit, to greyscale 16 bit and save it, this image then makes Xnview crash. Running Xnview from the terminal, it gives the following output from the moment the file, named orion.xcf, is saved with new settings:
Code: Select all
############################################ onTimerDirectoryChanged 1
######## checkChildren
############################################ onTimerDirectoryChanged ok
CheckContent...
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
### ThumbLoaderThread :: setFileList(3)
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 2ac0910
CHECK <0>
######ThumbLoaderThread :: forever : 2ac0910
** start condition wait
############################################ onTimerDirectoryChanged 1
######## checkChildren
############################################ onTimerDirectoryChanged ok
CheckContent...
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
### ThumbLoaderThread :: setFileList(3)
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 2ac0910
CHECK <1>
### START 3
######ThumbLoaderThread :: start : 1 -1 -1
LOAD BITMAP </home/user/Desktop/astro_images/orion.xcf>
munmap_chunk(): invalid pointer
Aborted
Re: XnView crashes with greyscale 32 bit XCF
Posted: Mon Aug 17, 2020 8:06 am
by xnview
blewbubbles wrote: Thu Aug 13, 2020 7:13 pm
Hi, and sorry but the forum interface wouldn't allow the extension. (EDIT) So I'm sending the file via FilePush. Hope this helps
https://filepush.co/4Zyx/greyscale_32.xcf
The file is saved as stated above. Gimp XCF Greyscale, 32 bit. Thanks.
Ok, i can reproduce the crash
Re: XnView crashes with greyscale 32 bit XCF
Posted: Sun Aug 23, 2020 12:00 pm
by blewbubbles
Okay, I've tested version 0.96.5 64bits (Aug 18 2020), and now the application doesn't crash when XCF greyscale images are present in the opened directory. Thanks!