Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Minecraft singleplayer segfaults on RVVM framebuffer recycle #4

Open
LekKit opened this issue Feb 6, 2025 · 0 comments
Open

Minecraft singleplayer segfaults on RVVM framebuffer recycle #4

LekKit opened this issue Feb 6, 2025 · 0 comments
Labels
blocked on bug Something isn't working help wanted Extra attention is needed rvvm issue Issue caused by librvvm

Comments

@LekKit
Copy link
Owner

LekKit commented Feb 6, 2025

Symptoms

  • DisplayManager (Owned by client thread) doesn't give up Framebuffer references before the server thread destroys the machine
  • Recent RVVM JNI bindings cause the framebuffer to be recycled immediately
  • Crash on access to recycled framebuffer VMA from Java side via a still-living ByteBuffer

Solutions

Improve RVVM JNI framebuffer state recycling logic (Instead of freeing on RVVM side, implement cleaner callback in Direct ByteBuffer handed off to Java code?)

@Kamillaova do you perhaps have a good idea how to implement direct ByteBuffer cleanup callback into JNI C side?

@LekKit LekKit added blocked on bug Something isn't working help wanted Extra attention is needed rvvm issue Issue caused by librvvm labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked on bug Something isn't working help wanted Extra attention is needed rvvm issue Issue caused by librvvm
Projects
None yet
Development

No branches or pull requests

1 participant