Message Boards Message Boards

Why Mathematica is crashing when there is plenty of RAM available ?

Posted 10 years ago

I have the data of 1000 pictures where every picture size is 256x256. I try to display these pictures with their Fourier transform in pairs as ArrayPlots. If I just do the pictures, or just the Fourier transforms, Mathematica does not crash and shows 1000 pictures. When I pair them up then it crashes very quickly although there is plenty of RAM available. From the attached crash log it looks to me that not everything is 64 bit, so something hits hard the 4GB 32-bit limit. Then the OS simply kills Mathematica. The list name is plots, nRow and nCol are 256. I tried with Table too and that crashed too. Any good suggestions how to get around? I really would like to see them in pairs.

ParallelTable[{ArrayPlot[plots[[i, 1]], ImageSize -> Tiny , 
   PlotLabel -> {plots[[i, 2]], plots[[i, 3]], plots[[i, 4]], 
     plots[[i, 5]] }], 
  ArrayPlot[
   RotateRight[Fourier[plots[[i, 1]]], Floor[({nRow, nCol} - 1)/2] ]*
    Conjugate[
     RotateRight[Fourier[plots[[i, 1]]], 
      Floor[({nRow, nCol} - 1)/2] ]], ImageSize -> Tiny , 
   PlotLabel -> {plots[[i, 2]], plots[[i, 3]], plots[[i, 4]], 
     plots[[i, 5]] }]}, {i, 1, Length[plots]}]
Attachments:
POSTED BY: Janos Lobb
5 Replies

As you scroll through the list of plot pairs, save the notebook occasionally. This reduces how much has to be kept in the Front End memory.

POSTED BY: Bruce Miller
Posted 10 years ago
POSTED BY: Janos Lobb

The system requirements page lists the platforms on which Mathematica (kernel, frontend, other system libraries and components) will run. It reflects the fact that PowerPC Macs and 32-bit Intel Macs are basically extinct, and support for them is discontinued.

The Mac developer team is well aware of the desirability of a native 64-bit frontend and is working towards a full Cocoa port. I would guess that, with a codebase going back 25+ years, this is not an entirely trivial transition.

The actual computations are done in the kernel, which has full 64-bit support and can make use of any amount of memory installed in the system.

POSTED BY: Ilian Gachevski
Posted 10 years ago

So, then why the 64-bit requirement for OSX ?
http://www.wolfram.com/mathematica/system-requirements.html

It is a very bad situation. Wolfram already should have had a 64-bit frontend from OSX 10.0.

POSTED BY: Janos Lobb

One thing to keep in mind is that the OS X frontend is a 32-bit program.

POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract