Home button not selectable

Discussions, Bug Reports and Issues related to Beta versions of SharpCap
Post Reply
Opmc73
Posts: 116
Joined: Tue Jul 09, 2024 10:27 am

Home button not selectable

#1

Post by Opmc73 »

Hi Robin,

2 issues:

I just finished my livestack session and I wanted to do a return home with the new icon but I saw the new home button is not selectable as if it was allready in progress... but no , I haven not done it yet , neither park . Last event before that was a target stop because meridien reach so i did goto after past meridien and started that new livestack session.
Capture d’écran 2026-07-25 041009.jpg
Capture d’écran 2026-07-25 041009.jpg (70.5 KiB) Viewed 682 times
As I mention previously in another post, sometime I do a home with the new home icon and that button never come back to selection when in the same time the mount does not move. If I do home with the mount remote controller , it works and when finished the icon returns to a selectable state. I never use park, and I find very practical that home button but sometimes it does not work correctly.

kind regards
Oivier
User avatar
admin
Site Admin
Posts: 17610
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Home button not selectable

#2

Post by admin »

Hi Olivier,

well, one of those is easy - if you press the button and nothing happens then for some reason the ASCOM driver is not acting on the instruction to find the home position. At that point, the current version of SharpCap just waits until the mount does report that it is at the home position, so the button will stay disabled after pressing it in theory until the mount reaches home. If the mount doesn't move then it will stay disabled for ever.

I will correct that and put in a timeout of maybe 90s or so in the next update so that it will give up waiting if the 'find home' instruction doesn't complete in that time.

As to the rest, as far as I can see the only reason that the button would not be enabled initially is if the ASCOM driver responded false to SharpCap's initial query of whether it can find the home position (CanFindHome). SharpCap asks that question just after connecting - it's possible that the ASCOM driver could be badly behaved in that when it says it has finished connecting, it hasn't really finished everything and is still initializing some information. I've seen that sort of thing for other types of hardware where you have to wait a bit before asking the ASCOM driver hard questions like 'Can you do X' otherwise you get default replies of 'No'...

If you turn on the mount communications additional logging then you should be able to locate the request from SharpCap for 'CanFindHome' and see if that is always coming back as true (button should be enabled) or is sometimes false (button will be disabled, even if connected), or if something else is going on...

cheers,

Robin
Opmc73
Posts: 116
Joined: Tue Jul 09, 2024 10:27 am

Re: Home button not selectable

#3

Post by Opmc73 »

admin wrote: Sat Jul 25, 2026 10:44 am Hi Olivier,

well, one of those is easy - if you press the button and nothing happens then for some reason the ASCOM driver is not acting on the instruction to find the home position. At that point, the current version of SharpCap just waits until the mount does report that it is at the home position, so the button will stay disabled after pressing it in theory until the mount reaches home. If the mount doesn't move then it will stay disabled for ever.

I will correct that and put in a timeout of maybe 90s or so in the next update so that it will give up waiting if the 'find home' instruction doesn't complete in that time.

As to the rest, as far as I can see the only reason that the button would not be enabled initially is if the ASCOM driver responded false to SharpCap's initial query of whether it can find the home position (CanFindHome). SharpCap asks that question just after connecting - it's possible that the ASCOM driver could be badly behaved in that when it says it has finished connecting, it hasn't really finished everything and is still initializing some information. I've seen that sort of thing for other types of hardware where you have to wait a bit before asking the ASCOM driver hard questions like 'Can you do X' otherwise you get default replies of 'No'...

If you turn on the mount communications additional logging then you should be able to locate the request from SharpCap for 'CanFindHome' and see if that is always coming back as true (button should be enabled) or is sometimes false (button will be disabled, even if connected), or if something else is going on...

cheers,

Robin
the home button is generally allways active and wrks correctly, but from time to time I have that case where I did home previously working, did my capture sessions and then press button at the end and nothing moves and button never come back. If I have conditions I will try ogg things, but time is short to do astrophotgraphy ;)
Opmc73
Posts: 116
Joined: Tue Jul 09, 2024 10:27 am

Re: Home button not selectable

#4

Post by Opmc73 »

Hi Robin,

Got the issue tonigth.

The log is too big to attach but I copy something that seems to be in a loop , see below. After 90s , SC send a message he could not perform the commande and button got active again.


