Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClearVolume Fiji plugin no longer working after update on Windows 7 / Intel HD 5500 #53

Open
kynanlawlor opened this issue Dec 20, 2016 · 7 comments

Comments

@kynanlawlor
Copy link

Thanks for the excellent software and apologies if I am missing something obvious here :

The Clear Volume Fiji plugin has been working nicely for me for some months, but seems to now be failing after I recently did a Fiji update.

I have tried a fresh installation of Fiji with only ImageJ, Fiji, Java8 and ClearVolume update sites active:
(Fiji is Just) ImageJ 2.0.0-rc-54/1.51h; Java 1.8.0_66 [64-bit]

Have also updated my graphics drivers, which are Intel HD Graphics 5500 (using the Dell specific driver which is version 10.18.14.4432). It does appear to be detecting the device in the output below.

When trying to open the 'flybrain.tif' sample image with 'Open in ClearVolume', a blank viewer window appears with correct voxel values but no image and this console output :

null
ClearGLWindow: GLProfile[GL4bc/GL4bc.hw]
1.0
1.0
1.0
WindowsDec 20, 2016 12:24:23 PM org.bridj.BridJ log
INFO: Library not found : atiocl64
Dec 20, 2016 12:24:23 PM org.bridj.BridJ log
INFO: Library not found : amdocl64
Dec 20, 2016 12:24:23 PM org.bridj.BridJ log
INFO: Library not found : atiocl32
Dec 20, 2016 12:24:23 PM org.bridj.BridJ log
INFO: Library not found : atiocl
Dec 20, 2016 12:24:23 PM org.bridj.BridJ log
INFO: Library not found : amdocl32
Dec 20, 2016 12:24:23 PM org.bridj.BridJ log
INFO: Library not found : amdocl
clearcl.exceptions.ClearCLException
	at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:161)
	at clearcl.backend.jocl.ClearCLBackendJOCL.releaseImage(ClearCLBackendJOCL.java:1153)
	at clearcl.ClearCLImage.close(ClearCLImage.java:628)
	at clearcl.benchmark.Benchmark.executeBenchmarkOnDevice(Benchmark.java:248)
	at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:115)
	at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:54)
	at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:46)
	at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
	at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
	at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
	at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
	at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
	at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
	at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
	at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
	at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.NullPointerException
	at clearcl.backend.jocl.ClearCLBackendJOCL.lambda$releaseImage$40(ClearCLBackendJOCL.java:1154)
	at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:154)
	... 22 more
java.lang.NullPointerException
	at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:60)
	at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:46)
	at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
	at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
	at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
	at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
	at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
	at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
	at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
	at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
	at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
clearcl.exceptions.ClearCLException
	at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:161)
	at clearcl.backend.jocl.ClearCLBackendJOCL.setKernelArgument(ClearCLBackendJOCL.java:626)
	at clearcl.ClearCLKernel.setArgumentsInternal(ClearCLKernel.java:259)
	at clearcl.ClearCLKernel.lambda$run$0(ClearCLKernel.java:306)
	at clearcl.util.ElapsedTime.measure(ElapsedTime.java:39)
	at clearcl.ClearCLKernel.run(ClearCLKernel.java:302)
	at clearcl.ClearCLKernel.run(ClearCLKernel.java:285)
	at clearcl.benchmark.Benchmark.executeBenchmarkOnDevice(Benchmark.java:234)
	at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:115)
	at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:54)
	at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:49)
	at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
	at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
	at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
	at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
	at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
	at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
	at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
	at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
	at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.NullPointerException
	at clearcl.backend.jocl.ClearCLBackendJOCL.lambda$setKernelArgument$20(ClearCLBackendJOCL.java:726)
	at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:154)
	... 26 more
java.lang.NullPointerException
	at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:60)
	at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:49)
	at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
	at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
	at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
	at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
	at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
	at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
	at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
	at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
	at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
