The following test case crashes reliably after a few iterations. var cl = require('node-opencl'); var platforms = cl.getPlatformIDs(); var ctx = cl.createContextFromType([cl.CONTEXT_PLATFORM, platforms[0]], cl.DEVICE_TYPE_ALL, null, null); var device = cl.getContextInfo(ctx, cl.CONTEXT_DEVICES)[0]; var q = cl.createCommandQueue(ctx, device, cl.QUEUE_PROFILING_ENABLE); for (var n = 0; n < 1000; ++n) { var ctx2 = cl.getCommandQueueInfo(q, cl.QUEUE_CONTEXT); }