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
- The search field has an additional icon that has no functionality
- Splash Image logo is shown after being removed when pressing the Preview button
- Crash on GenerateParticleGeometry when creating certain particles
- HD Sample Buffer returns black for Rendering Layer Mask when Custom Pass Volume is not active
- SpriteRenderer has wrong input color when associated material uses SRPBatcher
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...