Trouble with CLIJ installation/plugin

Hey @haesleinhuepf
I am having trouble with the installation of CLIJ on my lab computer. I installed the plugin in FIJI (v 1.53c) by adding the CLIJ and CLIJ2 update sites as I had done on my personal laptop. But when I use my lab computer to install the plugin I got this error:

[ERROR] Cannot create plugin: class='net.haesleinhuepf.clijx.imagej3dsuite.ImageJ3DSuiteConnectedComponentsLabeling', name='CLIJx_imageJ3DSuiteConnectedComponentsLabeling', priority=0.0, enabled=true, pluginType=CLIJMacroPlugin
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
	at net.haesleinhuepf.clij.macro.CLIJMacroExtensionAutoCompletionPlugin.getCompletions(CLIJMacroExtensionAutoCompletionPlugin.java:34)
	at net.imagej.legacy.plugin.MacroExtensionAutoCompletionService.getCompletions(MacroExtensionAutoCompletionService.java:71)
	at net.imagej.legacy.plugin.MacroAutoCompletionProvider.addMacroExtensionAutoCompletions(MacroAutoCompletionProvider.java:176)
	at net.imagej.legacy.plugin.MacroLanguageSupportPlugin.getMacroAutoCompletionProvider(MacroLanguageSupportPlugin.java:113)
	at net.imagej.legacy.plugin.MacroLanguageSupportPlugin.getCompletionProvider(MacroLanguageSupportPlugin.java:92)
	at net.imagej.legacy.plugin.MacroLanguageSupportPlugin.install(MacroLanguageSupportPlugin.java:78)
	at org.scijava.ui.swing.script.EditorPane.setLanguage(EditorPane.java:516)
	at org.scijava.ui.swing.script.EditorPane.setLanguage(EditorPane.java:443)
	at org.scijava.ui.swing.script.EditorPane.setLanguageByFileName(EditorPane.java:431)
	at org.scijava.ui.swing.script.TextEditor.createNewDocument(TextEditor.java:1267)
	at net.imagej.legacy.plugin.DefaultLegacyEditor.create(DefaultLegacyEditor.java:96)
	at net.imagej.legacy.DefaultLegacyHooks.createInEditor(DefaultLegacyHooks.java:317)
	at ij.plugin.frame.Recorder.createMacro(Recorder.java:751)
	at ij.plugin.frame.Recorder.actionPerformed(Recorder.java:798)
	at java.awt.Button.processActionEvent(Button.java:409)
	at java.awt.Button.processEvent(Button.java:377)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
	at java.awt.EventQueue$4.run(EventQueue.java:733)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

I (obviously) get an extension not found error when I run the benchmark test script.

java.lang.RuntimeException: java.util.concurrent.ExecutionException: net.haesleinhuepf.clij.clearcl.exceptions.OpenCLException: OpenCL error: -1001 -> Unknown OpenCL error:-1001
	at net.imagej.legacy.LegacyService.runLegacyCompatibleCommand(LegacyService.java:307)
	at net.imagej.legacy.DefaultLegacyHooks.interceptRunPlugIn(DefaultLegacyHooks.java:166)
	at ij.IJ.runPlugIn(IJ.java)
	at ij.Executer.runCommand(Executer.java:150)
	at ij.Executer.run(Executer.java:68)
	at ij.IJ.run(IJ.java:317)
	at ij.IJ.run(IJ.java:328)
	at ij.macro.Functions.doRun(Functions.java:686)
	at ij.macro.Functions.doFunction(Functions.java:98)
	at ij.macro.Interpreter.doStatement(Interpreter.java:278)
	at ij.macro.Interpreter.doStatements(Interpreter.java:264)
	at ij.macro.Interpreter.run(Interpreter.java:160)
	at ij.macro.Interpreter.run(Interpreter.java:93)
	at ij.macro.Interpreter.run(Interpreter.java:104)
	at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:161)
	at ij.IJ.runMacro(IJ.java:153)
	at ij.IJ.runMacro(IJ.java:142)
	at net.imagej.legacy.IJ1Helper$3.call(IJ1Helper.java:1148)
	at net.imagej.legacy.IJ1Helper$3.call(IJ1Helper.java:1144)
	at net.imagej.legacy.IJ1Helper.runMacroFriendly(IJ1Helper.java:1095)
	at net.imagej.legacy.IJ1Helper.runMacro(IJ1Helper.java:1144)
	at net.imagej.legacy.plugin.IJ1MacroEngine.eval(IJ1MacroEngine.java:145)
	at org.scijava.script.ScriptModule.run(ScriptModule.java:157)
	at org.scijava.module.ModuleRunner.run(ModuleRunner.java:165)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:124)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:63)
	at org.scijava.thread.DefaultThreadService.lambda$wrap$2(DefaultThreadService.java:225)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.ExecutionException: net.haesleinhuepf.clij.clearcl.exceptions.OpenCLException: OpenCL error: -1001 -> Unknown OpenCL error:-1001
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at net.imagej.legacy.LegacyService.runLegacyCompatibleCommand(LegacyService.java:303)
	... 30 more
