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
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SpeedTree does not move when using WindZone
- "Undeclared identifier 'LinearToSRGB'" error is thrown when creating a color variable with HDR color mode and assigning a Custom Render Texture target in Shader Graph
- Input System package is missing when creating a new HDRP project
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
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?
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!
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