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

Memory Limitations Windows 10?

Discussion in 'Windows' started by PatrickVertigo, Aug 24, 2016.

  1. PatrickVertigo

    PatrickVertigo

    Joined:
    Jun 10, 2016
    Posts:
    2
    Hi,

    I am stuck on a memory issue for my application, the log is telling me that there is a maximum of 465973852 Bytes (about 466 MB) of memory available (since it crashes after this amount and I had no other video-heavy applications running), although the application is running on a machine that has a 970 GTX which has at least 2GB of video-memory available.

    I tested it on another PC with a GfxDevice of 2GB and got like 800 MB.

    The PC version of the application works fine on both machines.

    Is there any reason why a windows 10 store application wouldn't have access to the entire available gfx memory?

    Thanks in advance!

    DynamicHeapAllocator allocation probe 1 failed - Could not get memory for large allocation 134217728.
    DynamicHeapAllocator allocation probe 2 failed - Could not get memory for large allocation 134217728.
    DynamicHeapAllocator allocation probe 3 failed - Could not get memory for large allocation 134217728.
    DynamicHeapAllocator allocation probe 4 failed - Could not get memory for large allocation 134217728.
    DynamicHeapAllocator out of memory - Could not get memory for large allocation 134217728!
    Could not allocate memory: System out of memory!
    Trying to allocate: 134217728B with 16 alignment. MemoryLabel: GfxDevice
    Allocation happend at: Line:62 in
    Memory overview

    [ ALLOC_DEFAULT ] used: 260347598B | peak: 0B | reserved: 278831846B
    [ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 2097152B
    [ ALLOC_GFX ] used: 453809760B | peak: 0B | reserved: 465973852B
    [ ALLOC_CACHEOBJECTS ] used: 1534548B | peak: 0B | reserved: 10485760B
    [ ALLOC_TYPETREE ] used: 0B | peak: 0B | reserved: 0B
    [ ALLOC_PROFILER ] used: 0B | peak: 0B | reserved: 0B
    [ ALLOC_TEMP_THREAD ] used: 1842000B | peak: 0B | reserved: 1900544B
    Could not allocate memory: System out of memory!
    Trying to allocate: 134217728B with 16 alignment. MemoryLabel: GfxDevice
    Allocation happend at: Line:62 in
    Memory overview

    [ ALLOC_DEFAULT ] used: 260347598B | peak: 0B | reserved: 278831846B
    [ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 2097152B
    [ ALLOC_GFX ] used: 453809760B | peak: 0B | reserved: 465973852B
    [ ALLOC_CACHEOBJECTS ] used: 1534548B | peak: 0B | reserved: 10485760B
    [ ALLOC_TYPETREE ] used: 0B | peak: 0B | reserved: 0B
    [ ALLOC_PROFILER ] used: 0B | peak: 0B | reserved: 0B
    [ ALLOC_TEMP_THREAD ] used: 1842000B | peak: 0B | reserved: 1900544B
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,647
    Hi,

    don't confuse ALLOC_GFX memory with GPU memory, in this context ALLOC_GFX memory uses memory from good old RAM, so it has nothing to do how much video memory you have. Nevertheless you're out of system memory. I am not aware of memory limits for Windows Store Apps on desktop, there are memory limits for Windows Store Apps running on Windows Phone though.

    Without a repro project it's hard to say... but try opening task manager and see how much memory your app uses.
     
  3. PatrickVertigo

    PatrickVertigo

    Joined:
    Jun 10, 2016
    Posts:
    2
    Right, that explains a lot, I am building the application as x86 so then the max is reached quite easily. I'll attempt a x64 build which will probably solve al my problems for now.

    Thanks!