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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Add comment