Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

4.6 iOS 64-bit beta

Discussion in 'iOS and tvOS' started by jonas-echterhoff, Jan 12, 2015.

  1. TitanUnity

    TitanUnity

    Joined:
    May 15, 2014
    Posts:
    180
    Hi, I'm curious if you think the fix you mentioned would address an issue we're seeing on iOS only where our game launches, but hangs at the splash screen? Our most recent patch built in 5.3.2p1 was rejected by apple. We did not notice this issue until we tested with a simulator in xcode:

    Code (CSharp):
    1. Failed to postprocess stacktrace
    2. ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds
    3.  at System.Array.Copy (System.Array sourceArray, Int32 sourceIndex, System.Array destinationArray, Int32 destinationIndex, Int32 length) [0x00000] in <filename unknown>:0
    4.  at System.Array.Copy (System.Array sourceArray, System.Array destinationArray, Int32 length) [0x00000] in <filename unknown>:0
    5.  at System.Collections.ArrayList.CopyTo (System.Array array) [0x00000] in <filename unknown>:0
    6.  at System.Collections.ArrayList.ToArray (System.Type type) [0x00000] in <filename unknown>:0
    7.  at Mono.Globalization.Unicode.MSCompatUnicodeTable.BuildTailoringTables (System.Globalization.CultureInfo culture, Mono.Globalization.Unicode.TailoringInfo t, Mono.Globalization.Unicode.Contraction[]& contractions, Mono.Globalization.Unicode.Level2Map[]& diacriticals) [0x00000] in <filename unknown>:0
    8.  at Mono.Globalization.Unicode.SimpleCollator..ctor (System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    9.  at Mono.Globalization.Unicode.SimpleCollator..cctor () [0x00000] in <filename unknown>:0
    10.  at System.Globalization.CompareInfo..ctor (System.Globalization.CultureInfo ci) [0x00000] in <filename unknown>:0
    11.  at System.Globalization.CultureInfo.get_CompareInfo () [0x00000] in <filename unknown>:0
    12.  at System.Collections.Comparer..ctor (System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    13.  at System.Collections.Comparer..cctor () [0x00000] in <filename unknown>:0
    14.  at System.Array.DoBinarySearch (System.Array array, Int32 index, Int32 length, System.Object value, IComparer comparer) [0x00000] in <filename unknown>:0
    15.  at System.Array.BinarySearch (System.Array array, System.Object value) [0x00000] in <filename unknown>:0
    16.  at System.Enum.FindPosition (System.Object value, System.Array values) [0x00000] in <filename unknown>:0
    17.  at System.Enum.GetName (System.Type enumType, System.Object value) [0x00000] in <filename unknown>:0
    18.  at System.Enum.Format (System.Type enumType, System.Object value, System.String format) [0x00000] in <filename unknown>:0
    19.  at System.Enum.ToString (System.String format) [0x00000] in <filename unknown>:0
    20.  at System.Enum.ToString () [0x00000] in <filename unknown>:0
    21.  at UnityEngine.Analytics.BasePlatformWrapper.get_platformName () [0x00000] in <filename unknown>:0
    22.  at UnityEngine.Analytics.SessionImpl.Initialize (System.String configUrl, System.String eventUrl) [0x00000] in <filename unknown>:0
    23.  at UnityEngine.Analytics.SessionImpl.StartWithAppId (System.String appId, ICloudService cloudService, System.String configUrl, System.String eventUrl) [0x00000] in <filename unknown>:0
    24.  at UnityEngine.Analytics.Analytics.InternalStartSession (System.String appId, ICloudService cloudService, System.String configUrl, System.String eventUrl) [0x00000] in <filename unknown>:0
    25.  at UnityEngine.Analytics.Analytics.InternalStartSession (System.String appId) [0x00000] in <filename unknown>:0
    26.  at UnityEngine.Analytics.Analytics.AutoStartUnityAnalytics () [0x00000] in <filename unknown>:0
    27. Rethrow as TypeInitializationException: The type initializer for 'Mono.Globalization.Unicode.SimpleCollator' threw an exception.
    28.  at System.Globalization.CompareInfo..ctor (System.Globalization.CultureInfo ci) [0x00000] in <filename unknown>:0
    29.  at System.Globalization.CultureInfo.get_CompareInfo () [0x00000] in <filename unknown>:0
    30.  at System.Collections.Comparer..ctor (System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    31.  at System.Collections.Comparer..cctor () [0x00000] in <filename unknown>:0
    32.  at System.Array.DoBinarySearch (System.Array array, Int32 index, Int32 length, System.Object value, IComparer comparer) [0x00000] in <filename unknown>:0
    33.  at System.Array.BinarySearch (System.Array array, System.Object value) [0x00000] in <filename unknown>:0
    34.  at System.Enum.FindPosition (System.Object value, System.Array values) [0x00000] in <filename unknown>:0
    35.  at System.Enum.GetName (System.Type enumType, System.Object value) [0x00000] in <filename unknown>:0
    36.  at System.Enum.Format (System.Type enumType, System.Object value, System.String format) [0x00000] in <filename unknown>:0
    37.  at System.Enum.ToString (System.String format) [0x00000] in <filename unknown>:0
    38.  at System.Enum.ToString () [0x00000] in <filename unknown>:0
    39.  at UnityEngine.Analytics.BasePlatformWrapper.get_platformName () [0x00000] in <filename unknown>:0
    40.  at UnityEngine.Analytics.SessionImpl.Initialize (System.String configUrl, System.String eventUrl) [0x00000] in <filename unknown>:0
    41.  at UnityEngine.Analytics.SessionImpl.StartWithAppId (System.String appId, ICloudService cloudService, System.String configUrl, System.String eventUrl) [0x00000] in <filename unknown>:0
    42.  at UnityEngine.Analytics.Analytics.InternalStartSession (System.String appId, ICloudService cloudService, System.String configUrl, System.String eventUrl) [0x00000] in <filename unknown>:0
    43.  at UnityEngine.Analytics.Analytics.InternalStartSession (System.String appId) [0x00000] in <filename unknown>:0
    44.  at UnityEngine.Analytics.Analytics.AutoStartUnityAnalytics () [0x00000] in <filename unknown>:0
    45. Rethrow as TypeInitializationException: The type initializer for 'System.Collections.Comparer' threw an exception.
    46.  at System.Array.DoBinarySearch (System.Array array, Int32 index, Int32 length, System.Object value, IComparer comparer) [0x00000] in <filename unknown>:0
    47.  at System.Array.BinarySearch (System.Array array, System.Object value) [0x00000] in <filename unknown>:0
    48.  at System.Enum.FindPosition (System.Object value, System.Array values) [0x00000] in <filename unknown>:0
    49.  at System.Enum.GetName (System.Type enumType, System.Object value) [0x00000] in <filename unknown>:0
    50.  at System.Enum.Format (System.Type enumType, System.Object value, System.String format) [0x00000] in <filename unknown>:0
    51.  at System.Enum.ToString (System.String format) [0x00000] in <filename unknown>:0
    52.  at System.Enum.ToString () [0x00000] in <filename unknown>:0
    53.  at UnityEngine.Analytics.BasePlatformWrapper.get_platformName () [0x00000] in <filename unknown>:0
    54.  at UnityEngine.Analytics.SessionImpl.Initialize (System.String configUrl, System.String eventUrl) [0x00000] in <filename unknown>:0
    55.  at UnityEngine.Analytics.SessionImpl.StartWithAppId (System.String appId, ICloudService cloudService, System.String configUrl, System.String eventUrl) [0x00000] in <filename unknown>:0
    56.  at UnityEngine.Analytics.Analytics.InternalStartSession (System.String appId, ICloudService cloudService, System.String configUrl, System.String eventUrl) [0x00000] in <filename unknown>:0
    57.  at UnityEngine.Analytics.Analytics.InternalStartSession (System.String appId) [0x00000] in <filename unknown>:0
    58.  at UnityEngine.Analytics.Analytics.AutoStartUnityAnalytics () [0x00000] in <filename unknown>:0
    59. (Filename: currently not available on il2cpp Line: -1)
     
  2. abutt1

    abutt1

    Joined:
    Jan 24, 2014
    Posts:
    18
    @TitanUnity

    We're seeing a very similar thing here, first noticed it with a log using "string.StartsWith()".

    It seems that the issue is in the CultureInfo class. Particularly the CultureInfo.CompareInfo property.

    Code (CSharp):
    1.  
    2. Failed to postprocess stacktrace
    3. ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds
    4.  at System.Array.Copy (System.Array sourceArray, Int32 sourceIndex, System.Array destinationArray, Int32 destinationIndex, Int32 length) [0x00000] in <filename unknown>:0
    5.  at System.Collections.ArrayList.ToArray (System.Type type) [0x00000] in <filename unknown>:0
    6.  at Mono.Globalization.Unicode.MSCompatUnicodeTable.BuildTailoringTables (System.Globalization.CultureInfo culture, Mono.Globalization.Unicode.TailoringInfo t, Mono.Globalization.Unicode.Contraction[]& contractions, Mono.Globalization.Unicode.Level2Map[]& diacriticals) [0x00000] in <filename unknown>:0
    7.  at Mono.Globalization.Unicode.SimpleCollator..ctor (System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    8.  at Mono.Globalization.Unicode.SimpleCollator..cctor () [0x00000] in <filename unknown>:0
    9.  at System.Globalization.CompareInfo..ctor (System.Globalization.CultureInfo ci) [0x00000] in <filename unknown>:0
    10.  at System.Globalization.CultureInfo.get_CompareInfo () [0x00000] in <filename unknown>:0
    11.  at Testing.FindErrorCause () [0x00000] in <filename unknown>:0
    12.  at Testing.Go () [0x00000] in <filename unknown>:0
    13. Rethrow as TypeInitializationException: The type initializer for 'Mono.Globalization.Unicode.SimpleCollator' threw an exception.
    14.  at System.Globalization.CompareInfo..ctor (System.Globalization.CultureInfo ci) [0x00000] in <filename unknown>:0
    15.  at System.Globalization.CultureInfo.get_CompareInfo () [0x00000] in <filename unknown>:0
    16.  at Testing.FindErrorCause () [0x00000] in <filename unknown>:0
    17.  at Testing.Go () [0x00000] in <filename unknown>:0
    18.  
    19. (Filename: currently not available on il2cpp Line: -1)
    20.  
     
  3. TitanUnity

    TitanUnity

    Joined:
    May 15, 2014
    Posts:
    180
    Installing 5.3.2p2 now for iOS, we'll see shortly if this corrects our issue.
     
  4. TitanUnity

    TitanUnity

    Joined:
    May 15, 2014
    Posts:
    180
    Confirmed FIXED in 5.3.2p2 for us!
     
  5. United-Unity

    United-Unity

    Joined:
    Mar 25, 2015
    Posts:
    20
    Hello!

    After upgrading Unity from 5.3.2f1 to 5.3.2p2, xcode throws following errors while compiling il2cpp-ed project. (5.3.2p1 doesn't compile it either)
    Code (CSharp):
    1. .//Output/Classes/Native/Bulk_Generics_31.cpp:3438:13: error: use of undeclared identifier 'L_5'
    2.                 NullCheck(L_5);
    3.                           ^
    4. .//Output/Classes/Native/Bulk_Generics_31.cpp:3439:26: error: use of undeclared identifier 'L_5'
    5.                 int32_t L_6 = (int32_t)L_5->get__item1_0();
    6.                                        ^
    7. .//Output/Classes/Native/Bulk_Generics_31.cpp:3473:13: error: use of undeclared identifier 'L_12'
    8.                 NullCheck(L_12);
    9.                           ^
    10. .//Output/Classes/Native/Bulk_Generics_31.cpp:3474:53: error: use of undeclared identifier 'L_12'
    11.                 TimeSpan_t763862892  L_13 = (TimeSpan_t763862892 )L_12->get__item2_1();
    12.                                                                   ^
    13. .//Output/Classes/Native/Bulk_Generics_31.cpp:4241:13: error: use of undeclared identifier 'L_10'
    14.                 NullCheck(L_10);
    15.                           ^
    16. .//Output/Classes/Native/Bulk_Generics_31.cpp:4242:27: error: use of undeclared identifier 'L_10'
    17.                 int32_t L_11 = (int32_t)L_10->get__item2_1();
    18.                                         ^
    19. .//Output/Classes/Native/Bulk_Generics_31.cpp:4276:13: error: use of undeclared identifier 'L_17'
    20.                 NullCheck(L_17);
    21.                           ^
    22. .//Output/Classes/Native/Bulk_Generics_31.cpp:4277:27: error: use of undeclared identifier 'L_17'
    23.                 int32_t L_18 = (int32_t)L_17->get__item3_2();
    You can download generated source file "Bulk_Generics_31.cpp" at
    https://www.dropbox.com/s/e3kz3978yyzw22s/Bulk_Generics_31.zip?dl=0

    Thanks!
     
    Last edited: Feb 4, 2016
  6. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
    @United Unity

    Something it clearly wrong with the IL2CPP code here. Can you submit a bug report and let me know the bug report number? Thanks.
     
  7. United-Unity

    United-Unity

    Joined:
    Mar 25, 2015
    Posts:
    20
    I've just reported bug and ticket number is 768010.
    Thanks!
     
  8. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
    @United Unity

    Thanks for reporting this bug. I suspect something in the assembly built with Visual Studio is causing the problem, but we will correct it.
     
  9. Iljafrol

    Iljafrol

    Joined:
    Mar 28, 2016
    Posts:
    4
    Hi!

    I have a problem with OpenCV for Unity. When i build a project for iOS every scene without face detection works good, but if i open a scene with face detection application crashes. I use Unity 5.3.1p1

    Code (CSharp):
    1.  
     
    Last edited: Mar 29, 2016
  10. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
    @Iljafrol

    Unfortunately I don't see much here that identifies this as an IL2CPP problem, so I'm not sure that I can help. You may want to try posting this elsewhere on the forums, as this thread is really long and I doubt many people are following it still.
     
  11. dial18_bitmango

    dial18_bitmango

    Joined:
    Jul 19, 2017
    Posts:
    3
    Hi i'm having lots of crash that looks like il2cpp related

    but it's hard to figure out what's the problem is.

    i use Unity5.4.5p2

    #0
    Crashed: com.apple.main-thread
    EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000000000002e
    Raw Text


    0
    wordcookies
    Method.cpp line 49
    il2cpp::vm::Method::GetParamCount(MethodInfo const*)
    1
    wordcookies
    ScriptingBackendApi_Il2Cpp.cpp line 223
    scripting_method_invoke(ScriptingMethodIl2Cpp, ScriptingObject*, ScriptingArguments&, ScriptingException**, bool)
    2
    wordcookies
    ScriptingInvocation.cpp line 183
    ScriptingInvocation::Invoke(ScriptingException**, bool)
    3
    wordcookies
    GUIState.cpp line 378
    GUIState::SetEvent(InputEvent const&)
    4
    wordcookies
    GUIManager.cpp line 266
    GUIManager::DoGUIEvent(InputEvent&, bool)
    5
    wordcookies
    GUIManager.cpp line 93
    GUIManager::Repaint(int)
    6
    wordcookies
    Player.cpp line 992
    RenderOverlays(int)
    7
    wordcookies
    Player.cpp line 1037
    PlayerRender(bool)
    8
    wordcookies
    Player.cpp line 1714
    PlayerLoop(bool, bool, IHookEvent*)
    9
    wordcookies
    LibEntryPoint.mm line 246
    UnityPlayerLoopImpl(bool)
    10
    wordcookies
    UnityAppController+Rendering.mm line 260
    UnityRepaint
    11
    wordcookies
    UnityAppController+ViewHandling.mm line 210
    -[UnityAppController(ViewHandling) showGameUI]
    12
    wordcookies
    UnityAppController.mm line 127
    -[UnityAppController startUnity:]
    13
    Foundation
    __NSFireDelayedPerform + 468
    14
    CoreFoundation
    __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
    15
    CoreFoundation
    __CFRunLoopDoTimer + 656
    16
    CoreFoundation
    __CFRunLoopRun + 1418
    17
    CoreFoundation
    CFRunLoopRunSpecific + 476
    18
    CoreFoundation
    CFRunLoopRunInMode + 106
    19
    GraphicsServices
    GSEventRunModal + 136
    20
    UIKit
    UIApplicationMain + 1440
    21
    wordcookies
    main.mm line 32
    main
    22
    libdyld.dylib
    start + 2
     
  12. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
    @dial18_bitmango

    This looks like it is a bug in Unity. You may want to try a newer version, or submit a bug report with the project and we will have a look at it.
     
  13. dial18_bitmango

    dial18_bitmango

    Joined:
    Jul 19, 2017
    Posts:
    3
  14. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
  15. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    One of my users reported an EXC_BAD_ACCESS issue to me yesterday as well with JSON .NET. He is on 5.6 but I'm not sure which revision of it. As I understand it, EXC_BAD_ACCESS is specific to invalid / corrupt pointers so either bad pointers or memory getting cleaned up that shouldn't correct? Here is the stack trace for that particular one and I'll see if I can get him to submit a bug report with more info. This was specifically IL2CPP on iOS and he said he got this stack trace and the EXC_BAD_ACCESS error from XCode:

     
  16. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
    If we can reproduce this in a bug report, that would be best. I don't know what is causing this at the moment.
     
    Dustin-Horne likes this.
  17. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    Yeah I didn't expect an answer, just wanted to provide another example of it happening in another Unity version. I know it's not very helpful. I'll try to get you guys that bug report.