Search Issue Tracker
Fixed
Votes
35
Found in
4.5.0f6
Issue ID
616133
Regression
Yes
Unity freezes when WWW.Dispose is used while downloading AssetBundle
This issue has no description.
Comments (4)
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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Robdon
Oct 02, 2015 13:56
This bug is causing my app to pause for about 0.3s when Dispose() is called, when I'm running a www = new WWW(url) in the background in a Coroutine.
It says the priority is a 3, 'work around is possible', so I'm guessing its not going to get fixed soon, and by looking at the submit date.
Can someone post a workaround, then, to stop this from happening?
Thanks.
Quiet-Pixel
Oct 03, 2014 21:31
Still a bug in Unity 4.5.3. I do not get a deadlock as @Postelzhuk reports, but in both the editor and in Android app, calling WWW.Dispose causes a total freeze up (i.e. 0 frames per second) for 2-4 seconds. I get the same result if I wrap the WWW instance inside a using () clause, and do not call Dispose directly.
I am attempting to use Dispose to kill downloads that are taking "too long", so I can reschedule them for later, an fetch more important assets first.
If I do not call Dispose (), the app will not hang, but as I understand it, this leaves the download still running in the background, hogging network speed and probably socket handles.
Andrey-Postelzhuk
Sep 24, 2014 09:02
Here is my case:
+ Device A is a Mobile Hotspot (using EDGE as a source).
+ Device B is connected to the Device A hotspot.
+ Turn off EDGE on Device A
+ Send request from Device B
+ Call WWW.Dispose() and get dead lock.
mken
Sep 16, 2014 15:32
I got error when I using "dispose" after "WWW.LoadFromCacheOrDownload"
There is no problem with "new WWW(url)"