Search Unity

4.6 iOS 64-bit beta

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

  1. Deleted User

    Deleted User

    Guest

    Thanks for the fast reply. Are you planning on releasing a patch before that?
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    @Jyri Kilpeläinen

    No, we have no plans for that now. But things are always subject to change. :)
     
  3. Lucas-Meijer

    Lucas-Meijer

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    175
    @invicticide: thanks! we'll investigate
    @Jiry: the fix for this just missed the 4.6.2 build, will be in the next patch release. The problem is that il2cpp uses a native library called zlib, and something in your project is also using it, and now there's two and the linker complains. If possible you could try to remove your copy of zlib, so that whatever code you have that uses it, ends up using il2cpp's one. In the next build, we'll have renamed everything that comes from zlib with il2cpp so they will no longer collide.

    @FredRodrigue: the fix for this also just missed the 4.6.2 build, will be in the next patch release. you can work around the problem by a) directly referencing the class in question from a non-dll c# script. or, b) use a link.xml file to instruct the stripper to not remove that class. (link.xml files were broken before, but got fixed with 4.6.2)
     
  4. Deleted User

    Deleted User

    Guest

    Thanks for the explanation. I will check to see if I find another zlib from the project.
     
  5. waspswarm

    waspswarm

    Joined:
    Oct 2, 2013
    Posts:
    7
    We are also seeing the long list of linker failures due to undefined symbols on iOS with 4.6.2f1 and XCode 6.1.1 mentioned a couple times previously but I didn't really see a clear response.

    Is this related to use of the UnityEngine.NetworkView? Is this considered part of the WebRequest/WebClient API cited here [1]? Or the entry "
    • The UnityEngine.Network* APIs are currently not supported for IL2CPP builds." here [2].
    Is this planned to be fixed in the next patch?

    [1] http://blogs.unity3d.com/2015/01/29/unity-4-6-2-ios-64-bit-support/
    [2] http://docs.unity3d.com/Manual/iphone-64bit.html

    Undefined symbols for architecture armv7:
    "Register_UnityEngine_Component_get_networkView()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_isClient()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_Internal_GetPlayer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_DestroyPlayerObjects()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_incomingPassword()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_HavePublicAddress()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_Internal_ConnectToGuid()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_Internal_ConnectToSingleIP()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_InitializeServer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetExternalPort()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_INTERNAL_CALL_Instantiate()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetLocalIP()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetIPAddress()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetPlayerIndex()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkView_Internal_GetViewID()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_INTERNAL_CALL_Internal_IsMine()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_get_unassigned()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkView_Internal_RPC_Target()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_INTERNAL_CALL_Internal_RemoveRPCs()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_INTERNAL_CALL_Internal_Compare()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_connections()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetExternalIP()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkView_Internal_RPC()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_isServer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_Disconnect()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_INTERNAL_CALL_Internal_GetString()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
     
  6. oddurmagg

    oddurmagg

    Joined:
    Mar 20, 2013
    Posts:
    19
    I am getting linker errors related to ping. Would ping be considered a part of the networking functionality that is still missing ?

    Undefined symbols for architecture armv7:

    "Register_UnityEngine_Ping_get_isDone()", referenced from:

    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o

    "Register_UnityEngine_Ping_get_time()", referenced from:

    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o

    "Register_UnityEngine_Ping__ctor()", referenced from:

    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o

    "Register_UnityEngine_Ping_DestroyPing()", referenced from:

    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
     
  7. cojo71

    cojo71

    Joined:
    Aug 19, 2014
    Posts:
    26
    We are now hitting a similar crash in whydoidoit.com's UnitySerializer's usage of Attribute.GetCustomAttribute.

    I know 4.6.2 release notes mentioned:
    But it seems like there are still some other lingering issues here?

    EDIT: The C# in question which is causing the crash, if helpful:
    And the stacktrace:
     
  8. FredDeschenes

    FredDeschenes

    Joined:
    Mar 15, 2013
    Posts:
    21
    Update on 666129 : The issue only happens on my Mac mini (fully update OSX Mavericks), but not on a Macbook pro (also fully updated Mavericks).

    Any idea what might be the issue (still getting it with 4.6.2)?
     
  9. FredRodrigue

    FredRodrigue

    Joined:
    May 24, 2013
    Posts:
    6
    We're getting an error that seems to be related with our use of Linq.Intersect.

    The error occur when we build the app in xcode:

    Code (CSharp):
    1. Undefined symbols for architecture arm64:
    2.   "_Enumerable_Intersect_m86306_MethodInfo", referenced from:
    3.       BatchGet_t2537_RGCTXData in Bulk_Generics_7.o
    4.   "_Enumerable_Intersect_m96676_MethodInfo", referenced from:
    5.       BatchGet_t9311_RGCTXData in Bulk_Generics_68.o
    6. ld: symbol(s) not found for architecture arm64
    7. clang: error: linker command failed with exit code 1 (use -v to see invocation)
    Here's the bug report number: 668121.
     
  10. oddurmagg

    oddurmagg

    Joined:
    Mar 20, 2013
    Posts:
    19
    What would be the best way at runtime to determine which scripting backend is being used ?

    Would the ENABLE_IL2CPP define be set if I have selected the il2cpp backend in the player settings and not is I have mono chosen ?
     
  11. brianchasalow

    brianchasalow

    Joined:
    Jun 3, 2010
    Posts:
    208
    @JoshPeterson : I'm having the same issue as above re: duplicate symbols. How soon can we get that patch and is there a workaround? I _really_ want to push il2cpp asap for this project...thanks!
    Brian
     
  12. iEpic

    iEpic

    Joined:
    Sep 29, 2013
    Posts:
    119
    I'm getting the same errors as waspswarm.
    I know the deadline for 64 bit is February 1st but does that mean I can submit a 32bit build before then or will they deny it because it's too late??
    Heres my errors...

    Undefined symbols for architecture arm64:
    "Register_UnityEngine_BitStream_Serializeb()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_BitStream_Serializec()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_BitStream_INTERNAL_CALL_Serializev()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_BitStream_Serializef()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_BitStream_Serializei()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_GameObject_get_networkView()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_get_port()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_get_ipAddress()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_RegisterHost()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_set_dedicatedServer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_set_updateRate()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_PollHostList()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_HavePublicAddress()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_isMessageQueueRunning()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_UnregisterHost()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_isServer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_GetAveragePing()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_RequestHostList()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Ping_DestroyPing()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_InitializeSecurity()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetExternalIP()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_minimumAllocatableViewIDs()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_SetLevelPrefix()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_ClearHostList()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_incomingPassword()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_isMessageQueueRunning()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_minimumAllocatableViewIDs()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_isClient()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_sendRate()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_INTERNAL_CALL_Internal_GetString()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "RegisterClass_NetworkView()", referenced from:
    RegisterAllClasses() in UnityClassRegistration.o
    "Register_UnityEngine_Network_Internal_GetTime()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_Internal_ConnectToSingleIP()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_maxConnections()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_peerType()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_set_ipAddress()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_connections()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_INTERNAL_CALL_Internal_GetOwner()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_logLevel()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkView_Internal_GetViewID()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_BitStream_get_isWriting()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetPlayerIndex()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetExternalPort()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_get_unassigned()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetPort()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetLocalGUID()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetIPAddress()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_GetLastPing()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_INTERNAL_CALL_Instantiate()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_INTERNAL_CALL_Internal_RemoveRPCs()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_BitStream_INTERNAL_CALL_Serializeq()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetGUID()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkView_Internal_RPC()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_maxConnections()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetLocalIP()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_Disconnect()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_InitializeServer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_sendRate()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_INTERNAL_CALL_Internal_IsMine()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Ping_get_isDone()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_set_port()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_CloseConnection()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Ping_get_time()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetLocalPort()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_INTERNAL_CALL_Internal_Compare()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_Internal_GetPlayer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_DestroyPlayerObjects()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_get_dedicatedServer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_get_updateRate()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Ping__ctor()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
     
  13. fishg

    fishg

    Joined:
    Jul 25, 2014
    Posts:
    90
    I have this bug in 4.6.1p5 and 4.6.2f1:
    Some compute condition always return 0 when use il2cpp.
    eg:

    public int GetTimeScore(){
    int scorePerSecond = 100;
    int timeScore;
    if(IsUnlimitTimeModel()){
    StageInfo info = StageInfosManager.GetInstance().GetConfigByID(StagesManager.GetInstance().CurrentStageId);
    timeScore = 400 + 80 * (info.KillingModeTime+20) - (int)(GetScore()*80);
    timeScore = timeScore >400?timeScore:400;
    }else{
    //===============================
    // this condition always return 0
    //================================
    timeScore = Mathf.FloorToInt(GetScore() * scorePerSecond);
    }
    return timeScore;
    }
     
  14. Rossi-Lee

    Rossi-Lee

    Joined:
    Nov 14, 2013
    Posts:
    2
    WebRequest API is not yet supported with IL2CPP, we are working on it.( 4.6.2 ready?)

    I use in my project many times the WebRequest API.

    I'm getting exception when trying to call WebRequest API ( Unity 4.6.2 & XCode 6.1.1 )
     
    Last edited: Jan 30, 2015
  15. lukaszunity

    lukaszunity

    Administrator

    Joined:
    Jun 11, 2014
    Posts:
    461
    Hi,

    There were actually two different crash bugs with Attribute.GetCustomAttribute, one was fixed for 4.6.2 and the other one has also be fixed locally and is expected land in 4.6.2p1
     
  16. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    Please submit a bugreport.
    Thanks!

     
  17. Banderous

    Banderous

    Joined:
    Dec 25, 2011
    Posts:
    669
    Thanks @joncham, where would those functions be defined? What would I need to import for them to be callable from objective C?

    Edit - Managed to get this working with some forward declarations -

    typedef void Il2CppThread;
    Il2CppThread* il2cpp_thread_attach(void*);
    void* il2cpp_domain_get();
    void il2cpp_thread_detach(Il2CppThread*);
     
    Last edited: Feb 3, 2015
  18. Ville

    Ville

    Joined:
    Oct 5, 2012
    Posts:
    19
    I just reported a bug that the IL2CPP compiler gets stuck in "postprocessing player" if I have the Smooth.Foundations script in my project.
     
  19. jeffsherwin

    jeffsherwin

    Joined:
    Aug 22, 2014
    Posts:
    47
    Just upgraded to 4.6.2
    getting hit by Facebook SDK
    when compile MONO:
    Using SDK 6.2.1, Build 150128.46cb09fefe856ca
    when compile IL2CPP:
    Cannot find Facebook SDK Version

    I got passed Parse errors by including in link.xml but I cannot find syntax for Facebook

    anyone else seeing this?

    also:
    A script behaviour has a different serialization layout when loading. (Read 24 bytes but expected 32 bytes)

    Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?

    that I don't see on MONO compile - this 64bit transition is/was last thing GOLIVE list :)

    edit ---
    ParseUser.CurrentUser is null so link.xml did not fully fix Parse issue.
     
    Last edited: Jan 30, 2015
  20. seigman667

    seigman667

    Joined:
    Aug 30, 2013
    Posts:
    4
    Using Enum.IsDefined(typeof(MyEnum), value), where value is an int, I'm getting an ArgumentException when running with IL2CPP in 4.6.2.
     
  21. pahe

    pahe

    Joined:
    May 10, 2011
    Posts:
    543
    I'm having a similar problem with my project in 4.6.2. A short look into the editor log showed:

    Code (CSharp):
    1.  
    2. Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0.041201 seconds (Nothing changed)
    3. prime[31] post processor completed Xcode integration for plugins: /Projects/xCode/xCodeIL/Unity-iPhone.xcodeproj/project.pbxproj: Property List error: Unexpected character / at line 1 / JSON error: JSON text did not start with array or object and option to allow fragments not set.
    The xCode project war corrupt after that, the editor had hung up and needed a force close. Strangely, if I switched back the scripting backend to Mono 2.x the whole process run just fine. Just the IL2CPP build is broken.
     
  22. ArjunN

    ArjunN

    Joined:
    Jan 18, 2013
    Posts:
    21
    When using Unity 4.6.2, our game crashes when trying to initialize an instance of an object via deserialization from an xml. In particulare I get an error which says:
    The build works fine if I use Mono as the scripting backend. I've submitted a bug with the case #668385.
     
  23. imkc

    imkc

    Joined:
    Nov 16, 2013
    Posts:
    6
    Hi,
    I have installed 4.6.2, but BinaryFormatter seems not work when deserializing Dictionary:

    The constructor to deserialize an object of type System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null],[MyPlugin.GameCenterRecord, Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]] was not found.

    But it works when building with Mono.
     
  24. Alkimio

    Alkimio

    Joined:
    Apr 18, 2013
    Posts:
    10
    Hi,
    We are using Unity 4.6.2 and we are having a lot of this errors when running.
    (I also have the libz problem, but solved it temporally removing the libz symbols included in libiPhone-lib.a since I couldn't find which one is the other library that also includes it).

    Code (CSharp):
    1. InvalidCastException: Value is not a convertible object: System.Int32 to System.Nullable`1[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null]]
    2.   at System.Convert.ToBase64String (System.Byte[] inArray) [0x00000] in <filename unknown>:0
    3.   at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0
    4.   at System.Int32.System.IConvertible.ToType (System.Type targetType, IFormatProvider provider) [0x00000] in <filename unknown>:0
    5.   at System.ComponentModel.ByteConverter.ConvertFromString (System.String value, Int32 fromBase) [0x00000] in <filename unknown>:0
    6.   at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0
    7.   at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x00000] in <filename unknown>:0
    8.   at System.Reflection.Binder+Default.ChangeType (System.Object value, System.Type type, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    9.   at System.Reflection.MonoProperty+GetterAdapter.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    10.   at System.Reflection.Binder.ConvertArgs (System.Reflection.Binder binder, System.Object[] args, System.Reflection.ParameterInfo[] pinfo, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    11.   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    12.   at System.Console.DoConsoleCancelEvent () [0x00000] in <filename unknown>:0
    13.   at System.Reflection.MonoProperty.SetValue (System.Object obj, System.Object value, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    14.   at System.Runtime.ConstrainedExecution.PrePrepareMethodAttribute..ctor () [0x00000] in <filename unknown>:0
    15.   at System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object value, System.Object[] index) [0x00000] in <filename unknown>:0
    16.   at Commons.Backend.PmtsProduct.get_Promo () [0x00000] in <filename unknown>:0
    17.   at System.Xml.Serialization.XmlTypeMapMember.SetValue (System.Object ob, System.Object value) [0x00000] in <filename unknown>:0
    18.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.SetMemberValue (System.Xml.Serialization.XmlTypeMapMember member, System.Object ob, System.Object value, Boolean isValueList) [0x00000] in <filename unknown>:0
    19.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadAttributeMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList) [0x00000] in <filename unknown>:0
    20.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList, Boolean readByOrder) [0x00000] in <filename unknown>:0
    21.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob) [0x00000] in <filename unknown>:0
    22.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    23.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
    24.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    25.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
    26.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    27.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo elem) [0x00000] in <filename unknown>:0
    28.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList, Boolean readByOrder) [0x00000] in <filename unknown>:0
    29.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob) [0x00000] in <filename unknown>:0
    30.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    31.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
    32.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    33.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
    34.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    35.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo elem) [0x00000] in <filename unknown>:0
    36.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList, Boolean readByOrder) [0x00000] in <filename unknown>:0
    37.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob) [0x00000] in <filename unknown>:0
    38.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    39.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
    40.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    41.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
    42.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    43.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo elem) [0x00000] in <filename unknown>:0
    44.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList, Boolean readByOrder) [0x00000] in <filename unknown>:0
    45.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob) [0x00000] in <filename unknown>:0
    46.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    47.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
    48.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    49.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
    50.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    51.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo elem) [0x00000] in <filename unknown>:0
    52.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList, Boolean readByOrder) [0x00000] in <filename unknown>:0
    53.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob) [0x00000] in <filename unknown>:0
    54.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    55.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
    56.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    57.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
    58.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    59.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot (System.Xml.Serialization.XmlTypeMapping rootMap) [0x00000] in <filename unknown>:0
    60.   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot () [0x00000] in <filename unknown>:0
    61.   at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.Serialization.XmlSerializationReader reader) [0x00000] in <filename unknown>:0
    62.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    63.   at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.XmlReader xmlReader) [0x00000] in <filename unknown>:0
    64.   at Boo.Lang.Runtime.DynamicDispatching.Dispatcher.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    65.  
    66.   at Commons.Models.Settings.Parsers.DeliverySettingsParser+<Parse>c__Iterator92.MoveNext () [0x00000] in <filename unknown>:0
    67.   at Commons.Models.Settings.Parsers.DeliverySettingsParser+<Parse>c__Iterator92.MoveNext () [0x00000] in <filename unknown>:0
    68.   at WaterTile.OnWillRenderObject () [0x00000] in <filename unknown>:0
    69.   at Commons.Utils.CollectionsHelper.SafeMoveNext (IEnumerator enumerator, System.Action`1 exceptionHandler) [0x00000] in <filename unknown>:0
    70.   at Commons.Utils.CollectionsHelper+<SafeEnumerator>c__IteratorD1.MoveNext () [0x00000] in <filename unknown>:0
    71.   at WaterTile.OnWillRenderObject () [0x00000] in <filename unknown>:0
    72.   at Commons.Loading.SettingsLoadingTask+<Update>c__Iterator5E.MoveNext () [0x00000] in <filename unknown>:0
    73.   at WaterTile.OnWillRenderObject () [0x00000] in <filename unknown>:0
    74.   at Commons.Utils.CollectionsHelper.SafeMoveNext (IEnumerator enumerator, System.Action`1 exceptionHandler) [0x00000] in <filename unknown>:0
    75.   at Commons.Utils.CollectionsHelper+<SafeEnumerator>c__IteratorD1.MoveNext () [0x00000] in <filename unknown>:0
    76.   at WaterTile.OnWillRenderObject () [0x00000] in <filename unknown>:0
    77.   at Commons.Loading.LoadingContainerTask+<StartTask>c__Iterator5B.MoveNext () [0x00000] in <filename unknown>:0
    78.   at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    79. Rethrow as InvalidOperationException: There is an error in XML document.
    80.   at System.Xml.Serialization.SerializationCodeGenerator.get_GenerationResults () [0x00000] in <filename unknown>:0
    81.   at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.Serialization.XmlSerializationReader reader) [0x00000] in <filename unknown>:0
    82.   at System.Xml.Serialization.XmlNodeEventHandler.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    83.   at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.XmlReader xmlReader) [0x00000] in <filename unknown>:0
    84.   at Boo.Lang.Runtime.DynamicDispatching.Dispatcher.EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
    85.   at Commons.Models.Settings.Parsers.DeliverySettingsParser+<Parse>c__Iterator92.MoveNext () [0x00000] in <filename unknown>:0
    86.   at Commons.Models.Settings.Parsers.DeliverySettingsParser+<Parse>c__Iterator92.MoveNext () [0x00000] in <filename unknown>:0
    87.   at WaterTile.OnWillRenderObject () [0x00000] in <filename unknown>:0
    88.   at Commons.Utils.CollectionsHelper.SafeMoveNext (IEnumerator enumerator, System.Action`1 exceptionHandler) [0x00000] in <filename unknown>:0
    89.   at Commons.Utils.CollectionsHelper+<SafeEnumerator>c__IteratorD1.MoveNext () [0x00000] in <filename unknown>:0
    90.   at WaterTile.OnWillRenderObject () [0x00000] in <filename unknown>:0
    91.   at Commons.Loading.SettingsLoadingTask+<Update>c__Iterator5E.MoveNext () [0x00000] in <filename unknown>:0
    92.   at WaterTile.OnWillRenderObject () [0x00000] in <filename unknown>:0
    93.   at Commons.Utils.CollectionsHelper.SafeMoveNext (IEnumerator enumerator, System.Action`1 exceptionHandler) [0x00000] in <filename unknown>:0
    94.   at Commons.Utils.CollectionsHelper+<SafeEnumerator>c__IteratorD1.MoveNext () [0x00000] in <filename unknown>:0
    95.   at WaterTile.OnWillRenderObject () [0x00000] in <filename unknown>:0
    96.   at Commons.Loading.LoadingContainerTask+<StartTask>c__Iterator5B.MoveNext () [0x00000] in <filename unknown>:0
    97.   at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    Are you already aware of this?

    And is this similar to this? http://issuetracker.unity3d.com/iss...when-deserializing-a-file-using-jsonfx-plugin


    Thank you so much!
     
  25. Lucas-Meijer

    Lucas-Meijer

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    175
    @imkc: that's strange, I have fixed BinaryFormatter for 4.6.2. my testcases over here are working. Could you file a bug with your project so I can take a look at what is different about your case? thanks, Lucas
     
  26. tcossairt

    tcossairt

    Joined:
    Dec 5, 2013
    Posts:
    129
    FWIW I'm also seeing this. It prevent our game from saving our save games. :-/
     
  27. andrew210

    andrew210

    Joined:
    Apr 23, 2014
    Posts:
    241
    Am also having the problems with not being able to use Ping, but more seriously am now seeing this in xcode when trying to run on device (occurs on start up during the splash screen). This did all work fine before going to 4.6.2, and during running used no more than ~150mb of memory so not sure why it's trying to allocate 1.6gb:

    GC Warning: Failed to expand heap by 1671790592 bytes

    GC Warning: Failed to expand heap by 1671659520 bytes

    GC Warning: Out of Memory! Heap size: 1 MiB. Returning NULL!


    Here it is running in xcode when compiled with Mono and using Armv7 as the architecture.

     
    Last edited: Jan 31, 2015
  28. Lucas-Meijer

    Lucas-Meijer

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    175
    @oddurmagg: that is correct. the define is not used while running in the editor, only when building a player that will be using il2cpp.
    @FredRodrigue: thanks! we'll take a look.
    @andrew210: we would love to get a bugreport with that project so we can take a a look at what's going on
     
  29. andrew210

    andrew210

    Joined:
    Apr 23, 2014
    Posts:
    241
  30. Catacomber

    Catacomber

    Joined:
    Sep 22, 2009
    Posts:
    682
    I'm numb from trying to get this or 4.6.2 to work and actually run my game on my device, which is not an old device--it should run a 32 bit build. I've gone back to 4.6.1 and an old save file. I lost two weeks of work but that's nothing--considering that I have to have a working file to upload anything to Apple and often when you redo a file it's better. : )

    I know Unity has an awful lot of brain power and confident you'll get this working. Meanwhile I'll just wait.

    If anyone watches the Big Bang Theory---right now I feel like Penny the waitress from the Cheese Cake Factory--I'm surrounded by very smart people and I have a whole lot of confidence that you'll allow me to get my game uploaded to Apple sometime soon. Not sure if I need Sheldon, Leonard, Raj or Howard from Big Bang but I think Howard the engineer might be a good choice. : ) I'm sure you have a lot of Howards working hard on this.

    Lots of love and confidence in you. : ) I did submit my bug report a few threads back.

    Waiting patiently. Should I wait for 5.0? Which works better right now---4.6.2 or 5.0 beta?

    I have a subscription license so I can wait for 5.0.

    I have one third-party plugin--the ORK Framework-- but he's very responsive and I'm not worried about his plugin.
     
    Last edited: Feb 1, 2015
  31. Lucas-Meijer

    Lucas-Meijer

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    175
    @catacomber: What problem are you having? I scanned this thread back to the beginning, but didn't find a reported bug. If you can tell us about exactly what is giving you trouble, we'd love to fix whatever is not working for you. if you're close to shipping, I would stay on 4.6, we'll be bringing all IL2CPP improvements to both 5.x and 4.6 for some time to come.
     
  32. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    @JoshPeterson Is there any easy workaround that we can apply to have our game compile using 4.6.2 ?

    I cannot for the life of me see where zlib is being linked from...
     
  33. ibyte

    ibyte

    Joined:
    Aug 14, 2009
    Posts:
    1,048
    How may I track the resolution of this issue. It's still a problem for me on 4.6.2 p1

    I am using Mono.Data.Sqlite and I am not sure where i would find the DLLImport to change?

    iByte
     
    Last edited: Feb 1, 2015
  34. Catacomber

    Catacomber

    Joined:
    Sep 22, 2009
    Posts:
    682
    Respectfully my two posts and the bug report case number were posted in this thread on p. 5--

    http://forum.unity3d.com/threads/4-6-ios-64-bit-beta.290551/page-5

    It's Bug report #666808. Below are complete copies of my two prior posts here.

    I'm going to wait for a released version whether its 4.6.3 or 5.0 as I can't get support for ORK from a patch. I just hope all the issues can be resolved soon and that the resulting file size is not too large. Basically I can't get my game to launch and I've built it and played it successfully about 100 times before the 64 bit change. My game launches --you see the splash screen and then it closes abruptly. Any help in solving the problems is most appreciated.

    I posted my problems and bug report in this thread on January 25th and then again on January 26th when I got even more errors. I know it's not related to ORK---"unable to find type [UnityEngine.dll]UnityEngine.Resource Request and can't find Monoclass HideInInspector" all relate to Unity.

    First post---
    "I just installed the patch and changed the backend to IL2CPP in Player Settings and my project builds with about 140 warnings and it launches but then closes and dies. I see this message in the Xcode console---
    Unable to find type [UnityEngine.dll]UnityEngine.ResourceRequest.

    I saw someone else had this problem a few pages back but reading through I don't see any solution. Any help in fixing this would be most appreciated. Do I have to take the old version of Unity out and run the patch?

    I don't use third party plugins except the Ork Framework."

    Second post on January 26th----

    "
    Thanks. Bug report # (Case 666808). Sent a stripped down version of the file---interestingly the stripped down version does load the main menu but you can't see it!

    The new message in the console is--(Am taking out repetitive lines)--

    2015-01-25 23:51:03.084 Omber[16929:2500142] -> registered mono modules 0xc9d0a0

    -> applicationDidFinishLaunching()

    -> applicationDidBecomeActive()

    Requesting Resolution: 768x1024

    Renderer: PowerVR SGX 543

    Vendor: Imagination Technologies

    Version: OpenGL ES 2.0 IMGSGX543-113.3

    GL_OES_depth_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_read_format GL_IMG_texture_comp

    ression_pvrtc

    Creating OpenGLES2.0 graphics device

    Initialize engine version: 4.6.1p5 (ea3e5beea19a)

    Mono Class HideInInspector couldn't be found! This might lead to random crashes later on!


    (Filename: Line: 114)


    Unable to find type [UnityEngine.dll]UnityEngine.ResourceRequest

    (Filename: Line: 1608)


    A script behaviour has a different serialization layout when loading. (Read 24 bytes but expected 44 bytes)

    Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?


    (Filename: Line: 1170)


    2015-01-25 23:51:09.874 Omber[16929:2500142] Received memory warning.

    WARNING -> applicationDidReceiveMemoryWarning()"
     
    Last edited: Feb 2, 2015
  35. Lab618

    Lab618

    Joined:
    Jan 12, 2015
    Posts:
    36
    Hello everyone,

    I've updated to 4.6.2 (Earlier than I wanted due to the Apple deadline) and I now seem to have multiple problems, listed below:

    1. There are three launch screen files (LaunchScreen.xib, LaunchScreenImage-Landscape.png and LaunchScreenImage-Portrait.png) in the top level of the build that didn’t exist in builds using 4.6.1. These files are giving me build warnings in Xcode.

    1. Build & Run only seems to work the first time I run it and save the build. If I try and and use it after that it gets as far as opening Xcode, but the project fails to open in it.

    2. If I try and click on the Xcode project that was created the first time Build & Run was used, I get a cannot be parsed from Xcode.

    3. Xcode fails to create a successful build and gives me the following 66 Apple Mach-O Linker errors:

    Undefined symbols for architecture armv7:
    "Register_UnityEngine_BitStream_Serializeb()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_BitStream_Serializec()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_BitStream_INTERNAL_CALL_Serializev()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_BitStream_Serializef()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_BitStream_Serializei()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_GameObject_get_networkView()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_get_port()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_get_dedicatedServer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_get_updateRate()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_get_ipAddress()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_RegisterHost()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_set_dedicatedServer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_PollHostList()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_HavePublicAddress()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_isMessageQueueRunning()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_UnregisterHost()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_isServer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_set_port()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_CloseConnection()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_Internal_GetPlayer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_DestroyPlayerObjects()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_sendRate()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_isClient()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_GetAveragePing()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_RequestHostList()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_InitializeSecurity()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetExternalIP()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_minimumAllocatableViewIDs()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_SetLevelPrefix()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_ClearHostList()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_incomingPassword()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_isMessageQueueRunning()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_INTERNAL_CALL_Internal_GetString()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_Internal_GetTime()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_Internal_ConnectToSingleIP()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_maxConnections()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_peerType()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_Disconnect()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_sendRate()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_InitializeServer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_get_unassigned()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetPort()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetExternalPort()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_set_ipAddress()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_get_connections()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_logLevel()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_INTERNAL_CALL_Internal_GetOwner()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkView_Internal_GetViewID()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_BitStream_get_isWriting()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetPlayerIndex()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_minimumAllocatableViewIDs()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetLocalGUID()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_INTERNAL_CALL_Internal_RemoveRPCs()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_INTERNAL_CALL_Instantiate()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_set_maxConnections()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetLocalIP()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_INTERNAL_CALL_Internal_IsMine()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetIPAddress()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetLocalPort()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkViewID_INTERNAL_CALL_Internal_Compare()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_Network_GetLastPing()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_BitStream_INTERNAL_CALL_Serializeq()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkPlayer_Internal_GetGUID()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_MasterServer_set_updateRate()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkView_Internal_RPC()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    I have no idea where to start in fixing all this, if anyone can help that would be great.

    Thanks
    Steve
     
  36. TonyE

    TonyE

    Joined:
    Oct 23, 2013
    Posts:
    4
    ThreadPool does not work!
     
  37. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    Is there any progress with making sockets work? Just tried 4.6.2 and it's the same with case 666462. Not even sure if there is at least some workaround here, since even the very basic Socket.Receive() method does not works as it should.
     
  38. ownself

    ownself

    Joined:
    Mar 18, 2013
    Posts:
    16
    I upgrade to 4.6.2 and use Xcode 6.1.1, and I too met compile error after upgrading.

    Undefined symbols for architecture armv7:
    "Register_UnityEngine_Network_get_isServer()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkView_Internal_RPC()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o
    "Register_UnityEngine_NetworkView_Internal_RPC_Target()", referenced from:
    RegisterAllStrippedInternalCalls() in UnityICallRegistration.o

    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    I get stuck here right now, Is there anything that I did wrong?
    Here is my player settings in Unity
     

    Attached Files:

  39. TonyE

    TonyE

    Joined:
    Oct 23, 2013
    Posts:
    4
    if you dont use networkview stuff, find and comment all of this function in Xcode project then you can build
     
  40. juggernate

    juggernate

    Joined:
    Mar 16, 2011
    Posts:
    18
    I get this crash when running on device in Xcode 6.1.1 from Unity 4.6.2f1 when I DON'T use IL2CPP (or with IL2CPP chosen, but running 32 bit devices). This project has been around a while, but I have been keeping it up to date with Unity updates and have not seen this before.
    I'm trying to see if I can isolate this with a smaller case before submitting a crash report, but I'm not sure exactly what is triggering the crash, and though I've skimmed through this thread I don't understand some of the posts well enough to tell if this is related to some others that are already resolved.
    Here is my lldb back trace:
     
  41. ownself

    ownself

    Joined:
    Mar 18, 2013
    Posts:
    16
    Thank you for replying, I will give it a shot
     
  42. RenaZard

    RenaZard

    Joined:
    Jan 29, 2015
    Posts:
    2
    We tried to build iOS 64bit IL2CPP with Unity 4.6.2 and “Duplicate Symbol” error occurred.
    We found the solution for the error and successfully built the IL2CPP by removing -all_load option from the FaceBookSDK.
    However, when we run the Application, below error occurs.


    struct GenericInterfaceFuncInvoker2

    {

    typedef R (*Func)(void*, T1, T2);



    static inline R Invoke (MethodInfo* method, void* obj, T1 p1, T2 p2)

    {

    VirtualInvokeData data = il2cpp::vm::Runtime::GetGenericInterfaceInvokeData (method, obj);
    EXC_BAD_ACCESS(code=1, address=0x10)
    return ((Func)data.methodInfo->method)(data.target, p1, p2);

    }

    };

    0x10289c65c: bl 0x1028927dc ; il2cpp::vm::Image::GetGenericVirtualMethod(MethodInfo const*, MethodInfo const*)

    0x10289c660: mov x20, x0

    0x10289c664: ldr x8, [x20, #16] EXC_BAD_ACCESS(code=1, address=0x10)

    0x10289c668: ldrb w9, [x8, #261]

    0x10289c66c: cbz w9, 0x10289c684 ; il2cpp::vm::Runtime::GetGenericInterfaceInvokeData(MethodInfo*, void*) + 104 at Runtime.cpp:539

    0x10289c670: ldrb w8, [x8, #265]

    0x10289c674: cbnz w8, 0x10289c684 ; il2cpp::vm::Runtime::GetGenericInterfaceInvokeData(MethodInfo*, void*) + 104 at Runtime.cpp:539



    Any idea how we can fix this?

    thanks.
     
    Last edited: Feb 2, 2015
  43. fishg

    fishg

    Joined:
    Jul 25, 2014
    Posts:
    90
    I was reported.It's related about this plugin:https://www.assetstore.unity3d.com/en/#!/content/10395.When I use the plugin's class ObscuredFloat,calculate result not as expected.
    eg:
    public void AddKillScore(float kscore){
    //killScore is type of ObscuredFloat,and the bug is killScore always return float 0
    killScore = killScore + kscore;
    }
    But I don't know this is IL2CPP's bug or plugin's bug.
     
  44. ownself

    ownself

    Joined:
    Mar 18, 2013
    Posts:
    16
    It works, I temporarily remove those networkView code, then it built successfully, fortunately I don't need them since we have our network native plugin, but now I wonder, what about those developers are using Unity Network View for 4.6.2?? So 4.6.2 doesn't support NetworkView with IL2CPP??!!?
     
  45. AGaming

    AGaming

    Joined:
    Dec 26, 2013
    Posts:
    103
    Unity 4.6.2, UFPS Mobile, Compilation is successful, when you start the level on the device, the joystick does not respond.

    NullReferenceException: A null value was found where an object instance was required.
    at vp_FPController.UpdateJumpForceFree () [0x00000] in <filename unknown>:0
    at vp_FPController.UpdateJump () [0x00000] in <filename unknown>:0
    at vp_FPController.FixedUpdate () [0x00000] in <filename unknown>:0
    at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    (Filename: currently not available on il2cpp Line: 4294967295)
    NullReferenceException: A null value was found where an object instance was required.
    at vp_NGUISimpleHUDMobile.OnMessage_HUDText (System.String message) [0x00000] in <filename unknown>:0
    at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    (Filename: currently not available on il2cpp Line: 4294967295)
    NullReferenceException: A null value was found where an object instance was required.
    at vp_FPPlayerDamageHandler.Damage (Single damage) [0x00000] in <filename unknown>:0
    at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    (Filename: currently not available on il2cpp Line: 4294967295)
    NullReferenceException: A null value was found where an object instance was required.
    at vp_FPController.UpdateCollisions () [0x00000] in <filename unknown>:0
    at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    (Filename: currently not available on il2cpp Line: 4294967295)
    NullReferenceException: A null value was found where an object instance was required.
    at vp_FPInput.InputInteract () [0x00000] in <filename unknown>:0
    at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    (Filename: currently not available on il2cpp Line: 4294967295)
    NullReferenceException: A null value was found where an object instance was required.
    at vp_UIContextualControls.TweenColor (.vp_UIContextualControl button, Boolean active) [0x00000] in <filename unknown>:0
    at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    (Filename: currently not available on il2cpp Line: 4294967295)
    NullReferenceException: A null value was found where an object instance was required.
    at vp_UISway.Update () [0x00000] in <filename unknown>:0
    at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    (Filename: currently not available on il2cpp Line: 4294967295)
    NullReferenceException: A null value was found where an object instance was required.
    at vp_UICrosshair.EnemyCheck () [0x00000] in <filename unknown>:0
    at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    (Filename: currently not available on il2cpp Line: 4294967295)
    NullReferenceException: A null value was found where an object instance was required.
    at vp_UITouchController.<TouchesBegan>m__65 (RaycastHit hit) [0x00000] in <filename unknown>:0
    at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    (Filename: currently not available on il2cpp Line: 4294967295)
    NullReferenceException: A null value was found where an object instance was required.
    at vp_FPInteractManager.CanStart_Interact () [0x00000] in <filename unknown>:0
    at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    (Filename: currently not available on il2cpp Line: 4294967295)
    NullReferenceException: A null value was found where an object instance was required.
    at vp_FPController.UpdateJumpForceFree () [0x00000] in <filename unknown>:0
    at vp_FPController.UpdateJump () [0x00000] in <filename unknown>:0
    at vp_FPController.FixedUpdate () [0x00000] in <filename unknown>:0
    at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
    (Filename: currently not available on il2cpp Line: 4294967295)
     
  46. Catacomber

    Catacomber

    Joined:
    Sep 22, 2009
    Posts:
    682
    With respect to my other posts and my bug report 606888, what would cause Monoclass HideInInspector not to be found and the error message unable to find type [Unity engine dll]UnityEngine.ResorceRequest---is this more likely to be coming from a third party plugin or from Unity itself.

    Also are legacy graphics still supported?

    And if we have a Unity Pro subscription if we can't build and run our game within a reasonable time on iOS so that it meets Apple's 64 bit criteria can we have a switchover to android pro license from iOS pro license without any problem?
     
  47. seigman667

    seigman667

    Joined:
    Aug 30, 2013
    Posts:
    4
    Using lock or synchronized Queue in a thread is giving me an EXC_BAD_ACCESS in il2cpp::eek:s::Atomic::Exchange64() during runtime. This is with 4.6.2f1. Code is working fine with Mono.
     
    Last edited: Feb 2, 2015
  48. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    OfTopic: Some of you Stop just copy and paste logs and properly attach them or use the CODE brackets, your making it harder for the Unity team to visually analyze the issues and its already Feb so we need them to include max fixes in Thursday patch build which feels like years away.
     
  49. Catacomber

    Catacomber

    Joined:
    Sep 22, 2009
    Posts:
    682
    Off topic I think that's a bit rude. All of us who have posted here have a lot of time and money---good money spent in the asset store invested in our games and many of us have already published games we care about in the asset store.

    I just do game making as a hobby. I am a lawyer by profession. And I think this is not our problem. It's Unity's problem. So if someone has just a few comments to contribute that they are having a problem even if they don't post a complete bug report that's Unity's job to ask them. Freedom of speech. I posted my code errors here in detail but I also have some questions. I think I should be entitled to ask them.

    I've had a paid subscription for almost a year now and I'm really disappointed that I can't even upload my game for testing to ITunes connect in test flight. And I have no clue how to solve the problems I'm having.

    I don't think this is going to be solved by Thursday because all us are using third party plugins or at least most of us and nobody is asking which we're using so how can Unity really track down the bugs? Just a question.

    I don't mean to be offensive but have a heart. And don't chide us when we're really suffering.
     
    Last edited: Feb 2, 2015
    Jildert likes this.
  50. Lucas-Meijer

    Lucas-Meijer

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    175
    @catacomber: the bug you mention: 606888 has an empty description and no project attached. We would love to fix whatever is cauing your project to have trouble, but right now are blocked by not knowing what problem your project is hitting. If you could provide your project, or a detailed description of the error you are getting, that'd be great, we'd love to see you on the app store asap.