clearcl.exceptions.ClearCLException: Pointer instance cannot have NULL peer ! (use null Pointer instead)
	at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:146)
	at clearcl.backend.javacl.ClearCLBackendJavaCL.getContextPeerPointer(ClearCLBackendJavaCL.java:268)
	at clearcl.ClearCLDevice.createContext(ClearCLDevice.java:160)
	at clearcl.benchmark.Benchmark.executeBenchmarkOnDevice(Benchmark.java:162)
	at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:115)
	at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:54)
	at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:46)
	at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
	at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
	at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
	at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
	at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
	at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
	at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
	at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
	at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.IllegalArgumentException: Pointer instance cannot have NULL peer ! (use null Pointer instead)
	at org.bridj.Pointer.<init>(Pointer.java:248)
	at org.bridj.Pointer$OrderedPointer.<init>(Pointer.java:260)
	at org.bridj.TypedPointer.<init>(TypedPointer.java:47)
	at org.bridj.TypedPointer.<init>(TypedPointer.java:51)
	at com.nativelibs4java.opencl.library.IOpenCLLibrary$cl_context.<init>(IOpenCLLibrary.java:799)
	at com.nativelibs4java.opencl.library.OpenCLLibrary.clCreateContext(OpenCLLibrary.java:77)
	at clearcl.backend.javacl.ClearCLBackendJavaCL.lambda$getContextPeerPointer$12(ClearCLBackendJavaCL.java:291)
	at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:139)
	... 22 more
java.lang.NullPointerException
	at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:60)
	at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:46)
	at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
	at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
	at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
	at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
	at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
	at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
	at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
	at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
	at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
clearcl.exceptions.ClearCLException: Pointer instance cannot have NULL peer ! (use null Pointer instead)
	at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:146)
	at clearcl.backend.javacl.ClearCLBackendJavaCL.getContextPeerPointer(ClearCLBackendJavaCL.java:268)
	at clearcl.ClearCLDevice.createContext(ClearCLDevice.java:160)
	at clearcl.benchmark.Benchmark.executeBenchmarkOnDevice(Benchmark.java:162)
	at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:115)
	at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:54)
	at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:49)
	at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
	at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
	at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
	at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
	at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
	at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
	at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
	at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
	at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.IllegalArgumentException: Pointer instance cannot have NULL peer ! (use null Pointer instead)
	at org.bridj.Pointer.<init>(Pointer.java:248)
	at org.bridj.Pointer$OrderedPointer.<init>(Pointer.java:260)
	at org.bridj.TypedPointer.<init>(TypedPointer.java:47)
	at org.bridj.TypedPointer.<init>(TypedPointer.java:51)
	at com.nativelibs4java.opencl.library.IOpenCLLibrary$cl_context.<init>(IOpenCLLibrary.java:799)
	at com.nativelibs4java.opencl.library.OpenCLLibrary.clCreateContext(OpenCLLibrary.java:77)
	at clearcl.backend.javacl.ClearCLBackendJavaCL.lambda$getContextPeerPointer$12(ClearCLBackendJavaCL.java:291)
	at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:139)
	... 22 more
java.lang.NullPointerException
	at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:60)
	at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:49)
	at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
	at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
	at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
	at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
	at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
	at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
	at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
	at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
	at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
 --> Using backend: ClearCLBackendJOCL
________________________________________________________________________________
2 available OpenCL devices:

Device name: Intel(R) HD Graphics 5500, type: GPU, OpenCL version: 2.00000 
 max global memory: 1360632218 
 max local memory: 65536 
 clock freq: 300Mhz 
 nb compute units: 24 
 extensions: cl_intel_accelerator cl_intel_advanced_motion_estimation cl_intel_ctz cl_intel_d3d11_nv12_media_sharing cl_intel_dx9_media_sharing cl_intel_motion_estimation cl_intel_simultaneous_sharing cl_intel_subgroups cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_depth_images cl_khr_dx9_media_sharing cl_khr_gl_depth_images cl_khr_gl_event cl_khr_gl_msaa_sharing cl_khr_gl_sharing cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_icd cl_khr_image2d_from_buffer cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_khr_spir   

Device name: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz, type: CPU, OpenCL version: 2.00000 
 max global memory: 17062883328 
 max local memory: 32768 
 clock freq: 2300Mhz 
 nb compute units: 4 
 extensions: cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_spir cl_intel_exec_by_local_thread cl_khr_depth_images cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_khr_fp64 cl_intel_dx9_media_sharing cl_khr_dx9_media_sharing cl_khr_d3d11_sharing cl_khr_gl_sharing   

