GReD-Clermont / omero_batch-plugin

GNU General Public License v2.0
5 stars 0 forks source link

Issue when sending ResultsTable to OMERO #13

Open Rdornier opened 1 year ago

Rdornier commented 1 year ago

Hello,

I have an issue when I try to save ResultsTable on OMERO, whatever if I use a macro or a groovy script I attached the macro file and the groovy script so that you can try. I use images coming from this zenodo repo.

Images are uploaded on OMERO and I want to save back on OMERO (if I save locally, everything goes well). If I select only ROIs, the batch process doesn't crash and ROIs are uploaded on OMERO, attached to the correct image.

But when I tick Results Table(s) box, and then start, I have a popup at the end of the processing of the first image and then, whatever the answer, it throws the following error.

BatchPluginBug

Popup message

BatchPluginBugPopup

Exception in thread "Thread-768" java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@6354bff3 rejected from java.util.concurrent.ThreadPoolExecutor@554890ae[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
    at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
    at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)
    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379)
    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
    at omero.gateway.Gateway.submit(Gateway.java:278)
    at omero.gateway.facility.DataManagerFacility.attachFile(DataManagerFacility.java:720)
    at fr.igred.omero.repository.GenericRepositoryObjectWrapper.addFile(GenericRepositoryObjectWrapper.java:547)
    at fr.igred.ij.macro.OMEROBatchRunner.uploadFile(OMEROBatchRunner.java:870)
    at fr.igred.ij.macro.OMEROBatchRunner.saveResults(OMEROBatchRunner.java:835)
    at fr.igred.ij.macro.OMEROBatchRunner.save(OMEROBatchRunner.java:699)
    at fr.igred.ij.macro.OMEROBatchRunner.runMacro(OMEROBatchRunner.java:552)
    at fr.igred.ij.macro.OMEROBatchRunner.run(OMEROBatchRunner.java:427)

Do you have an idea on what can be the issue ? Thanks,

Best, Rémy.

ppouchin commented 1 year ago

Hello @Rdornier,

I think we saw something like that at one point, but it was not really reproducible. Although I'm not sure it's the same, in our case it disappeared by restarting Fiji or the server.

If it's persistent, it might be related to the script that runs. Do you have the same problem if you run scripts to save tables from this repo?

Rdornier commented 1 year ago

Hello @ppouchin ,

Thanks for your suggestions. Indeed, it completly disappear today, as I have restarted my Fiji !

I have also try this script for your repo and it also works fine.

by restarting Fiji or the server.

Good to know that it can also be due to the server.

All the best, Rémy.