Caused by: net.haesleinhuepf.clij.clearcl.exceptions.OpenCLException: OpenCL error: -1001 -> Unknown OpenCL error:-1001
	at net.haesleinhuepf.clij.clearcl.backend.BackendUtils.checkOpenCLError(BackendUtils.java:346)
	at net.haesleinhuepf.clij.clearcl.backend.jocl.ClearCLBackendJOCL.lambda$getNumberOfPlatforms$0(ClearCLBackendJOCL.java:87)
	at net.haesleinhuepf.clij.clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:156)
	at net.haesleinhuepf.clij.clearcl.backend.jocl.ClearCLBackendJOCL.getNumberOfPlatforms(ClearCLBackendJOCL.java:82)
	at net.haesleinhuepf.clij.clearcl.ClearCL.getNumberOfPlatforms(ClearCL.java:57)
	at net.haesleinhuepf.clij.clearcl.ClearCL.getAllDevices(ClearCL.java:245)
	at net.haesleinhuepf.clij.CLIJ.getAvailableDeviceNames(CLIJ.java:214)
	at net.haesleinhuepf.clij2.utilities.CLIJ2MacroExtensions.run(CLIJ2MacroExtensions.java:33)
	at org.scijava.command.CommandModule.run(CommandModule.java:196)
	... 8 more

Sorry if this is a simple fix kind of problem, would definitely appreciate any help though.
Thanks in advance
-Jesse

1 Like

Hi Jesse @mrjesseholt ,

the error suggests you activated the update site clijx-assistant-extensions and not having 3D ImageJ Suite activated. If so, please check the installation instructions for the extensions.

Please let us know if this helps :slightly_smiling_face:

Cheers,
Robert

Hi Robert @haesleinhuepf
Thank you very much for the reply and the help! I decided to remove CLIJX to limit any silly errors like the one I got previously and focus on getting CLIJ/CLIJ2 working first since Id think that should be simpler. Unfortunately, when I run the benchmarking script I am still getting an error at line 60 when CLIJ starts to initiate. Any thoughts of what I am doing wrong?
Cheers
-Jesse

Debug Window

Memory	*	955MB of 1178404MB (<1%)
nImages()	*	8
getTitle()	*	"t1-head-7.tif"
input	*	"t1-head-4.tif"
i	*	11
time	*	1614229776619.0000
blurred_image	*	"t1-head-6.tif"

---		---
Error:		Unrecognized Ext function in line 60:
	
		Ext . <CLIJ2_clear> ( ) ; 

Log:

(Fiji Is Just) ImageJ 2.1.0/1.53c; Java 1.8.0_172 [64-bit]; Windows 10 10.0; 555MB of 1178404MB (<1%)
 
