Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

JVM crash invoking some SDL Library function #344

Open
arnzel opened this issue Mar 22, 2024 · 0 comments
Open

JVM crash invoking some SDL Library function #344

arnzel opened this issue Mar 22, 2024 · 0 comments

Comments

@arnzel
Copy link

arnzel commented Mar 22, 2024

Hi i tried ton run some old dos game The Clou (https://github.com/vcosta/derclou) with jnr-ffi. This game use SDL libary for graphics and other functions (https://www.libsdl.org/) .

When i try to run it seems to it is failing when caling the sdl function "Blit_3or4_to_3or4__same_rgb"

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libSDL2-2.0.0.dylib+0x86367] Blit_3or4_to_3or4__same_rgb+0x1ff
C [libSDL2-2.0.0.dylib+0x6c4ac] SDL_SoftBlit+0x135
C [libSDL2-2.0.0.dylib+0xa0725] SDL_ConvertPixels_REAL+0x2b4
C [base.so+0x12651] gfxSetRGB+0x91
C [base.so+0x12012] gfxInit+0x6f2
C [base.so+0x8266] main+0x336

Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000010927d128
Exception Codes: 0x0000000000000002, 0x000000010927d128

Maybe you can help me to understand where the problem can be. I have completely no idea if this is a problem of the JVM,jnr-ffi or the sdl library.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant