Rewind buffer >1.5GB crashes 32bit

If you're having problems with Snes9x, or think you've found a bug, this is the place to be.
Post Reply
DaMan
Snes9x White Belt
Posts: 27
Joined: Thu Jan 22, 2015 2:35 pm

Rewind buffer >1.5GB crashes 32bit

Post by DaMan »

Large address aware does nothing. Thought it would otherwise I wouldn't have set it that high.
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: Rewind buffer >1.5GB crashes 32bit

Post by OV2 »

The rewind buffer is always a power of 2. Setting > 1500GB will cause snes9x to try to allocate a 2GB buffer. Since you will not have a continuous free 2GB range in the processes virtual address space this will fail.
DaMan
Snes9x White Belt
Posts: 27
Joined: Thu Jan 22, 2015 2:35 pm

Re: Rewind buffer >1.5GB crashes 32bit

Post by DaMan »

I see. Fixing it was easier than I expected. Here's a patch if you want and is up to your standards. VirutalBox not working for me ATM so not sure if a 32bit OS can handle 1.5GB. I'll try later if you don't think "1GB ought to be enough for anybody".
Attachments
rewind-buffer.zip
(641 Bytes) Downloaded 899 times
Post Reply