XnView crashes with greyscale 32 bit XCF

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

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
blewbubbles
Posts: 4
Joined: Thu Aug 13, 2020 11:42 am

XnView crashes with greyscale 32 bit XCF

Post 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.)
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView crashes with greyscale 32 bit XCF

Post by xnview »

please send me a sample file
Pierre.
blewbubbles
Posts: 4
Joined: Thu Aug 13, 2020 11:42 am

Re: XnView crashes with greyscale 32 bit XCF

Post 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.
Last edited by blewbubbles on Thu Aug 13, 2020 7:18 pm, edited 1 time in total.
blewbubbles
Posts: 4
Joined: Thu Aug 13, 2020 11:42 am

Re: XnView crashes with greyscale 32 bit XCF

Post 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
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView crashes with greyscale 32 bit XCF

Post 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
Pierre.
blewbubbles
Posts: 4
Joined: Thu Aug 13, 2020 11:42 am

Re: XnView crashes with greyscale 32 bit XCF

Post 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!
Post Reply