Jitter Crash with jit.playlist and jit.gl.texture in Subpatcher (bpatcher)
Hi Everybody,
Summary:
When using jit.playlist and jit.gl.texture within a bpatcher, inside the subpatcher, there're multiple jit.gl.texture and jit.gl.textureset. It cause crash and Max quit without showing error or report when movies(100mb-1gb) drop in playlist.
To reproduce:
In the main patcher, enable jit.world
dragging videos randomly into the playlist
click play
open the sub-patcher(modify something or not) <------------- i've tried many time and seems this cause the error
close(or not close) sub-patcher
dragging videos randomly into the playlist, or replace the exist one.
then it cause crash.
Environment:
Mac OS X Version 14.2.1 (Build 23C71) arm64
Version 8.6.0 (16ccdff84ed) (arm64 mac)
OpenGL Version 4.1 Metal - 88, GLSL Version 4.10
Explanation:
I'm a beginner of Jitter user, my intent of using bpatcher is to make it reusable and can be placed in other parent patch(different jit.world ctx naming).
This bpatcher is to generate multiple textures list and then it can be assigned to another bpatcher that may include jit.gl.mesh/shader/buffer/etc...(e.x. multiple textures in a jit.gl.mesh ) The gl_context declaration in this or other sub-patcher is implicit as my intent is to make it reusable and seems jit.gl.node can handle the global drawto for GL Objects in a sub-patch.
My questions are: How the get the parent patch's jit.world context from sub-patcher? using argument/inlet? any other elegant way like grab the parent context name automatically? or am I miss the callback function don't assign videos to gl textures until video playlist loaded?