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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Out of Memory error

Discussion in 'Flash' started by iambrois, Mar 18, 2013.

  1. iambrois

    iambrois

    Joined:
    Mar 13, 2013
    Posts:
    5
    Hello, I was wondering if anyone had any insight about this error when compiling a flash build

    Code (csharp):
    1. Error building Player: Exception: C:/Program Files (x86)/Unity/Editor/Data/PlaybackEngines/FlashSupport\BuildTools\SwfPostProcessor.exe Failed:
    2. Starting : UPP
    3. ###SKIPPED com/unity/UnityNative
    4. WARNING::14:  Jump to an unknown label :
    5. public::global::InvGameItempublic::global::InvGameItempublic::InvGameItem_color
    6. WARNING::11:  Jump to an unknown label :
    7. public::global::InvStatpublic::global::InvStatpublic::InvStat_GetDescription_Identifier
    8. WARNING::4:  Jump to an unknown label :
    9. public::global::MovementScript__PlayGoldCartDustParticle_c__Iterator13public::global::MovementScript__PlayGoldCartDustParticle_c__Iterator13public::IEnumerator_MoveNext
    10. WARNING::8:  Jump to an unknown label :
    11. public::global::SetMusicScript__WaitForRequest_c__Iterator19public::global::SetMusicScript__WaitForRequest_c__Iterator19public::IEnumerator_MoveNext
    12. WARNING::7:  Jump to an unknown label :
    13. public::global::DownloadTexture__Start_c__Iterator1public::global::DownloadTexture__Start_c__Iterator1public::IEnumerator_MoveNext
    14. WARNING::6:  Jump to an unknown label :
    15. public::global::PlayerAttributes__Boost_c__Iterator14public::global::PlayerAttributes__Boost_c__Iterator14public::IEnumerator_MoveNext
    16. WARNING::4:  Jump to an unknown label :
    17. public::global::PlayerAttributes__Magnet_c__Iterator15public::global::PlayerAttributes__Magnet_c__Iterator15public::IEnumerator_MoveNext
    18. WARNING::5:  Jump to an unknown label :
    19. public::global::CreateTerrain__InstantiateArrow_c__Iterator4public::global::CreateTerrain__InstantiateArrow_c__Iterator4public::IEnumerator_MoveNext
    20. WARNING::13:  Jump to an unknown label :
    21. public::global::CreateTerrain__InstantiateGoldCart_c__Iterator5public::global::CreateTerrain__InstantiateGoldCart_c__Iterator5public::IEnumerator_MoveNext
    22. WARNING::21:  Jump to an unknown label :
    23. public::global::CreateTerrain__InstantiateTerrain_c__Iterator3public::global::CreateTerrain__InstantiateTerrain_c__Iterator3public::IEnumerator_MoveNext
    24. WARNING::9:  Jump to an unknown label :
    25. public::global::CreateTerrain__ShowArrowWarning_c__Iterator6public::global::CreateTerrain__ShowArrowWarning_c__Iterator6public::IEnumerator_MoveNext
    26. WARNING::5:  Jump to an unknown label :
    27. public::global::RepeatingParticlesScript__MoveAndPlay_c__Iterator17public::global::RepeatingParticlesScript__MoveAndPlay_c__Iterator17public::IEnumerator_MoveNext
    28. WARNING::4:  Jump to an unknown label :
    29. public::global::MoveOnIntervals__MoveObject_c__Iterator10public::global::MoveOnIntervals__MoveObject_c__Iterator10public::IEnumerator_MoveNext
    30. WARNING::6:  Jump to an unknown label :
    31. public::global::CFX_ShurikenThreadFix__WaitFrame_c__Iterator0public::global::CFX_ShurikenThreadFix__WaitFrame_c__Iterator0public::IEnumerator_MoveNext
    32. WARNING::4:  Jump to an unknown label :
    33. public::global::RepeatingPlaneScript__MovePlane_c__Iterator18public::global::RepeatingPlaneScript__MovePlane_c__Iterator18public::IEnumerator_MoveNext
    34. WARNING::12:  Jump to an unknown label :
    35. public::global::LoadingScript__WaitForRequest_c__IteratorEpublic::global::LoadingScript__WaitForRequest_c__IteratorEpublic::IEnumerator_MoveNext
    36. WARNING::7:  Jump to an unknown label :
    37. public::global::DemoMasteryEffect__ShowLabels_c__Iterator9public::global::DemoMasteryEffect__ShowLabels_c__Iterator9public::IEnumerator_MoveNext
    38. WARNING::5:  Jump to an unknown label :
    39. public::global::HUDScript__MedalAnimation_c__IteratorDpublic::global::HUDScript__MedalAnimation_c__IteratorDpublic::IEnumerator_MoveNext
    40. Processed abcs : 1063 bodies : 18529 in 1 seconds
    41. Compressing and Writing : None
    42.  
    43. ERROR: Out of memory
    44. Stacktrace:   at (wrapper managed-to-native) object:__icall_wrapper_mono_array_new_specific (intptr,int)
    45.   at System.IO.MemoryStream.set_Capacity (Int32 value) [0x00000] in <filename unknown>:0
    46.   at System.IO.MemoryStream.Expand (Int32 newSize) [0x00000] in <filename unknown>:0
    47.   at System.IO.MemoryStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
    48.   at System.IO.BinaryWriter.Write (System.Byte[] buffer, Int32 index, Int32 count) [0x00000] in <filename unknown>:0
    49.   at SwfLibrary.Types.Tag.WriteBufferToOutput (System.IO.Stream buffer, System.IO.BinaryWriter output) [0x00000] in <filename unknown>:0
    50.   at SwfLibrary.Types.Tag.WriteExternal (System.IO.BinaryWriter output) [0x00000] in <filename unknown>:0
    51.   at SwfLibrary.SwfFormat.Write (System.IO.Stream stream, SwfCompression withCompression) [0x00000] in <filename unknown>:0
    52.   at SwfPostprocessor.Configuration.SwfPostProcessorRunConfigurationUpp.Run () [0x00000] in <filename unknown>:0
    53.   at SwfPostprocessor.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
    54.  
    It appears that all the errors above occur on Coroutines, but I thought Coroutines were fully supported in flash builds. Maybe I'm using them wrong? This build works perfectly in a Web Player build.

    Any help would be appreciated, thanks in advance.
     
  2. SimonW

    SimonW

    Joined:
    Feb 20, 2012
    Posts:
    13
    Did you ever find a solution to this? I'm having a similar issue.

    Code (csharp):
    1. Error building Player: Exception: C:/Program Files (x86)/Unity/Editor/Data/PlaybackEngines/FlashSupport\BuildTools\SwfPostProcessor.exe Failed:
    2. Starting : UPP
    3. ###SKIPPED com/unity/UnityNative
    4. Processed abcs : 608 bodies : 11606 in 1 seconds
    5. Compressing and Writing : None
    6.  
    7. ERROR: Out of memory
    8. Stacktrace:   at (wrapper managed-to-native) object:__icall_wrapper_mono_array_new_specific (intptr,int)
    9.   at System.IO.MemoryStream.set_Capacity (Int32 value) [0x00000] in <filename unknown>:0
    10.   at System.IO.MemoryStream.Expand (Int32 newSize) [0x00000] in <filename unknown>:0
    11.   at System.IO.MemoryStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
    12.   at System.IO.BinaryWriter.Write (System.Byte[] buffer, Int32 index, Int32 count) [0x00000] in <filename unknown>:0
    13.   at SwfLibrary.Types.Tag.WriteBufferToOutput (System.IO.Stream buffer, System.IO.BinaryWriter output) [0x00000] in <filename unknown>:0
    14.   at SwfLibrary.Types.Tag.WriteExternal (System.IO.BinaryWriter output) [0x00000] in <filename unknown>:0
    15.   at SwfLibrary.SwfFormat.Write (System.IO.Stream stream, SwfCompression withCompression) [0x00000] in <filename unknown>:0
    16.   at SwfPostprocessor.Configuration.SwfPostProcessorRunConfigurationUpp.Run () [0x00000] in <filename unknown>:0
    17.   at SwfPostprocessor.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
     
  3. RalphH

    RalphH

    Unity Technologies

    Joined:
    Dec 22, 2011
    Posts:
    592
    Please report these as bugs with projects that reproduce the error.