"Requested allocation is too large" error while running MIT Scheme on windows 7
Asked Answered
G

5

7

Error:

"Requested allocation is too large. Try with smaller argument to --heap"

I downloaded the windows binary from http://www.gnu.org/software/mit-scheme/.

How do I fix this?

Goetz answered 10/4, 2014 at 13:24 Comment(0)
D
7

I am not sure why it does not work when I append --heap 512 at the end. But it works for me when I append it after mit-scheme.exe"

... mit-scheme.exe"  --heap 512 --library ...
Downhill answered 20/1, 2015 at 1:43 Comment(1)
I think it is related to savannah.gnu.org/bugs/?31710. Removing --edit on the shortcut made it work for me.Conan
E
2

Right click the link to the application and select properties. Edit the target:

"C:\Program Files (x86)\MIT-GNU Scheme\bin\mit-scheme.exe" --library "C:\Program Files (x86)\MIT-GNU Scheme\lib" --edit

Add:

--heap 512

See also: http://savannah.gnu.org/bugs/?31710

Engineman answered 30/9, 2014 at 19:1 Comment(1)
Thanks, but wouldn't work as is on windows 10 64 bit, installed version 9.2. Removed --edit. now works well.Conan
O
0

Create a new system variable called

MITSCHEME_HEAP_SIZE

and set its value to 512

Orogeny answered 6/6, 2017 at 15:48 Comment(0)
K
0

I had to update to 9.2 and add --heap 512 after "C:\Program Files (x86)\MIT-GNU Scheme\bin\mit-scheme.exe"

Kentkenta answered 3/1, 2022 at 13:50 Comment(0)
D
-1

Solution

Remove "--edit" from "Target" Under "Properties" ~ Original Answer from Irvin Denzel Torcuato

System / Settings

OS: Windows 10

Doomsday answered 25/8, 2017 at 14:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.