-
Notifications
You must be signed in to change notification settings - Fork 334
Description
Bug report
Describe the bug
If attempting to remove over 255 measurements at once through the measurement manager, the corresponding workflow entry for that action will throw an error. This is due to the maximum number of supported arguments for a groovy function being 255.
To Reproduce
Steps to reproduce the behavior:
- Create >255 different measurements for a project entry containing detection objects.
- Remove >255 measurements through the measurement manager GUI in one action.
- Create a script from the workflow tab consisting of all of the above actions. Note the error message:
ERROR: MultipleCompilationErrorsException: startup failed: General error during instruction selection: The max number of supported arguments is 255, but found 1191
Expected behavior
The script generated from the workflow tab should be able to reproduce most of the plugin-based actions, including the act of removing measurements. A quick fix is to modify the generated script and distribute the list of measurements to remove over multiple removeMeasurement() operations.
Desktop (please complete the following information):
- OS: Windows 10
- QuPath Version 0.4.0-SNAPSHOT
Additional context
Minor issue, easy enough to manually distribute the list of measurements to remove over multiple removeMeasurement() statements
