Cygwin *** fatal error - couldn't allocate heap, Win32 error 487

Posted by face on October 13, 2007

Ok, lets recycle some content from the old myutil site and get this blog rolling...

I put this up here because it wasted me untold hours figuring it out.

Logitech Quick Camera 9.X crashes cygwin......AAAAAAaaarg!

Does this look familiar:

  *** fatal error - couldn't allocate heap, Win32 error 487

Sorry, the only solution I have at this point is to uninstall the Logitech Quck Camera driver. I read that the earlier driver worked with cygwin. I believe this to be a Logitech bug at this point and I can't use windows without cygwin. So, Quick Camera has been moved to /dev/null.

Update: Seems people out there are still having this problem. I have run into another problem: ruby is slow under cygwin (painful in my old laptop). I may give coLinux a try. It probably works with quick cam and ruby should fly...

Update: As Kevin Szabo points out in the comments to this post: "This may be a problem with a conflict with LVPrcSrv.exe". He provided a link to the thread here.

Digg! Delicious! Technorati Blinklist Furl Reddit

Leave a response

  1. Kevin SzaboOctober 14, 2007 @ 06:12 PM
    I have been experiencing this problem a lot on my laptop during the last week. I hadn't tied it to quickcam, but I do have a quickcam ultra. I thought it might be a problem that windows isn't giving memory to the process fast enough, mainly due to the comment that it died *WAITING* for longjmp: 19754 [main] ? (8344) C:\InstalledDowloadedSoftware\Cygwin\root\bin\sh: *** fatal error - couldn't allocate heap, Win32 error 487, base 0x6D0000, top 0x6F0000, reserve_size 126976, allocsize 131072, page_const 4096 22 [main] sh 9628 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 I have defragmented my disk (it is still too full, only 5% free on a 40G disk), but I am not seeing the errors *today*. Try defragging and see where that gets you. I used "while true; do date; man dc | wc; done" as the test routine since MAN forks a lot of processes. Kevin
  2. Kevin SzaboOctober 14, 2007 @ 10:02 PM
    Hi again. This may be a problem with a conflict with LVPrcSrv.exe; it has been discussed on the following board (note that the problem is not just CYGWIN specific. Other folks are seeing problems too).
  3. MyUtilOctober 14, 2007 @ 11:01 PM
    Thanks Kevin, I updated the article with your info.
  4. Kevin SzaboDecember 12, 2007 @ 08:32 PM
    I have just upgraded my Logitech software to the latest and greatest The good news is that the new software uses a lot less CPU to run my webcam. It's worth upgrading just for that. The bad news is that the LVPrcSrv problem is still there, just not quite as bad (when I run a CYGWIN make I find that I fail 0.01% of the time, but LVPrcSrv starts sucking > 50% CPU. I'm going to turn it off again from the SERVICES panel. If all goes well I won't bother posting a follow up. Note that logitech has changed the name in the SERVICE panel to name = 'process monitor' description = 'injector service'. Kevin
  5. Kevin FodorJanuary 07, 2008 @ 07:10 AM
    Guys, I just wanted to drop a line to thank you for your posts. This was potentially a huge problem for me and I wasn't sure what I was going to do. For me just uninstalling the camera is good enough. Would be nice to leave it installed but it's not that important. I would have had no idea or even thought to look at the Logitech camera as a culprit. You saved me hours of frustration...maybe days. Thanks! Kevin
  6. MishaJanuary 13, 2008 @ 05:53 PM
    Hi, just wanted to let you know that this happens with MINGW compiler as well. Misha
  7. DaveApril 21, 2008 @ 02:43 AM

    I had problems with Cygwin after installing the Logitech Pro9000 software, with the afore mentioned error. I found this link useful:

    In Administrator Tools > Services I stopped the “Process Monitor” service and Cygwin started to work alright. I don’t know what this service does…

  8. DrumbabyMay 28, 2008 @ 05:53 PM

    Just run into the same thing with version 10 of logitech web cam software. 1) Thanks a bunch for the information you guys posted 2) It was not neccesary to uninstall the driver. Just uninstalled the additional software (had to exit cygwin for the uninstall to work, demonstrating the problem) and restarted X. The webcam’s driver is still installed and MSN messenger can use the camera just fine :-)

  9. karanAugust 23, 2008 @ 06:56 AM

    hey everybody…. plz help me with this… gettin this error in cygwin….and am on Vista Home Ed. ion with status code 0×1 113 [main] sh 2184 sync_with_child: * child state waiting for longjmp ./install: Cannot fork: Resource temporarily unavailable

    • couldn’t allocate cygwin heap, Win32 error 0, base 0xA00000, top 0xA08000, reserve_size 32768, allocsize 32768, page_const 4096

      2 [main] sh 2184 sync_with_child: child 5404(0xEC) died before initializat

    reply asap… thanks karan…

  10. HalOctober 30, 2009 @ 04:25 AM regtool -i set /HKLM/Software/Cygnus\ Solutions/Cygwin/heap_chunk_in_mb 2048 worked for me on win XP with SP3. I hope it works for you, random surfer using unknown windows version sporting an annoying problem you’d like fixed who got here because it’s high up on websearch results…


Hint: Comments now accept textile.