Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Crash on ES 1.1 only!

Discussion in 'iOS and tvOS' started by Nikolai-Sander, Feb 8, 2011.

  1. Nikolai-Sander

    Nikolai-Sander

    Joined:
    Feb 2, 2011
    Posts:
    12
    I'm out of ideas... My app is ready to be submitted and works fine with ES 2.0 but crashes on ES 1.1.

    The code does nothing special. It's my Update method that gets the user input with Input.touches[0].position (yes it checks for touchCount > 0) and then calls a method:

    int GetLevel(out string filename, Vector2 pos)

    that returns a level number and a filename of a texturemap that then later is loaded with Resources.LoadAll(). The curious thing is that the crash can occur earlier in case I put in additional Debug.Logs accessing the touches etc. so this might be a memory issue.

    Can anybody give me some pointers what could make it behave so differently on ES 1.1? Like I said before it runs fine in the editor and on ES 2.0.

    Any help is greatly appreciated!!

    Here's the callstack:

    Code (csharp):
    1. #0  0x00469ba8 in wrapper_stelemref_object_stelemref_object_intptr_object () at RakNetTypes.h:320
    2. #1  0x0001481c in Initialization_GetLevel_string__UnityEngine_Vector2 () at RakNetTypes.h:320
    3. #2  0x0001463c in Initialization_Update () at RakNetTypes.h:320
    4. #3  0x0046489c in wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr () at RakNetTypes.h:320
    5. #4  0x005d9ff8 in dynamic_bitset::reference::operator= () at RakNetTypes.h:320
    6. #5  0x00922840 in mono_jit_runtime_invoke () at RakNetTypes.h:320
    7. #6  0x009b3210 in mono_runtime_invoke () at RakNetTypes.h:320
    8. #7  0x00673b14 in MonoBehaviour::CallMethod () at RakNetTypes.h:320
    9. #8  0x006758e4 in MonoBehaviour::Update () at RakNetTypes.h:320
    10. #9  0x005dd0c0 in BaseBehaviourManager::CommonUpdate<BehaviourManager> () at RakNetTypes.h:320
    11. #10 0x005dd118 in BehaviourManager::Update () at RakNetTypes.h:320
    12. #11 0x006a7864 in PlayerLoop () at RakNetTypes.h:320
    13. #12 0x00701cfc in UnityPlayerLoop () at RakNetTypes.h:320
    14. #13 0x00010d58 in -[AppController Repaint] (self=0x1219d10, _cmd=0xa9899a) at /Users/Nikolai/New Unity Project 1/XCode/crack/Classes/AppController.mm:599
    15. #14 0x33a5ebbe in -[NSObject(NSObject) performSelector:withObject:] ()
    16. #15 0x33639794 in __NSThreadPerformPerform ()
    17. #16 0x33a767dc in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
    18. #17 0x33a485b6 in __CFRunLoopDoSources0 ()
    19. #18 0x33a47e5a in __CFRunLoopRun ()
    20. #19 0x33a47c86 in CFRunLoopRunSpecific ()
    21. #20 0x33a47b8e in CFRunLoopRunInMode ()
    22. #21 0x33b0e4aa in GSEventRunModal ()
    23. #22 0x33b0e556 in GSEventRun ()
    24. #23 0x32099328 in -[UIApplication _run] ()
    25. #24 0x32096e92 in UIApplicationMain ()
    26. #25 0x00011e70 in main (argc=1, argv=0x2fdff5f4) at /Users/Nikolai/New Unity Project 1/XCode/crack/Classes/main.mm:13
    27. (gdb)