Bug SS-161
1 vote

ImageEditRegion: Loss of image data

Created by Martin Kraska on 6/16/2014 2:35 AM Last Updated by Martin Kraska on 8/4/2014 1:22 AM
Logged: 0   (hrs)


The ImageRegion as contained in the portable SMath with Maxima distribution seems to occasionally loose data.

By whatever reason, the region looses contact to the temporary image file. This happened to me three time just when I tried to save the file. Then I got an error message saying that the file does not exist.

In that case the only chance to keep your image is to make a screenshot, delete the region, create a new one, open in the editor and paste the screenshot.

Unfortunately, I cannot reproduce the precise trigger event for the problem.

    Martin Kraska (Monday, August 4, 2014 1:22 AM) #

fixed in ImageEditRegion SVN 955

    Martin Kraska (Sunday, June 29, 2014 10:02 AM) #

Source of the problem identified:

Multiple instances of SMath share a single temp dir for images. Temporary images are created by the Draw2D() and Draw3D() functions and if a file with existing images is opened.

The image contents is not kept in memory but relies entirely on the associated image files.

The temp dir is cleaned up when one of the instances of SMath is closed. Then all temp images are removed, including those of other running instances.