bspsrc icon indicating copy to clipboard operation
bspsrc copied to clipboard

map failed to compile

Open scaredll opened this issue 4 years ago • 4 comments

[error] BspSource: Can't load C:\Users\root\Desktop\testmap_v10.bsp, caused by java.io.IOException: Map failed at sun.nio.ch.FileChannelImpl.map(Unknown Source) at info.ata4.io.buffer.ByteBufferUtils.openReadOnly(ByteBufferUtils.java:181) at info.ata4.io.buffer.ByteBufferUtils.openReadOnly(ByteBufferUtils.java:195) at info.ata4.bsplib.BspFile.createBuffer(BspFile.java:216) at info.ata4.bsplib.BspFile.load(BspFile.java:118) at info.ata4.bsplib.BspFile.load(BspFile.java:180) at info.ata4.bspsrc.BspSource.decompile(BspSource.java:107) at info.ata4.bspsrc.BspSource.run(BspSource.java:72) at info.ata4.bspsrc.gui.BspSourceFrame$4.run(BspSourceFrame.java:359) Caused by: java.lang.OutOfMemoryError: Map failed at sun.nio.ch.FileChannelImpl.map0(Native Method) ... 9 more

How to fix it?

scaredll avatar Oct 03 '21 17:10 scaredll

BspSource tries to load the whole bsp into ram. The error you got indicates that there wasn't enough ram available to do that. Depending on the file size of the bsp, you should be able to just close some programs to free up more memory.

rihi avatar Dec 20 '21 15:12 rihi

I'm still getting this error even with 11 of my 16gb free?

JonkaJake avatar Jun 02 '22 12:06 JonkaJake

[error] BspSource: Can't load D:\SteamLibrary\steamapps\workshop\content\4000\2028581413\temp\maps\rp_southside_day.bsp, caused by java.io.IOException: Map failed at sun.nio.ch.FileChannelImpl.map(Unknown Source) at info.ata4.io.buffer.ByteBufferUtils.openReadOnly(ByteBufferUtils.java:181) at info.ata4.io.buffer.ByteBufferUtils.openReadOnly(ByteBufferUtils.java:195) at info.ata4.bsplib.BspFile.createBuffer(BspFile.java:216) at info.ata4.bsplib.BspFile.load(BspFile.java:118) at info.ata4.bsplib.BspFile.load(BspFile.java:180) at info.ata4.bspsrc.BspSource.decompile(BspSource.java:107) at info.ata4.bspsrc.BspSource.run(BspSource.java:72) at info.ata4.bspsrc.gui.BspSourceFrame$4.run(BspSourceFrame.java:359) Caused by: java.lang.OutOfMemoryError: Map failed at sun.nio.ch.FileChannelImpl.map0(Native Method) ... 9 more

JonkaJake avatar Jun 02 '22 12:06 JonkaJake

Hm, yeah I don't know what else could be causing that. If you could share a map where that happens to you, I could try replicating it on my pc.

rihi avatar Nov 06 '22 00:11 rihi