Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If you turn on the camera to record in surface pro 5, the program crashes when you turn on the camera at one point #647

Open
tiggerik opened this issue Apr 30, 2020 · 6 comments
Labels
⬜ Waiting For Answer ⏳ Status • A question was made and an answer is needed.

Comments

@tiggerik
Copy link

tiggerik commented Apr 30, 2020

Is it a dual camera problem?

@tiggerik tiggerik changed the title surface pro 5中如果打开摄像头录制,一点打开摄像头程序就崩溃 If you turn on the camera to record in surface pro 5, the program crashes when you turn on the camera at one point Apr 30, 2020
@NickeManarin
Copy link
Owner

NickeManarin commented Apr 30, 2020

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

@NickeManarin
Copy link
Owner

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)

@NickeManarin NickeManarin added the ⬜ Waiting For Answer ⏳ Status • A question was made and an answer is needed. label Aug 29, 2020
@Gnbrkm41
Copy link
Contributor

var hr = CaptureGraphBuilder.RenderStream(cat, med, VideoDeviceFilter, _baseGrabFlt, null);

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

@Gnbrkm41
Copy link
Contributor

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

@Gnbrkm41
Copy link
Contributor

Gnbrkm41 commented 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).

@fz0000
Copy link

fz0000 commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⬜ Waiting For Answer ⏳ Status • A question was made and an answer is needed.
Projects
None yet
Development

No branches or pull requests

4 participants