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
- "Curve" window workspace doesn't update the scale to match the selected curve preset unless reopened
- StackOverflowException occurs and tests fail to load when the Test Runner window is opened while System.Windows.Forms.dll and System.Deployment.dll are present in the project
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
This is a duplicate of issue #1331280