Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: roady on September 25, 2012, 07:42:51 AM

Title: Flash crash, only firefox FP 11.4
Post by: roady on September 25, 2012, 07:42:51 AM
Strange issue,
Game crashes only in latest firefox with latest plugin.

Fix:

#1: Open UIPanel
#2: Look at method UpdateDrawcalls ()
#3: Add the #if UNITY_FLASH script

  1. if (platform == RuntimePlatform.WindowsPlayer ||
  2.                         platform == RuntimePlatform.WindowsWebPlayer ||
  3.                         platform == RuntimePlatform.WindowsEditor)
  4.                 {
  5.                         range.x -= 0.5f;
  6.                         range.y += 0.5f;
  7.                 }
  8.  
  9. #if UNITY_FLASH
  10.                 range = new Vector4(0f,0f,64f,64f);                                    
  11. #endif
  12.                                                        
  13.                 Transform t = cachedTransform;
  14.                                                        
  15.                 int imax = mDrawCalls.size;
  16.                 for (int i = 0; i < imax; i++)
Title: Re: Flash crash, only firefox FP 11.4
Post by: roady on September 25, 2012, 07:51:57 AM
Some info about what the crash looks like. Search browsers look above for solution.

Fatal Error : RangeError: Error #1506: The specified range is invalid.
   at com.unity::UnityNative$/block_locate_free()
   at com.unity::UnityNative$/tlsf_malloc()
   at com.unity::ChunkedMallocProvider/malloc_in_tlsf_pool()
   at com.unity::ChunkedMallocProvider/malloc()
   at com.unity::UnityNative$/malloc()
   at com.unity::UnityNative$/_ZN21UnityDefaultAllocatorI17LowLevelAllocatorE8AllocateEji()
   at com.unity::UnityNative$/_ZN13MemoryManager8AllocateEji10MemLabelIdiPKci()
   at com.unity::UnityNative$/_Z15malloc_internalji10MemLabelIdiPKci()
   at com.unity::UnityNative$/_ZN16NovodexAllocator6mallocEj12NxMemoryType()
   at com.unity::UnityNative$/_ZL13LowLevelAllocj()
   at com.unity::UnityNative$/_ZN10PxsContext15updateDynamicsVEf()
   at com.unity::UnityNative$/_ZN5Scene10runSubstepEv()
   at com.unity::UnityNative$/_ZN5Scene8simulateEjj()
   at com.unity::UnityNative$/_ZN7NpScene12executeSceneEv()
   at com.unity::UnityNative$/_ZN7NpScene8simulateEf()
   at com.unity::UnityNative$/_ZN14PhysicsManager18PhysicsFixedUpdateEv()
   at com.unity::UnityNative$/NativeExt_PlayerLoop()
   at com.unity::UnityContentInternal/playerLoop()
   at com.unity::UnityContent/onEnterFrame()
Title: Re: Flash crash, only firefox FP 11.4
Post by: ArenMook on September 25, 2012, 08:37:39 AM
Can you submit a bug report to Unity so they look into it and fix it properly on their end?
Title: Re: Flash crash, only firefox FP 11.4
Post by: roady on September 25, 2012, 09:38:40 AM
good idéa, will se if I have the time to revert back and commit it to Unity tonight. We are in the final section before launch so mostly patching things now.