Search Issue Tracker
By Design
Votes
0
Found in
5.3.6f1
Issue ID
850023
Regression
No
[iOS] Crash when GUI Button calls method which Debug.Log() null string. UI Button does not crash.
Reproduction Steps:
1. Open Project
2. Build and deploy to iOS device
3. Press UI button
4. Notice that error is thrown
5. Press GUI Button
6. Notice that error is thrown and app crashes
Note: Both button call the same method:
public void CrashNow ()
{
string foo = null;
Debug.Log (foo.ToString ());
}
Reproduced on Unity: 5.3.6f1, 5.3.7p1, 5.4.3f1, 5.5.0f1, 5.6.0a3
Reproduced on device: iPhone 5 iOS 9.35
RESOLUTION: By design. UI system catches any exceptions thrown from code attached to UnityEvents. The documentation has been updated to reflect that.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Undoing Animator Parameter name change breaks references to it
- Crash on BV4_OverlapBoxAll when moving in play mode
- Custom mesh water surface normal map fades out when Y Position increases
- Sprite renderer does not issue draw calls correctly when using SRP Batcher
- [Android] Flickering artifacts when using "ScriptableRenderer.EnqueuePass(RenderPassEvent.BeforeRenderingPostProcessing)" multiple times
Add comment