Page 1 of 2
Meridian flip sequence crash
Posted: Thu Feb 13, 2025 4:25 pm
by stbkaiser
HI Robin
I have been trying to setup a Meridian flip sequence using your
PERIODIC "Meridian Handling Steps" WHEN WITHIN 0.5 MINUTES OF MERIDIAN.
I am running
SharpCapInstall-4.1.13096.0-64bit
Win 11 pro
Rainbow Astro RST135
ASI2600 pro
I am running during the day to test the sequence, no guiding, picking targets that are closing in on the Meridian .
I am trying to run with a simple method of flip.
Every time the sequence triggers the
PERIODIC "Meridian Handling Steps"
SC crashes.
I have included the sequence file and the log file.
Let me know if there is something I can do to get this to run.
Thanks
Steve
Re: Meridian flip sequence crash
Posted: Fri Feb 14, 2025 1:40 pm
by admin
Hi Steve,
that's an odd one - the log just breaks off with no errors/warnings in the middle of capturing a couple of minutes after the flip has happened.
When the log breaks off like that, it's usually a sign that the crash has occurred in code that isn't part of SharpCap itself - that means perhaps inside a camera SDK or inside an ASCOM driver. I presume that you are not seeing a prompt to do a bug report, since if that was happening, we'd see that in the log...
Two ways to proceed from here -
1) Use procdump from Microsoft to capture a crash dump from SharpCap when it happens and send the crash dump to me - I can then see what is the cause of the crash. See this post for instructions on how to use procdump :
viewtopic.php?t=7169#p39396
2) A process of elimination - try using the SharpCap test camera rather than your ZWO camera - if that no longer crashes then it's likely that the ZWO SDK is triggering the crash for some reason. If it still crashes then try getting the Rainbow Astro code out of SharpCap by using the ASCOM device hub for the mount connection - that would then mean that if the crash is coming from the Rainbow Astro code, it would be the ASCOM device hub application that dies, not SharpCap.
cheers,
Robin
Re: Meridian flip sequence crash
Posted: Fri Feb 14, 2025 10:40 pm
by stbkaiser
Hi robin
A quick note on this. Not sure if this helps.
When sharpcap crashes, the rainbow interface panel is still active. I have to use task manager to kill it.
I will run tests as you suggested and report back.
Unfortunately I only have zwo cameras so can’t test other brands.
I know I just updated recently to their camera SDK V1.37.0.0
Take care
Steve
Re: Meridian flip sequence crash
Posted: Sat Feb 15, 2025 7:35 pm
by stbkaiser
hi Robin
Thanks for the info to debug this.
To make sure this was not a PC System issue I ran the script on another computer.
The first one was a WIN 10 pro system ( i misidentified the op system in my first msg).
This time I ran on a Win11 pro and I was able to run with procdump .
The same thing happened when it hit the
PERIODIC "Meridian Handling Steps"
SC crashed out, and the Rainbow ASCOM ctrl panel remained open.
I have sent the procdump file as a google link for your inspection.
https://drive.google.com/file/d/1SLQ-e1 ... O5ltV/view
Thank you for help with this.
Steve
Re: Meridian flip sequence crash
Posted: Mon Feb 17, 2025 9:21 am
by admin
Hi Steve,
looks like we have a stack overflow happening in the SharpCap code (I think), although the final crash looks like it may be happening in code related to some dropbox related software (I think that might be a red herring though).
The stack overflow arises when the code gets into a loop where part A calls part B, then part B calls A, which calls B, which calls A, which continues endlessly.
Unfortunately I can't seem to get any info out of the dump as to where in the code this is happening. Can we try a full dump instead of a mini dump (-ma rather than -mm on the command line)? Hopefully that will contain the info I need.
thanks,
Robin
Re: Meridian flip sequence crash
Posted: Mon Feb 17, 2025 5:49 pm
by stbkaiser
HI Robin
Yes I noticed it was a cryptic STACK overflow.
I will try using the Test camera to see what happens .
If that fails I will then try with the full dump .
Thanks
Steve
Re: Meridian flip sequence crash
Posted: Tue Feb 18, 2025 3:39 am
by stbkaiser
Hi Robin
Sorry
Not sure this will help much.
Another unclear stack overflow from what I could see.
I assume your script function is "monitoring " the mount position via ASCOM query which is different from the GOTO function?
but if that is case then why crash only when it hits meridian trigger zone?
Sorry, speculation on my part.
Here is link to the dump
https://drive.google.com/file/d/1VN535A ... GG6nc/view
Thanks
Steve
Re: Meridian flip sequence crash
Posted: Tue Feb 18, 2025 3:09 pm
by admin
Hi Steve,
unfortunately the sharing link was the sort where you have to grant access to download, so I cannot have a look at the new crash dump just yet.
If I can get any stack frames out of the stack overflow issue then I might have a chance to pin down where the problem is coming from - if not then we will have to come up with some other approach - just not quite sure what yet!
cheers,
Robin
Re: Meridian flip sequence crash
Posted: Wed Feb 19, 2025 7:46 pm
by stbkaiser
Sorry Robin
Access has now been opened for the link
Thanks
Steve
Re: Meridian flip sequence crash
Posted: Thu Feb 20, 2025 3:35 pm
by admin
Hi Steve,
thanks for that - I have downloaded and unfortunately get a similar problem to the mini dump - it looks like the app has half shut down so that the thread that had the problem is no longer active and cannot have its stack trace read (or at least not using the normal windbg tools). That got me digging around a bit more though and eventually led me to find the problem, which fortunately had an easy fix. Watch out for next week's update which should solve this

Thanks for the help in getting this one found and resolved
thanks,
Robin