[0.9.8][cube] LINUX Problem with Factorio crashing!

This subforum contains all the issues which we already resolved.
Algram
Inserter
Inserter
Posts: 33
Joined: Sun Jan 26, 2014 10:28 am
Contact:

[0.9.8][cube] LINUX Problem with Factorio crashing!

Post 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 :D

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.
hikkiko
Burner Inserter
Burner Inserter
Posts: 11
Joined: Sat Apr 12, 2014 10:08 pm
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post by hikkiko »

do you have proprietary drivers? I had to install it for my radeon6670 to play modded factorio on ubuntu.
Algram
Inserter
Inserter
Posts: 33
Joined: Sun Jan 26, 2014 10:28 am
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post 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!
Algram
Inserter
Inserter
Posts: 33
Joined: Sun Jan 26, 2014 10:28 am
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post by Algram »

*bump*
*cries and runs away*

EDIT: Do you guys have an IRC?
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post by kovarex »

Do you have just one active GPU or more?
User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post 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?
I have no idea what I'm talking about.
Algram
Inserter
Inserter
Posts: 33
Joined: Sun Jan 26, 2014 10:28 am
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post 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)
Algram
Inserter
Inserter
Posts: 33
Joined: Sun Jan 26, 2014 10:28 am
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post by Algram »

*push*
Algram
Inserter
Inserter
Posts: 33
Joined: Sun Jan 26, 2014 10:28 am
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post by Algram »

*bump*
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post 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.
Algram
Inserter
Inserter
Posts: 33
Joined: Sun Jan 26, 2014 10:28 am
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post by Algram »

That would be so nice! Thank you!

And take your time, no need to rush anything, I can wait (:
User avatar
daryltucker
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat May 17, 2014 3:41 pm
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post by daryltucker »

The libpng warnings can be suppressed by doing the following:

Code: Select all

$ cd /path/to/factorio/data 

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
User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post by cube »

... but it also makes updates impossible :-)
I have no idea what I'm talking about.
Algram
Inserter
Inserter
Posts: 33
Joined: Sun Jan 26, 2014 10:28 am
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post by Algram »

And it still doesnt fix the actual problem :/
Algram
Inserter
Inserter
Posts: 33
Joined: Sun Jan 26, 2014 10:28 am
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post 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
User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post by cube »

Algram wrote:Btw, when i start the game on low-res, I get a new "error" now: https://dl.dropboxusercontent.com/u/178 ... 7%3A38.png
the game runs otherwise ok with this error?
I have no idea what I'm talking about.
Algram
Inserter
Inserter
Posts: 33
Joined: Sun Jan 26, 2014 10:28 am
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post 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 (;
Algram
Inserter
Inserter
Posts: 33
Joined: Sun Jan 26, 2014 10:28 am
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post by Algram »

What about the "testing build" you mentioned, is this still an option? (:
Blackence
Fast Inserter
Fast Inserter
Posts: 109
Joined: Thu Jun 05, 2014 4:03 pm
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post 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.
User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: [0.9.8] LINUX Problem with Factorio crashing!

Post 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.
I have no idea what I'm talking about.
Post Reply

Return to “Resolved Problems and Bugs”