# Frontend dims out, then freezes while writing output (jpeg)

The frontend dims out and then freezes while Mathematica (9.0.1) exports plots (in jpeg). If I minimize the frontend window and then I bring it back to the front, the window appears grey with not text like it is course of refreshing itself but it remains like that until the evaluation is finished.

The process of exporting the plots is taking extremely long (see a ls -lt below). The size of the jpeg files seems to play no role with this problem.

According to the timestamps it seems that Mathematica writes to disk in batches, although these batches do not correspond to the actual export blocks in the notebook, i.e., files with the same prefix (full, registry, main) are exported in the same block.

This issue appears only with the network version---a local installation, in a much less powerful machine, produces the entire output within 10 minutes (vs several hours in the server) without any dimming or freezing.

Also if I choose not to export the plots but to display them within the notebook, the dimming and freezing still happens but only at short intervals while rendering the images in the screen. The process is not as fast as it should be (for instance as compared with the results achieved in a local mathematica installation).

I have tinkered with the preferences, that is, not allowing mathematica to connect to the internet, check for updates, etc., to no improvement.

I cannot find any apparent network or communication problems that could explain this behavior.

Have any of you encounter this type of behavior before?

-rw-r--r-- 1 diaz-ortiz sr 104133 May  3 13:23 mainsmap2d_1.jpeg

-rw-r--r-- 1 diaz-ortiz sr  70587 May  3 13:12 mainmap2d_1.jpeg

-rw-r--r-- 1 diaz-ortiz sr  68030 May  3 13:12 mainpointcloud_1.jpeg

-rw-r--r-- 1 diaz-ortiz sr 121708 May  3 13:11 mainfirstpoint.jpeg

-rw-r--r-- 1 diaz-ortiz sr 305954 May  3 13:11 registrymap3d.jpeg

-rw-r--r-- 1 diaz-ortiz sr 103905 May  3 12:57 registrysmap2d.jpeg

-rw-r--r-- 1 diaz-ortiz sr  86344 May  3 12:46 registrymap2d.jpeg

-rw-r--r-- 1 diaz-ortiz sr  87306 May  3 12:46 registrypointcloudjpeg

-rw-r--r-- 1 diaz-ortiz sr    102 May  3 12:46 Data_analysis

-rw-r--r-- 1 diaz-ortiz sr 342684 May  3 12:46 fullmap3d.jpeg

-rw-r--r-- 1 diaz-ortiz sr 104140 May  3 12:28 fullsmap2d.jpeg

-rw-r--r-- 1 diaz-ortiz sr 106568 May  3 11:50 fullmap2d.jpeg

-rw-r--r-- 1 diaz-ortiz sr 111949 May  3 11:50 fullpointcloud.jpeg


### Edit (for completeness):

The plots in question are quite standard: histograms in 2d and 3d, both discrete and smooth. A typical instance is

fullmap2d = DensityHistogram[Flatten[listofsamples, 1],
Frame ->True,
FrameTicks -> None,
AxesOrigin -> {0, 0},
AspectRatio -> 1,
PlotRange -> {{0, 1}, {0, 1}},
ColorFunction -> Function[{height}, ColorData[colorscheme][height]],
Background -> None];


with an export like this

Export[plotsdir <> "fullmap2d.jpeg", fullmap2d, ImageSize -> 72*25];


listofsamples contains about 4000 data points.

Hope this helps diagnose this issue.

### Edit (Network installation Mathematica):

The problem described above occurs only when using a network installation of Mathematica, that is, Mathematica is installed on a server where MathLM runs and manages the licenses (concurrent users). The notebook is exported to the client machine but the execution happens on the server.

-
Very difficult to analyze without code / minimal working example. What dou you mean by "network version"? Barring that, perhaps of use: mathematica.stackexchange.com/q/17132/131 –  Yves Klett May 3 at 12:50
By network version, I mean a mathematica installation on a server where the kernel is run but the frontend is exported to a local machine. –  Alejandro Diaz Ortiz May 3 at 13:01
The plots are quite simple, mainly histograms in 2d and 3d both discrete and smooth. The export is to a jpeg file. –  Alejandro Diaz Ortiz May 3 at 13:04
I just edited my original post to add an example of the plots. –  Alejandro Diaz Ortiz May 3 at 13:15
You should edit the post to include all relevant data on your system / network setup (and not just in a comment). Take a look at the formatting help in the FAQ as well. –  Yves Klett May 3 at 13:23
show 1 more comment