CreedVI / Raylib-J

Handmade Java binding for Raylib
zlib License
97 stars 16 forks source link

JRE crashes after closing out window #6

Closed CreedVI closed 3 years ago

CreedVI commented 3 years ago

While window is responsive (See issue #5) if you close the window JRE will crash and produce an error log and core dump.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f4f4f9de0d0, pid=16970, tid=16971
#
# JRE version: OpenJDK Runtime Environment (15.0.1+9) (build 15.0.1+9-18)
# Java VM: OpenJDK 64-Bit Server VM (15.0.1+9-18, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  0x00007f4f4f9de0d0
#
CreedVI commented 3 years ago

After moving core.CloseWindow() from the end of the Basic Shapes example to the end of core.WindowShouldClose() the issue was resolved. Will be pushed to the repo with the next update.