Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Windows 8 export array problem

Discussion in 'Windows' started by stationx, Sep 6, 2013.

  1. stationx

    stationx

    Joined:
    Jul 9, 2012
    Posts:
    251
    Hello!

    it seems that this code line is crashing without any usefull debug info in Visual Studio.
    (I narrowed it down to this single line...)

    public Bounds[] MAIN_BOUNDS;

    Is this replacable by something else?

    Regards!
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,756
    List<Bounds> should work.

    You should fill a bug report with a reproduction project, though.
     
  3. stationx

    stationx

    Joined:
    Jul 9, 2012
    Posts:
    251
    heey hello,
    sorry that did not work. I got the same crash. :-s
     
  4. stationx

    stationx

    Joined:
    Jul 9, 2012
    Posts:
    251
    update! the dictionary array type seems to be the only one that works. (read = does not crash)
     
  5. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,956
    Dictionary did work for you, because it's not being serialized. While simple arrays and lists are serialized.

    In any case, this is a bug...
     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,956
    Just to add if you don't want for it to be serialized. You could have simply write
    private Bounds[] bounds; (instead of public)
     
  7. Finjitzu

    Finjitzu

    Joined:
    Sep 8, 2011
    Posts:
    160
    I think I might be running into the same problem. My game crashes in the on build with no explanation from VS. I've cleaned up all the arraylists out of my code. I'm trying to isolate what's messing it up. But just so I understand stuff like:

    Code (csharp):
    1.  
    2.  
    3. var myObject : GameObject[];
    4. var myString : String[];
    5. var myBool : Boolean[];
    6. var myTransforms : transform[];
    7.  
    8.  
    Will result in a crash?

    When I debug in VS it builds and right after the splash screen it closes back to the WinPhone8 screen. The debugger is still running with nothing in the call stack. When I stop the debugger in VS this is what it's telling me.
    Code (csharp):
    1. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: DefaultDomain): Loaded 'C:\windows\system32\mscorlib.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    2. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Windows.RuntimeHost.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    3. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Windows.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    4. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Net.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    5. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    6. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Xml.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    7. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\Instance.DLL'. Symbols loaded.
    8. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\Microsoft.Phone.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    9. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\Microsoft.Phone.Interop.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    10. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\WinRTBridge.DLL'. Cannot find or open the PDB file.
    11. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\BridgeInterface.winmd'. Module was built without symbols.
    12. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\UnityPlayer.winmd'. Module was built without symbols.
    13. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\WinMetadata\Windows.winmd'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    14. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Runtime.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    15. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Core.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    16. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\UnityEngine.DLL'. Cannot find or open the PDB file.
    17. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\UnityEngineProxy.DLL'. Cannot find or open the PDB file.
    18. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\Assembly-CSharp-firstpass.DLL'. Symbols loaded.
    19. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\Assembly-CSharp.DLL'. Symbols loaded.
    20. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\Assembly-UnityScript-firstpass.DLL'. Symbols loaded.
    21. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\Assembly-UnityScript.DLL'. Symbols loaded.
    22. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\Boo.Lang.DLL'. Module was built without symbols.
    23. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\UnityScript.Lang.DLL'. Module was built without symbols.
    24. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'Anonymously Hosted DynamicMethods Assembly'.
    25. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{8BACE362-6E13-4406-A4AC-8D5120936743}\Install\UnityEngineDelegates.winmd'. Module was built without symbols.
    26. The program '[3872] TaskHost.exe' has exited with code -2147483645 (0x80000003).
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,756
    Can you go into project properties -> debug and select native debugger rather than managed? Call stack should be more helpful then.
     
  9. Finjitzu

    Finjitzu

    Joined:
    Sep 8, 2011
    Posts:
    160
    Thanks for the reply. Changed to native, got some more errors, but was able to load. The game is written in unityscript and I'm accessing C# scripts so that's a problem according to the FAQ. Also wouldn't pass WACK with the unityscript in there, fwiw some errors were:

    Code (csharp):
    1. >   UnityPlayer.dll!6e5c5e60()  Unknown
    Code (csharp):
    1. First-chance exception at 0x77CF1247 (KERNELBASE.DLL) in TaskHost.exe: 0x04242420 (parameters: 0x31415927, 0x71B40000, 0x00F2E908).
    Code (csharp):
    1. First-chance exception at 0x6DF70DF7 (Assembly-UnityScript.ni.dll) in TaskHost.exe: 0xC0000005: Access violation reading location 0x00000000.
    Plus a bunch of .dll errors, also it said that level0 in the Data folder was corrupt and recommended deleting and restarting unity.