Search Unity

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

Bug Unity 2021.3.11f1 on Linux crashes in batchmode with memory leak (for Android)

Discussion in 'Editor & General Support' started by Alfabot, Apr 14, 2023.

  1. Alfabot

    Alfabot

    Joined:
    Apr 8, 2023
    Posts:
    1
    Hi there!
    I need to build my project in Linux in batchmode for Android, but i got error:

    ##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate" ... etc 

    in GUI biuild was successfull

    There is only 1 red square in my primitive test project. In a more complex projects, the situation is the same.
    Anything ideas?

    I have:
    Unity: 2021.3.11f1 (installed with UnityHub)
    OS: Ubuntu 22.04 (with last updates)
    CPU: Intel x4
    RAM: 16Gb

    CLI command:

    Unity -batchmode -nographics -quit -projectPath="/Test1” -buildTarget=Android -logFile=“/TestBuild.log"

    A little bit more dump (full dump in attached file):

    ...

    [ALLOC_PROFILER]
    Peak usage frame count: [32.0 KB-64.0 KB]: 1 frames
    Requested Block Size 16.0 MB
    Peak Block count 1
    Peak Allocated memory 71.6 KB
    Peak Large allocation bytes 0 B
    [ALLOC_PROFILER_BUCKET]
    Large Block size 32.0 MB
    Used Block count 1
    Peak Allocated bytes 1.7 KB
    [ALLOC_PROFILER_EDITOR]
    Peak usage frame count: [0-1.0 KB]: 1 frames
    Requested Block Size 1.0 MB
    Peak Block count 0
    Peak Allocated memory 0 B
    Peak Large allocation bytes 0 B
    [ALLOC_PROFILER_BUCKET]
    Large Block size 32.0 MB
    Used Block count 1
    Peak Allocated bytes 1.7 KB
    ##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate","time":1681451552902,"processId":2644,"allocatedMemory":3713164,"memoryLabels":[{"Default":8015},{"Permanent":16120},{"Thread":1083652},{"Manager":18223},{"VertexData":12},{"Geometry":280},{"Texture":160},{"Shader":68084},{"Material":24},{"GfxDevice":65048},{"GfxThread":448},{"Animation":312},{"Audio":3976},{"Physics":289},{"Serialization":672},{"Input":26792},{"JobScheduler":200},{"Mono":40},{"ScriptingNativeRuntime":43520},{"BaseObject":1621428},{"Resource":944},{"Renderer":1968},{"Transform":48},{"File":804},{"WebCam":24},{"Culling":40},{"Terrain":1025},{"Wind":24},{"String":31176},{"DynamicArray":68195},{"HashMap":75243},{"Utility":9362},{"Curl":2639},{"PoolAlloc":32192},{"AI":40},{"TypeTree":2064},{"ScriptManager":368},{"RuntimeInitializeOnLoadManager":72},{"SpriteAtlas":112},{"GI":3320},{"Unet":16},{"Director":7816},{"WebRequest":720},{"VR":45689},{"SceneManager":640},{"Video":72},{"LazyScriptCache":32},{"NativeArray":12},{"Camera":25},{"Secure":1},{"SerializationCache":624},{"APIUpdating":5872},{"Subsystems":384},{"VirtualTexturing":57560},{"StaticSafetyDebugInfo":327752},{"EditorGui":40},{"EditorUtility":7650},{"VersionControl":4},{"Undo":450},{"AssetDatabase":10586},{"RestService":1518},{"EditorGi":368},{"License":1440},{"UnityConnect":29664},{"Collab":641},{"Upm":1504},{"DrivenProperties":80},{"HubClient":32},{"LocalIPC":101},{"ProfilerEditor":20133},{"CoreBusinessMetrics":2703},{"Licensing":2048},{"AssetReference":32}]}
     

    Attached Files: