Skip to content

Crash when adding video track #142

@mluketin

Description

@mluketin

When adding VideoTrack to PeerConnection, I get a crash most of the times (4 out of 5 tries crashes).

I tracked the issue to video_capture_winrt.cc and VideoCaptureWinRTInternal::StartCapture method.
It crashes after calling CreateFrameReaderAsync and then WaitForAsyncOperation.

When debugging in VS, the crash has the following message :Exception thrown at 0x00007FFB90FB0D2A (ntdll.dll) in WinRT_Desktop.exe: 0xC0000008: An invalid handle was specified."

If the crash does not happen, I get the following exception (I think it is thrown for every video frame), but it does not crash the app: "Exception thrown at 0x00007FFB8EA84ED9 (KernelBase.dll) in WinRT_Desktop.exe: 0x40080202: WinRT transform error (parameters: 0x0000000080004005, 0x0000000000000000, 0x0000000000000027, 0x00000099DB4FEE00)."

Did anyone else encounter this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions