Search Issue Tracker
By Design
Votes
0
Found in
5.4.1f1
Issue ID
845328
Regression
No
Unity exceptions in asynchronous methods called from UdpClient are not handled
Reproduction steps:
1. Open the "Server.zip" project in VS and start the server
2. Open the "bug.zip" project
3. Open the only scene
4. Play the scene
-Notice in the console that there are no errors, however, the script stops running.
5. Uncomment Try-Catch block and play the scene again
-Notice the Unity exception from the try-catch block in the console.
The message produced by the exception: UnityEngine.UnityException: EnsureRunningOnMainThread can only be called from the main thread
Actual result: No errors are thrown in the console.
Expected result: Exception is handles and error is thrown in the console
Note: In 5.3 the asynchronous methods produce no exceptions and keep running after exiting play mode
Reproduced on: 5.6.0a1, 5.5.0b10, 5.4.2p3.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [XR] Input is not registered and headset view is headlocked after entering Play Mode with Meta XR SDK on 6000.0.0b16 and higher
- Crash on RtlLookupFunctionEntry when using 10 or more GameObjects with Articulation Body component in the scene
- Polygons are created on the opposite side of the Sprite when the Sprite boundaries are above the edge of the Texture
- Render Graph Viewer Resource list becomes shrunk after using a filter that yields no results
- [Android] [Vulkan] "VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT" not added on some Android devices in "com.unity3d.player.UnityPlayerActivity/2D Colour Attachement"
Add comment