Author Topic: PI hangs on loading a project  (Read 3924 times)

Offline Jules

  • PixInsight Guru
  • ****
  • Posts: 513
PI hangs on loading a project
« on: 2011 December 01 15:38:29 »
Hi

I am trying to open a project I was successfully working on last night, I get this error message seen in the processing console window and PI hangs up.

I am using:

PI version 01.07.00.0702 on an iMac running OS X 10.7.2
 
I have never had this problem before?

Regards

Julian

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PI hangs on loading a project
« Reply #1 on: 2011 December 01 16:16:49 »
Hi Julian,

This is a very weird problem. Could you please upload the image (wednesday30nov11) somewhere, so we can analyze it? (in case you have it outside the project) Also, I'd like to take a look at your .xosm file.

A simple test to rule out filesystem problems: copy your entire project (the .xosm file and the .data folder) to a different location, preferably to a directory without spaces (something like /Users/julian/test would be nice), and try to open it.

Be sure we'll work to fix this problem; sorry for the inconvenience.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Jules

  • PixInsight Guru
  • ****
  • Posts: 513
Re: PI hangs on loading a project
« Reply #2 on: 2011 December 01 16:31:05 »
Juan

As always a prompt reply, thanks!

I will carry out your suggestions and get back.

Regards

Julian

Offline Jules

  • PixInsight Guru
  • ****
  • Posts: 513
Re: PI hangs on loading a project
« Reply #3 on: 2011 December 01 16:49:32 »
Hi Juan

I copied the .data folder and the .xosm file to a directory called test and opened the project in PI. The same problem occurred, please see the attached screen grab. I have also attached the .xosm file for your perusal.

Regards

Julian
« Last Edit: 2011 December 01 17:06:22 by Jules »

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PI hangs on loading a project
« Reply #4 on: 2011 December 02 03:49:04 »
Hi Julian,

I have never seen something like this. The problem is that the project file (.xosm) does not define any process instance. PI crashes because the .xosm file does not provide the processes that should have been stored in the processing histories of each view. For example:

   <ImageWindow currentView="wednesday30nov11" ... >
      <MainView id="wednesday30nov11" ... >
         <initialProcessing/>
         <processing historyIndex="16"/>


the <processing> tag tells that the image "wednesday30nov11" has a nonempty processing history and the current state of the image corresponds to the 16th history step (the "historyIndex" attribute). However, the tag is empty (we know this from the closing slash: "/>". When PI loads this project, it expects to read at least 16 process instances but there is none. This is theoretically impossible and I didn't write the code robust enough to resist this event (I should).

The same applies to all images (including previews), to the states of all process insterfaces and to the icons: there are no process instances defined in this .xosm file. The icons will load, but with default parameters for each process. I'm sorry... I have edited the .xosm by hand to let you at least load the images; you'll find it attached to this post.

Can you figure out why this has happened? It is theoretically impossible (well, actually, it *is* impossible looking at the code) for the project generation code to write a .xosm file without any instances if there is one processed image. I'll have to investigate this very carefully.

Sorry again...
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Jules

  • PixInsight Guru
  • ****
  • Posts: 513
Re: PI hangs on loading a project
« Reply #5 on: 2011 December 02 04:06:15 »
Thanks Juan, I will try the new .xosm

Regards

Julian

Offline Jules

  • PixInsight Guru
  • ****
  • Posts: 513
Re: PI hangs on loading a project
« Reply #6 on: 2011 December 02 04:13:37 »
Hi Juan

I have tried your .xosm and it opens all the images minus the history.

The only thing different I have done between opening the project is open up the history explorer?

Regards

Julian