Sketch crashing: IllegalStateException

Dear All,

I’m getting the following and don’t understand at all what’s happening - I think it is to do with try to play back several videos?

From the console

Mar 17, 2023 11:07:14 PM com.sun.jna.Native$1 uncaughtException
WARNING: JNA: Callback org.freedesktop.gstreamer.elements.AppSink$2@e7f521c threw the following exception
java.lang.IllegalStateException: Native object has been disposed

It goes on …

at org.freedesktop.gstreamer.glib.NativeObject.getRawPointer(NativeObject.java:119)
	at org.freedesktop.gstreamer.glib.Natives.getRawPointer(Natives.java:178)
	at org.freedesktop.gstreamer.lowlevel.GTypeMapper$2.toNative(GTypeMapper.java:73)
	at com.sun.jna.Function.convertArgument(Function.java:521)
	at com.sun.jna.Function.invoke(Function.java:345)
	at com.sun.jna.Library$Handler.invoke(Library.java:265)
	at jdk.proxy1/jdk.proxy1.$Proxy21.gst_buffer_unmap(Unknown Source)
	at org.freedesktop.gstreamer.Buffer.unmap(Buffer.java:121)
	at processing.video.Movie$NewSampleListener.newSample(Unknown Source)
	at org.freedesktop.gstreamer.elements.AppSink$2.callback(AppSink.java:232)
	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:520)
	at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:551)

Any illumination would be gratefully appreciated. Best, jnt

Hi @JonnieNightTime,

Is this related to your issue?

1 Like

Hi
Post your code inorder to make your issue more clear