CANDELbio / mantis-viewer

Electron-based multiplexed imaging viewer
Apache License 2.0
22 stars 7 forks source link

Can't import images on Mac #89

Open paulrbuckley-kcl opened 1 year ago

paulrbuckley-kcl commented 1 year ago

Hi,

I would be very interested in using mantis viewer for multipled imaging projects. I've tried the two most recent versions, but on my M1 MBP I cannot get mantis to open any images. I've screenshot the issue below. It begins saying 'loading image data' but then I get just a blank screen. When the blank screen occurs, it came up with on the console "Devtools cannot connect" or something to that effect. Wondering if you could point me in the right direction?

Thanks

Paul

Screenshot 2023-06-26 at 18 17 40
paulrbuckley-kcl commented 1 year ago

just to add to this the issue happens on Windows. I can load the channel.tiffs fine, but its when I load the segmented image that I get problems. segmentation.tiff is >2GB which i assume is causing the issue as when I load the segmentation, I get an error message "array buffer allocation failed"..

rj3d commented 1 year ago

Sorry for the delayed reply here! I just had a new kid, and things have been chaotic over here.

Mantis doesn't support loading any images larger than 2 GB unfortunately. The image library that Mantis uses loads the full image into memory, and JavaScript doesn't support objects in memory larger than 2 GB. You should be able to load segmentation data from the txt/csv format though. You can read about that here https://candelbio.github.io/mantis-viewer/docs/importing_data/importing_segmentation_region.html.

As for the M1 Mac issue, I'm able to reproduce on some M1 Macs, but I'm not sure what's going on. I'll look into it and see if it's an easy fix.

ArozHada commented 1 year ago

Hello,

I can confirm the same issue on M2 Mac. The viewer seems to have the image loaded but it freezes with the prompt "Selections are importing". I tried loading only a 250MB multi-channel Tiff file. Screenshot 2023-09-05 at 13 14 20

janinemelsen commented 10 months ago

I encountered the same problem on a M2 macbook. Images can be loaded, but the segmentation file of 240MB not:

image