Search Issue Tracker

Fixed in 2018.3.X

Votes

12

Found in

2018.2.0a8

Issue ID

1024727

Regression

Yes

[WindowsMR] failure to take photo capture in Hololens

XR SDK

-

Exception thrown: 'System.ArgumentNullException' in UnityEngineProxy.dll
ArgumentNullException: Value cannot be null.
Parameter name: _unity_self
at UnityEngineProxy.InternalCalls.PhotoCaptureFrame_CUSTOM_GetDataLength(Object self)
at UnityEngine.XR.WSA.WebCam.PhotoCaptureFrame..ctor(IntPtr nativePtr)
at UnityEngine.XR.WSA.WebCam.PhotoCapture.InvokeOnCapturedPhotoToMemoryDelegate(OnCapturedToMemoryCallback callback, Int64 hResult, IntPtr photoCaptureFramePtr)
at UnityEngine.XR.WSA.WebCam.PhotoCapture.$Invoke10(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: <Unknown> Line: 0)

Exception thrown: 'System.ArgumentOutOfRangeException' in System.Private.CoreLib.ni.dll
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in System.Private.CoreLib.ni.dll
Positive number required.

REPRO STEPS
1. Load scene "Photo-capture"
2. Build & Deploy to hololens
3. Air tap to take a photo

Comments (3)

  1. A_CST

    Nov 07, 2018 14:56

    @MAlshair

    soun very good. We also can not wait. Is it possibel that you can give me a short hint howto integrate your workaround into the postcalibration sample to get it running again?

  2. MAlshair

    Oct 15, 2018 14:13

    Hello Everyone:

    I also have the same issue. So, I created a workaround for me and those that need to use the camera in the HoloLens by using MediaCapture. The workaround allows to take, save, and display photons in the HoloLens and it satisfies my needs. So, I am sharing this here to maybe help someone else that can't wait like me (I discovered this issue last Friday and it seems that it is going on for a long time):
    https://github.com/MSAlshair/HoloLensMediaCapture

    Thank you!

  3. gwendalbroudinpro

    Oct 10, 2018 15:27

    This is also occuring on 2017.4.12, 2018.1.9f2 and 2018.2.11f1. Here is a test project https://github.com/gwendalbroudinpro/testPhotoCaptureHololens

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.