________________________________________________________________________________
Selected device:
Device name: Intel(R) HD Graphics 5500, type: GPU, OpenCL version: 2.00000 
 max global memory: 1360632218 
 max local memory: 65536 
 clock freq: 300Mhz 
 nb compute units: 24 
 extensions: cl_intel_accelerator cl_intel_advanced_motion_estimation cl_intel_ctz cl_intel_d3d11_nv12_media_sharing cl_intel_dx9_media_sharing cl_intel_motion_estimation cl_intel_simultaneous_sharing cl_intel_subgroups cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_depth_images cl_khr_dx9_media_sharing cl_khr_gl_depth_images cl_khr_gl_event cl_khr_gl_msaa_sharing cl_khr_gl_sharing cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_icd cl_khr_image2d_from_buffer cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_khr_spir   

Device name: 	 ClearCLDevice [mClearCLPlatform=ClearCLPlatform [name=Intel(R) OpenCL], name=Intel(R) HD Graphics 5500] 
com.jogamp.opengl.util.AnimatorBase$UncaughtAnimatorException: com.jogamp.opengl.GLException: Caught ClearCLException: null on thread SciJava-367b22e5-Thread-1-FPSAWTAnimator#00-Timer0
	at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:92)
	at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
	at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Caused by: com.jogamp.opengl.GLException: Caught ClearCLException: null on thread SciJava-367b22e5-Thread-1-FPSAWTAnimator#00-Timer0
	at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1327)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
	at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
	... 4 more
Caused by: clearcl.exceptions.ClearCLException
	at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:161)
	at clearcl.backend.jocl.ClearCLBackendJOCL.enqueueWriteToImage(ClearCLBackendJOCL.java:1003)
	at clearcl.ClearCLImage.readFrom(ClearCLImage.java:375)
	at clearcl.ClearCLImage.readFrom(ClearCLImage.java:396)
	at clearvolume.renderer.opencl.OpenCLDevice.writeImage(OpenCLDevice.java:365)
	at clearvolume.renderer.opencl.OpenCLVolumeRenderer.fillWithByteBuffer(OpenCLVolumeRenderer.java:406)
	at clearvolume.renderer.opencl.OpenCLVolumeRenderer.prepareVolumeDataArray(OpenCLVolumeRenderer.java:230)
	at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:153)
	at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
	at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
	at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
	... 7 more
Caused by: java.lang.NullPointerException
	at clearcl.backend.jocl.ClearCLBackendJOCL.lambda$enqueueWriteToImage$31(ClearCLBackendJOCL.java:1005)
	at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:154)
	... 19 more
@skalarproduktraum
Copy link
Member

@kynanlawlor sorry for missing this issue! It doesn't look like you're missing something, but rather an issue on our side. Did you try updating again?

@royerloic: Could you please have a look? Looks like a ClearCL problem.

@kynanlawlor
Copy link
Author

No worries - thanks for looking into it. I've updated but I am afraid it's still not working, and behaving as above.

@comatose-tortoise
Copy link

I seem to be having a similar issue, at least the error log looks similar.

I'm on Windows 10, AMD Radeon R9, latest drivers for everything.

