ppm1337
ppm1337

Reputation: 1

UWP: MediaCapture Access Violation since Windows Update

Since the latest Windows Update (1703) the Windows.Media.dll always throws an exception when I try to display a camera preview using a HTML5 video tag that was originally working.

The whole error states the following:

Unhandled Exception at 0x00007FFFFCB8FA2F (Windows.Media.dll) in WWAHost.exe: 0xC0000005 Access Violation reading location 0x0000000000000000

Further debugging the WWAHost process yields following information:

"this", "__pThis" and "hr" --> the variable was deleted during optimization and is not available (rough translation, my VS 2017 is german)

and

Source not found "previewsource.cpp"

Trying to disable the optimization using the /Od option did not work.

An issue in the Microsoft Windows Universal Samples GitHub (https://github.com/Microsoft/Windows-universal-samples) states that this problem is related to calling the play method of a HTML5 video tag. The problem even exists when running the provided CameraAdvancedCapture example though it was updated in respect to the Windows Update 1703 just recently.

CameraCaptureUI is still working but does not allow to select a specific camera on initialization so I have to rely on MediaCapture. Is there an alternative way to display a preview without HTML5 video in a JavaScript web app or are there any other workarounds? Will this be fixed in the future?

Upvotes: 0

Views: 308

Answers (1)

Related Questions