jit.gl.shader: shader not properly destroyed

ullrich's icon

Can someone be so kind and explain what this message means?

jit.gl.shader: shader not properly destroyed

aceslowman's icon

Wondering the same thing, I can't seem to get my jit.gl.shader code to reload after saving.

Rob Ramirez's icon

please provide patch, shader, and steps to reproduce and i'll take a look

aceslowman's icon

Absolutely, thank you Rob. Patch and shader are below. The problem simply occurs when I go into the shader, make a change, and attempt to save it. The Max window just says "jit.gl.shader: shader not properly destroyed".

per-pixel-shading.jxs
jxs 1.56 KB



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

Rob Ramirez's icon

thanks, i can reproduce and will try and get this sorted out.

Sébastien's icon

What is it?

Rob Ramirez's icon

this issue was ticketed but upon review I discovered the error is in the patch. the jit.gl.shader object is bound to a non-existent context "mainout".

editing the patch and providing a valid context arg (in this case the "shape" context) fixes the issue after save and reopen.

Sébastien's icon

Yeah... Same here. Except it was a jit.gl.shader that was named wrong. Mixed up with a jit.gl.node name. Thx.