-
Notifications
You must be signed in to change notification settings - Fork 2
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
JNIUlBitmap.nativeUnlockPixels throws JNI Exception #2
Comments
This makes the error not occur. NioUltralightBuffer lock = new NioUltralightBuffer(bitmap.lockPixels().asByteBuffer()); In the docs it says:
So when I close the buffer: lock.close(); It should unlock the pixels right? But it doesn't seem like it unlocks the pixels. (I think I'm very wrong here so please correct me, I don't know what I'm doing.) |
The problem is in the JNI code. Your code to wrap the buffer into a |
Sorry. It seems like the error didn't occur because @Override
public void close() {
/* no-op */
} Does the error occur because there's no So do I have to wait until the dev fixes this? Or is there a workaround? |
Calling UltralightBitmapSurface surface = (UltralightBitmapSurface) view.surface();
UltralightBuffer lock = surface.lockPixels();
// do stuff here
lock.close(); |
Hi,
I am trying to get a bitmap of the surface and copy that to some texture. Here's the code
However, the above code throws this JNI exception:
Caused by: java.lang.UnsatisfiedLinkError: 'void net.janrupf.ujr.platform.jni.impl.JNIUlBitmap.nativeUnlockPixels(byte[])'
The text was updated successfully, but these errors were encountered: