Fiji Crashes When Opening Images

Hi all. I’m new to using Fiji.

Information about my computer:
2018 Macbook running MacOS Mojave, Version 10.14.1
Processor 3.1 GHz Intel Core i5
Memory is 8Gb
Running on Java 8

I’m trying to open large TIFF files (1-4GB) and RBG JPEG files (converted from the TIFF files via Photoshop).

My first issue is that attempting to open TIFF files almost immediately crashes the program without any error messages.

My second issue is that my JPEG files won’t open either. I keep getting the error message: “Error loading image (Note: IJ cannot open CMYK JPEGs)” even though my JPEGs are RGB. For this issue, the console gives me the message below:

Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
	at java.awt.image.DataBufferInt.<init>(
	at java.awt.image.Raster.createPackedRaster(
	at java.awt.image.DirectColorModel.createCompatibleWritableRaster(
	at sun.awt.image.ImageRepresentation.createBufferedImage(
	at sun.awt.image.ImageRepresentation.setPixels(
	at sun.awt.image.ImageDecoder.setPixels(
	at sun.awt.image.JPEGImageDecoder.sendPixels(
	at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
	at sun.awt.image.JPEGImageDecoder.produceImage(
	at sun.awt.image.InputStreamImageSource.doFetch(
	at sun.awt.image.ImageFetcher.fetchloop(

I have tried deleting and reinstalling Fiji multiple times. The same issues occur.

Hi @isabelag,

Welcome to the forum.

Your first issue may be tricky to figure out. Where did the TIFF files that you’re having trouble come from? How were they generated? and how big are they? If you’re able to upload one to the forum, it could help us figure it out.

For your second issue:
You can allow imagej to use more memory with:
Edit > Options > Memory & Threads ...
It may be set to a value that is too low, so increasing it may help.
6000MB or so will be a good value (going too high can also cause issues)

There’s a bit more information here, but not sure it’ll be relevant for you.

Good luck, and please post back if you’re still having issues (or if this worked for you!)


Hi there. Thanks for the response.

The files I’m trying to open are too big to upload here. Hopefully this dropbox link works:

In this folder is the JPEG I’m having trouble opening, as well as the TIFF files. The latter were converted from KTL files (also in the folder) using software that comes with a fluorescence microscope (BZ-X series).

I’ve also recently tried using a Windows computer that allows for 15000+ memory use. Even then, the TIFF files won’t open.

EDIT: Just tried the suggestion for expanding my laptop’s memory. I no longer get the error message about my file being CMYK. However, the image still doesn’t open. Below is the pop-up that shows up:

(Fiji Is Just) ImageJ 2.0.0-rc-59/1.51n; Java 1.8.0_66 [64-bit]; Mac OS X 10.14.1; 4091MB of 5966MB (68%)
java.lang.OutOfMemoryError: Java heap space
	at ij.process.ColorProcessor.<init>(
	at ij.ImagePlus.setupProcessor(
	at ij.ImagePlus.isInvertedLut(
	at ij.measure.Calibration.<init>(
	at ij.ImagePlus.getLocalCalibration(
	at ij.ImagePlus.setType(
	at ij.ImagePlus.setImage(
	at ij.ImagePlus.<init>(
	at ij.plugin.DragAndDrop.openFile(

1 Like

Hi @isabelag,

I have problems opening one of those files as well (CD3-58NoTAE-20xMontage-062618.tif)
but I’m on a linux workstation with a ton of memory.

While we’re figuring this out, another thing you could try is to go back to an older version of Fiji / imageJ:

Maybe start with the version from 2017 May 30.

Thanks for reporting the issue,

I am having the same problem. I am trying to open a 1.8GB tif file and as soon as the image loads, FIJI/ImageJ closes. I have loaded a few different versions of ImageJ including the 2017 May version. I have tried a few different image files. I can open the tif file with a Microsoft viewer, and zoom in to single pixel resolution- all looks good in MS. I can also open a 700MB JPG file with no issues. I have 12 GB of RAM on the windows 10 computer (an older Intel Core i5 processor). I have tried to load this on a laptop as well (16GB RAM, intel i7 processor, windows 10); it also fails.

I can open the TIFF file okay using the Bio-format plugin however when I merge the channels, FIJI crashes. Have also tried on ImageJ but still crashes also. Not sure what’s causing this problem. Have tried this on both windows and Mac.