Community
cancel
Showing results for 
Search instead for 
Did you mean: 
DLake1
New Contributor I
86 Views

unable to obtain mapped memory

I'm getting "unable to obtain mapped memory" while building an x64 project with precompiled headers off, this is the pch_diag output:

=== Dumping Virtual Address Space Info ===
Page size: 0000000000001000
Minimum application address: 0000000000010000
Maximum application address: 000007FFFFFEFFFF
Base Address: 0000000000034000 Region Size: 000000000000C000
Base Address: 0000000000041000 Region Size: 000000000000F000
Base Address: 0000000000051000 Region Size: 000000000000F000
Base Address: 0000000000061000 Region Size: 000000000000F000
Base Address: 00000000000D7000 Region Size: 0000000000009000
Base Address: 00000000000E6000 Region Size: 000000000000A000
Base Address: 00000000008F1000 Region Size: 000000000000F000
Base Address: 0000000000901000 Region Size: 000000000001F000
Base Address: 0000000000941000 Region Size: 000000000000F000
Base Address: 0000000000961000 Region Size: 000000000000F000
Base Address: 00000000009A1000 Region Size: 000000000000F000
Base Address: 00000000009C1000 Region Size: 000000000000F000
Base Address: 00000000009E1000 Region Size: 000000000000F000
Base Address: 00000000009F6000 Region Size: 000000000000A000
Base Address: 0000000000C27000 Region Size: 0000000000009000
Base Address: 0000000000D57000 Region Size: 0000000000009000
Base Address: 0000000000D71000 Region Size: 000000000000F000
Base Address: 0000000000DA8000 Region Size: 0000000000008000
Base Address: 0000000000DC1000 Region Size: 000000000000F000
Base Address: 0000000000F68000 Region Size: 0000000000008000
Base Address: 00000000010F1000 Region Size: 000000000000F000
Base Address: 0000000002531000 Region Size: 000000000000F000
Base Address: 0000000002551000 Region Size: 000000000000F000
Base Address: 0000000002571000 Region Size: 000000000000F000
Base Address: 0000000002591000 Region Size: 000000000000F000
Base Address: 00000000025A1000 Region Size: 000000000000F000
Base Address: 0000000002857000 Region Size: 0000000000009000
Base Address: 0000000002A61000 Region Size: 000000000000F000
Base Address: 0000000002C71000 Region Size: 000000000000F000
Base Address: 0000000002CB1000 Region Size: 000000000000F000
Base Address: 0000000002F7F000 Region Size: 0000000000001000
Base Address: 0000000003681000 Region Size: 000000000000F000
Base Address: 0000000003791000 Region Size: 000000000000F000
Base Address: 00000000038A1000 Region Size: 000000000000F000
Base Address: 00000000039B1000 Region Size: 000000002C64F000
Base Address: 00000000376F0000 Region Size: 000000003FEF0000
Base Address: 00000000776DA000 Region Size: 0000000000006000
Base Address: 00000000777FF000 Region Size: 0000000000001000
Base Address: 000000007799F000 Region Size: 0000000000001000
Base Address: 00000000779A7000 Region Size: 0000000007639000
Base Address: 000000007FFF0000 Region Size: 00000000BF050000
Base Address: 0000000142213000 Region Size: 000000000000D000
Base Address: 0000000142221000 Region Size: 000007FD7B34F000
Base Address: 000007FEBD580000 Region Size: 0000000018000000
Base Address: 000007FED55CC000 Region Size: 0000000022A64000
Base Address: 000007FEF8155000 Region Size: 00000000043FB000
Base Address: 000007FEFC553000 Region Size: 0000000000FFD000
Base Address: 000007FEFD5BA000 Region Size: 0000000000156000
Base Address: 000007FEFD7EB000 Region Size: 0000000000005000
Base Address: 000007FEFD9EF000 Region Size: 0000000000081000
Base Address: 000007FEFDB4B000 Region Size: 0000000000CB5000
Base Address: 000007FEFE80E000 Region Size: 0000000000002000
Base Address: 000007FEFE877000 Region Size: 0000000000DC9000
Base Address: 000007FEFF65F000 Region Size: 0000000000001000
Base Address: 000007FEFF78C000 Region Size: 0000000000004000
Base Address: 000007FEFF82F000 Region Size: 0000000000051000
Base Address: 000007FEFF8AE000 Region Size: 0000000000002000
Base Address: 000007FEFF97B000 Region Size: 0000000000065000
Base Address: 000007FEFFAE9000 Region Size: 0000000000017000
Base Address: 000007FEFFB01000 Region Size: 00000001004AF000
Base Address: 000007FFFFFD3000 Region Size: 0000000000007000
Base Address: 000007FFFFFDB000 Region Size: 0000000000003000
Largest Region: 0000000142221000 size: 000007FD7B34F000

Why is it trying to allocate over 8 terabytes of virtual memory?

Compiler version 18.

0 Kudos
3 Replies
Viet_H_Intel
Moderator
86 Views

What version of the compiler and VS are you using?

Can you provide us a reproducible test case?

DLake1
New Contributor I
86 Views

Compiler 18 update 3, Visual Studio 2017 v15.9.3.

I removed the pre-compiled header file from the project and that got rid of the problem.

I was trying to compile Audacity for x64 but I no longer need to as I found an x64 fork of the project.

jimdempseyatthecove
Black Belt
86 Views

Look at where the allocation is taking place. You may be passing in the wrong type variable to the allocator function (e.g. 32-bit when 64-bit is required). Or, you may be passing in the correct type but uninitialized variable.

Jim Dempsey

Reply