Windows Host, QNX650: Couldn't reserve space for cygwin's heap   ________________________________________________________________________ 
Applicable Environment 
________________________________________________________________________ 
Topic : Windows Host: Couldn't reserve space for cygwin's heapSDP : 6.5.0Host : Supported Windows host________________________________________________________________________ 
Issue 
________________________________________________________________________ 
When working with Momentics IDE or command line tools, I am seeing: 
+++
       0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
 AllocationBase 0x0, BaseAddress 0x71690000, RegionSize 0x160000, State 0x10000
C:\QNX650\host\win32\x86\usr\bin\cp.exe : *** Couldn't reserve space for cygwin's heap, Win32 error 0
 make[1]: *** [dataserver] Error 1
 +++
 m.AllocationBase 0x0, m.BaseAddress 0x71690000, m.RegionSize 0x480000, m.State 0x10000
C:\QNX650\host\win32\x86\usr\bin\sh.exe : *** Couldn't reserve space for cygwin's heap (0x71690000 <0x2330000>) in child, Win32 error 0
       0 [main] sh 10100 sync_with_child: child 1368(0x1D8) died before initialization with status code 0x1
     395 [main] sh 10100 sync_with_child: *** child state waiting for longjmp
 C:/Users/bhatch/AppData/Local/Temp/make11508-1.sh : fork: Resource temporarily unavailable
 +++  
How do I resolve these kinds of errors? 
________________________________________________________________________ 
Solution ________________________________________________________________________  
Try using rebase.exe (available at https://cygwin.com/install.html ) with msys-1.0.dll (i.e. C:\QNX650\host\win32\x86\usr\bin\msys-1.0.dll). 
 The utility changes the base of a non-pic DLL like msys
 You can try base addresses 0x50000000 and 0x30000000 
 Example: 
 rebase.exe -b 0x50000000 msys-1.0.dll
 rebase.exe -b 0x30000000 C:\QNX650\host\win32\x86\usr\bin\msys-1.0.dll  
 If, when running this tool, you get this error:
 msys-1.0.dll: skipped because wrong machine type. 
 To fix "wrong machine type":
 The error appears when using the 64-bit version of rebase.exe
 Use the 32-bit version of rebase.exe 
________________________________________________________________________ 
NOTE  :
 This entry has been validated against the SDP version listed above. Use
 caution when considering this advice for any other SDP version. For 
supported releases, please reach out to  QNX Technical Support   if you have any questions/concerns.________________________________________________________________________ 
 
 
  
     
     
  
Please contact us  with your questions or concerns.