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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment