Page MenuHomePhabricator

VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command.
Closed, ResolvedPublic

Description

The other day I created a differential of about 70 commits, which went just fine. Having added a few commits, updating this differential fails with the following error:

$ arc diff 27f9344687b3
Linting...
No lint engine configured for this project.
Running unit tests...
No unit test engine is configured for this project.

Fatal error: Out of memory (allocated 285212672) (tried to allocate 274731032 bytes) in C:\Users\Chiel.tenBrinke\Projects\libphutil\src\future\exec\ExecFuture.php on line 546

VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command.


VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command.

PHP Fatal error:  Out of memory (allocated 285212672) (tried to allocate 274731032 bytes) in C:\Users\Chiel.tenBrinke\Projects\libphutil\src\future\exec\ExecFuture.php on line 546

I'm on windows 7, running this command in git bash. My php version:

$ php --version
PHP 7.0.5 (cli) (built: Mar 30 2016 10:15:26) ( ZTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

If you need any other details, please let me know.

Event Timeline

Can you try php 5, we don't support php 7 at this time. These also sound like Windows errors, not sure what we can do about them.

Thanks for your response. I just tried php 5.6:

$ arc diff 27f9344687b3
Linting...
No lint engine configured for this project.
Running unit tests...
No unit test engine is configured for this project.

Fatal error: Out of memory (allocated 406323200) (tried to allocate 397148161 bytes) in C:\Users\Chiel.tenBrinke\Projects\libphutil\src\future\exec\ExecFuture.php on line 546
PHP Fatal error:  Out of memory (allocated 406323200) (tried to allocate 397148161 bytes) in C:\Users\Chiel.tenBrinke\Projects\libphutil\src\future\exec\ExecFuture.php on line 546

how many lines would you say the diff is? is it reviewable?

Hm

$ git --no-pager diff 27f9344687b3 | wc -l
16554943

That looks like a lot, but in differential it doesn't seem that much. Maybe there are a lot of whitespace changes that aren't visible. Not sure yet, will take a closer look.

Currently trying a 64 bit php. It doesn't crash, but takes forever, hasn't finished yet.

pasted_file (605×980 px, 50 KB)

So the earlier crash was probably due to address space fragmentation or something.

Well, apparently I chose another base than I intended, making the diff huge indeed. The 16554943 lines were correct, thanks for the pointer there. I think this issue can be closed.

epriestley claimed this task.