SGP crash in the middle of the night

Hi there,

I’ve been using SGP for a while now. I’ve had a few unexplained crashes (as in: you wake up in the middle of the night and SGP isn’t there anymore). I had one last night. There is nothing recorded in the log. Here is the end of the log file:

[08/30/19 01:42:07.799][DEBUG] [Sequence Thread] Waking from exposure time sleep period...
[08/30/19 01:42:07.800][DEBUG] [Sequence Thread] Checking to see if the CCD has a temp...
[08/30/19 01:42:07.800][DEBUG] [Sequence Thread] Saving the CCD temp...
[08/30/19 01:42:07.809][DEBUG] [Sequence Thread] Entering super dangerous loop to await image completion...
[08/30/19 01:42:07.812][DEBUG] [Sequence Thread] EventMarker 16 - t:Abell 2218 (0); e:0; f:42; o:
[08/30/19 01:42:12.676][DEBUG] [Camera Thread] SGM_CAMERA_CAPTURE complete...
[08/30/19 01:42:13.167][DEBUG] [Sequence Thread] EventMarker 17 - t:Abell 2218 (0); e:0; f:42; o:
[08/30/19 01:42:13.167][DEBUG] [Sequence Thread] Image reported as complete.  Continuing...
[08/30/19 01:42:13.171][DEBUG] [Sequence Thread] Collecting FITs headers...
[08/30/19 01:42:13.172][DEBUG] [Sequence Thread] ASCOM Camera - Camera reports last image start time as: 2019-08-30T01:32:07 UTC
[08/30/19 01:42:13.173][DEBUG] [Sequence Thread] DATE-LOC time provided by camera...
[08/30/19 01:42:13.180][DEBUG] [Sequence Thread] GatherFitsHeaders: Writing header info for last solve...
[08/30/19 01:42:13.180][DEBUG] [Sequence Thread] GatherFitsHeaders: Writing header info from UI...
[08/30/19 01:42:13.354][DEBUG] [Sequence Thread] Clearing timed monitoring events...
[08/30/19 01:42:13.379][DEBUG] [Sequence Thread] Created full file name (file does not exist): C:\Images\CCD\Abell 2218\Light\Abell 2218_600sec_1x1_frame43_-15C_2019-08-30_012738.fit
[08/30/19 01:42:13.379][DEBUG] [Sequence Thread] SaveFileAscom: Start...
[08/30/19 01:42:13.380][DEBUG] [Sequence Thread] SaveFileAscom: Checking image data...
[08/30/19 01:42:13.380][DEBUG] [Sequence Thread] SaveFileAscom: Create normal preview bitmap...
[08/30/19 01:42:13.387][DEBUG] [Environment Device Thread] GlobalExceptionHandler caught : Collection was modified; enumeration operation may not execute.
[08/30/19 01:42:13.387][DEBUG] [Environment Device Thread] InnerException : Empty
[08/30/19 01:42:13.387][DEBUG] [Environment Device Thread] Runtime terminating: True
[08/30/19 01:42:13.411][DEBUG] [Sequence Thread] SaveFileAscom: Locking preview bits...
[08/30/19 01:42:13.411][DEBUG] [Sequence Thread] SaveFileAscom: Validating file name...
[08/30/19 01:42:13.412][DEBUG] [Sequence Thread] SaveFileAscom: Starting byte traversal...
[08/30/19 01:42:13.826][DEBUG] [Sequence Thread] SaveFileAscom: Unlocking preview bits...
[08/30/19 01:42:13.833][DEBUG] [Sequence Thread] SaveFileAscom: Saving preview bitmap to disk...
[08/30/19 01:42:13.833][DEBUG] [Sequence Thread] SaveFileBmp16: Locking bitmap for disk write...
[08/30/19 01:42:13.834][DEBUG] [Sequence Thread] SaveFileBmp16: Opening file stream...
[08/30/19 01:42:13.835][DEBUG] [Sequence Thread] SaveFileBmp16: Writing FITS headers...
[08/30/19 01:42:13.858][DEBUG] [Sequence Thread] SaveFileBmp16: Traversing and persisting bitmap data...

Windows reports an exception, but as the code is obfuscated, I don’t know how useful it is:
Application: Sequence Generator.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
at System.ThrowHelper.ThrowInvalidOperationException(System.ExceptionResource)
at System.Collections.Generic.List1+Enumerator[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNextRare() at System.Collections.Generic.List1+Enumerator[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at System.Linq.Enumerable+WhereListIterator1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext() at System.Collections.Generic.List1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]…ctor(System.Collections.Generic.IEnumerable1<System.__Canon>) at System.Linq.Enumerable.ToList[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable1<System.__Canon>)
at j3.b2(System.String)
at j3.b1(System.String)
at j3.cb()
at q8.d9()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()

The version of SGP I use is the latest beta downloadable (3.1.0.213). I’ve had similar crashes with the previous beta.

Thanks.

Hi there,

The crash happened last night again at the end of each sequence. I link below to the fulll log of the first sequence.

http://www.raguenaud-online.org/cedric/astro/sg_logfile_20190901211642.txt

Thanks.

@Cedric_Raguenaud

You should NEVER save user data (like sequences) to “Program Files”. Windows has a fit when you do that. We can do a better job of either detecting this or preventing a crash or both. In the meantime, save your sequence files to another place that is not so protected by Windows.

[09/02/19 02:00:40.139][DEBUG] [MF Update Thread] Error in main form UI updater: Access to the path 'C:\Program Files (x86)\Sequence Generator\28082019.sgf' is denied.

Hi Ken,

Yes of course. And that’s not where the sequences are saved. But that’s where SGP wants to save them when it autosaves, whether I like it or not, and of course it fails.

Reopening sequence files from other directories doesn’t help, it still wants to save to program files. I can’t think of any way to stop it or make it understand that it needs to save the sequences where they read from.

Any ideas?

@Cedric_Raguenaud

Hmm… Just now noticing you are on the beta. We don’t log the location of the opened sequence when it loads the last one you had open. Where is it supposed to be? Are there any odd characters in the path where you save sequences?

Yes I’m indeed using the latest beta. The sequence files are in my Documents folder, with no special character in the path (\users\cedric\Documents).

@Cedric_Raguenaud

I have confirmed that issue has already been resolved in 3.1.0.226 (currently available for download)

Great.

I couldn’t find 226 when I looked the other day. I saw a message saying that it had lots of problems and had been pulled. In the meantime I’ve downgraded to the previous beta.

3.1.0.226 was released yesterday.