java.lang.RuntimeException: java.util.concurrent.ExecutionException: net.haesleinhuepf.clij.clearcl.exceptions.OpenCLException: OpenCL error: -1001 -> Unknown OpenCL error:-1001
	at net.imagej.legacy.LegacyService.runLegacyCompatibleCommand(LegacyService.java:307)
	at net.imagej.legacy.DefaultLegacyHooks.interceptRunPlugIn(DefaultLegacyHooks.java:166)
	at ij.IJ.runPlugIn(IJ.java)
	at ij.Executer.runCommand(Executer.java:150)
	at ij.Executer.run(Executer.java:68)
	at ij.IJ.run(IJ.java:317)
	at ij.IJ.run(IJ.java:328)
	at ij.macro.Functions.doRun(Functions.java:686)
	at ij.macro.Functions.doFunction(Functions.java:98)
	at ij.macro.Interpreter.doStatement(Interpreter.java:278)
	at ij.macro.Interpreter.doStatements(Interpreter.java:264)
	at ij.macro.Interpreter.run(Interpreter.java:160)
	at ij.macro.Interpreter.run(Interpreter.java:93)
	at ij.macro.Interpreter.run(Interpreter.java:104)
	at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:161)
	at ij.IJ.runMacro(IJ.java:153)
	at ij.IJ.runMacro(IJ.java:142)
	at net.imagej.legacy.IJ1Helper$3.call(IJ1Helper.java:1148)
	at net.imagej.legacy.IJ1Helper$3.call(IJ1Helper.java:1144)
	at net.imagej.legacy.IJ1Helper.runMacroFriendly(IJ1Helper.java:1095)
	at net.imagej.legacy.IJ1Helper.runMacro(IJ1Helper.java:1144)
	at net.imagej.legacy.plugin.IJ1MacroEngine.eval(IJ1MacroEngine.java:145)
	at org.scijava.script.ScriptModule.run(ScriptModule.java:157)
	at org.scijava.module.ModuleRunner.run(ModuleRunner.java:165)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:124)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:63)
	at org.scijava.thread.DefaultThreadService.lambda$wrap$2(DefaultThreadService.java:225)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.ExecutionException: net.haesleinhuepf.clij.clearcl.exceptions.OpenCLException: OpenCL error: -1001 -> Unknown OpenCL error:-1001
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at net.imagej.legacy.LegacyService.runLegacyCompatibleCommand(LegacyService.java:303)
	... 30 more
Caused by: net.haesleinhuepf.clij.clearcl.exceptions.OpenCLException: OpenCL error: -1001 -> Unknown OpenCL error:-1001
	at net.haesleinhuepf.clij.clearcl.backend.BackendUtils.checkOpenCLError(BackendUtils.java:346)
	at net.haesleinhuepf.clij.clearcl.backend.jocl.ClearCLBackendJOCL.lambda$getNumberOfPlatforms$0(ClearCLBackendJOCL.java:87)
	at net.haesleinhuepf.clij.clearcl.backend.BackendUtils.checkExceptions(BackendUtils.java:156)
	at net.haesleinhuepf.clij.clearcl.backend.jocl.ClearCLBackendJOCL.getNumberOfPlatforms(ClearCLBackendJOCL.java:82)
	at net.haesleinhuepf.clij.clearcl.ClearCL.getNumberOfPlatforms(ClearCL.java:57)
	at net.haesleinhuepf.clij.clearcl.ClearCL.getAllDevices(ClearCL.java:245)
	at net.haesleinhuepf.clij.CLIJ.getAvailableDeviceNames(CLIJ.java:214)
	at net.haesleinhuepf.clij2.utilities.CLIJ2MacroExtensions.run(CLIJ2MacroExtensions.java:33)
	at org.scijava.command.CommandModule.run(CommandModule.java:196)
	... 8 more

1 Like

Hey Jesse @mrjesseholt ,

this OpenCL-error

suggests there is no driver installed for the GPU as discussed here:

If the error persists, can you give us some details about GPU hardware and driver version?

Cheers,
Robert