Author Topic: Harmless application crash on exit (Windows only)  (Read 3276 times)

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Harmless application crash on exit (Windows only)
« on: 2009 July 17 11:12:06 »
I have detected a minor problem with PI 1.5.5 for Windows. It is completely inoffensive, but since it involves a crash, I think it's better to report it here before some users find it (nobody has reported it so far...).

When a newly created transparent image is rendered on the screen for the first time, PI performs an invalid drawing operation on an empty image. In the Windows version, this causes corruption of some internal control data. Fortunately, the corrupted data is only of marginal importance, and don't get involved in any operation until the application terminates (when the memory occupied by the corrupted data is freed). The same error can happen also with opaque images, although the probability is very small in this case.

To reproduce this error, follow these steps:

- Open the new MathTranClient script (Script > Utilities > MathTranClient)

- Enter some valid TeX source code. For example:

\sqrt 2

- Click the Render button (you need an active Internet connection).

- Check the Transparent option.

- Click the New Image button. This creates a new image window with the (transparent) formula rendition.

- Click the Exit button to terminate the script.

- Select File > Exit to exit PixInsight.

If you follow these steps on Windows, PI 1.5.5 crashes systematically after the main application window closes. This doesn't happen on Linux and Mac OS X (I have no idea why, since the same error actually occurs internally).

The good news is that this bug is now fixed. The fix will be part of PI 1.5.6.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/