Warning 04:56:11.028714 #30 Inner Exception : ASCOM.ValueNotSetException: TargetRightAscension get - no value has been set. get - no value has been set.
---> System.Runtime.InteropServices.COMException (0x80040402): TargetRightAscension get - no value has been set.
--- End of inner exception stack trace ---
at void ASCOM.Com.DriverAccess.DynamicAccess.CheckDotNetExceptions(string memberName, Exception e) in /_/ASCOM.Com/ASCOM.Com.DriverAccess/BaseClass/DynamicAccess.cs:line 257
at bool ASCOM.Com.DriverAccess.DynamicAccess.TryGetMember(GetMemberBinder binder, out object result) in /_/ASCOM.Com/ASCOM.Com.DriverAccess/BaseClass/DynamicAccess.cs:line 153
at object CallSite.Target(Closure, CallSite, object)
at double ASCOM.Com.DriverAccess.Telescope.get_TargetRightAscension() in /_/ASCOM.Com/ASCOM.Com.DriverAccess/Telescope.cs:line 425
at object InvokeStub_IMountInterceptionProxy.get_TargetRightAscension(object, object, IntPtr*)
at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture) in object SharpCap.Base.Utilities.LoggingProxyBase.Invoke(MethodInfo targetMethod, object[] args)
Warning 04:56:11.028763 #30 Inner Exception : System.Runtime.InteropServices.COMException (0x80040402): TargetRightAscension get - no value has been set. in object SharpCap.Base.Utilities.LoggingProxyBase.Invoke(MethodInfo targetMethod, object[] args)
Warning 04:56:11.942210 #30 Exception from SharpCap.MountProxy.ASCOM.IMountInterceptionProxy.get_TargetRightAscension() : Exception of type 'TargetInvocationException' : Exception has been thrown by the target of an invocation.
Stack Trace: at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
at object SharpCap.Base.Utilities.LoggingProxyBase.Invoke(MethodInfo targetMethod, object[] args) in C:/Documents/Source Code/SharpCap/src/SharpCap.Base/Utilities/LoggingProxy.cs:line 25 in object SharpCap.Base.Utilities.LoggingProxyBase.Invoke(MethodInfo targetMethod, object[] args)
Warning 04:56:11.942316 #30 Inner Exception : ASCOM.ValueNotSetException: TargetRightAscension get - no value has been set. get - no value has been set.
---> System.Runtime.InteropServices.COMException (0x80040402): TargetRightAscension get - no value has been set.
--- End of inner exception stack trace ---
at void ASCOM.Com.DriverAccess.DynamicAccess.CheckDotNetExceptions(string memberName, Exception e) in /_/ASCOM.Com/ASCOM.Com.DriverAccess/BaseClass/DynamicAccess.cs:line 257
at bool ASCOM.Com.DriverAccess.DynamicAccess.TryGetMember(GetMemberBinder binder, out object result) in /_/ASCOM.Com/ASCOM.Com.DriverAccess/BaseClass/DynamicAccess.cs:line 153
at object CallSite.Target(Closure, CallSite, object)
at double ASCOM.Com.DriverAccess.Telescope.get_TargetRightAscension() in /_/ASCOM.Com/ASCOM.Com.DriverAccess/Telescope.cs:line 425
at object InvokeStub_IMountInterceptionProxy.get_TargetRightAscension(object, object, IntPtr*)
at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture) in object SharpCap.Base.Utilities.LoggingProxyBase.Invoke(MethodInfo targetMethod, object[] args)
Warning 04:56:11.942369 #30 Inner Exception : System.Runtime.InteropServices.COMException (0x80040402): TargetRightAscension get - no value has been set. in object SharpCap.Base.Utilities.LoggingProxyBase.Invoke(MethodInfo targetMethod, object[] args)
Warning 04:56:12.889358 #30 Exception from SharpCap.MountProxy.ASCOM.IMountInterceptionProxy.get_TargetRightAscension() : Exception of type 'TargetInvocationException' : Exception has been thrown by the target of an invocation.
Stack Trace: at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
at object SharpCap.Base.Utilities.LoggingProxyBase.Invoke(MethodInfo targetMethod, object[] args) in C:/Documents/Source Code/SharpCap/src/SharpCap.Base/Utilities/LoggingProxy.cs:line 25 in object SharpCap.Base.Utilities.LoggingProxyBase.Invoke(MethodInfo targetMethod, object[] args)
Warning 04:56:12.889484 #30 Inner Exception : ASCOM.ValueNotSetException: TargetRightAscension get - no value has been set. get - no value has been set.
---> System.Runtime.InteropServices.COMException (0x80040402): TargetRightAscension get - no value has been set.
--- End of inner exception stack trace ---
at void ASCOM.Com.DriverAccess.DynamicAccess.CheckDotNetExceptions(string memberName, Exception e) in /_/ASCOM.Com/ASCOM.Com.DriverAccess/BaseClass/DynamicAccess.cs:line 257
at bool ASCOM.Com.DriverAccess.DynamicAccess.TryGetMember(GetMemberBinder binder, out object result) in /_/ASCOM.Com/ASCOM.Com.DriverAccess/BaseClass/DynamicAccess.cs:line 153
at object CallSite.Target(Closure, CallSite, object)
at double ASCOM.Com.DriverAccess.Telescope.get_TargetRightAscension() in /_/ASCOM.Com/ASCOM.Com.DriverAccess/Telescope.cs:line 425
at object InvokeStub_IMountInterceptionProxy.get_TargetRightAscension(object, object, IntPtr*)
at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture) in object SharpCap.Base.Utilities.LoggingProxyBase.Invoke(MethodInfo targetMethod, object[] args)
Warning 04:56:12.889538 #30 Inner Exception : System.Runtime.InteropServices.COMException (0x80040402): TargetRightAscension get - no value has been set. in object SharpCap.Base.Utilities.LoggingProxyBase.Invoke(MethodInfo targetMethod, object[] args)
Warning 04:56:13.792717 #17 Exception from SharpCap.MountProxy.ASCOM.IMountInterceptionProxy.get_TargetRightAscension() : Exception of type 'TargetInvocationException' : Exception has been thrown by the target of an invocation.
User avatar
admin
Site Admin
Posts: 17610
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Home button not selectable

