View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002900 | CCdciel | General | public | 26-03-08 22:58 | 26-03-20 20:49 |
| Reporter | han | Assigned To | Patrick Chevalley | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | resolved | Resolution | not fixable | ||
| Summary | 0002900: CCDCiel 0.9.93 crashes when autoguider is settling | ||||
| Description | I have a new computer running Win10 instead of Win7. I have installed the latest CCDciel version 0.9.93. Unfortunally CCDCiel has crashed at least three times during the last two clear nights. It happens at Auto guider settling. See attached log. This has never happende before. My previous computer was running CCDCiel 0.9.92 Last lines in the log 2026-03-08T20:50:59.367 3: Autoguider: Start Guiding 2026-03-08T20:50:59.497 3: Autoguider: Looping Exposures 2026-03-08T20:51:01.575 3: Autoguider: Settling or at 2026-03-08T19:03:25.958 3: Autoguider: Looping Exposures 2026-03-08T19:03:28.059 3: Autoguider: Settling 2026-03-08T19:03:28.063 3: ASCOM.QHYCCD_GUIDER.Camera: Set binning 2x2 I switched now back to version 0.9.92 to see if this fixes this problem Any idea what could cause this behavior? | ||||
| Tags | No tags attached. | ||||
|
|
|
|
|
There is no error message. CCDciel just gone without a trace of any error messages. Once 0.9.92 is running fine, I will run 0.9.93 again in the debugger. |
|
|
I make many test but I cannot reproduce the crash. One of the change between this two version is the plot of the star mark is now done in pu_main DrawGuideImage(). This is to improve the performance by drawing the guide image only after the guiding is complete and the next exposure is started. For that in cu_autoguider_internal it store the position and size to plot in an array. This was not checking the array range explicitly, and I fix that now, even there is very little chance to reach the maxstars limit. https://github.com/pchev/ccdciel/commit/42bef02772e793fb514740fd894ac48ca9d28631 |
|
|
Thanks for looking into it. Here the guider typically finds only a few stars. Next time I will run CCDCiel in the debugger. The only other thing observed here, is that the guider USB link has become unreliable probably due to a poor USB connector contact. Maybe this is causing the crash. |
|
|
Tested this night the following: CCDCiel 2025/08/19, same problem crashes random when guider is active CCDciel latest code in debugger, Crashes inside debugger, Not clear where in code. See attached screenshot. At this moment, I'm pretty confident the guider driver is to blame. Setting USB speed slower and USB traffic seems to help but not fully. I'm surpriced the driver can cause this but it looks like. A better shorted USB connection may help. So not a problem for CCDCiel and this issue can be closed. |
|
|
The error code is "status heap corruption" . This can be from the driver outside of a try except block? I will look what change in the Ascom camera interface between 92 and 93. |
|
|
This morning I run the program in the debugger again. I only connected the guider camera and started looping of the guider camera. Simular exception. So the new Win10 QHY5II driver combined with a poor USB connection results in these crashes. It would be nice if CCDCiel could handle this with just an exception. Attached a screenshot and the last three lines of the several logs from last night. My previous Win7 QHY5II camera driver could handle this better. Unfortunally I can't use it in Win10. last lines of logs.txt (1,929 bytes)
2026-03-17T09:50:56.347 3: ASCOM.QHYCCD_GUIDER.Camera: Connected 2026-03-17T09:51:07.941 3: Autoguider: Looping Exposures 2026-03-17T09:51:14.237 3: ASCOM.QHYCCD_GUIDER.Camera: Set binning 2x2 ------------- 2026-03-17T09:49:47.206 2: TCP/IP server listen on port: 3277 2026-03-17T09:49:57.941 2: Connecting Guide camera ASCOM "ASCOM.QHYCCD_GUIDER.Camera" … 2026-03-17T09:49:57.972 9: ASCOM.QHYCCD_GUIDER.Camera: Interface version: 2 --------------- 2026-03-16T22:33:39.260 3: Autoguider: Start Guiding 2026-03-16T22:33:39.413 3: Autoguider: Looping Exposures 2026-03-16T22:33:41.472 3: Autoguider: Settling ---------------- 2026-03-16T21:47:40.691 3: Autoguider: Start Guiding 2026-03-16T21:47:40.836 3: Autoguider: Looping Exposures 2026-03-16T21:47:42.887 3: Autoguider: Settling ---------------- 2026-03-16T21:38:21.971 1: ASCOM.QHYCCD_GUIDER.Camera: Temperature ramp requested to stop 2026-03-16T21:38:24.914 3: Autoguider: Looping Exposures 2026-03-16T21:38:27.100 3: ASCOM.QHYCCD_GUIDER.Camera: Set binning 2x2 ---------------- 2026-03-16T21:17:02.930 9: ASCOM Platform 7.0, 7.0.1.4630 2026-03-16T21:17:03.227 2: TCP/IP server listen on port: 3277 2026-03-16T21:17:54.425 3: Internal guider Dark size: 640x512, Exposure time: 3.000 ---------------- 2026-03-16T21:12:29.989 2: TCP/IP server listen on port: 3277 2026-03-16T21:15:23.986 3: Internal guider Dark size: 640x512, Exposure time: 3.000 2026-03-16T21:15:42.564 3: Internal guider Dark size: 640x512, Exposure time: 3.000 ---------------- 2026-03-16T20:04:51.454 3: Autoguider: Start Guiding 2026-03-16T20:04:51.617 3: Autoguider: Looping Exposures 2026-03-16T20:04:53.829 3: Autoguider: Settling ----------------- 2026-03-16T19:03:58.920 3: Autoguider: Looping Exposures 2026-03-16T19:04:04.968 3: Autoguider: Settling 2026-03-16T19:04:04.975 3: ASCOM.QHYCCD_GUIDER.Camera: Set binning 2x2 ----------------- |
|
|
Can you try to connect this camera as the main camera, loop and change binning. Do it crash in this case? This is to be sure this is from the driver and not from the guider code. |
|
|
The QHY5 as main camera has now been looping for more then two hours without an error. This hints that the main camera option could work more reliable, but it is too early to tell. I will continue tomorrow. Unplugging the USB and replugging helps with making the connection but likely only temperary. More tomorrow. |
|
|
During the day I had three times an error while looping the QHY5 as main camera. Looping stopped and could be restarted. No crash. During the nightwith the GHY5II as guider, I had a about 6 crashes. After that I had enough and replaced the cable by a spare one. System is now running smooth for one hour now. So I have the impression that connecting the QHY5II as main camera works more reliable then as guider. Is the software very different and if so can the guider part be made simular as main camera with some tweaks? |
|
|
All the ASCOM code in cu_ascomcamera.pas is exactly the same for the main camera and the guider. This is only after the reception of the image data that the code in onNewImage property is different. Do it work better with the new cable? |
|
|
Yes it works reliable with the new cable. If the software is the same, then there is nothing to improve and this issue can be closed. |
|
|
Ok, I close it now. I also search more about the "status heap corruption" exit code, it look like this not raise an exception, so this cannot be trapped in a try...except. As the error is most probably in the driver after the USB error there is nothing that can be done in CCDciel. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 26-03-08 22:58 | han | New Issue | |
| 26-03-08 22:58 | han | File Added: Log_20260308_202026.zip | |
| 26-03-08 23:14 | han | Note Added: 0009659 | |
| 26-03-10 15:49 | Patrick Chevalley | Note Added: 0009660 | |
| 26-03-10 16:04 | han | Note Added: 0009661 | |
| 26-03-16 23:19 | han | Note Added: 0009666 | |
| 26-03-16 23:19 | han | File Added: Untitled1.png | |
| 26-03-17 08:53 | Patrick Chevalley | Note Added: 0009667 | |
| 26-03-17 11:10 | han | Note Added: 0009668 | |
| 26-03-17 11:10 | han | File Added: last lines of logs.txt | |
| 26-03-17 11:10 | han | File Added: Untitled.png | |
| 26-03-17 16:46 | Patrick Chevalley | Note Added: 0009669 | |
| 26-03-17 21:53 | han | Note Added: 0009670 | |
| 26-03-18 23:27 | han | Note Added: 0009671 | |
| 26-03-20 20:05 | Patrick Chevalley | Note Added: 0009672 | |
| 26-03-20 20:19 | han | Note Added: 0009673 | |
| 26-03-20 20:49 | Patrick Chevalley | Assigned To | => Patrick Chevalley |
| 26-03-20 20:49 | Patrick Chevalley | Status | new => resolved |
| 26-03-20 20:49 | Patrick Chevalley | Resolution | open => not fixable |
| 26-03-20 20:49 | Patrick Chevalley | Note Added: 0009674 |