`null
ClearGLWindow: GLProfile[GL4bc/GL4bc.hw]
1.0
1.0
1.0
Windowsokt 12, 2017 12:35:14 EM org.bridj.BridJ log
INFO: Library not found : atiocl64
okt 12, 2017 12:35:14 EM org.bridj.BridJ log
INFO: Library not found : amdocl64
okt 12, 2017 12:35:14 EM org.bridj.BridJ log
INFO: Library not found : atiocl32
okt 12, 2017 12:35:14 EM org.bridj.BridJ log
INFO: Library not found : atiocl
okt 12, 2017 12:35:14 EM org.bridj.BridJ log
INFO: Library not found : amdocl32
okt 12, 2017 12:35:14 EM org.bridj.BridJ log
INFO: Library not found : amdocl
clearcl.exceptions.ClearCLException
at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:161)
at clearcl.backend.jocl.ClearCLBackendJOCL.releaseImage(ClearCLBackendJOCL.java:1153)
at clearcl.ClearCLImage.close(ClearCLImage.java:628)
at clearcl.benchmark.Benchmark.executeBenchmarkOnDevice(Benchmark.java:248)
at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:115)
at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:54)
at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:46)
at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.NullPointerException
at clearcl.backend.jocl.ClearCLBackendJOCL.lambda$releaseImage$40(ClearCLBackendJOCL.java:1154)
at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:154)
... 22 more
java.lang.NullPointerException
at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:60)
at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:46)
at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
clearcl.exceptions.ClearCLException
at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:161)
at clearcl.backend.jocl.ClearCLBackendJOCL.setKernelArgument(ClearCLBackendJOCL.java:626)
at clearcl.ClearCLKernel.setArgumentsInternal(ClearCLKernel.java:259)
at clearcl.ClearCLKernel.lambda$run$0(ClearCLKernel.java:306)
at clearcl.util.ElapsedTime.measure(ElapsedTime.java:39)
at clearcl.ClearCLKernel.run(ClearCLKernel.java:302)
at clearcl.ClearCLKernel.run(ClearCLKernel.java:285)
at clearcl.benchmark.Benchmark.executeBenchmarkOnDevice(Benchmark.java:234)
at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:115)
at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:54)
at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:49)
at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.NullPointerException
at clearcl.backend.jocl.ClearCLBackendJOCL.lambda$setKernelArgument$20(ClearCLBackendJOCL.java:726)
at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:154)
... 26 more
java.lang.NullPointerException
at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:60)
at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:49)
at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
clearcl.exceptions.ClearCLException
at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:161)
at clearcl.backend.javacl.ClearCLBackendJavaCL.releaseImage(ClearCLBackendJavaCL.java:1206)
at clearcl.ClearCLImage.close(ClearCLImage.java:628)
at clearcl.benchmark.Benchmark.executeBenchmarkOnDevice(Benchmark.java:248)
at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:115)
at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:54)
at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:46)
at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.NullPointerException
at clearcl.backend.javacl.ClearCLBackendJavaCL.lambda$releaseImage$40(ClearCLBackendJavaCL.java:1207)
at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:154)
... 22 more
java.lang.NullPointerException
at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:60)
at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:46)
at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
clearcl.exceptions.ClearCLException
at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:161)
at clearcl.backend.javacl.ClearCLBackendJavaCL.setKernelArgument(ClearCLBackendJavaCL.java:652)
at clearcl.ClearCLKernel.setArgumentsInternal(ClearCLKernel.java:259)
at clearcl.ClearCLKernel.lambda$run$0(ClearCLKernel.java:306)
at clearcl.util.ElapsedTime.measure(ElapsedTime.java:39)
at clearcl.ClearCLKernel.run(ClearCLKernel.java:302)
at clearcl.ClearCLKernel.run(ClearCLKernel.java:285)
at clearcl.benchmark.Benchmark.executeBenchmarkOnDevice(Benchmark.java:234)
at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:115)
at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:54)
at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:49)
at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.NullPointerException
at clearcl.backend.javacl.ClearCLBackendJavaCL.lambda$setKernelArgument$20(ClearCLBackendJavaCL.java:756)
at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:154)
... 26 more
java.lang.NullPointerException
at clearcl.benchmark.Benchmark.getFastestDevice(Benchmark.java:60)
at clearcl.backend.ClearCLBackends.isFunctionalBackend(ClearCLBackends.java:49)
at clearcl.backend.ClearCLBackends.getFunctionalBackend(ClearCLBackends.java:69)
at clearcl.backend.ClearCLBackends.getBestBackend(ClearCLBackends.java:99)
at clearvolume.renderer.opencl.OpenCLDevice.initCL(OpenCLDevice.java:48)
at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:130)
at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
--> Using backend: ClearCLBackendJOCL


2 available OpenCL devices:

Device name: Hawaii, type: GPU, OpenCL version: 2,00000
max global memory: 8589934592
max local memory: 32768
clock freq: 1020Mhz
nb compute units: 44
extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_khr_gl_depth_images cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_khr_image2d_from_buffer cl_khr_spir cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_amd_liquid_flash

Device name: Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz, type: CPU, OpenCL version: 1,20000
max global memory: 137335562240
max local memory: 32768
clock freq: 3500Mhz
nb compute units: 12
extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sharing cl_khr_spir cl_khr_gl_event


Selected device:
Device name: Hawaii, type: GPU, OpenCL version: 2,00000
max global memory: 8589934592
max local memory: 32768
clock freq: 1020Mhz
nb compute units: 44
extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_khr_gl_depth_images cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_khr_image2d_from_buffer cl_khr_spir cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_amd_liquid_flash

Device name: ClearCLDevice [mClearCLPlatform=ClearCLPlatform [name=AMD Accelerated Parallel Processing], name=Hawaii]
Exception in thread "SciJava-6b00ad9-Thread-1-FPSAWTAnimator#00-Timer0" com.jogamp.opengl.util.AnimatorBase$UncaughtAnimatorException: com.jogamp.opengl.GLException: Caught ClearCLException: null on thread SciJava-6b00ad9-Thread-1-FPSAWTAnimator#00-Timer0
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:92)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: com.jogamp.opengl.GLException: Caught ClearCLException: null on thread SciJava-6b00ad9-Thread-1-FPSAWTAnimator#00-Timer0
at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1327)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
... 4 more
Caused by: clearcl.exceptions.ClearCLException
at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:161)
at clearcl.backend.jocl.ClearCLBackendJOCL.enqueueWriteToImage(ClearCLBackendJOCL.java:1003)
at clearcl.ClearCLImage.readFrom(ClearCLImage.java:375)
at clearcl.ClearCLImage.readFrom(ClearCLImage.java:396)
at clearvolume.renderer.opencl.OpenCLDevice.writeImage(OpenCLDevice.java:365)
at clearvolume.renderer.opencl.OpenCLVolumeRenderer.fillWithByteBuffer(OpenCLVolumeRenderer.java:406)
at clearvolume.renderer.opencl.OpenCLVolumeRenderer.prepareVolumeDataArray(OpenCLVolumeRenderer.java:230)
at clearvolume.renderer.opencl.OpenCLVolumeRenderer.initVolumeRenderer(OpenCLVolumeRenderer.java:153)
at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.init(ClearGLVolumeRenderer.java:818)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:644)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:667)
at jogamp.opengl.GLAutoDrawableBase$1.run(GLAutoDrawableBase.java:431)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1291)
... 7 more
Caused by: java.lang.NullPointerException
at clearcl.backend.jocl.ClearCLBackendJOCL.lambda$enqueueWriteToImage$31(ClearCLBackendJOCL.java:1005)
at clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:154)
... 19 more`

