[posila][16.0][Win10] GL_OUT_OF_MEMORY (but actually isn't?)

This subforum contains all the issues which we already resolved.
Post Reply
piderman
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Dec 13, 2017 7:39 pm
Contact:

[posila][16.0][Win10] GL_OUT_OF_MEMORY (but actually isn't?)

Post by piderman »

How to reproduce:

- Have a baseline of about 1GB video memory used (Firefox, Spotify etc)
- Start game
- Video memory usage approaches 3GB
- This error appears

The error does not appear when baseline is around 600MB and total usage including game is around 2.6GB. And in that case I can start other programs to exceed 3GB of memory just fine.

I have a GTX980 with 4GB memory total so 3GB should be totally doable, still Factorio has this error. Drivers are 388.31 .
Attachments
factorio-current.log
(3.72 KiB) Downloaded 90 times

piderman
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Dec 13, 2017 7:39 pm
Contact:

Re: [16.0][Win10] GL_OUT_OF_MEMORY (but actually isn't?)

Post by piderman »

An observation (not sure how accurate): I am able to reproduce the message 100% and no matter what my baseline video memory, the error always seems to happen with one of the artillery wagon textures.

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [16.0][Win10] GL_OUT_OF_MEMORY (but actually isn't?)

Post by orzelek »

Try reducing max atlas size - it might be that it's trying to grab very big texture and due to memory fragmentation is unable to do so at given moment and dies with out of memory error.

piderman
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Dec 13, 2017 7:39 pm
Contact:

Re: [16.0][Win10] GL_OUT_OF_MEMORY (but actually isn't?)

Post by piderman »

Well yes it feels like it is trying to allocate over 1GB of video memory and then using only a few megabytes of it. I don't think it's due to memory fragmentation since it always happens above a certain memory usage and never below that limit (which is about 1.1GB below the max available video memory).

Koub
Global Moderator
Global Moderator
Posts: 7200
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: [16.0][Win10] GL_OUT_OF_MEMORY (but actually isn't?)

Post by Koub »

I wonder why it uses OpenGL on your machine. On mine, it still uses D3D
Koub - Please consider English is not my native language.

piderman
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Dec 13, 2017 7:39 pm
Contact:

Re: [16.0][Win10] GL_OUT_OF_MEMORY (but actually isn't?)

Post by piderman »

Hmm I'll have a look at the boot options later today. I have set it to OpenGL sometime in the past because of some graphical issues and never set it back.

Koub
Global Moderator
Global Moderator
Posts: 7200
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: [posila][16.0][Win10] GL_OUT_OF_MEMORY (but actually isn't?)

Post by Koub »

Some other guy posted a question about SLI support (he had extreme performance drop while in SLI, compared to when he had it disabled). I'll try to find the post. I see you have a GTX 980 SLI, so ...
[Edit] There it is : viewtopic.php?f=49&t=54695
Koub - Please consider English is not my native language.

piderman
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Dec 13, 2017 7:39 pm
Contact:

Re: [posila][16.0][Win10] GL_OUT_OF_MEMORY (but actually isn't?)

Post by piderman »

Ok this seems to have been fixed, I suspect together with viewtopic.php?t=54548 .

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [posila][16.0][Win10] GL_OUT_OF_MEMORY (but actually isn't?)

Post by posila »

piderman wrote:Ok this seems to have been fixed, I suspect together with viewtopic.php?t=54548 .
Does it work reliably now?
I can see it fails on the almost same file as in the thread you linked, but in that thread GDI+ refused to decompress PNG file with "Out of memory" error code; you got out of memory from OpenGL

Post Reply

Return to “Resolved Problems and Bugs”