We're Hiring!

Matlab import of Aperio .svs file creates java memory error

Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats
Please note:
Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats

If you are having trouble with image files, there is information about reporting bugs in the Bio-Formats documentation. Please send us the data and let us know what version of Bio-Formats you are using. For issues with your code, please provide a link to a public repository, ideally GitHub.

Matlab import of Aperio .svs file creates java memory error

Postby epaulw » Thu Oct 18, 2012 1:24 pm

Making my first attempts to import a file to Matlab using Bioformats. The file is generated by Aperio, has a .svs extension, and is large. It also has several ancillary files (metadata) that should be brought in at the same time. Here is how it goes (below). Any thoughts on how to fix this? Thanks. Paul

>> A=bfopen('E:\data\Theresa\Aperio Scans from tmz\83806.svs');
Reading IFDs

Populating metadata

Populating OME metadata

Expected positive value for PhysicalSizeX; got 0.0

Expected positive value for PhysicalSizeY; got 0.0

Reading series #1
.??? Java exception occurred:
java.lang.OutOfMemoryError: Java heap space

at loci.common.DataTools.allocate(DataTools.java:863)

at loci.formats.ChannelSeparator.openBytes(ChannelSeparator.java:157)

at loci.formats.ChannelSeparator.openBytes(ChannelSeparator.java:143)


Error in ==> bfGetPlane at 38
plane = r.openBytes(iPlane - 1);

Error in ==> bfopen at 93
arr = bfGetPlane(r, i);
epaulw
 
Posts: 5
Joined: Thu Oct 18, 2012 1:17 pm

Re: Matlab import of Aperio .svs file creates java memory er

Postby mlinkert » Mon Oct 22, 2012 12:24 pm

Hi Paul,

Thank you very much for the error report.

The problem is that bfopen tries to open the complete image, even though it is very large. There is now a ticket on our issue tracking system to fix this:

http://trac.openmicroscopy.org.uk/ome/ticket/9777

In the meantime, if the image contains less than 2 GB of pixel data then you may be able to read it by increasing the amount of memory allocated to Matlab's JVM.

Regards,
-Melissa
User avatar
mlinkert
Team Member
 
Posts: 353
Joined: Fri May 29, 2009 2:12 pm
Location: Southwest Wisconsin

Re: Matlab import of Aperio .svs file creates java memory er

Postby epaulw » Wed Nov 28, 2012 2:53 pm

I did increase memory, and it works.

Thanks

P
epaulw
 
Posts: 5
Joined: Thu Oct 18, 2012 1:17 pm


Return to User Discussion [Legacy]

Who is online

Users browsing this forum: No registered users and 1 guest