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
- The Up, Down and other Buttons in a Style Sheet's Inspector unselect items when they are clicked while they are disabled
- Virtual Player remains active and still launches when removed from Additional Editor Instances from a custom Play Mode Scenario
- UI Toolkit Editor Window Creator becomes not interactable and greyed out when a long name is entered
- [Web][iOS] Web Player keeps restarting on launch when Native C/C++ Multithreading is enabled
- "Add Scene to Scenes in Build" pop-up reappears after Scene has already been added and another Multiplayer Editor Instance is loaded
This is a duplicate of issue #1331280