Locked out of GUI after reaching ROI Edge Limit
Locked out of GUI after reaching ROI Edge Limit
Hello, I am having a problem with the 4.1 GUI "freezing" when I am using a custom ROI with centering enabled and the ROI window hits the edge of the frame and a warning appears saying that it is at the limit.
After this occurs, I manually move the mount with the mounts controller(not sharpcap's controller) to re-center the ROI window but all of the menus are greyed out. I cannot access anything on the menu bar at the top of the application.
For context: I am using this setup for solar imaging and have a capture running when this occurs. This is a portable setup and the Sun will slowly drift out of view since I'm not exactly polar aligned. I have to occasionally adjust the mount to re-center the sun. The problem never happens as long as I keep the window from hitting the edge of the frame.
The only way to recover from this, that I have found, is to close shaprcap and restart.
The problem is repeatable.
Any ideas on what I can do to more gracefully recover?
Thanks,
Steve
After this occurs, I manually move the mount with the mounts controller(not sharpcap's controller) to re-center the ROI window but all of the menus are greyed out. I cannot access anything on the menu bar at the top of the application.
For context: I am using this setup for solar imaging and have a capture running when this occurs. This is a portable setup and the Sun will slowly drift out of view since I'm not exactly polar aligned. I have to occasionally adjust the mount to re-center the sun. The problem never happens as long as I keep the window from hitting the edge of the frame.
The only way to recover from this, that I have found, is to close shaprcap and restart.
The problem is repeatable.
Any ideas on what I can do to more gracefully recover?
Thanks,
Steve
- admin
- Site Admin
- Posts: 17592
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Locked out of GUI after reaching ROI Edge Limit
Hi Steve,
OK, we will have to look into what is going on here.... There are two main things that could have happened when the UI locks out, and we need to distinguish the two for starters
1) The UI has actually frozen completely and nothing is being updated on the display - if things like the frame count at the bottom left have frozen and the image from the camera is no longer being updated then this has probably happened. If this is the case, it's worth trying to find an update for your graphics card drivers, as we have had this sort of issue before from out-of-date (buggy) graphics card drivers - although that's not a sure fire cure by any means
2) The UI is still running - the camera image is updating and the frame count is increasing, but everything is greyed out and disabled - this would usually indicate some sort of bug in SharpCap where it has decided to disable everything for some reason (usually supposed to be a momentary thing while some major change like opening/closing camera or changing resolution is going on) and then somehow the disabled state has got stuck.
It's certainly worth seeing if you can find the SharpCap log from the session that had the problem - that may well record interesting information about either of these two possibilities, so if you find the right log file feel free to share it here (the file name will reflect the time that you started SharpCap, while the timestamp of the file will reflect the last time it was written to, so when SharpCap was killed off).
cheers,
Robin
OK, we will have to look into what is going on here.... There are two main things that could have happened when the UI locks out, and we need to distinguish the two for starters
1) The UI has actually frozen completely and nothing is being updated on the display - if things like the frame count at the bottom left have frozen and the image from the camera is no longer being updated then this has probably happened. If this is the case, it's worth trying to find an update for your graphics card drivers, as we have had this sort of issue before from out-of-date (buggy) graphics card drivers - although that's not a sure fire cure by any means
2) The UI is still running - the camera image is updating and the frame count is increasing, but everything is greyed out and disabled - this would usually indicate some sort of bug in SharpCap where it has decided to disable everything for some reason (usually supposed to be a momentary thing while some major change like opening/closing camera or changing resolution is going on) and then somehow the disabled state has got stuck.
It's certainly worth seeing if you can find the SharpCap log from the session that had the problem - that may well record interesting information about either of these two possibilities, so if you find the right log file feel free to share it here (the file name will reflect the time that you started SharpCap, while the timestamp of the file will reflect the last time it was written to, so when SharpCap was killed off).
cheers,
Robin
Re: Locked out of GUI after reaching ROI Edge Limit
Attaching the log file taht has the ROI warning. I believe this is the correct file.
1)Good question. I could still see the image of the sun in the ROI window move as I slewed the mount around when the menu bar was greyed out. I did not note the frame rate info at the bottom though. Also,I have been keeping the graphics driver up to date so I'm hoping that it doesn't have anything to do with that
I stopped and started shapcap a few times when this occurred so I do have a couple other logs if needed. I have seen this before but not reported it because I bought the hinode SG which normally keeps everything lined up perfectly for me so it was not a serious problem.
But today I was having problems with the hinode and had it disconnected so I had to use the manual method to keep the Sun centered up.
I point this out so as not to mislead you into thinking this is a new problem.
Steve
1)Good question. I could still see the image of the sun in the ROI window move as I slewed the mount around when the menu bar was greyed out. I did not note the frame rate info at the bottom though. Also,I have been keeping the graphics driver up to date so I'm hoping that it doesn't have anything to do with that
I stopped and started shapcap a few times when this occurred so I do have a couple other logs if needed. I have seen this before but not reported it because I bought the hinode SG which normally keeps everything lined up perfectly for me so it was not a serious problem.
But today I was having problems with the hinode and had it disconnected so I had to use the manual method to keep the Sun centered up.
I point this out so as not to mislead you into thinking this is a new problem.
Steve
- Attachments
-
- Log_2026-07-17T07_58_53-24528.zip
- (20.61 KiB) Downloaded 4 times
- admin
- Site Admin
- Posts: 17592
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Locked out of GUI after reaching ROI Edge Limit
Hi Steve,
there is no sign of a freeze or hang of the UI in that log - things seem to continue after the notifications that the ROI area has reached the edge of the sensor and then SharpCap shuts down cleanly including a message box prompt to confirm the shutdown. Possibly that means that this wasn't the log file that contained the problem - not 100% sure.
What I did notice was that it looked like you had started a sequence of 1000 repeated captures of 250 frames each with a delay of 10s between - while SharpCap is waiting between one capture and the next then the menus are all disabled (to keep you from doing something that would interfere with the captures that are still to come). Perhaps this was what was happening to you? You can get out of this state by either clicking the 'Cancel' button on the notification that is telling you how long to the next capture or pressing and holding the <ESC> key.
cheers,
Robin
there is no sign of a freeze or hang of the UI in that log - things seem to continue after the notifications that the ROI area has reached the edge of the sensor and then SharpCap shuts down cleanly including a message box prompt to confirm the shutdown. Possibly that means that this wasn't the log file that contained the problem - not 100% sure.
What I did notice was that it looked like you had started a sequence of 1000 repeated captures of 250 frames each with a delay of 10s between - while SharpCap is waiting between one capture and the next then the menus are all disabled (to keep you from doing something that would interfere with the captures that are still to come). Perhaps this was what was happening to you? You can get out of this state by either clicking the 'Cancel' button on the notification that is telling you how long to the next capture or pressing and holding the <ESC> key.
cheers,
Robin
Re: Locked out of GUI after reaching ROI Edge Limit
I'll capture a video of this occurring whenever the sun decides to come put of hiding. I did try hitting, but not holding, the ESC key to no avail. I also minimized sharcap thinking there could be a hidden pop-up behind the main window. This was occurring for a few minutes before I finally quit the app on one occasion. I was showing a friend what was happening and we were discussing how to troubleshoot the problem. There could very well be something I'm doing to exacerbate the problem.
It just occurred to me that there is one other thing I should look at based on your feedback: Is the app still writing the ser files to disk as expected. I'll check for that also.
Thanks,
Steve
It just occurred to me that there is one other thing I should look at based on your feedback: Is the app still writing the ser files to disk as expected. I'll check for that also.
Thanks,
Steve
Re: Locked out of GUI after reaching ROI Edge Limit
Robin,
Looks like the sun came out sooner than I expected.
I have captured a video of the problem when it occurs. I had let the ROI window run into the frame edge and produce the warning before starting the video. I re-centered the window in the frame, nothing else. After 1 minute the capture never restarted. The cancel button never re-appeared. Also, the counter below was stuck on "waiting for capture 3 of 1000". After stopping the video I let the app run for another couple of minutes and there was no change.
Steve
PS Sorry for the rotation mid-video. I realized the bottom status bar was not being captured.
https://drive.google.com/file/d/1vAFghP ... sp=sharing
Looks like the sun came out sooner than I expected.
I have captured a video of the problem when it occurs. I had let the ROI window run into the frame edge and produce the warning before starting the video. I re-centered the window in the frame, nothing else. After 1 minute the capture never restarted. The cancel button never re-appeared. Also, the counter below was stuck on "waiting for capture 3 of 1000". After stopping the video I let the app run for another couple of minutes and there was no change.
Steve
PS Sorry for the rotation mid-video. I realized the bottom status bar was not being captured.
https://drive.google.com/file/d/1vAFghP ... sp=sharing
Re: Locked out of GUI after reaching ROI Edge Limit
Attaching the log file for the most recent capture. I closed sharpcap before zipping up the file.
Two other things to note:
1)Disconnecting the camera when the problem occurs does not cause anything new to show up on the app. The problem persists.
2) The controls on the right side of the window are all operational. Camera, image etc. I can access the drop downs and checkboxes.
Two other things to note:
1)Disconnecting the camera when the problem occurs does not cause anything new to show up on the app. The problem persists.
2) The controls on the right side of the window are all operational. Camera, image etc. I can access the drop downs and checkboxes.
- Attachments
-
- Log_2026-07-18T13_40_18-24468.zip
- (24.49 KiB) Downloaded 3 times
- admin
- Site Admin
- Posts: 17592
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Locked out of GUI after reaching ROI Edge Limit
Hi,
I'm fairly sure from the video that you are in the situation where the capture repetitions that you have set up are waiting the specified 30s for the next capture to start - I can see 'Waiting for capture 3 of 1000' in the bottom status bar which confirms this.
The thing is, you should also get a notification bar show at the top of the screen with a 'Cancel' button in it during this wait to allow you to break out of the waiting. However, the warning about the ROI reaching the edge of the screen *also* shows as a notification, which hides the notification with the cancel button so that you can't cancel any more
I checked the holding down of the <ESCAPE> key, and that does work, but only if you do it while the capture was running, not if you hold it down during the middle of the wait for the next capture to happen
So, you are effectively stuck because the notification you needed to cancel has been overwritten and you would have to wait until the 30s gap between one capture and the next has finished. At that point SharpCap will start the next capture and *then* you can hold down the escape key and that should work.
I am going to fix the holding down of escape to work at any point during the wait for SharpCap 4.2, or perhaps show some sort of 'waiting progress' window with a cancel button.
BTW, the log was somewhat more complicated - there were at least a couple of times in the log where the camera disconnected from USB and later reconnected. SharpCap can usually deal with that (relatively) seamlessly, but if that is happening repeatedly then it would be worth checking all your USB connections as it is best to try to avoid that sort of thing if possible.
cheers,
Robin
I'm fairly sure from the video that you are in the situation where the capture repetitions that you have set up are waiting the specified 30s for the next capture to start - I can see 'Waiting for capture 3 of 1000' in the bottom status bar which confirms this.
The thing is, you should also get a notification bar show at the top of the screen with a 'Cancel' button in it during this wait to allow you to break out of the waiting. However, the warning about the ROI reaching the edge of the screen *also* shows as a notification, which hides the notification with the cancel button so that you can't cancel any more
I checked the holding down of the <ESCAPE> key, and that does work, but only if you do it while the capture was running, not if you hold it down during the middle of the wait for the next capture to happen
So, you are effectively stuck because the notification you needed to cancel has been overwritten and you would have to wait until the 30s gap between one capture and the next has finished. At that point SharpCap will start the next capture and *then* you can hold down the escape key and that should work.
I am going to fix the holding down of escape to work at any point during the wait for SharpCap 4.2, or perhaps show some sort of 'waiting progress' window with a cancel button.
BTW, the log was somewhat more complicated - there were at least a couple of times in the log where the camera disconnected from USB and later reconnected. SharpCap can usually deal with that (relatively) seamlessly, but if that is happening repeatedly then it would be worth checking all your USB connections as it is best to try to avoid that sort of thing if possible.
cheers,
Robin
Re: Locked out of GUI after reaching ROI Edge Limit
Robin,
Ok, thanks. I'll take a look when it's released.
Also, I disconnected the camera in an attempt to "wake" up whatever was stuck. Obviously, no help.
I spent much of my career working on these kinds of problems on embedded systems so I "twist every knob" I can think of....
Steve
Ok, thanks. I'll take a look when it's released.
Also, I disconnected the camera in an attempt to "wake" up whatever was stuck. Obviously, no help.
I spent much of my career working on these kinds of problems on embedded systems so I "twist every knob" I can think of....
Steve
- admin
- Site Admin
- Posts: 17592
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Locked out of GUI after reaching ROI Edge Limit
Hi Steve,
actually, I found out when I was fixing the code that the wiping out of the 'waiting for next capture' notification also breaks the mechanism that starts the next capture after the specified time delay, so the workaround that I had described of waiting for the next capture wouldn't work anyway
So, sadly no workaround in 4.1.
I'm hoping to get out a new beta release of 4.2 today that will have at least a partial fix - the next capture will proceed even if the notification is wiped out, and holding <ESC> will quit the whole capture sequence at any point while waiting. I'm not sure whether I will try to go further than that in a future update (perhaps a separate 'waiting for next capture' window rather than relying on the notification).
cheers,
Robin
actually, I found out when I was fixing the code that the wiping out of the 'waiting for next capture' notification also breaks the mechanism that starts the next capture after the specified time delay, so the workaround that I had described of waiting for the next capture wouldn't work anyway
I'm hoping to get out a new beta release of 4.2 today that will have at least a partial fix - the next capture will proceed even if the notification is wiped out, and holding <ESC> will quit the whole capture sequence at any point while waiting. I'm not sure whether I will try to go further than that in a future update (perhaps a separate 'waiting for next capture' window rather than relying on the notification).
cheers,
Robin