Error loading camera profile - never had this before

Anything that doesn't fit into any of the other forums
Post Reply
yomamma
Posts: 105
Joined: Wed Mar 01, 2023 4:58 pm

Error loading camera profile - never had this before

#1

Post by yomamma »

I have started getting these errors when I go to load the camera profile after open opening the camera in the very beginning of my run.
I started this scs file from at the end of another scs file that just finished. They used the same camera. I had closed the camera in the previous run.
It says that the camera is open and will have to be restarted if I try to load this profile and I have used this in the past with no problem.

https://internetsearchtechnologies.com/ ... 1-6128.zip
User avatar
admin
Site Admin
Posts: 17365
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Error loading camera profile - never had this before

#2

Post by admin »

Hi,

you will see that error stop your sequence if you are capturing *and* the load of the profile tries to change something like the resolution, binning, bit depth, etc. Changing those sort of things when loading a profile require the camera to be stopped and then restarted, and that can't be done while capturing (at least it will stop the capture and then it is not clear how it should be restarted afterwards).

If the load of the profile only changes things like exposure, gain, offset, then it can be performed during the capture without any problems - changing those doesn't require the camera to restart.

So, the thing to be aware of is that whether this happens depends on how the settings in the profile compare to the *current* camera settings. If the profile says to use BIN2 and you are already on BIN2 then that will not cause a problem, but if you are currently on BIN1 then the change of binning will trigger this condition.

Now, having said all that, I don't understand why SharpCap thinks it is capturing at that point in your sequence - I can see in the log that it is starting to capture a single frame of 180s, but I can't see what is causing that to happen.

Code: Select all

Info   	00:00:06.188697	#1 	CapturingFrame event received in UI thread																				in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Debug  	00:00:06.188842	#10	Started async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameStillAsync(IFileNameProvider fileNameProvider, CancellationToken cancellationToken)					in void System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<TStateMachine>(ref TStateMachine stateMachine)
Info   	00:00:06.189215	#1 	StartCapture event received in UI thread
This happens immediately after the default profile for the camera is loaded, but the camera is in still mode so it shouldn't take an image at that point.

I have tested with the very latest SharpCap version here and I don't see any attempt to try to capture a frame at that point in the sequence, so I would suggest that the first thing to do is to update SharpCap and see if that helps. If it doesn't then post a new log with the latest version and I can dig deeper (and at least in that case I will be debugging the same code that you are using).

cheers,

Robin
yomamma
Posts: 105
Joined: Wed Mar 01, 2023 4:58 pm

Re: Error loading camera profile - never had this before

#3

Post by yomamma »

Thanks Robin.
Post Reply