@comatose-tortoise
Copy link

Tried ClearVolume on my laptop that has a nvidia card. There, it works fine.

Gives the following errors in the beginning, just as on the workstation:
null ClearGLWindow: GLProfile[GL4bc/GL4bc.hw] 1.0 1.0 1.0 Windowsokt 19, 2017 12:27:21 EM org.bridj.BridJ log INFO: Library not found : atiocl64 okt 19, 2017 12:27:21 EM org.bridj.BridJ log INFO: Library not found : amdocl64 okt 19, 2017 12:27:21 EM org.bridj.BridJ log INFO: Library not found : atiocl32 okt 19, 2017 12:27:21 EM org.bridj.BridJ log INFO: Library not found : atiocl okt 19, 2017 12:27:21 EM org.bridj.BridJ log INFO: Library not found : amdocl32 okt 19, 2017 12:27:21 EM org.bridj.BridJ log INFO: Library not found : amdocl

But then it load the image fine, whereas the workstation continues with the error I pasted in the previous post.

@Dino-Fossil
Copy link

Dino-Fossil commented Feb 6, 2018

It seems I am affected by the same issue.
I installed Clearvolume on 3 different pcs yesterday - one with an nVidia card (GTX1050), one with an AMD card (RX 480) and one with only an Intel iGPU (HD5500).
All 3 systems otherwise use Windows 10 and a fully updated Fiji.
Clearvolume runs fine on the nVidia card, but refuses to open any file on the AMD or Intel PC.
I suspect there's something wrong with the OpenCL implementation? Is this still being worked on or is there some workaround available by now?
Otherwise Clearvolume seems like a very nice software for my purpose,so I would love being able to use it on more than one of my computers.

@comatose-tortoise
Copy link

Well, I still haven't solved it. Works on my laptop with a nVidia card, but not on the workstation with an AMD card. Seems like the project it sort of abandoned? Not many answers from the devs in here anyway.

@Dino-Fossil
Copy link

I have since installed it on a 4th pc, again one with an AMD card.
However, this one has an older pre-GCN architecture card (a AMD/ATI HD 6750, I think), using an older GPU-driver, since newer drivers don't support the old GPU.
There, it interestingly did work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants