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
- Getting a deprecated package for JetBrains Rider pop up when opening or creating a project
- [Android] Volume level of the same audio file is different on Samsung Galaxy Tab A8 between 2023.3.0b3 and 2023.3.0b4
- ‘Expected end of value’ warning occurs when a property declaration includes five or more variable references
- Crash on BurstCompilerService::CompileAsync when entering Play mode in a specific scene
- InvalidOperationException when using Game Camera Preview in Scene window with a custom RenderGraph pass
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...