Hello Guest

Loading optimized image in GLFW causes JVM crash [RESOLVED]

  • 1 Replies
  • 319 Views
Loading optimized image in GLFW causes JVM crash [RESOLVED]
« 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
Code: [Select]
            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/
« Last Edit: September 27, 2019, 23:27:21 by Moocow9m »

Re: Loading optimized image in GLFW causes JVM crash
« Reply #1 on: September 27, 2019, 23:26:21 »
This is now fixed, forced comp to be 4 and now it works