gear
April 2, 2015, 12:53pm
1
Hi,
I am making a build which run fine for first time, but quit and launch app 2nd time onward, it crashes randomly while disposing the WWW object, call of WWW dispose is random. From call stack it shows our script is calling but there is no WWW object getting used any way. I are loading bundles using WWW.LoadFromCacheOrDownload from other script. Data cahing is disabled in player setting, i tried clearing the browser content but it didn’t help.
Here is exception log, I am using Unity5 patch3, with f4 at least i never saw this issue.
"Invoking error handler due to
uncaught exception: TypeError: node is null : jsStackTrace@http://localhost:8089/dragongl/Development/DragonGL.js:875:12
stackTrace@http://localhost:8089/dragongl/Development/DragonGL.js:889:21
FS.handleFSError@http://localhost:8089/dragongl/Development/DragonGL.js:3353:1
_unlink@http://localhost:8089/dragongl/Development/DragonGL.js:10560:3
__ZN20LocalFileSystemPosix6DeleteER13FileEntryDatab [LocalFileSystemPosix: elete(bool&)]@http://localhost:8089/dragongl/Development/DragonGL.js:1609802:9
dynCall_iiii@http://localhost:8089/dragongl/Development/DragonGL.js:5491530:9
invoke_iiii@http://localhost:8089/dragongl/Development/DragonGL.js:17558:10
__ZNK10FileSystem6DeleteEPKcb [FileSystem: elete(char*, bool)]@http://localhost:8089/dragongl/Development/DragonGL.js:2665363:7
__Z21DeleteFileOrDirectoryRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE [DeleteFileOrDirectory?S(undefined?N?&)]@http://localhost:8089/dragongl/Development/DragonGL.js:5176881:7
dynCall_ii@http://localhost:8089/dragongl/Development/DragonGL.js:5546809:9
invoke_ii@http://localhost:8089/dragongl/Development/DragonGL.js:17398:10
__ZN26CompressedFileStreamMemoryD2Ev [CompressedFileStreamMemory?D()]@http://localhost:8089/dragongl/Development/DragonGL.js:1592067:7
__ZN29CompressedFileStreamDiskCacheD2Ev [CompressedFileStreamDiskCache?D()]@http://localhost:8089/dragongl/Development/DragonGL.js:5352239:2
dynCall_vi@http://localhost:8089/dragongl/Development/DragonGL.js:5549175:2
invoke_vi@http://localhost:8089/dragongl/Development/DragonGL.js:16942:3
__ZN14UnityWebStreamD2Ev [UnityWebStream?D()]@http://localhost:8089/dragongl/Development/DragonGL.js:1680708:3
__ZN14UnityWebStream7ReleaseEv [UnityWebStream::Release()]@http://localhost:8089/dragongl/Development/DragonGL.js:4573541:21
dynCall_vi@http://localhost:8089/dragongl/Development/DragonGL.js:5549175:2
invoke_vi@http://localhost:8089/dragongl/Development/DragonGL.js:16942:3
__ZN3WWWD2Ev [WWW?D()]@http://localhost:8089/dragongl/Development/DragonGL.js:4428186:3
__ZN13EmscriptenWWWD2Ev [EmscriptenWWW?D()]@http://localhost:8089/dragongl/Development/DragonGL.js:4306500:3
dynCall_vi@http://localhost:8089/dragongl/Development/DragonGL.js:5549175:2
invoke_vi@http://localhost:8089/dragongl/Development/DragonGL.js:16942:3
__ZN13EmscriptenWWWD0Ev [EmscriptenWWW?D()]@http://localhost:8089/dragongl/Development/DragonGL.js:5261271:2
__ZN3WWW7ReleaseEv [WWW::Release()]@http://localhost:8089/dragongl/Development/DragonGL.js:5221989:2
dynCall_vi@http://localhost:8089/dragongl/Development/DragonGL.js:5549175:2
invoke_vi@http://localhost:8089/dragongl/Development/DragonGL.js:16942:3
__ZN9WWWCachedD0Ev [WWWCached?D()]@http://localhost:8089/dragongl/Development/DragonGL.js:4040093:4
__ZN3WWW7ReleaseEv [WWW::Release()]@http://localhost:8089/dragongl/Development/DragonGL.js:5221989:2
__Z21WWW_CUSTOM_DestroyWWWP15ScriptingObjecth [WWW_CUSTOM_DestroyWWW(unsigned char*)]@http://localhost:8089/dragongl/Development/DragonGL.js:4903436:2
__Z21WWW_DestroyWWW_m52110P9WWW_t1384bP10MethodInfo [WWW_DestroyWWW_m52110(bool*, MethodInfo?)]@http://localhost:8089/dragongl/Development/DragonGL.js:5182104:2
dynCall_viii@http://localhost:8089/dragongl/Development/DragonGL.js:5507445:2
invoke_viii@http://localhost:8089/dragongl/Development/DragonGL.js:17238:3
__Z19WWW_Finalize_m52109P9WWW_t1384P10MethodInfo [WWW_Finalize_m52109(MethodInfo?)]@http://localhost:8089/dragongl/Development/DragonGL.js:4125017:2
_Z23RuntimeInvoker_Void_t46P10MethodInfoPvPS1 [RuntimeInvoker_Void_t46?1(void , undefined?S? )]@http://localhost:8089/dragongl/Development/DragonGL.js:5424077:2
dynCall_iiii@http://localhost:8089/dragongl/Development/DragonGL.js:5491530:9
invoke_iiii@http://localhost:8089/dragongl/Development/DragonGL.js:17558:10
__ZN6il2cpp2vm7Runtime6InvokeEP10MethodInfoPvPS4_PP12Il2CppObject [il2cpp::vm::Runtime::Invoke?4(void**, undefined?S?)]@http://localhost:8089/dragongl/Development/DragonGL.js:4444931:7
_Z22il2cpp_gc_run_finalizePvS [il2cpp_gc_run_finalize?S(void )]@http://localhost:8089/dragongl/Development/DragonGL.js:5095744:2
_GC_notify_or_invoke_finalizers@http://localhost:8089/dragongl/Development/DragonGL.js:3939535:3
_GC_generic_malloc@http://localhost:8089/dragongl/Development/DragonGL.js:4076036:2
_GC_malloc_atomic@http://localhost:8089/dragongl/Development/DragonGL.js:4636712:8
__ZN6il2cpp2vm6Object15AllocatePtrFreeEjP8TypeInfo [il2cpp::vm::Object::AllocatePtrFree(unsigned int, TypeInfo?)]@http://localhost:8089/dragongl/Development/DragonGL.js:5388707:7
__ZN6il2cpp2vm5Array11NewSpecificEP8TypeInfoi [il2cpp::vm::Array::NewSpecific(int )]@http://localhost:8089/dragongl/Development/DragonGL.js:4066145:8
__ZL10SZArrayNewP8TypeInfoj200431 [SZArrayNew?2(unsigned int*)]@http://localhost:8089/dragongl/Development/DragonGL.js:5371997:7
__Z28BitConverter_GetBytes_m66399P8Object_tPhiP10MethodInfo [BitConverter_GetBytes_m66399(unsigned char**, int, MethodInfo?)]@http://localhost:8089/dragongl/Development/DragonGL.js:4637975:7
__Z28BitConverter_GetBytes_m51065P8Object_tdP10MethodInfo [BitConverter_GetBytes_m51065(double , MethodInfo?)]@http://localhost:8089/dragongl/Development/DragonGL.js:2904939:8
__Z37BitConverter_DoubleToInt64Bits_m66398P8Object_tdP10MethodInfo [BitConverter_DoubleToInt64Bits_m66398(double , MethodInfo?)]@http://localhost:8089/dragongl/Development/DragonGL.js:4533722:85
__Z27NumberFormatter_Init_m66893P22NumberFormatter_t11637P8String_tdiP10MethodInfo [NumberFormatter_Init_m66893(double**, int, MethodInfo? )]@http://localhost:8089/dragongl/Development/DragonGL.js:1568804:7
__Z37NumberFormatter_NumberToString_m66926P8Object_tP8String_tfS0_P10MethodInfo [NumberFormatter_NumberToString_m66926?S(float**)]@http://localhost:8089/dragongl/Development/DragonGL.js:3376445:2
__Z22Single_ToString_m16095PfP8String_tP8Object_tP10MethodInfo [Single_ToString_m16095(float*, MethodInfo?)]@http://localhost:8089/dragongl/Development/DragonGL.js:4550878:7
__Z22Single_ToString_m13792PfP8String_tP10MethodInfo [Single_ToString_m13792(float , MethodInfo? )]@http://localhost:8089/dragongl/Development/DragonGL.js:5357393:7
__Z18GrFPS_Update_m2819P11GrFPS_t1041P10MethodInfo [GrFPS_Update_m2819(MethodInfo?)]@http://localhost:8089/dragongl/Development/DragonGL.js:1100242:26
_Z23RuntimeInvoker_Void_t46P10MethodInfoPvPS1 [RuntimeInvoker_Void_t46?1(void , undefined?S?)]@http://localhost:8089/dragongl/Development/DragonGL.js:5424077:2
dynCall_iiii@http://localhost:8089/dragongl/Development/DragonGL.js:5491530:9
invoke_iiii@http://localhost:8089/dragongl/Development/DragonGL.js:17558:10
__ZN6il2cpp2vm7Runtime6InvokeEP10MethodInfoPvPS4_PP12Il2CppObject [il2cpp::vm::Runtime::Invoke?4(void**, undefined?S? )]@http://localhost:8089/dragongl/Development/DragonGL.js:4444931:7
_il2cpp_runtime_invoke@http://localhost:8089/dragongl/Development/DragonGL.js:5364204:7
__Z23scripting_method_invoke21ScriptingMethodIl2CppP15ScriptingObjectR18ScriptingArgumentsPP18ScriptingException [scripting_method_invoke?2()]@http://localhost:8089/dragongl/Development/DragonGL.js:5133380:7
__ZN25ScriptingInvocationNoArgs6InvokeEPP18ScriptingException [ScriptingInvocationNoArgs::Invoke(ScriptingException?**)]@http://localhost:8089/dragongl/Development/DragonGL.js:3132347:7
__ZN25ScriptingInvocationNoArgs6InvokeEv [ScriptingInvocationNoArgs::Invoke()]@http://localhost:8089/dragongl/Development/DragonGL.js:5232880:7
__ZN13MonoBehaviour16CallUpdateMethodEi [MonoBehaviour::CallUpdateMethod(int)]@http://localhost:8089/dragongl/Development/DragonGL.js:2928657:2
__ZN13MonoBehaviour6UpdateEv [MonoBehaviour::Update()]@http://localhost:8089/dragongl/Development/DragonGL.js:5498469:2
__ZN20BaseBehaviourManager12CommonUpdateI16BehaviourManagerEEvv [undefined BaseBehaviourManager::CommonUpdate<BehaviourManager?>(void, void)]@http://localhost:8089/dragongl/Development/DragonGL.js:2237335:4
__ZN16BehaviourManager6UpdateEv [BehaviourManager::Update()]@http://localhost:8089/dragongl/Development/DragonGL.js:5453931:2
dynCall_vi@http://localhost:8089/dragongl/Development/DragonGL.js:5549175:2
invoke_vi@http://localhost:8089/dragongl/Development/DragonGL.js:16942:3
__Z10PlayerLoopbbP10IHookEvent [PlayerLoop(bool, bool, IHookEvent?*)]@http://localhost:8089/dragongl/Development/DragonGL.js:178255:8
__ZL8mainloopv [mainloop()]@http://localhost:8089/dragongl/Development/DragonGL.js:4643730:2
dynCall_v@http://localhost:8089/dragongl/Development/DragonGL.js:5552672:2
Runtime.dynCall@http://localhost:8089/dragongl/Development/DragonGL.js:206:11
Browser_mainLoop_runner/<@http://localhost:8089/dragongl/Development/DragonGL.js:10487:5
Browser.mainLoop.runIter@http://localhost:8089/dragongl/Development/DragonGL.js:7269:5
Browser_mainLoop_runner@http://localhost:8089/dragongl/Development/DragonGL.js:10483:3
Thanks
This sounds like a bug with asset bundle caching (used when you call WWW.LoadFromCacheOrDownload ). Can you file one?
gear
April 6, 2015, 11:54am
3
Hello jonas,
My project is kind of huge (30GB+) so uploading that for bug report will take time. I will try to simulate same in small project.
Thanks
gear
April 8, 2015, 1:44pm
4
I reported bug id 687700.