User interface hang

Discussions, Bug Reports and Issues related to Beta versions of SharpCap
Post Reply
PeterAB
Posts: 36
Joined: Sat May 21, 2022 4:12 am

User interface hang

#1

Post by PeterAB »

Hi,

Sorry in advance that this report is not a specific as I would like to provide.

I have an issue with Beta 4.2. The user interface hangs up. That is SharpCap does not respond to mouse clicks or movements and stops updating the display. SharpCap need to be ended from the task manager. I have worked on narrowing down this issue as best as I can. The best I can tell is that it happens while running a live stack and switching camera profiles with and exposure changing from 30 seconds to one second. The hang doesn't happen every time. I would say every ten times, but, this is somewhat random.

I originally ran into the issue observing at night while live stacking and switching between longer exposures for stacking and shorter exposures for focusing. I have since been able to reproduce the issue in the daytime with my telescope capped and mount not connected.

I went back to the latest 4.1 using exactly the same hardware configuration. I was unable to reproduce this issue with 4.1.

I have attached a log. Please let me know if you need more information, or would like me to do more testing. I can run test in the daytime, so it would be convenient for me to do more testing.

Thank, Peter
Attachments
Log_2026-11-30T12_11_14-10688.log
(364.96 KiB) Downloaded 1 time
User avatar
admin
Site Admin
Posts: 17602
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: User interface hang

#2

Post by admin »

Hi Peter,

thanks for posting the log - actually, it's quite revealing and does give some hints about what is going on...

I can see in the log you try to load the capture profile called '30 seconds'. This requires SharpCap to stop and then restart the camera, and it looks like the stopping of the camera isn't actually succeeding properly at that point. In fact, my guess is that the command to stop the camera is actually hanging/getting stuck inside the Player One SDK code at this point. When this happens, SharpCap waits a few seconds and then carries on anyway (having logged the problem). After all, if you are closing the application or changing to another camera, it you don't want to freeze the application up just because the previous camera is being sulky about shutting down properly.

However, in your case, you are still intending to use the PlayerOne camera that is currently misbehaving. In fact, that is I think what finally brings SharpCap to the frozen state - trying to restart the camera also fails to work properly, and then I expect that something like fetching the status or control settings of the camera freezes up at a point where it freezes the whole application.

What to do about it is a harder question...

There haven't been many changes to the PlayerOne code in SharpCap between v4.1 and v4.2 - adding support for auto exposure and some changes that deal with how the code tries to recover from a problem is about all. I don't think either of those are likely to be relevant here. It's possible that some change in the new version of the PlayerOne SDK has caused this, so you could try copying PlayerOneCamera.dll from the SharpCap 4.1 folder over the version in SharpCap 4.2 to see if that helps - of course it could also make things worse...

It's not clear whether the problem stopping the camera is the original problem or the symptom of something that has already gone wrong by that point. If it is the cause then avoiding that happening might help... The camera typically has to be stopped and restarted when the capture profile load changed the capture resolution, colour space, read mode, binning, etc - anything that makes the controls on the right clear and re-draw when changed. If you arrange for all the capture profiles that you use to have the same values for those properties then the stop and restart can be avoided, which might help.

Also, feel free to send me the capture profile settings files for the profiles you use in the workflow that makes this happen. I have the Poseidon C Pro, so could test the same config to see if it happens to me too.

cheers,

Robin
PeterAB
Posts: 36
Joined: Sat May 21, 2022 4:12 am

Re: User interface hang

#3

Post by PeterAB »

Hello Robin,

I have learned a few things. Live stacking and focusing are red herrings regarding this issue, as you suspected. This issue appears simply by switching camera profiles in the live view. Ordinary observing at night involved switching between live stacking and auto focusing along with changing camera profiles. I simplified my daytime testing without stacking and focusing. Hardware was also simplified, with the camera connected directly to my laptop running SharpCap without any other accessories.

I made another camera profile for focusing. This one was made by copying my "30 second" profile used for live stacking. I changed the exposure to 1 second and the gain to 550 and named it named "focus test". All the other setting were unchanged. I have tested switching between "30 second" and "focus test" profile in the neighborhood of 100 times. I have not seen a hang in this test.

Switching between my"30 second" profile and original "focus profile" will produce a hang in a random number of switches, but, normally in the 10 or so range.

At any rate, I have attached the three camera profiles. Is there a difference between "focus test" and "focus" that is upsetting the camera driver?

I did update my camera firmware to the latest version 2.3 in the chance there was an interaction between firmware and SDK updates. The updated firmware did not change this issue.

As far as I can tell 4.1 and 4.2 beta run off camera profiles from the same folder. Is this the case? I rechecked 4.1 and it still does not appear to have this issue,

Thanks for looking into this!

Peter
Attachments
focus test (Poseidon-C PRO (IMX571)).ini
(1.46 KiB) Not downloaded yet
focus (Poseidon-C PRO (IMX571)).ini
(1.24 KiB) Not downloaded yet
30 seconds (Poseidon-C PRO (IMX571)).ini
(1.59 KiB) Not downloaded yet
Post Reply