Page 1 of 3

SharpCap Crashes with Latest iOptron Commander

Posted: Fri Sep 20, 2019 9:07 pm
by brentbos
I had been successfully using SharpCap v3.26086.0 on a Windows 7 machine and iOptron Commander v5.63. When I try updating iOptron Commander to v5.74, SharpCap will crash when attempting to the connect to my mount (CEM60). If I revert back to v5.64 then all is fine again. Attached are the error files. Thanks.

Re: SharpCap Crashes with Latest iOptron Commander

Posted: Sat Sep 21, 2019 8:29 pm
by admin
Hi,

Thanks for posting the bug report file. Unfortunately it's one of those awkward cases where the problem doesn't happen anywhere near the code that originally caused it, so I can't use the information in the bug report to lead me to the place in the code that might need to be fixed.

Does the same problem occur every single time you try to use the new version of the iOptron software? If it occurs repeatedly then I might be able to work out a solution if I can get my hands on an iOptron mount to test with (basically this approach comes down to disabling more and more code in SharpCap Intel I find the bit where disabling that code causes the problem to go away and then hopefully I can work out what's wrong with the last piece of code that I disabled). I might be able to borrow one of these mounts, but probably not until November.

I think the first thing I would suggest is trying to go back to the previous version of the iOptron software and see if that makes the problem go away.

Cheers, Robin

Re: SharpCap Crashes with Latest iOptron Commander

Posted: Sat Sep 21, 2019 8:37 pm
by brentbos
Yes it crashes every time. It does work fine when I re-installed the previous version of iOptron Commander. Thanks.

Re: SharpCap Crashes with Latest iOptron Commander

Posted: Sat Sep 28, 2019 5:15 pm
by MorzineIT
Hi,
I was having a similar problem, and I've narrowed down the problem.
It seems that, if the iOptron Commander mount is connected in SharpCap and any parameters are changed eg. resolution then the crash occurs.
It also crashes if the mount auto connects with the camera. So the work around is to not auto connect the mount; and disconnect the mount in sharpcap before changing any settings; then reconnect the mount.

It's a bit of a pain, so it would be great to get it fixed.
I'd be glad to provide any logs if it helps.

Re: SharpCap Crashes with Latest iOptron Commander

Posted: Sun Sep 29, 2019 1:08 pm
by admin
Hi,

Certainly logs from the very latest version of SharpCap with the additional logging turned on in the first page of the options showing the problem when you change resolution would be welcome. Please set a fairly long exposure (a few seconds) as otherwise the log will just be full of information about the camera taking images which is not so interesting in this context.

Cheers, Robin

Re: SharpCap Crashes with Latest iOptron Commander

Posted: Sun Sep 29, 2019 10:40 pm
by BlackWikkett
I've not upgraded to the latest version of iOptron Commander yet but have been using the version from March of 2019. Had not been aware of the 9-10-19 update. One thing I did earlier this year was upgrade ASCOM platform to 6.4 and made sure .NET version 4.8 was installed. Make sure you have this software updated also. I'll install the latest version soon as possible to check on comparability with CEM60 software and SC.

Re: SharpCap Crashes with Latest iOptron Commander

Posted: Tue Oct 01, 2019 5:06 pm
by brentbos
I am using the latest version of ASCOM and .Net. Thanks for the tip of manually connecting the mount.

Re: SharpCap Crashes with Latest iOptron Commander

Posted: Tue Oct 01, 2019 7:30 pm
by MorzineIT
Hi Robin,

I've just done a test to create the crash dump with additional logging turned on, as requested.

All I did to generate the crash was as follows:
- Turn on mount
- Connect commander software
- Load Sharpcap (3.2) 32 bit
- Connect camera in Sharpcap
- Connect mount in Sharpcap
- Change resoltion of camera
-> crash

It seems to generate multiple errors, and the error reporting doesn't seem to be handling it very well - I suspect the error wasn't reported on your server.

BUT, there was no error log on my PC afterwards ! (I did add the /dump parameter)
attached are 2 other log that seemed to be on my desktop

I have managed to recreate the problem though without any equipment connected, so you should be able to recreate it too.
-Installed and loaded iOptron commander 5.74
-Run Sharpcap
- Selected demo Camera V2
- Clicked on connect the mount checkbox
- Change the resolution twice
(it seems to freeze on the first then crash on the second change)

It seesm to be trying to communicate with iOptron commander, but as there isn't a response, when the second communication occurs it crashes.

I hope that all helps..

Re: SharpCap Crashes with Latest iOptron Commander

Posted: Wed Oct 02, 2019 6:30 pm
by admin
Hi,

Thanks for the info about how to reproduce the same issue without needing the hardware connected. I can see that problem and I believe I have a fix at least for that particular issue. I'm not sure though whether it will fix the issue of the problem when changing resolution when the mount is attached – the change will be in the next version and we can test it then.

Cheers, Robin

Re: SharpCap Crashes with Latest iOptron Commander

Posted: Wed Oct 02, 2019 11:56 pm
by MorzineIT
Wow Robin,
I have never seen such a fast response to a bug report on live software.

Congratulations ! (chapeau ! or hats off as we say in France)

I'd like to understand why I can't get a log dump to work - then I could send you further precisions