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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
This is a duplicate of issue #1331280