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
- Context Menu option is automatically selected when the menu is invoked and mouse is dragged while holding left mouse button
- In Deferred rendering path, mixed lights don't render when enabling "Use Rendering Layers" in the Decal renderer feature
- [Windows] Special characters in file names are sorted to the end of the alphabet in the Project window
- Information box icons are not contained within the information box bounds in Render Pipeline Converter window
- Field is still marked as changed when changed back to its default state in UI Builder
Add comment