Dither Error Code 1 Error?

204 views
Skip to first unread message

Jim Waters

unread,
Dec 6, 2020, 2:31:45 AM12/6/20
to Open PHD Guiding
I am using the current 2.6.9 Dev 2 build.  What's a "Dither Error Code 1" error?  When NINA tries to Dither I sometimes get this error.

Jim W

bw_msgboard

unread,
Dec 6, 2020, 12:40:21 PM12/6/20
to open-phd...@googlegroups.com

No idea, this doesn’t come from PHD2.  Suggest you ask the NINA people…

 

Bruce

 


--
You received this message because you are subscribed to the Google Groups "Open PHD Guiding" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-phd-guidi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/open-phd-guiding/e6ce0772-b9c1-4c08-ab3c-2dc5d0eaa497n%40googlegroups.com.

Jim Waters

unread,
Dec 6, 2020, 1:10:46 PM12/6/20
to Open PHD Guiding
Here are the log files.  The NINA developers say the "Dither Error Code 1" is not coming from NINA.  I got 4 of these last night.  Setup is as follows.

- Losmandy GM811G mount
- 50mm guide scope w/ QHY 5L-II
- ZWO ASI 2600MC Pro
- ASCOM 2.6 SP1

In the 10 years of Dithering I have never received this error message.  I will likely step back to a more stable release of PHD2.

Brian Valente

unread,
Dec 6, 2020, 1:35:59 PM12/6/20
to Open PHD Guiding
Jim

according to your debug log the dither is failing because you aren't actively guiding

in my (limited) experience with NINA so far, it does a lot of starting and stopping of things that seems unusual to me 

19:48:59.400 00.006 4244 evsrv: cli 06F18400 request: {"id":"5","method":"dither","params":{"amount":3,"raOnly":false,"settle":{"pixels":1.5,"time":16,"timeout":40}}}
19:48:59.403 00.003 4244 PhdController::Dither begins
19:48:59.408 00.005 4244 Error thrown from C:\cygwin\home\agalasso\projects\phd2\myframe.cpp:2010->cannot dither if not guiding
19:48:59.412 00.004 4244 PhdController::Dither pFrame->Dither failed
19:48:59.416 00.004 4244 evsrv: cli 06F18400 response: {"jsonrpc":"2.0","error":{"code":1,"message":"Dither error"},"id":"5"}
19:48:59.425 00.009 4244 evsrv: cli 06F18400 disconnect
19:52:35.371 215.946 4244 evsrv: cli 06F18B80 connect




--
Brian 



Brian Valente

Jim Waters

unread,
Dec 6, 2020, 2:12:28 PM12/6/20
to open-phd...@googlegroups.com
Thanks Brian.  This happened several times last night - PHD2 stopping.  PHD2 would just stop for no apparent reason.  This happened before with the 2.6.9 release and I stepped back to 2.6.7.  I would like to know why.  An astro buddy has seen this too.

Can something in the NINA code issue a 'stop guiding' command?  Is this a PHD2 bug?

You received this message because you are subscribed to a topic in the Google Groups "Open PHD Guiding" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/open-phd-guiding/gm-S8DTbGIo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to open-phd-guidi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/open-phd-guiding/CAJa45i4%2BYFRUJVoZQjkui0MLW7KuGLmXSdBYug2JZKdA2wq4eQ%40mail.gmail.com.

Brian Valente

unread,
Dec 6, 2020, 2:23:28 PM12/6/20
to Open PHD Guiding
>> Can something in the NINA code issue a 'stop guiding' command?  

100%. in fact NINA does this for a meridian flip

>>>Is this a PHD2 bug?

99% probably not. During imaging, PHD is controlled by NINA. NINA is like the driver and PHD is the car: it only responds to what it's told to do

Did you also upgrade NINA recently?

 

Jim Waters

unread,
Dec 6, 2020, 2:49:49 PM12/6/20
to open-phd...@googlegroups.com
I upgraded to 1.11 Build 28 yesterday.  Previously I was running 1.10HF2 Beta 006. I will post an official NINA bug report but it's likely there will be pushback saying its a PHD2 bug

bw_msgboard

unread,
Dec 6, 2020, 3:20:32 PM12/6/20
to open-phd...@googlegroups.com

This isn’t really rocket science, you or the NINA people should be able to figure it out by just looking at the log entries.  Let’s just take this one example, the one where a dither was attempted while guiding was inactive.  Log entries and comments below:

 

19:44:15.773 01.064 4244 evsrv: cli 06F18540 connect

19:44:15.833 00.053 4244 evsrv: cli 06F18400 connect

19:44:15.845 00.004 4244 evsrv: cli 06F18400 request: {"id":"96","method":"get_pixel_scale"}

19:44:15.849 00.004 4244 evsrv: cli 06F18400 response: {"jsonrpc":"2.0","result":3.86747,"id":"96"}

19:44:15.860 00.011 4244 evsrv: cli 06F18400 disconnect

19:45:23.699 00.811 4244 evsrv: cli 06F18D60 connect

19:45:23.713 00.005 4244 evsrv: cli 06F18D60 request: {"id":"99","method":"get_app_state"}

19:45:23.722 00.005 4244 evsrv: cli 06F18D60 response: {"jsonrpc":"2.0","result":"Guiding","id":"99"}

19:45:23.726 00.004 4244 evsrv: cli 06F18D60 disconnect

19:45:23.731 00.005 4244 evsrv: cli 06F18B80 connect

 

>>> Your app issues a ‘stop capture’ command – this is just like clicking on the big red ‘Stop’ button in PHD2,  Looping and guiding STOP after the camera exposure is aborted.

19:45:23.742 00.004 4244 evsrv: cli 06F18B80 request: {"id":"6","method":"stop_capture"}

 

19:45:23.755 00.007 4244 evsrv: cli 06F18B80 response: {"jsonrpc":"2.0","result":0,"id":"6"}

19:45:23.759 00.004 4244 evsrv: cli 06F18B80 disconnect

19:45:23.766 00.007 4244 evsrv: cli 06F18400 connect

19:45:23.778 00.003 4244 evsrv: cli 06F18400 request: {"id":"99","method":"get_app_state"}

19:45:23.784 00.003 4244 evsrv: cli 06F18400 response: {"jsonrpc":"2.0","result":"Guiding","id":"99"}

19:45:23.788 00.004 4244 evsrv: cli 06F18400 disconnect

19:45:24.869 00.010 4244 evsrv: cli 06F18CC0 connect

 

>> You app continues to poll the state of PHD2 – here it’s told that it is STOPPED based on the command it sent one second earlier.

19:45:24.873 00.004 4244 evsrv: cli 06F18CC0 request: {"id":"99","method":"get_app_state"}

19:45:24.876 00.003 4244 evsrv: cli 06F18CC0 response: {"jsonrpc":"2.0","result":"Stopped","id":"99"}

 

19:45:24.880 00.004 4244 evsrv: cli 06F18CC0 disconnect

19:48:59.394 214.514 4244 evsrv: cli 06F18400 connect

 

>> Despite all this, your app now wants to start a dither operation and is told the operation can’t be done

19:48:59.400 00.006 4244 evsrv: cli 06F18400 request: {"id":"5","method":"dither","params":{"amount":3,"raOnly":false,"settle":{"pixels":1.5,"time":16,"timeout":40}}}

19:48:59.416 00.004 4244 evsrv: cli 06F18400 response: {"jsonrpc":"2.0","error":{"code":1,"message":"Dither error"},"id":"5"}

 

So this is NOT a PHD2 bug, it’s a fouled up automation sequence.   Analyzing this sort of thing requires nothing more than a text-search for ‘evsrv’ in the debug log file, looking at the request/response pairs, and thinking about what’s going on.

Jim Waters

unread,
Dec 6, 2020, 3:34:39 PM12/6/20
to open-phd...@googlegroups.com
Thanks Bruce for reviewing the logs.  I just posted an official NINA bug.

Brian Valente

unread,
Dec 6, 2020, 4:08:26 PM12/6/20
to Open PHD Guiding
Jim - 

i'm not an apologist for NINA, but i can see how their first reaction is "that's an error thrown by PHD so not our problem"

Hopefully with your post they can see what's really going on and are able to address this



Reply all
Reply to author
Forward
0 new messages