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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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)"