Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.1.1p3
Issue ID
966626
Regression
No
[iOS] Build crashes when WebCamTexture.Play() is called
As soon as the Play() function is called on the WebCamTexture, the app crashes.
Steps:
1. Build and Run attached project (CameraTestProject-edited.zip) for iOS device
2. In Player: press button "cam.Play()"
Expected behavior: a camera is used and it shows a view in a player.
Actual behavior: build crashes.
Reproduced with: 5.6.4p2, 2017.1.2p3, 2018.1.0a3.
Tested with:
iPad mini 3 - iOS10.3.2 - reproduced
iPad Pro 10.5 2017 - iOS10.3.3 - reproduced
iPad Pro 10.5 2017 - iOS11.0 - reproduced
LG Nexus 5 - Android 7.1.1 - not reproduced
Note: on Android, everything works as expected.
WON'T FIX:
"WebCamTexture class is used but Camera Usage Description is empty. App will not work on iOS 10+."
WORKAROUND: fill out Camera Usage Description in player settings (or set NSCameraUsageDescription in Info.plist)
https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW24
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
hamza37
Oct 10, 2018 10:47
is the problem is fixed?? iam using unity 2018 and my game crashes when i open camera
YuinStudio
Aug 25, 2018 21:07
Solution Step:
build development project, than add a row to Info.plist. success. close the issues~XD
key value
NSCameraUsageDescription(String- iOS)
YuinStudio
Aug 25, 2018 20:40
Is the problem fixed ?
I am using Unity 2018.2.2f1 that still have this crash...