New Pextax ASCOM Driver and Subframe Issues
Forum rules
If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs
Please also read about Troubleshooting USB Issues before posting.
*** Please do not post license keys - please report any problems with licensing to 'admin' by private message ***
Please include the following details in any bug report:
* Version of SharpCap
* Camera and other hardware being user
* Operating system version
* Contents of the SharpCap log after the problem has occurred.
[If SharpCap crashes, please send the bug report when prompted instead of including the log]
If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs
Please also read about Troubleshooting USB Issues before posting.
*** Please do not post license keys - please report any problems with licensing to 'admin' by private message ***
Please include the following details in any bug report:
* Version of SharpCap
* Camera and other hardware being user
* Operating system version
* Contents of the SharpCap log after the problem has occurred.
[If SharpCap crashes, please send the bug report when prompted instead of including the log]
-
rickthegolder
- Posts: 6
- Joined: Fri Jun 20, 2025 3:15 am
New Pextax ASCOM Driver and Subframe Issues
Hello,
I am making a new ASCOM Driver for Pentax and testing with SharpCap. When I change modes between 6016x4000 and 720x480 I have run into a bug. When I switch to the small image size the ROI is reduced to 720x480 and the NUMX and NUMY are set accordingly. If I switch to 6016x4000 from 720x480 then the ROI is set to 6016x4000 and SharpCap is expecting 6016x4000 but NUMX and NUMY are being set to 720x480. This causes Sharpcap to reject the returned image with a Log error that the returned image doesn't match the expected size. If I switch the ROI to another resolution by hand then it works again. I am using v4.1.13332 64 bit.
Rich
I am making a new ASCOM Driver for Pentax and testing with SharpCap. When I change modes between 6016x4000 and 720x480 I have run into a bug. When I switch to the small image size the ROI is reduced to 720x480 and the NUMX and NUMY are set accordingly. If I switch to 6016x4000 from 720x480 then the ROI is set to 6016x4000 and SharpCap is expecting 6016x4000 but NUMX and NUMY are being set to 720x480. This causes Sharpcap to reject the returned image with a Log error that the returned image doesn't match the expected size. If I switch the ROI to another resolution by hand then it works again. I am using v4.1.13332 64 bit.
Rich
- admin
- Site Admin
- Posts: 17539
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: New Pextax ASCOM Driver and Subframe Issues
Hi Rich,
can I just check that you are changing the mode by using the 'Show' button in SharpCap to show the ASCOM camera option dialog? It looks like after closing that dialog, SharpCap will restart the camera and as part of that will set the NumX/NumY to the minimum of either the selected resolution or the CameraXSize/CameraYSize values.
If that's all correct then as you switch to 720x480 mode, the minimum calculation will set 720x480 into NumX/NumY and also update the resolution in SharpCap to that value. On the other hand, going back will leave NumX/NumY alone at 720x480. The expectation is that the driver will provide a 720x480 ROI image in this case, which will show correctly, then the user will (if they want) switch back to full resolution using the SharpCap capture area selection.
So, I *think* that the problem should go away if you make your driver return an image that matches the ROI selection set into StartX/StartY/NumX/NumY on the ASCOM driver object.
cheers,
Robin
can I just check that you are changing the mode by using the 'Show' button in SharpCap to show the ASCOM camera option dialog? It looks like after closing that dialog, SharpCap will restart the camera and as part of that will set the NumX/NumY to the minimum of either the selected resolution or the CameraXSize/CameraYSize values.
If that's all correct then as you switch to 720x480 mode, the minimum calculation will set 720x480 into NumX/NumY and also update the resolution in SharpCap to that value. On the other hand, going back will leave NumX/NumY alone at 720x480. The expectation is that the driver will provide a 720x480 ROI image in this case, which will show correctly, then the user will (if they want) switch back to full resolution using the SharpCap capture area selection.
So, I *think* that the problem should go away if you make your driver return an image that matches the ROI selection set into StartX/StartY/NumX/NumY on the ASCOM driver object.
cheers,
Robin
-
rickthegolder
- Posts: 6
- Joined: Fri Jun 20, 2025 3:15 am
Re: New Pextax ASCOM Driver and Subframe Issues
Thanks for the quick reply. I am using the Read Mode button. Sharpcap requests and I return a 720x480 image but Sharpcap complains that it was expecting a 6016x4000 image. You can see that the Capture Area changes to 6016x4000 after switching back to Full Resolution mode (but NumX and NumY are still set with 720x480). If I switch the Capture Area to any new value after changing the Read Mode then it works. I can then switch the Capture Area back to 6016x4000. So leaving NumX/NumY alone at 720x480 is fine but you need to also leave the Capture Area at 720x480.
Debug 10:38:18.768571 #1 Started async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameStillAsync(IFileNameProvider fileNameProvider, CancellationToken cancellationToken) in void System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<TStateMachine>(ref TStateMachine stateMachine)
Warning 10:38:29.812394 #16 Dropping frame due to pixel count mismatch - 3d source array (479x719x2), source had 345600 pixels, dest 24064000 in bool SharpCap.Cameras.ASCOM.NewCameraProxy.ValidateDataSize(Array source, BufferFrame target)
Warning 10:38:29.813892 #16 FrameCompleted event with null frame, isCancelled = False in void SharpCap.Base.StillCapableCameraProxy+<>c__DisplayClass9_0.<CaptureStillFrameAsync>g__OnFrameCompleted|0(?)+OnFrameCompleted(object sender, GenericEventArgs<BufferFrame> genericEventArgs)
Warning 10:38:29.816916 #1 CaptureStillFrame returned null in async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameStillAsync(IFileNameProvider fileNameProvider, CancellationToken cancellationToken)
Debug 10:38:29.818043 #1 Notification (Status=Error): Single frame capture failed. in void SharpCap.UI.NotificationViewModel.DisplayMessage(NotificationMessage message)
Debug 10:38:18.768571 #1 Started async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameStillAsync(IFileNameProvider fileNameProvider, CancellationToken cancellationToken) in void System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<TStateMachine>(ref TStateMachine stateMachine)
Warning 10:38:29.812394 #16 Dropping frame due to pixel count mismatch - 3d source array (479x719x2), source had 345600 pixels, dest 24064000 in bool SharpCap.Cameras.ASCOM.NewCameraProxy.ValidateDataSize(Array source, BufferFrame target)
Warning 10:38:29.813892 #16 FrameCompleted event with null frame, isCancelled = False in void SharpCap.Base.StillCapableCameraProxy+<>c__DisplayClass9_0.<CaptureStillFrameAsync>g__OnFrameCompleted|0(?)+OnFrameCompleted(object sender, GenericEventArgs<BufferFrame> genericEventArgs)
Warning 10:38:29.816916 #1 CaptureStillFrame returned null in async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameStillAsync(IFileNameProvider fileNameProvider, CancellationToken cancellationToken)
Debug 10:38:29.818043 #1 Notification (Status=Error): Single frame capture failed. in void SharpCap.UI.NotificationViewModel.DisplayMessage(NotificationMessage message)
- Attachments
-
- Screenshot 2025-06-20 103538.png (25.03 KiB) Viewed 3444 times
- admin
- Site Admin
- Posts: 17539
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: New Pextax ASCOM Driver and Subframe Issues
Hi Rich,
OK, let me check that - the read mode button may not be doing enough to refresh the status of the camera in a consistent way.
cheers,
Robin
OK, let me check that - the read mode button may not be doing enough to refresh the status of the camera in a consistent way.
cheers,
Robin
- admin
- Site Admin
- Posts: 17539
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: New Pextax ASCOM Driver and Subframe Issues
Hi Rich,
I found one thing that might have been the cause of the mismatch after changing the read mode - please could you re-test with the very latest 4.1.13417 and see if that helps.
If not, is there any chance that you could make a bodged version of your ASCOM driver that has all the API but just generates random image data without needing to have the real camera available? Then I could test that myself and debug what is going on. Once upon a time I had a Pentax K10D, but that got sold on years ago sadly.
cheers,
Robin
I found one thing that might have been the cause of the mismatch after changing the read mode - please could you re-test with the very latest 4.1.13417 and see if that helps.
If not, is there any chance that you could make a bodged version of your ASCOM driver that has all the API but just generates random image data without needing to have the real camera available? Then I could test that myself and debug what is going on. Once upon a time I had a Pentax K10D, but that got sold on years ago sadly.
cheers,
Robin
-
rickthegolder
- Posts: 6
- Joined: Fri Jun 20, 2025 3:15 am
Re: New Pextax ASCOM Driver and Subframe Issues
Thanks so much for the update. I tested the latest version. Unfortunately, it still doesn't work. If I change the ROI back to 720x480 then everything is fine. I will try to put together a log file that shows what is going on.
Rich
Rich
- Attachments
-
- error.png (19.36 KiB) Viewed 3126 times
-
rickthegolder
- Posts: 6
- Joined: Fri Jun 20, 2025 3:15 am
Re: New Pextax ASCOM Driver and Subframe Issues
Attached is the full log from Sharpcap. I switch to 720x480, then back to 6016x4000, try to take a picture, then switch to ROI to 720x480 then successfully take a picture. When the camera size is changed from 720x480 back to 6016x4000 you set the StartX and StartY to zero. When I reselect the zoomed ROI the StartX and StartY are set to the appropriate values: 2648 and 1760.
- Attachments
-
- sharpcaplog.txt
- (133 KiB) Downloaded 162 times
- admin
- Site Admin
- Posts: 17539
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: New Pextax ASCOM Driver and Subframe Issues
Hi,
I think I will have to debug this (or at least some simulator of it) to understand what is going on fully - the log gives some pointers, but it doesn't let me understand the reasons behind what is going on.
Is your project open source? Can I look at/tinker with the code to try to make a version that runs without needing a camera plugged in?
I can see that when the mismatch occurs, SharpCap is expecting a full size (6016x4000) image in mono/raw (one colour plane), but is getting 480x720x3, so a colour image. I expect there is a problem there with the mismatch in the image type as well as the size. Are you changing the SensorType as the readout mode changes? SharpCap may not be checking that on a readout mode change.
cheers,
Robin
I think I will have to debug this (or at least some simulator of it) to understand what is going on fully - the log gives some pointers, but it doesn't let me understand the reasons behind what is going on.
Is your project open source? Can I look at/tinker with the code to try to make a version that runs without needing a camera plugged in?
I can see that when the mismatch occurs, SharpCap is expecting a full size (6016x4000) image in mono/raw (one colour plane), but is getting 480x720x3, so a colour image. I expect there is a problem there with the mismatch in the image type as well as the size. Are you changing the SensorType as the readout mode changes? SharpCap may not be checking that on a readout mode change.
cheers,
Robin
-
rickthegolder
- Posts: 6
- Joined: Fri Jun 20, 2025 3:15 am
Re: New Pextax ASCOM Driver and Subframe Issues
Thanks for the reply.
The code is available here:
https://github.com/richromano/ASCOMPentaxCameraDriver
Sharpcap is awesome by the way.
All the best,
Rich
The code is available here:
https://github.com/richromano/ASCOMPentaxCameraDriver
Sharpcap is awesome by the way.
All the best,
Rich
-
rickthegolder
- Posts: 6
- Joined: Fri Jun 20, 2025 3:15 am
Re: New Pextax ASCOM Driver and Subframe Issues
Hi Robin,
I did some more debugging. Attached is my log file.
I switch the read mode to 720x480 and then back to 6016x4000. I then took a picture and the log on your end is below (bold important points): in the bold you request 720x480 and then reject the resolution as too small.
I return 6016x4000 as the camera size in my log file but in your printout the max size is 720x480
PanTilt Inconsistent - ROI={Width=720, Height=480}, MaxSize={Width=720, Height=480}, Pan: 0 to 5296, Tilt: 0 to 3520
As I said, in the end your reject the image because it is too small.
Warning 12:07:23.309281 #28 Dropping frame due to pixel count mismatch - 3d source array (479x719x2), source had 345600 pixels, dest 24064000 in bool SharpCap.Cameras.ASCOM.NewCameraProxy.ValidateDataSize(Array source, BufferFrame target)
If I force the code to return the correct size Sharpcap continues but the image is scrambled like it was expecting a different image size.
I do not change the sensor type when switching. In both cases it is Color.
I really appreciate your help.
Rich
Info 12:07:00.681773 #1 Stopping preview : changing Read Mode from LiveView (720 x 480) to Full Resolution (6016 x 4000) in void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason)
Info 12:07:00.682349 #1 Started void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason) in void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason)
Debug 12:07:00.682771 #1 Started void SharpCap.Base.BaseImageProvider.Stop() in void SharpCap.Base.BaseImageProvider.Stop()
Info 12:07:00.682904 #1 Stopping preview, 0 frames processed, 0 frames dropped in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:00.683306 #1 Started void SharpCap.Base.CameraProxyBase.StopPreview() in void SharpCap.Base.CameraProxyBase.StopPreview()
Debug 12:07:01.684721 #34 Ended void SharpCap.Base.CameraProxyBase.GrabThreadProc() in void SharpCap.Base.CameraProxyBase.GrabThreadProc()
Debug 12:07:01.730911 #1 Ended void SharpCap.Base.CameraProxyBase.StopPreview() in void SharpCap.Base.CameraProxyBase.StopPreview()
Info 12:07:01.738335 #1 Frame processing thread shut down in 6.0ms in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:01.738647 #1 Started void SharpCap.Base.BaseImageProvider.DropPendingFrame() in void SharpCap.Base.BaseImageProvider.DropPendingFrame()
Debug 12:07:01.738921 #1 Ended void SharpCap.Base.BaseImageProvider.DropPendingFrame() in void SharpCap.Base.BaseImageProvider.DropPendingFrame()
Debug 12:07:01.739183 #1 Ended void SharpCap.Base.BaseImageProvider.Stop() in void SharpCap.Base.BaseImageProvider.Stop()
Info 12:07:01.741257 #1 Capture Event : StopPreview in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:01.785403 #1 StopPreview event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:03.554823 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason) in void SharpCap.Base.PropertyControls.BasePropertyControl<TInterfaceType, TFeature>.BeforeValueChange(object newValue)
Debug 12:07:07.207048 #1 The WPF render thread has been located for monitoring at thread ID 1492 in ProcessThread SharpCap.Base.ThreadLoadMonitor.FindWPFRenderThread()
Info 12:07:07.207627 #1 Started void SharpCap.Base.CaptureProviderBase<T>.StartPreview(PreviewChangeReason reason) in void SharpCap.Base.PropertyControls.BasePropertyControl<TInterfaceType, TFeature>.AfterValueChange()
Info 12:07:07.207861 #1 Starting Preview on Pentax KP Camera [IMX193], 720x480, RGB, 16bits in Still mode. in void SharpCap.Base.CaptureProviderBase<T>.StartPreview(PreviewChangeReason reason)
Debug 12:07:07.208736 #1 Started void SharpCap.Base.BaseImageProvider.Start() in void SharpCap.Base.CaptureProviderBase<T>.StartFramesRunnng(PreviewChangeReason reason)
Debug 12:07:07.209082 #1 Started void SharpCap.Base.BaseImageProvider.DropPendingFrame() in void SharpCap.Base.BaseImageProvider.Start()
Debug 12:07:07.209421 #1 Ended void SharpCap.Base.BaseImageProvider.DropPendingFrame() in void SharpCap.Base.BaseImageProvider.Start()
Debug 12:07:07.210537 #1 Started void SharpCap.Base.CameraProxyBase.StartPreview() in void SharpCap.Base.BaseImageProvider.Start()
Info 12:07:07.211530 #28 =='Grab Thread' (New Thread)
Debug 12:07:07.211818 #28 Started void SharpCap.Base.CameraProxyBase.GrabThreadProc() in void System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, object state)
Warning 12:07:07.215270 #28 Trying to read coolerOn property : Exception of type 'NotImplementedException' : CoolerOn is not implemented in this driver.
Stack Trace: at bool ASCOM.Com.DriverAccess.DynamicAccess.TryGetMember(GetMemberBinder binder, out object result) in J:/ASCOMLibrary/ASCOM.Com/ASCOM.Com.DriverAccess/BaseClass/DynamicAccess.cs:line 147
at object CallSite.Target(Closure, CallSite, object)
at bool ASCOM.Com.DriverAccess.Camera.get_CoolerOn() in J:/ASCOMLibrary/ASCOM.Com/ASCOM.Com.DriverAccess/Camera.cs:line 145
at bool SharpCap.Cameras.ASCOM.CameraProxy.get_CoolerOn()+() => { } in C:/Documents/Source Code/SharpCap/src/SharpCap.Cameras.ASCOM/CameraProxy.cs:line 222
at T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message) in C:/Documents/Source Code/SharpCap/src/SharpCap.Base/ExtensionMethods.cs:line 767 in T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message)
Warning 12:07:07.215425 #28 Inner Exception : System.Runtime.InteropServices.COMException (0x80040400): Property read CoolerOn is not implemented in this driver. in T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message)
Info 12:07:07.322170 #1 PanTilt Inconsistent - ROI={Width=720, Height=480}, MaxSize={Width=720, Height=480}, Pan: 0 to 5296, Tilt: 0 to 3520 in bool SharpCap.Base.ResolutionExtensions.IsConsistentPanTilt(IResolution res, IIntPropertyControl pan, IIntPropertyControl tilt)
Debug 12:07:07.323023 #1 Ended void SharpCap.Base.CameraProxyBase.StartPreview() in void SharpCap.Base.BaseImageProvider.Start()
Debug 12:07:07.324899 #1 Ended void SharpCap.Base.BaseImageProvider.Start() in void SharpCap.Base.CaptureProviderBase<T>.StartFramesRunnng(PreviewChangeReason reason)
Info 12:07:07.326614 #1 Capture Event : StartPreview in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Warning 12:07:07.333639 #1 Trying to read coolerOn property : Exception of type 'NotImplementedException' : CoolerOn is not implemented in this driver.
Stack Trace: at bool ASCOM.Com.DriverAccess.DynamicAccess.TryGetMember(GetMemberBinder binder, out object result) in J:/ASCOMLibrary/ASCOM.Com/ASCOM.Com.DriverAccess/BaseClass/DynamicAccess.cs:line 147
at object CallSite.Target(Closure, CallSite, object)
at bool ASCOM.Com.DriverAccess.Camera.get_CoolerOn() in J:/ASCOMLibrary/ASCOM.Com/ASCOM.Com.DriverAccess/Camera.cs:line 145
at bool SharpCap.Cameras.ASCOM.CameraProxy.get_CoolerOn()+() => { } in C:/Documents/Source Code/SharpCap/src/SharpCap.Cameras.ASCOM/CameraProxy.cs:line 222
at T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message) in C:/Documents/Source Code/SharpCap/src/SharpCap.Base/ExtensionMethods.cs:line 767 in T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message)
Warning 12:07:07.334303 #1 Inner Exception : System.Runtime.InteropServices.COMException (0x80040400): Property read CoolerOn is not implemented in this driver. in T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message)
Info 12:07:07.335717 #1 Done merging in hardware controls in void SharpCap.Models.Application.MergeInDeviceIndependentControls(CaptureControl controls, CancellationToken cancellationToken)
Warning 12:07:07.344526 #1 Trying to read coolerOn property : Exception of type 'NotImplementedException' : CoolerOn is not implemented in this driver.
Stack Trace: at bool ASCOM.Com.DriverAccess.DynamicAccess.TryGetMember(GetMemberBinder binder, out object result) in J:/ASCOMLibrary/ASCOM.Com/ASCOM.Com.DriverAccess/BaseClass/DynamicAccess.cs:line 147
at object CallSite.Target(Closure, CallSite, object)
at bool ASCOM.Com.DriverAccess.Camera.get_CoolerOn() in J:/ASCOMLibrary/ASCOM.Com/ASCOM.Com.DriverAccess/Camera.cs:line 145
at bool SharpCap.Cameras.ASCOM.CameraProxy.get_CoolerOn()+() => { } in C:/Documents/Source Code/SharpCap/src/SharpCap.Cameras.ASCOM/CameraProxy.cs:line 222
at T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message) in C:/Documents/Source Code/SharpCap/src/SharpCap.Base/ExtensionMethods.cs:line 767 in T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message)
Warning 12:07:07.344876 #1 Inner Exception : System.Runtime.InteropServices.COMException (0x80040400): Property read CoolerOn is not implemented in this driver. in T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message)
Info 12:07:07.349144 #1 StartPreview event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Debug 12:07:07.354873 #1 Local sensor analysis data not found at C:\Users\richr\AppData\Roaming\SharpCap\SensorCharacteristics\Pentax KP Camera [IMX193]~RGB48~Full Resolution (6016 x 4000).bin in SensorCharacteristics SharpCap.CameraAnalysis.SensorCharacteristics.TryLoad(string file, bool decryptIfEncrypted)
Debug 12:07:07.356234 #1 Local sensor analysis data not found at C:\Users\richr\AppData\Roaming\SharpCap\SensorCharacteristics\Pentax KP Camera [IMX193]~RAW16~Full Resolution (6016 x 4000).bin in SensorCharacteristics SharpCap.CameraAnalysis.SensorCharacteristics.TryLoad(string file, bool decryptIfEncrypted)
Debug 12:07:07.357507 #1 Local sensor analysis data not found at C:\Users\richr\AppData\Roaming\SharpCap\SensorCharacteristics\Pentax KP Camera [IMX193]~RAW16~Full Resolution (6016 x 4000).bin in SensorCharacteristics SharpCap.CameraAnalysis.SensorCharacteristics.TryLoad(string file, bool decryptIfEncrypted)
Info 12:07:07.363072 #1 Did not find library sensor characteristics at C:\Program Files\SharpCap 4.1 (64 bit)\SensorLibrary.bin:Pentax KP Camera [IMX193]~RGB48~Full Resolution (6016 x 4000).json in SensorCharacteristics SharpCap.CameraAnalysis.SensorLibrary.LoadImpl(string normalizeCameraName, string colourSpace, string cameraMode, bool speculative)
Info 12:07:07.372517 #1 Did not find library sensor characteristics at C:\Program Files\SharpCap 4.1 (64 bit)\SensorLibrary.bin:Pentax KP Camera [IMX193]~RAW16~Full Resolution (6016 x 4000).json in SensorCharacteristics SharpCap.CameraAnalysis.SensorLibrary.LoadImpl(string normalizeCameraName, string colourSpace, string cameraMode, bool speculative)
Debug 12:07:07.373732 #1 Local sensor analysis data not found at C:\Users\richr\AppData\Roaming\SharpCap\SensorCharacteristics\Pentax KP Camera [IMX193]~RGB48.bin in SensorCharacteristics SharpCap.CameraAnalysis.SensorCharacteristics.TryLoad(string file, bool decryptIfEncrypted)
Debug 12:07:07.374543 #1 Local sensor analysis data not found at C:\Users\richr\AppData\Roaming\SharpCap\SensorCharacteristics\Pentax KP Camera [IMX193]~RAW16.bin in SensorCharacteristics SharpCap.CameraAnalysis.SensorCharacteristics.TryLoad(string file, bool decryptIfEncrypted)
Debug 12:07:07.375318 #1 Local sensor analysis data not found at C:\Users\richr\AppData\Roaming\SharpCap\SensorCharacteristics\Pentax KP Camera [IMX193]~RAW16.bin in SensorCharacteristics SharpCap.CameraAnalysis.SensorCharacteristics.TryLoad(string file, bool decryptIfEncrypted)
Info 12:07:07.378730 #1 Did not find library sensor characteristics at C:\Program Files\SharpCap 4.1 (64 bit)\SensorLibrary.bin:Pentax KP Camera [IMX193]~RGB48.json in SensorCharacteristics SharpCap.CameraAnalysis.SensorLibrary.LoadImpl(string normalizeCameraName, string colourSpace, string cameraMode, bool speculative)
Info 12:07:07.382911 #1 Did not find library sensor characteristics at C:\Program Files\SharpCap 4.1 (64 bit)\SensorLibrary.bin:Pentax KP Camera [IMX193]~RAW16.json in SensorCharacteristics SharpCap.CameraAnalysis.SensorLibrary.LoadImpl(string normalizeCameraName, string colourSpace, string cameraMode, bool speculative)
Info 12:07:07.570046 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.StartPreview(PreviewChangeReason reason) in void SharpCap.Base.PropertyControls.BasePropertyControl<TInterfaceType, TFeature>.AfterValueChange()
Debug 12:07:08.127432 #1 Started new SharpCap.ViewModels.FocuserViewModel(IFocuser adaptor, IUIProvider uiProvider, IApplication app) in UserControl SharpCap.Models.FocuserUIControl.GetUserControl(IUIProvider uiProvider)
Debug 12:07:08.127748 #1 Started void SharpCap.ViewModels.FocuserViewModel.Initialize() in new SharpCap.ViewModels.FocuserViewModel(IFocuser adaptor, IUIProvider uiProvider, IApplication app)
Debug 12:07:08.128085 #1 Ended new SharpCap.ViewModels.FocuserViewModel(IFocuser adaptor, IUIProvider uiProvider, IApplication app) in UserControl SharpCap.Models.FocuserUIControl.GetUserControl(IUIProvider uiProvider)
Debug 12:07:08.134923 #1 Started void SharpCap.ViewModels.FocuserViewModel.InitializeImpl() in void SharpCap.Base.ExtensionMethods.LogThenRethrow(object o, Action a)
Info 12:07:08.135294 #1 Initializing Pentax KP Camera Focuser, MaxPosition = 10000, MaxChange = 200, TempCompAvailable = False in void SharpCap.ViewModels.FocuserViewModel.InitializeImpl()
Debug 12:07:08.135471 #1 Ended void SharpCap.ViewModels.FocuserViewModel.InitializeImpl() in void SharpCap.Base.ExtensionMethods.LogThenRethrow(object o, Action a)
Info 12:07:10.113361 #1 Toolbar/Menu input : SharpCap.ViewModels.Actions.FramingShotAction executing in async Task SharpCap.ViewModels.UIAction.ExecuteAsync()
Info 12:07:10.136819 #1 CapturingFrame event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:10.142998 #1 StartCapture event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Debug 12:07:10.184384 #1 Started async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameStillAsync(IFileNameProvider fileNameProvider, CancellationToken cancellationToken) in void System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<TStateMachine>(ref TStateMachine stateMachine)
Warning 12:07:23.309281 #28 Dropping frame due to pixel count mismatch - 3d source array (479x719x2), source had 345600 pixels, dest 24064000 in bool SharpCap.Cameras.ASCOM.NewCameraProxy.ValidateDataSize(Array source, BufferFrame target)
Warning 12:07:23.311702 #28 FrameCompleted event with null frame, isCancelled = False in void SharpCap.Base.StillCapableCameraProxy+<>c__DisplayClass9_0.<CaptureStillFrameAsync>g__OnFrameCompleted|0(?)+OnFrameCompleted(object sender, GenericEventArgs<BufferFrame> genericEventArgs)
Warning 12:07:23.392377 #1 CaptureStillFrame returned null in async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameStillAsync(IFileNameProvider fileNameProvider, CancellationToken cancellationToken)
Debug 12:07:23.394231 #1 Notification (Status=Error): Single frame capture failed. in void SharpCap.UI.NotificationViewModel.DisplayMessage(NotificationMessage message)
Debug 12:07:23.397989 #1 Ended async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameStillAsync(IFileNameProvider fileNameProvider, CancellationToken cancellationToken) in void System.Runtime.CompilerServices.AsyncTaskMethodBuilder<TResult>+AsyncStateMachineBox<TStateMachine>.ExecutionContextCallback(object s)
Debug 12:07:23.403107 #1 Single frame capture result was Failed in async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameImplNoEventsAsync(string targetName, bool exactFilePath, bool allowPreviousFrame, CancellationToken cancellationToken, IFileNameProvider fileNameProvider, bool showErrorNotifications)
Debug 12:07:23.403999 #1 Notification (Status=Error): Single frame capture failed. in void SharpCap.UI.NotificationViewModel.DisplayMessage(NotificationMessage message)
Debug 12:07:23.407848 #1 Started async void SharpCap.Models.SequenceCaptureModel.OnStopCapture() in void System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<TStateMachine>(ref TStateMachine stateMachine)
Debug 12:07:23.408058 #1 Ended async void SharpCap.Models.SequenceCaptureModel.OnStopCapture() in void System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<TStateMachine>(ref TStateMachine stateMachine)
Info 12:07:23.408498 #1 StopCapture event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:23.410537 #1 CaptureFrameComplete event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Debug 12:07:23.411984 #1 Notification (Status=Error): Capture framing shot failed. Check the log for more information. in void SharpCap.UI.NotificationViewModel.DisplayMessage(NotificationMessage message)
Info 12:07:23.414168 #1 Toolbar/Menu input : SharpCap.ViewModels.Actions.FramingShotAction complete in async Task SharpCap.ViewModels.UIAction.ExecuteAsync()
Info 12:07:27.638722 #1 Updating devices menu in void SharpCap.ViewModels.CamerasMenuViewModel.UpdateDevicesMenu()
Info 12:07:29.430029 #1 Toolbar/Menu input : SharpCap.ViewModels.Actions.CloseCameraAction executing in async Task SharpCap.ViewModels.UIAction.ExecuteAsync()
Info 12:07:29.466418 #1 Changing camera from Pentax KP Camera [IMX193] to none in void SharpCap.Models.Application.SelectNewCamera(Camera value)
Info 12:07:29.894893 #1 Stopping preview : closing device in void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason)
Info 12:07:29.895285 #1 Started void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason) in void SharpCap.MultiCaptureProvider.CloseDevice()
Debug 12:07:29.895654 #1 Started void SharpCap.Base.BaseImageProvider.Stop() in void SharpCap.Base.CaptureProviderBase<T>.StopFramesRunning(PreviewChangeReason reason)
Info 12:07:29.895832 #1 Stopping preview, 0 frames processed, 0 frames dropped in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:29.896185 #1 Started void SharpCap.Base.CameraProxyBase.StopPreview() in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:30.905719 #28 Ended void SharpCap.Base.CameraProxyBase.GrabThreadProc() in void System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, object state)
Debug 12:07:30.907134 #1 Ended void SharpCap.Base.CameraProxyBase.StopPreview() in void SharpCap.Base.BaseImageProvider.Stop()
Info 12:07:30.908765 #1 Frame processing thread shut down in 0.0ms in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:30.909560 #1 Started void SharpCap.Base.BaseImageProvider.DropPendingFrame() in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:30.910353 #1 Ended void SharpCap.Base.BaseImageProvider.DropPendingFrame() in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:30.911079 #1 Ended void SharpCap.Base.BaseImageProvider.Stop() in void SharpCap.Base.CaptureProviderBase<T>.StopFramesRunning(PreviewChangeReason reason)
Info 12:07:30.913071 #1 Capture Event : StopPreview in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:30.986852 #1 StopPreview event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:32.811930 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason) in void SharpCap.MultiCaptureProvider.CloseDevice()
Info 12:07:32.813025 #1 Started void SharpCap.Base.CaptureProviderBase<T>.CloseDevice() in void SharpCap.MultiCaptureProvider.CloseDevice()
Info 12:07:32.813250 #1 Capture Event : DeviceClosing in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:32.813683 #1 DeviceClosing event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:32.814835 #1 Destroying mount proxy which was a SharpCap.Models.NullProxy for On Camera ST4 in void SharpCap.Models.Mount.CleanupProxy()
Debug 12:07:32.816047 #1 Started void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider() in void SharpCap.Base.CaptureProviderBase<T>.CloseDevice()
Debug 12:07:32.816629 #1 Started void SharpCap.Base.BaseImageProvider.Close() in void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider()
Info 12:07:34.939537 #1 Started void SharpCap.Base.CameraProxyBase.Dispose(bool disposing) in void SharpCap.Cameras.ASCOM.NewCameraProxy.Dispose(bool disposing)
Info 12:07:34.940082 #1 Setting ImageProvider CurrentDevice to in void SharpCap.Base.BaseImageProvider.set_CurrentDevice(ICameraProxy value)
Debug 12:07:34.940521 #1 Ended void SharpCap.Base.BaseImageProvider.Close() in void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider()
Debug 12:07:34.940917 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider() in void SharpCap.Base.CaptureProviderBase<T>.CloseDevice()
Info 12:07:34.942590 #1 Cleaning up camera controls in void SharpCap.Base.PropertyControls.CaptureControl.Dispose()
Debug 12:07:34.946660 #1 Started void SharpCap.Base.SimpleCaptureProvider.OnDeviceClosed() in void SharpCap.Base.CaptureProviderBase<T>.CloseDevice()
Debug 12:07:34.947039 #1 Ended void SharpCap.Base.SimpleCaptureProvider.OnDeviceClosed() in void SharpCap.Base.CaptureProviderBase<T>.CloseDevice()
Info 12:07:34.947437 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.CloseDevice() in void SharpCap.MultiCaptureProvider.CloseDevice()
Info 12:07:34.949434 #1 Capture Event : DeviceClosed in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:34.950228 #1 DeviceClosed event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:34.962888 #1 Destroying mount proxy which was a SharpCap.Models.NullProxy for On Camera ST4 in void SharpCap.Models.Mount.CleanupProxy()
Info 12:07:34.965053 #1 Started void SharpCap.Base.CaptureProviderBase<T>.Dispose(bool bDisposing) in void SharpCap.Base.CaptureProviderBase<T>.Dispose()
Info 12:07:34.965267 #1 Disposing of NewAscomCaptureProvider in void SharpCap.Base.CaptureProviderBase<T>.Dispose(bool bDisposing)
Debug 12:07:34.968218 #1 Started void SharpCap.Base.BaseImageProvider.Dispose(bool disposing) in void SharpCap.Base.BaseImageProvider.Dispose()
Debug 12:07:34.968667 #1 Ended void SharpCap.Base.BaseImageProvider.Dispose(bool disposing) in void SharpCap.Base.BaseImageProvider.Dispose()
Info 12:07:34.969069 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.Dispose(bool bDisposing) in void SharpCap.Base.CaptureProviderBase<T>.Dispose()
Info 12:07:34.971756 #1 Controls cleared in void SharpCap.Models.Controls.Clear()
Info 12:07:35.029938 #1 Toolbar/Menu input : SharpCap.ViewModels.Actions.CloseCameraAction complete in async Task SharpCap.ViewModels.UIAction.ExecuteAsync()
Info 12:07:38.290960 #1 Toolbar/Menu input : SharpCap.ViewModels.Actions.ShowLogAction executing in async Task SharpCap.ViewModels.UIAction.ExecuteAsync()
Info 12:07:38.484767 #1 Toolbar/Menu input : SharpCap.ViewModels.Actions.ShowLogAction complete
I did some more debugging. Attached is my log file.
I switch the read mode to 720x480 and then back to 6016x4000. I then took a picture and the log on your end is below (bold important points): in the bold you request 720x480 and then reject the resolution as too small.
I return 6016x4000 as the camera size in my log file but in your printout the max size is 720x480
PanTilt Inconsistent - ROI={Width=720, Height=480}, MaxSize={Width=720, Height=480}, Pan: 0 to 5296, Tilt: 0 to 3520
As I said, in the end your reject the image because it is too small.
Warning 12:07:23.309281 #28 Dropping frame due to pixel count mismatch - 3d source array (479x719x2), source had 345600 pixels, dest 24064000 in bool SharpCap.Cameras.ASCOM.NewCameraProxy.ValidateDataSize(Array source, BufferFrame target)
If I force the code to return the correct size Sharpcap continues but the image is scrambled like it was expecting a different image size.
I do not change the sensor type when switching. In both cases it is Color.
I really appreciate your help.
Rich
Info 12:07:00.681773 #1 Stopping preview : changing Read Mode from LiveView (720 x 480) to Full Resolution (6016 x 4000) in void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason)
Info 12:07:00.682349 #1 Started void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason) in void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason)
Debug 12:07:00.682771 #1 Started void SharpCap.Base.BaseImageProvider.Stop() in void SharpCap.Base.BaseImageProvider.Stop()
Info 12:07:00.682904 #1 Stopping preview, 0 frames processed, 0 frames dropped in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:00.683306 #1 Started void SharpCap.Base.CameraProxyBase.StopPreview() in void SharpCap.Base.CameraProxyBase.StopPreview()
Debug 12:07:01.684721 #34 Ended void SharpCap.Base.CameraProxyBase.GrabThreadProc() in void SharpCap.Base.CameraProxyBase.GrabThreadProc()
Debug 12:07:01.730911 #1 Ended void SharpCap.Base.CameraProxyBase.StopPreview() in void SharpCap.Base.CameraProxyBase.StopPreview()
Info 12:07:01.738335 #1 Frame processing thread shut down in 6.0ms in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:01.738647 #1 Started void SharpCap.Base.BaseImageProvider.DropPendingFrame() in void SharpCap.Base.BaseImageProvider.DropPendingFrame()
Debug 12:07:01.738921 #1 Ended void SharpCap.Base.BaseImageProvider.DropPendingFrame() in void SharpCap.Base.BaseImageProvider.DropPendingFrame()
Debug 12:07:01.739183 #1 Ended void SharpCap.Base.BaseImageProvider.Stop() in void SharpCap.Base.BaseImageProvider.Stop()
Info 12:07:01.741257 #1 Capture Event : StopPreview in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:01.785403 #1 StopPreview event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:03.554823 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason) in void SharpCap.Base.PropertyControls.BasePropertyControl<TInterfaceType, TFeature>.BeforeValueChange(object newValue)
Debug 12:07:07.207048 #1 The WPF render thread has been located for monitoring at thread ID 1492 in ProcessThread SharpCap.Base.ThreadLoadMonitor.FindWPFRenderThread()
Info 12:07:07.207627 #1 Started void SharpCap.Base.CaptureProviderBase<T>.StartPreview(PreviewChangeReason reason) in void SharpCap.Base.PropertyControls.BasePropertyControl<TInterfaceType, TFeature>.AfterValueChange()
Info 12:07:07.207861 #1 Starting Preview on Pentax KP Camera [IMX193], 720x480, RGB, 16bits in Still mode. in void SharpCap.Base.CaptureProviderBase<T>.StartPreview(PreviewChangeReason reason)
Debug 12:07:07.208736 #1 Started void SharpCap.Base.BaseImageProvider.Start() in void SharpCap.Base.CaptureProviderBase<T>.StartFramesRunnng(PreviewChangeReason reason)
Debug 12:07:07.209082 #1 Started void SharpCap.Base.BaseImageProvider.DropPendingFrame() in void SharpCap.Base.BaseImageProvider.Start()
Debug 12:07:07.209421 #1 Ended void SharpCap.Base.BaseImageProvider.DropPendingFrame() in void SharpCap.Base.BaseImageProvider.Start()
Debug 12:07:07.210537 #1 Started void SharpCap.Base.CameraProxyBase.StartPreview() in void SharpCap.Base.BaseImageProvider.Start()
Info 12:07:07.211530 #28 =='Grab Thread' (New Thread)
Debug 12:07:07.211818 #28 Started void SharpCap.Base.CameraProxyBase.GrabThreadProc() in void System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, object state)
Warning 12:07:07.215270 #28 Trying to read coolerOn property : Exception of type 'NotImplementedException' : CoolerOn is not implemented in this driver.
Stack Trace: at bool ASCOM.Com.DriverAccess.DynamicAccess.TryGetMember(GetMemberBinder binder, out object result) in J:/ASCOMLibrary/ASCOM.Com/ASCOM.Com.DriverAccess/BaseClass/DynamicAccess.cs:line 147
at object CallSite.Target(Closure, CallSite, object)
at bool ASCOM.Com.DriverAccess.Camera.get_CoolerOn() in J:/ASCOMLibrary/ASCOM.Com/ASCOM.Com.DriverAccess/Camera.cs:line 145
at bool SharpCap.Cameras.ASCOM.CameraProxy.get_CoolerOn()+() => { } in C:/Documents/Source Code/SharpCap/src/SharpCap.Cameras.ASCOM/CameraProxy.cs:line 222
at T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message) in C:/Documents/Source Code/SharpCap/src/SharpCap.Base/ExtensionMethods.cs:line 767 in T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message)
Warning 12:07:07.215425 #28 Inner Exception : System.Runtime.InteropServices.COMException (0x80040400): Property read CoolerOn is not implemented in this driver. in T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message)
Info 12:07:07.322170 #1 PanTilt Inconsistent - ROI={Width=720, Height=480}, MaxSize={Width=720, Height=480}, Pan: 0 to 5296, Tilt: 0 to 3520 in bool SharpCap.Base.ResolutionExtensions.IsConsistentPanTilt(IResolution res, IIntPropertyControl pan, IIntPropertyControl tilt)
Debug 12:07:07.323023 #1 Ended void SharpCap.Base.CameraProxyBase.StartPreview() in void SharpCap.Base.BaseImageProvider.Start()
Debug 12:07:07.324899 #1 Ended void SharpCap.Base.BaseImageProvider.Start() in void SharpCap.Base.CaptureProviderBase<T>.StartFramesRunnng(PreviewChangeReason reason)
Info 12:07:07.326614 #1 Capture Event : StartPreview in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Warning 12:07:07.333639 #1 Trying to read coolerOn property : Exception of type 'NotImplementedException' : CoolerOn is not implemented in this driver.
Stack Trace: at bool ASCOM.Com.DriverAccess.DynamicAccess.TryGetMember(GetMemberBinder binder, out object result) in J:/ASCOMLibrary/ASCOM.Com/ASCOM.Com.DriverAccess/BaseClass/DynamicAccess.cs:line 147
at object CallSite.Target(Closure, CallSite, object)
at bool ASCOM.Com.DriverAccess.Camera.get_CoolerOn() in J:/ASCOMLibrary/ASCOM.Com/ASCOM.Com.DriverAccess/Camera.cs:line 145
at bool SharpCap.Cameras.ASCOM.CameraProxy.get_CoolerOn()+() => { } in C:/Documents/Source Code/SharpCap/src/SharpCap.Cameras.ASCOM/CameraProxy.cs:line 222
at T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message) in C:/Documents/Source Code/SharpCap/src/SharpCap.Base/ExtensionMethods.cs:line 767 in T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message)
Warning 12:07:07.334303 #1 Inner Exception : System.Runtime.InteropServices.COMException (0x80040400): Property read CoolerOn is not implemented in this driver. in T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message)
Info 12:07:07.335717 #1 Done merging in hardware controls in void SharpCap.Models.Application.MergeInDeviceIndependentControls(CaptureControl controls, CancellationToken cancellationToken)
Warning 12:07:07.344526 #1 Trying to read coolerOn property : Exception of type 'NotImplementedException' : CoolerOn is not implemented in this driver.
Stack Trace: at bool ASCOM.Com.DriverAccess.DynamicAccess.TryGetMember(GetMemberBinder binder, out object result) in J:/ASCOMLibrary/ASCOM.Com/ASCOM.Com.DriverAccess/BaseClass/DynamicAccess.cs:line 147
at object CallSite.Target(Closure, CallSite, object)
at bool ASCOM.Com.DriverAccess.Camera.get_CoolerOn() in J:/ASCOMLibrary/ASCOM.Com/ASCOM.Com.DriverAccess/Camera.cs:line 145
at bool SharpCap.Cameras.ASCOM.CameraProxy.get_CoolerOn()+() => { } in C:/Documents/Source Code/SharpCap/src/SharpCap.Cameras.ASCOM/CameraProxy.cs:line 222
at T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message) in C:/Documents/Source Code/SharpCap/src/SharpCap.Base/ExtensionMethods.cs:line 767 in T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message)
Warning 12:07:07.344876 #1 Inner Exception : System.Runtime.InteropServices.COMException (0x80040400): Property read CoolerOn is not implemented in this driver. in T SharpCap.Base.ExtensionMethods.LogExceptions<T>(object o, Func<T> a, T defVal, string message)
Info 12:07:07.349144 #1 StartPreview event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Debug 12:07:07.354873 #1 Local sensor analysis data not found at C:\Users\richr\AppData\Roaming\SharpCap\SensorCharacteristics\Pentax KP Camera [IMX193]~RGB48~Full Resolution (6016 x 4000).bin in SensorCharacteristics SharpCap.CameraAnalysis.SensorCharacteristics.TryLoad(string file, bool decryptIfEncrypted)
Debug 12:07:07.356234 #1 Local sensor analysis data not found at C:\Users\richr\AppData\Roaming\SharpCap\SensorCharacteristics\Pentax KP Camera [IMX193]~RAW16~Full Resolution (6016 x 4000).bin in SensorCharacteristics SharpCap.CameraAnalysis.SensorCharacteristics.TryLoad(string file, bool decryptIfEncrypted)
Debug 12:07:07.357507 #1 Local sensor analysis data not found at C:\Users\richr\AppData\Roaming\SharpCap\SensorCharacteristics\Pentax KP Camera [IMX193]~RAW16~Full Resolution (6016 x 4000).bin in SensorCharacteristics SharpCap.CameraAnalysis.SensorCharacteristics.TryLoad(string file, bool decryptIfEncrypted)
Info 12:07:07.363072 #1 Did not find library sensor characteristics at C:\Program Files\SharpCap 4.1 (64 bit)\SensorLibrary.bin:Pentax KP Camera [IMX193]~RGB48~Full Resolution (6016 x 4000).json in SensorCharacteristics SharpCap.CameraAnalysis.SensorLibrary.LoadImpl(string normalizeCameraName, string colourSpace, string cameraMode, bool speculative)
Info 12:07:07.372517 #1 Did not find library sensor characteristics at C:\Program Files\SharpCap 4.1 (64 bit)\SensorLibrary.bin:Pentax KP Camera [IMX193]~RAW16~Full Resolution (6016 x 4000).json in SensorCharacteristics SharpCap.CameraAnalysis.SensorLibrary.LoadImpl(string normalizeCameraName, string colourSpace, string cameraMode, bool speculative)
Debug 12:07:07.373732 #1 Local sensor analysis data not found at C:\Users\richr\AppData\Roaming\SharpCap\SensorCharacteristics\Pentax KP Camera [IMX193]~RGB48.bin in SensorCharacteristics SharpCap.CameraAnalysis.SensorCharacteristics.TryLoad(string file, bool decryptIfEncrypted)
Debug 12:07:07.374543 #1 Local sensor analysis data not found at C:\Users\richr\AppData\Roaming\SharpCap\SensorCharacteristics\Pentax KP Camera [IMX193]~RAW16.bin in SensorCharacteristics SharpCap.CameraAnalysis.SensorCharacteristics.TryLoad(string file, bool decryptIfEncrypted)
Debug 12:07:07.375318 #1 Local sensor analysis data not found at C:\Users\richr\AppData\Roaming\SharpCap\SensorCharacteristics\Pentax KP Camera [IMX193]~RAW16.bin in SensorCharacteristics SharpCap.CameraAnalysis.SensorCharacteristics.TryLoad(string file, bool decryptIfEncrypted)
Info 12:07:07.378730 #1 Did not find library sensor characteristics at C:\Program Files\SharpCap 4.1 (64 bit)\SensorLibrary.bin:Pentax KP Camera [IMX193]~RGB48.json in SensorCharacteristics SharpCap.CameraAnalysis.SensorLibrary.LoadImpl(string normalizeCameraName, string colourSpace, string cameraMode, bool speculative)
Info 12:07:07.382911 #1 Did not find library sensor characteristics at C:\Program Files\SharpCap 4.1 (64 bit)\SensorLibrary.bin:Pentax KP Camera [IMX193]~RAW16.json in SensorCharacteristics SharpCap.CameraAnalysis.SensorLibrary.LoadImpl(string normalizeCameraName, string colourSpace, string cameraMode, bool speculative)
Info 12:07:07.570046 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.StartPreview(PreviewChangeReason reason) in void SharpCap.Base.PropertyControls.BasePropertyControl<TInterfaceType, TFeature>.AfterValueChange()
Debug 12:07:08.127432 #1 Started new SharpCap.ViewModels.FocuserViewModel(IFocuser adaptor, IUIProvider uiProvider, IApplication app) in UserControl SharpCap.Models.FocuserUIControl.GetUserControl(IUIProvider uiProvider)
Debug 12:07:08.127748 #1 Started void SharpCap.ViewModels.FocuserViewModel.Initialize() in new SharpCap.ViewModels.FocuserViewModel(IFocuser adaptor, IUIProvider uiProvider, IApplication app)
Debug 12:07:08.128085 #1 Ended new SharpCap.ViewModels.FocuserViewModel(IFocuser adaptor, IUIProvider uiProvider, IApplication app) in UserControl SharpCap.Models.FocuserUIControl.GetUserControl(IUIProvider uiProvider)
Debug 12:07:08.134923 #1 Started void SharpCap.ViewModels.FocuserViewModel.InitializeImpl() in void SharpCap.Base.ExtensionMethods.LogThenRethrow(object o, Action a)
Info 12:07:08.135294 #1 Initializing Pentax KP Camera Focuser, MaxPosition = 10000, MaxChange = 200, TempCompAvailable = False in void SharpCap.ViewModels.FocuserViewModel.InitializeImpl()
Debug 12:07:08.135471 #1 Ended void SharpCap.ViewModels.FocuserViewModel.InitializeImpl() in void SharpCap.Base.ExtensionMethods.LogThenRethrow(object o, Action a)
Info 12:07:10.113361 #1 Toolbar/Menu input : SharpCap.ViewModels.Actions.FramingShotAction executing in async Task SharpCap.ViewModels.UIAction.ExecuteAsync()
Info 12:07:10.136819 #1 CapturingFrame event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:10.142998 #1 StartCapture event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Debug 12:07:10.184384 #1 Started async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameStillAsync(IFileNameProvider fileNameProvider, CancellationToken cancellationToken) in void System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<TStateMachine>(ref TStateMachine stateMachine)
Warning 12:07:23.309281 #28 Dropping frame due to pixel count mismatch - 3d source array (479x719x2), source had 345600 pixels, dest 24064000 in bool SharpCap.Cameras.ASCOM.NewCameraProxy.ValidateDataSize(Array source, BufferFrame target)
Warning 12:07:23.311702 #28 FrameCompleted event with null frame, isCancelled = False in void SharpCap.Base.StillCapableCameraProxy+<>c__DisplayClass9_0.<CaptureStillFrameAsync>g__OnFrameCompleted|0(?)+OnFrameCompleted(object sender, GenericEventArgs<BufferFrame> genericEventArgs)
Warning 12:07:23.392377 #1 CaptureStillFrame returned null in async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameStillAsync(IFileNameProvider fileNameProvider, CancellationToken cancellationToken)
Debug 12:07:23.394231 #1 Notification (Status=Error): Single frame capture failed. in void SharpCap.UI.NotificationViewModel.DisplayMessage(NotificationMessage message)
Debug 12:07:23.397989 #1 Ended async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameStillAsync(IFileNameProvider fileNameProvider, CancellationToken cancellationToken) in void System.Runtime.CompilerServices.AsyncTaskMethodBuilder<TResult>+AsyncStateMachineBox<TStateMachine>.ExecutionContextCallback(object s)
Debug 12:07:23.403107 #1 Single frame capture result was Failed in async Task<FrameCaptureResult> SharpCap.Models.Camera.CaptureSingleFrameImplNoEventsAsync(string targetName, bool exactFilePath, bool allowPreviousFrame, CancellationToken cancellationToken, IFileNameProvider fileNameProvider, bool showErrorNotifications)
Debug 12:07:23.403999 #1 Notification (Status=Error): Single frame capture failed. in void SharpCap.UI.NotificationViewModel.DisplayMessage(NotificationMessage message)
Debug 12:07:23.407848 #1 Started async void SharpCap.Models.SequenceCaptureModel.OnStopCapture() in void System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<TStateMachine>(ref TStateMachine stateMachine)
Debug 12:07:23.408058 #1 Ended async void SharpCap.Models.SequenceCaptureModel.OnStopCapture() in void System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<TStateMachine>(ref TStateMachine stateMachine)
Info 12:07:23.408498 #1 StopCapture event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:23.410537 #1 CaptureFrameComplete event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Debug 12:07:23.411984 #1 Notification (Status=Error): Capture framing shot failed. Check the log for more information. in void SharpCap.UI.NotificationViewModel.DisplayMessage(NotificationMessage message)
Info 12:07:23.414168 #1 Toolbar/Menu input : SharpCap.ViewModels.Actions.FramingShotAction complete in async Task SharpCap.ViewModels.UIAction.ExecuteAsync()
Info 12:07:27.638722 #1 Updating devices menu in void SharpCap.ViewModels.CamerasMenuViewModel.UpdateDevicesMenu()
Info 12:07:29.430029 #1 Toolbar/Menu input : SharpCap.ViewModels.Actions.CloseCameraAction executing in async Task SharpCap.ViewModels.UIAction.ExecuteAsync()
Info 12:07:29.466418 #1 Changing camera from Pentax KP Camera [IMX193] to none in void SharpCap.Models.Application.SelectNewCamera(Camera value)
Info 12:07:29.894893 #1 Stopping preview : closing device in void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason)
Info 12:07:29.895285 #1 Started void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason) in void SharpCap.MultiCaptureProvider.CloseDevice()
Debug 12:07:29.895654 #1 Started void SharpCap.Base.BaseImageProvider.Stop() in void SharpCap.Base.CaptureProviderBase<T>.StopFramesRunning(PreviewChangeReason reason)
Info 12:07:29.895832 #1 Stopping preview, 0 frames processed, 0 frames dropped in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:29.896185 #1 Started void SharpCap.Base.CameraProxyBase.StopPreview() in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:30.905719 #28 Ended void SharpCap.Base.CameraProxyBase.GrabThreadProc() in void System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, object state)
Debug 12:07:30.907134 #1 Ended void SharpCap.Base.CameraProxyBase.StopPreview() in void SharpCap.Base.BaseImageProvider.Stop()
Info 12:07:30.908765 #1 Frame processing thread shut down in 0.0ms in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:30.909560 #1 Started void SharpCap.Base.BaseImageProvider.DropPendingFrame() in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:30.910353 #1 Ended void SharpCap.Base.BaseImageProvider.DropPendingFrame() in void SharpCap.Base.BaseImageProvider.Stop()
Debug 12:07:30.911079 #1 Ended void SharpCap.Base.BaseImageProvider.Stop() in void SharpCap.Base.CaptureProviderBase<T>.StopFramesRunning(PreviewChangeReason reason)
Info 12:07:30.913071 #1 Capture Event : StopPreview in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:30.986852 #1 StopPreview event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:32.811930 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.StopPreview(string reasonText, PreviewChangeReason reason) in void SharpCap.MultiCaptureProvider.CloseDevice()
Info 12:07:32.813025 #1 Started void SharpCap.Base.CaptureProviderBase<T>.CloseDevice() in void SharpCap.MultiCaptureProvider.CloseDevice()
Info 12:07:32.813250 #1 Capture Event : DeviceClosing in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:32.813683 #1 DeviceClosing event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:32.814835 #1 Destroying mount proxy which was a SharpCap.Models.NullProxy for On Camera ST4 in void SharpCap.Models.Mount.CleanupProxy()
Debug 12:07:32.816047 #1 Started void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider() in void SharpCap.Base.CaptureProviderBase<T>.CloseDevice()
Debug 12:07:32.816629 #1 Started void SharpCap.Base.BaseImageProvider.Close() in void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider()
Info 12:07:34.939537 #1 Started void SharpCap.Base.CameraProxyBase.Dispose(bool disposing) in void SharpCap.Cameras.ASCOM.NewCameraProxy.Dispose(bool disposing)
Info 12:07:34.940082 #1 Setting ImageProvider CurrentDevice to in void SharpCap.Base.BaseImageProvider.set_CurrentDevice(ICameraProxy value)
Debug 12:07:34.940521 #1 Ended void SharpCap.Base.BaseImageProvider.Close() in void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider()
Debug 12:07:34.940917 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.CloseTheImageProvider() in void SharpCap.Base.CaptureProviderBase<T>.CloseDevice()
Info 12:07:34.942590 #1 Cleaning up camera controls in void SharpCap.Base.PropertyControls.CaptureControl.Dispose()
Debug 12:07:34.946660 #1 Started void SharpCap.Base.SimpleCaptureProvider.OnDeviceClosed() in void SharpCap.Base.CaptureProviderBase<T>.CloseDevice()
Debug 12:07:34.947039 #1 Ended void SharpCap.Base.SimpleCaptureProvider.OnDeviceClosed() in void SharpCap.Base.CaptureProviderBase<T>.CloseDevice()
Info 12:07:34.947437 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.CloseDevice() in void SharpCap.MultiCaptureProvider.CloseDevice()
Info 12:07:34.949434 #1 Capture Event : DeviceClosed in void SharpCap.MultiCaptureProvider.SendCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:34.950228 #1 DeviceClosed event received in UI thread in async void SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(object sender, CaptureEventArgs e)
Info 12:07:34.962888 #1 Destroying mount proxy which was a SharpCap.Models.NullProxy for On Camera ST4 in void SharpCap.Models.Mount.CleanupProxy()
Info 12:07:34.965053 #1 Started void SharpCap.Base.CaptureProviderBase<T>.Dispose(bool bDisposing) in void SharpCap.Base.CaptureProviderBase<T>.Dispose()
Info 12:07:34.965267 #1 Disposing of NewAscomCaptureProvider in void SharpCap.Base.CaptureProviderBase<T>.Dispose(bool bDisposing)
Debug 12:07:34.968218 #1 Started void SharpCap.Base.BaseImageProvider.Dispose(bool disposing) in void SharpCap.Base.BaseImageProvider.Dispose()
Debug 12:07:34.968667 #1 Ended void SharpCap.Base.BaseImageProvider.Dispose(bool disposing) in void SharpCap.Base.BaseImageProvider.Dispose()
Info 12:07:34.969069 #1 Ended void SharpCap.Base.CaptureProviderBase<T>.Dispose(bool bDisposing) in void SharpCap.Base.CaptureProviderBase<T>.Dispose()
Info 12:07:34.971756 #1 Controls cleared in void SharpCap.Models.Controls.Clear()
Info 12:07:35.029938 #1 Toolbar/Menu input : SharpCap.ViewModels.Actions.CloseCameraAction complete in async Task SharpCap.ViewModels.UIAction.ExecuteAsync()
Info 12:07:38.290960 #1 Toolbar/Menu input : SharpCap.ViewModels.Actions.ShowLogAction executing in async Task SharpCap.ViewModels.UIAction.ExecuteAsync()
Info 12:07:38.484767 #1 Toolbar/Menu input : SharpCap.ViewModels.Actions.ShowLogAction complete
- Attachments
-
- ASCOM.PentaxKP.1206.304730.txt
- (16.17 KiB) Downloaded 124 times