LWJGL Forum

Programming => General Java Game Development => Topic started by: Moocow9m on September 25, 2019, 19:48:52

Title: Loading optimized image in GLFW causes JVM crash [RESOLVED]
Post by: Moocow9m on September 25, 2019, 19:48:52
Attached you will find the java crash and optimized image.
Repository containing a test that causes the the crash(commented out): https://github.com/Moocow9m/Viken.git
Test File: https://github.com/Moocow9m/Viken/blob/master/src/test/kotlin/com/wavproductions/viken/Test.kt
Exact code that crashes: Viken.kt:247            glfwSetWindowIcon(window.id, icon)

Any reasons explaining why the image causes this and possible fixes are appreciated!

Note: the second image in the repo(original) works fine. And Image was optimized using https://tinypng.com/
Title: Re: Loading optimized image in GLFW causes JVM crash
Post by: Moocow9m on September 27, 2019, 23:26:21
This is now fixed, forced comp to be 4 and now it works