Trouble with ROI manager when running a macro

Dear forum members,

Today I received a (tested) macro for image analysis, yet I keep receiving the same error message when running it.

The creator of the macro I cannot approach and my knowledge of scripting is limited to the basics.

The error message I keep getting:

(Fiji Is Just) ImageJ 2.0.0-rc-56/1.51h; Java 1.8.0_66 [64-bit]; Windows 10 10.0; 520MB of 5956MB (8%)
	at ij.plugin.Selection.addToRoiManager(
	at ij.IJ.runPlugIn(
	at ij.Executer.runCommand(

I hope that someone here will be able to lend me a hand in this matter.

Thank you in advance!

  • Damon

Welcome to the forum, @demondoom66!

It will certainly help if you post the macro code here, so others can reproduce the issue.

This looks to me like your script/macro is expecting a selection to be active in the image, but there is none.

The files it works on are generated by a confocal microscope.
Quad-channel Z-stack images, .lif files.
Before I use this macro, they are prepared by being stitched so that you get 1 big immage instead of many smaller snapshots since the slides sometimes were divided in up to 16 parts in order to be imaged with sufficient quality.