Project

General

Profile

Actions

Emulator Issues #10926

open

Games crash on OpenBSD/amd64 with error "Failed to map enough memory space: Can't allocate memory"

Added by johndoe over 6 years ago. Updated about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

This is due to MemArena::FindMemoryBase trying to mmap() 0x400000000 bytes (16 GiB) of memory, which overshoots my physical memory by quite a bit. Reducing it to an amount actually available to the OS (~7 GiB) works, though I've only lightly tested it on one game (Rhythm Heaven Fever).

The immediate solution would thus be lowering the mmap'd amount or making it a compile-time option, but admittedly that isn't very elegant.

Actions

Also available in: Atom PDF