[GH-ISSUE #647] If you turn on the camera to record in surface pro 5, the program crashes when you turn on the camera at one point #528

Open
opened 2026-02-26 09:31:46 +03:00 by kerem · 6 comments
Owner

Originally created by @tiggerik on GitHub (Apr 30, 2020).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/647

Is it a dual camera problem?

Originally created by @tiggerik on GitHub (Apr 30, 2020). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/647 Is it a dual camera problem?
Author
Owner

@NickeManarin commented on GitHub (Apr 30, 2020):

That's an issue that I'm getting report from users with Windows 10.
Still not sure what could be it.

<!-- gh-comment-id:621830141 --> @NickeManarin commented on GitHub (Apr 30, 2020): That's an issue that I'm getting report from users with Windows 10. Still not sure what could be it.
Author
Owner

@NickeManarin commented on GitHub (Aug 29, 2020):

Do you get any error message when this happens?

Have you tried to open Event Viewer to check if there's any error message in there? (In the Windows Logs > Application section)

<!-- gh-comment-id:683241180 --> @NickeManarin commented on GitHub (Aug 29, 2020): Do you get any error message when this happens? Have you tried to open Event Viewer to check if there's any error message in there? (In the Windows Logs > Application section)
Author
Owner

@Gnbrkm41 commented on GitHub (Sep 11, 2020):

github.com/NickeManarin/ScreenToGif@fa7881360a/ScreenToGif/Webcam/DirectX/CaptureWebcam.cs (L474)

This line returns E_FAIL. I'm on a Surface Book 3 (which has 2 cameras - or 3 including the IR camera).

<!-- gh-comment-id:691226272 --> @Gnbrkm41 commented on GitHub (Sep 11, 2020): https://github.com/NickeManarin/ScreenToGif/blob/fa7881360a3c0a869dbaa26eb7f5a4f9acaf9a74/ScreenToGif/Webcam/DirectX/CaptureWebcam.cs#L474 This line returns `E_FAIL`. I'm on a Surface Book 3 (which has 2 cameras - or 3 including the IR camera).
Author
Owner

@Gnbrkm41 commented on GitHub (Sep 11, 2020):

0:000> !clrstack
OS Thread Id: 0x19cc (0)
        Child SP               IP Call Site
0000008b66d3cf88 00007fff51f9a1ac [HelperMethodFrame: 0000008b66d3cf88] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32, IntPtr)
0000008b66d3d070 00007ffecf4682a7 ScreenToGif.Webcam.DirectX.CaptureWebcam.RenderGraph()
0000008b66d3d1b0 00007ffecf467bda ScreenToGif.Webcam.DirectX.CaptureWebcam.StartPreview()
0000008b66d3d1e0 00007ffecf462aa5 ScreenToGif.Controls.WebcamControl.Refresh()
0000008b66d3d240 00007ffecf4650c1 ScreenToGif.Windows.Webcam.VideoDevicesComboBox_SelectionChanged(System.Object, System.Windows.Controls.SelectionChangedEventArgs)
0000008b66d3d2b0 00007fff020b8b9f System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
0000008b66d3d2f0 00007fff020d33a6 System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.R
<!-- gh-comment-id:691227214 --> @Gnbrkm41 commented on GitHub (Sep 11, 2020): ``` 0:000> !clrstack OS Thread Id: 0x19cc (0) Child SP IP Call Site 0000008b66d3cf88 00007fff51f9a1ac [HelperMethodFrame: 0000008b66d3cf88] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32, IntPtr) 0000008b66d3d070 00007ffecf4682a7 ScreenToGif.Webcam.DirectX.CaptureWebcam.RenderGraph() 0000008b66d3d1b0 00007ffecf467bda ScreenToGif.Webcam.DirectX.CaptureWebcam.StartPreview() 0000008b66d3d1e0 00007ffecf462aa5 ScreenToGif.Controls.WebcamControl.Refresh() 0000008b66d3d240 00007ffecf4650c1 ScreenToGif.Windows.Webcam.VideoDevicesComboBox_SelectionChanged(System.Object, System.Windows.Controls.SelectionChangedEventArgs) 0000008b66d3d2b0 00007fff020b8b9f System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object) 0000008b66d3d2f0 00007fff020d33a6 System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.R ```
Author
Owner

@Gnbrkm41 commented on GitHub (Sep 11, 2020):

Couldn't figure out how to step into the COM method, so that's as far as I can go unfortunately (for now).

<!-- gh-comment-id:691251018 --> @Gnbrkm41 commented on GitHub (Sep 11, 2020): Couldn't figure out how to step into the COM method, so that's as far as I can go unfortunately (for now).
Author
Owner

@fz0000 commented on GitHub (Oct 4, 2020):

I tried to connect an external camera to my surface pro 4 and it worked well. Only the internal front and rear cameras crashed.

<!-- gh-comment-id:703260803 --> @fz0000 commented on GitHub (Oct 4, 2020): I tried to connect an external camera to my surface pro 4 and it worked well. Only the internal front and rear cameras crashed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#528
No description provided.