crash : jit.multiple ?

Mar 30, 2010 at 9:40am

crash : jit.multiple ?

Hello maxers,

it seems jit.multiple instantiate in javascript with [noteout] crash my macbook ; OS 10.4.11, MAX/MSP 5.1.3 ; it took me long time to isolate the problem, can you reproduce it ?

– Pasted Max Patch, click to expand. –

var js_name = “jojo_lapin” ;

var myrender = new JitterObject (“jit.gl.render”, js_name) ;
myrender.erase_color = [1., 0.75, 0., 1.] ;

var mypaint_multiple,
mypaint_nothing ;

function crash_me ()
{
mypaint_multiple = new JitterObject (“jit.gl.multiple”) ;
mypaint_multiple.drawto = js_name ;
mypaint_multiple.glparams = ["position", "scale", "color"] ;
mypaint_multiple.targetname = “moi” + js_name ;

mypaint_nothing = new JitterObject (“jit.gl.gridshape”, js_name) ;
mypaint_nothing.shape = “plane” ;
mypaint_nothing.name = “moi” + js_name ;
mypaint_nothing.blend_enable = 1 ;
mypaint_nothing.dim = [1, 1] ;
}

function bang ()
{
myrender.erase () ;
myrender.drawswap () ;
}

Attachments:
  1. crashMOI.zip
#49423
Mar 30, 2010 at 10:00am

Like a robot. I dutifully went ahead and loaded the patch, etc…and yes, it crashed my macbook pro… OS 10.5.8, MaxMSPJit 5.1.3.

#177542
Mar 30, 2010 at 4:05pm

Hello spectro,

Thanks for testing : so that’s not computer/system specific ; it seems that is not due to [makenote] or [noteout], cause it’s crash sometimes without too ; (with and without overdrive moreover) ; so just javascript instantiation of jit.multiple …

#177543
Mar 30, 2010 at 6:27pm

Sorry, but right now, you *have* to provide a destination name for constructing jit.gl.* objects. This is the crash. We will look at solving this problem for a future release, but in the meantime the fix is simple. Simply provide the destination name in the constructor.

Thanks for the report, and please let us know any additional problems you encounter.

#177544
Mar 31, 2010 at 7:42am

Hello Joshua,

something like that ?

var myrender = new JitterObject ("jit.gl.render", "jojo_lapin") ;
    myrender.erase_color = [1., 0.75, 0., 1.] ;

var mypaint_position = new JitterMatrix (2, "float32") ;
    mypaint_position.name = "position" ;

var mypaint_scale = new JitterMatrix (2, "float32") ;
    mypaint_scale.name = "scale" ;

var mypaint_color = new JitterMatrix (4, "float32") ;
    mypaint_color.name = "color" ;

var mypaint_multiple = new JitterObject ("jit.gl.multiple") ;
    mypaint_multiple.drawto = "jojo_lapin" ;
    mypaint_multiple.glparams = ["position", "scale", "color"] ;
    mypaint_multiple.targetname	= "moi" ;

var mypaint_nothing = new JitterObject ("jit.gl.gridshape", "jojo_lapin") ;
    mypaint_nothing.shape = "plane" ;
    mypaint_nothing.name = "moi" ;
    mypaint_nothing.blend_enable = 1 ;
    mypaint_nothing.dim	= [1, 1] ;

Crash too, when you instantiate the javascript while metro’s running …

#177545
Mar 31, 2010 at 4:20pm

No.

var mypaint_multiple = new JitterObject(“jit.gl.multiple”, “jojo_lapin”);

like the others.

#177546
Mar 31, 2010 at 6:34pm

Crash fixed fir tge next release.

Thanks,
Joshua

#177547

You must be logged in to reply to this topic.