Page 1 of 1

QOI textures cause the game to crash when used.

Posted: Thu Jun 13, 2024 4:30 pm
by sergeirocks100
Hello.

As far as i can tell, QOI textures crash the game when you attempt to use them, even though they're supposed to be supported.

I've tested it out on a variety of GZDoom versions, from 4.11.0 (when QOI texture support was first added), all the way up to 4.12.2, and in all of them, the game crashes with a "Trying to create zero size texture" error when you try to load a map that uses QOI textures.

Here's a demo link:

https://amel.pw/trevie/qoibug.pk3

In the demo, there are two test maps with PNG and QOI versions of the same two textures.

One of them is a simple texture i made in GIMP, and converted to QOI with ImageMagick. The other is kodim23.png/.qoi, from the test image set provided on the QOI website:

https://qoiformat.org/qoi_test_images.zip

Aside from the different format of the textures, both of the maps should look and behave identically to one another.

However, while the PNG test map opens up and works as expected, the QOI test map, again, causes the game to crash with the above mentioned error.

UPDATE: In 4.13, this bug still occurs.