Ice Memory Limit Exception
Posted: Fri Jul 11, 2014 6:57 am
Hi
I'm getting the following error from our server:
I am attempting to grab a large roi (~2e4x2e4) from a very large slide scanner image and create a new image in the server from this. To avoid heap space issues I am grabbing the roi in small blocks but I am then having to rebuild the final dataset in memory from the blocks before writing the whole to the server using createImageFromNumpySeq.
We have increased the heap space to cover ourselves (we don't get heap space errors) and we have set the MessageSizeMax to 1024MB but still the error states that this is 64MB. Is this a hard-coded maximum value?
Is there a better way to approach this kind of thing? Incremental writing of the image to the server?
Thanks in advance for any help/suggestions!
Cheers,
Dan.
I'm getting the following error from our server:
Traceback (most recent call last):
File "./script", line 544, in <module>
runAsScript()
File "./script", line 533, in runAsScript
robj, message = make_images_from_rois(conn, parameterMap)
File "./script", line 365, in make_images_from_rois
newImage, newDataset, link, new_ids = process_image(conn, iId, parameterMap)
File "./script", line 265, in process_image
description=description, sourceImageId=imageId)
File "/home/omero/OMERO.server-5.0.2-ice35-b26/lib/python/omero/gateway/__init__.py", line 2896, in createImageFromNumpySeq
raise exc
Ice.MemoryLimitException: exception ::Ice::MemoryLimitException
{
reason = requested 773974123 bytes, maximum allowed is 67108864 bytes (see Ice.MessageSizeMax)
}
}
I am attempting to grab a large roi (~2e4x2e4) from a very large slide scanner image and create a new image in the server from this. To avoid heap space issues I am grabbing the roi in small blocks but I am then having to rebuild the final dataset in memory from the blocks before writing the whole to the server using createImageFromNumpySeq.
We have increased the heap space to cover ourselves (we don't get heap space errors) and we have set the MessageSizeMax to 1024MB but still the error states that this is 64MB. Is this a hard-coded maximum value?
Is there a better way to approach this kind of thing? Incremental writing of the image to the server?
Thanks in advance for any help/suggestions!
Cheers,
Dan.