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
Comments (3)
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
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
- Unity Version Control server textfield’s text overlaps with the dropdown triangle button in the Explore repositories window when an organization with a long name is selected
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