Jitter Crash with jit.playlist and jit.gl.texture in Subpatcher (bpatcher)

Jent Zheng's icon

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:

  1. In the main patcher, enable jit.world

  2. dragging videos randomly into the playlist

  3. click play

  4. open the sub-patcher(modify something or not) <------------- i've tried many time and seems this cause the error

  5. close(or not close) sub-patcher

  6. dragging videos randomly into the playlist, or replace the exist one.

  7. 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?

Max Patch
Copy patch and select New From Clipboard in Max.