Error is WebCLException INVALID_MEM_OBJECT removing the first display() call in the demo is a workaround This looks like a race condition that we have not run into before