Page 1 of 2
[0.9.8][cube] LINUX Problem with Factorio crashing!
Posted: Sat Apr 19, 2014 6:09 pm
by Algram
Hello,
I am running Fedora 20 with gnome-shell and the open source Radeon driver.
If i try to start Factorio without the "low graphics setting" enabled, i get this error message:
Code: Select all
[user@localhost x64]$ sudo ./factorio
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
radeon: Failed to allocate a buffer:
radeon: size : 402653184 bytes
radeon: alignment : 32768 bytes
radeon: domains : 4
radeon: Failed to allocate a buffer:
radeon: size : 402653184 bytes
radeon: alignment : 32768 bytes
radeon: domains : 4
Couldn't create atlas bitmap (size 16384X6031).
Probably not enough video memory.
Turning low graphics options on, please restart the game.
I am running a AMD Radeon HD 7870 and have clearly enough memory, but it still shows me i dont have enough.
I think this is a Problem with OpenGL, because Factorio cant ask how much video memory i have and thus it allocates to few of it.
I hope you can fix this soon, I reeeeally want to play Factorio day and night again
EDIT: I know of the various Problem on Mac and so on, but this is different, because i actually have ENOUGH video memory and it still does not allocate it all.
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Mon Apr 21, 2014 8:48 am
by hikkiko
do you have proprietary drivers? I had to install it for my radeon6670 to play modded factorio on ubuntu.
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Mon Apr 21, 2014 9:46 am
by Algram
No I do not and I also can't install them, because AMD is a ***** when it comes to drivers for Linux.
Anyways this is not a driver problem, it should work perfectly fine with the open source driver.
Even when I run Factorio in a Virtual Box Linux, it works!
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Tue Apr 22, 2014 6:06 pm
by Algram
*bump*
*cries and runs away*
EDIT: Do you guys have an IRC?
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Wed Apr 23, 2014 1:36 pm
by kovarex
Do you have just one active GPU or more?
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Wed Apr 23, 2014 2:05 pm
by cube
Isn't it some security thingie related to running factorio as root? What does it do when you launch it as a regular user?
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Wed Apr 23, 2014 7:26 pm
by Algram
Hey, thanks for answering!
I have only one GPU and when I start it without "sudo" I get the same warning and sometimes my game even freezes my whole system and I have to shut it down (with both "sudo" and without)
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Fri Apr 25, 2014 4:23 pm
by Algram
*push*
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Sat Apr 26, 2014 9:52 am
by Algram
*bump*
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Sat Apr 26, 2014 10:01 am
by kovarex
Eh ...
We try to solve the bugs usually before the release, so we don't ignore you.
Anyway, judging just from the log, the problem might be, that it is trying to make the atlas bitmap too large (16384X6031).
The game recieves the info about the biggest possible size of the bitmap from the system, and I have never seen larger than 8192.
There is no easy way to test it now, maybe we could add settings to config, that could overwrite this value and force the system to try smaller atlas bitmap, if I get time, I could make special testing build for that, so you can try it.
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Sat Apr 26, 2014 10:06 am
by Algram
That would be so nice! Thank you!
And take your time, no need to rush anything, I can wait (:
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Sat May 17, 2014 3:48 pm
by daryltucker
The libpng warnings can be suppressed by doing the following:
Code: Select all
$ for i in $(find ./ -type f -name "*.png")
do
convert $i -strip $i
done
This does not guarantee an actual fix, but will make your console much quieter.
More information
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Wed May 21, 2014 8:07 am
by cube
... but it also makes updates impossible

Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Fri May 23, 2014 8:54 am
by Algram
And it still doesnt fix the actual problem :/
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Fri May 23, 2014 3:13 pm
by Algram
Btw, when i start the game on low-res, I get a new "error" now:
https://dl.dropboxusercontent.com/u/178 ... 7%3A38.png
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Wed May 28, 2014 8:17 am
by cube
the game runs otherwise ok with this error?
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Thu May 29, 2014 10:58 am
by Algram
Yeah, on low-res graphics it does.
It just thinks I dont have enough VideoRam, because OpenGL does not provide that.
So it just assumes I have not enough (;
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Sun Jun 01, 2014 10:03 am
by Algram
What about the "testing build" you mentioned, is this still an option? (:
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Thu Jun 05, 2014 4:14 pm
by Blackence
I get this similar error using Radeon HD 6870 (1GB VRAM) on Ubuntu 14.04 (i.e. Linux 3.13 with Ubuntu patches and mesa 10.1):
Code: Select all
radeon: Failed to allocate a buffer:
radeon: size : 402653184 bytes
radeon: alignment : 65536 bytes
radeon: domains : 4
radeon: Failed to allocate a buffer:
radeon: size : 402653184 bytes
radeon: alignment : 65536 bytes
radeon: domains : 4
Couldn't create atlas bitmap (size 16384X6029).
Probably not enough video memory.
Turning low graphics options on, please restart the game.
So the atlas bitmap is just a little bit smaller in my case.
Your response sounds like this is a driver bug, am I reading that correctly? I.e. something reports 16k when it should report a smaller number? Or is it okay for the driver to return 16k and then factorio has some invalid assumptions based on that big number?
If you can go into a little more detail about the possible driver bug, I'd be happy to send a bug report to the mesa bugtracker so maybe someone can fix the driver.
Re: [0.9.8] LINUX Problem with Factorio crashing!
Posted: Fri Jun 06, 2014 10:00 am
by cube
I'm not sure. Factorio tries to detect maximal texture size (which seems to be 16k times 16k for this card, and wikipedia agrees), and allocate the texture through allegro. So I would say its either bug in allegro or in your graphics driver.... who knows

There are more problems around the allocation of these buffers, we will be looking into this pretty soon.