#5

Post by admin »

Hi,

for the log file, try putting it into a zip file - the zip will be much smaller and should be fine to attach.

From the fragment above I can see what looks like the normal loop where SharpCap collects regular updates on the current mount co-ordinates is hitting the error from the ASCOM driver when trying to query the right ascension.

This is a problem with the ASCOM driver entering an odd state by the look of it - the error it is reporting 'ValueNotSet' isn't really an appropriate error for querying the right ascension - it's the sort of error you would get if you tried to query the site latitude/longitude and they had not been set up yet.

The full log might reveal more, but I'm guessing that the ASCOM driver has encountered something unexpected (hardware not responding maybe) and then is giving odd error reports.

cheers,

Robin
Opmc73
Posts: 116
Joined: Tue Jul 09, 2024 10:27 am

Re: Home button not selectable

#6

Post by Opmc73 »

admin wrote: Thu Aug 13, 2026 3:08 pm Hi,

for the log file, try putting it into a zip file - the zip will be much smaller and should be fine to attach.

From the fragment above I can see what looks like the normal loop where SharpCap collects regular updates on the current mount co-ordinates is hitting the error from the ASCOM driver when trying to query the right ascension.

This is a problem with the ASCOM driver entering an odd state by the look of it - the error it is reporting 'ValueNotSet' isn't really an appropriate error for querying the right ascension - it's the sort of error you would get if you tried to query the site latitude/longitude and they had not been set up yet.

The full log might reveal more, but I'm guessing that the ASCOM driver has encountered something unexpected (hardware not responding maybe) and then is giving odd error reports.

cheers,

Robin
thank for the explanation

I attach the 2 logs from yesterday

kind regards
Olivier
Attachments
Log_2026-08-13T21_51_36-9588.zip
(138.67 KiB) Downloaded 1 time
Log_2026-08-13T13_25_48-9152.zip
(89.97 KiB) Downloaded 1 time
User avatar
admin
Site Admin
Posts: 17610
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Home button not selectable

#7

Post by admin »

Hi,

oddly there are no mount related errors/warnings in those two logs, so whatever was causing issues with your mount didn't occur during those two sessions in SharpCap.

Have a look to see if you can find the log file that contains the 'ASCOM.ValueNotSetException' message shown above - hopefully that one will tell us something useful.

cheers,

Robin
Post Reply