Search Issue Tracker
Duplicate
Votes
0
Found in
2018.4
2019.4
2020.3
2020.3.5f1
2021.1
2021.2
Issue ID
1335576
Regression
No
Crash when entering Play Mode while requesting a URL with a redirect + null download handler + logMessageReceivedThreaded
Reproduction steps:
1. Set up a server that redirects to a file download (example setup for macOS is provided in an edit)
2. Open attached project "1027895-Application.logMessageReceivedThreaded crash" and load "SampleScene"
3. Select the "GameObject" GameObject
4. Set the URL variable in the "Script" component to the one from step 1
5. Begin entering and exiting Play Mode repeatedly
Reproducible with: 2018.4.35f1, 2019.4.26f1, 2020.3.8f1, 2021.1.7f1, 2021.2.0a17
First lines of the stack trace:
#0 0x007fff7198a33a in __pthread_kill
#1 0x007fff71911808 in abort
#2 0x00000139bce29b in mono_log_close_logfile
#3 0x00000139be148c in monoeg_g_logv
#4 0x00000139be1569 in monoeg_g_log
#5 0x00000139b53b96 in do_mono_metadata_type_equal
Notes:
- Testing 2019.4 and below versions requires to edit the "Script" script to not contain UnityWebRequest.result as that was not available in those versions
- Usually crashes within the first 10 attempts to enter Play Mode
-
Resolution Note (2021.2.X):
The crash is due to a memory corruption caused by an issue in the Unity internal log handler.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Quest] Pitch Shifter causes audio degradation on Quest 2 devices when sped up
- "GUI Error: Invalid GUILayout" and "NullReferenceException" are thrown when adding Scenes to "Scenes in Baking Set" in Adaptive Probe Volumes
- Inspector window not updating when switching GameObjects in Play Mode while having a VR headset connected
- "UnityException: GetName can only be called from the main thread." erors are thrown when the Shortcuts window is opened and entering Play Mode with a shortcut
- [Android] Light2D visuals stacking over frames when using RenderGraph
This is a duplicate of issue #1331280