OOM crash with 1.2.512 on Linux

Help center. Members helping members
Forum rules
This topic is 17 years and 6 months old. Instead of replying, please begin a new topic, or search for another related topic that may be more suitable.
BaseOrion
Member
Posts: 5
Joined: March 31st, 2007
Reputation: 0

Postby BaseOrion » Sat Oct 20, 2007 10:19 am

1.2.512 (on Linux) crashes for me with an out of memory error when starting a song. The "track" appears and just as the countdown is about to appear, it crashes.
I've got 540MB of free memory, that ought to be enough, I'd think...

Backtrace:

Code: Select all

 File "src/GameEngine.py", line 350, in run
  File "src/GameEngine.py", line 342, in main
  File "src/View.py", line 183, in render
  File "src/GuitarScene.py", line 372, in render
  File "src/Font.py", line 179, in render
  File "src/Font.py", line 155, in _renderString
  File "/usr/lib/python2.4/site-packages/OpenGL/error.py", line 188, in glCheckError
    baseOperation = baseOperation,
GLError: GLError(
        err = 1285,
        description = 'out of memory',
        baseOperation = glDrawArrays,
        cArguments = (GL_QUADS, 0, 4)
)
User avatar
MichallusTG
Member
Posts: 786
Joined: December 14th, 2006
Reputation: 0
Contact:

Postby MichallusTG » Sun Oct 21, 2007 2:39 am

Looks like GL3.0 is not stable with FoF, like Rogue_F said.
If you can make out some kind of memory manager, run FoF in a window and tell me how much memory it takes and how much spare RAM you have before it explodes.
Image
BaseOrion
Member
Posts: 5
Joined: March 31st, 2007
Reputation: 0

Postby BaseOrion » Sun Oct 21, 2007 3:23 am

Right from the start, it uses around 170MB. When starting a song, the free memory quickly spirals down from ~330MB to 0, ~70MB get released (Python's garbage collector?), crash. The swap isn't touched at all.
Rogue_F
Member
Posts: 1504
Joined: November 2nd, 2006
Reputation: 1

Postby Rogue_F » Sun Oct 21, 2007 6:09 am

high memory use is usually a sign of not using pyogg for streaming the ogg files.

pygame can only stream 1 ogg at a time, the rest need to be fully loaded into memory. with a gh2 track with song, guitar, and rhythm, thatcan be a lot of memory used

-Alex
CMTG
Member
Posts: 1
Joined: December 27th, 2007
Reputation: 0

Postby CMTG » Thu Dec 27, 2007 9:19 am

I get this error immediately on startup in both 1.2.512 and 1.2.451.

1.2.512 stack trace:

Code: Select all

[mbooth@mc FretsOnFire]$ ./FretsOnFire
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering.
Traceback (most recent call last):
  File "src/GameEngine.py", line 350, in run
  File "src/GameEngine.py", line 342, in main
  File "src/View.py", line 183, in render
  File "src/Menu.py", line 207, in render
  File "src/Font.py", line 179, in render
  File "src/Font.py", line 155, in _renderString
  File "/usr/lib/python2.4/site-packages/OpenGL/error.py", line 188, in glCheckError
GLError: GLError(
        err = 1285,
        description = 'out of memory',
        baseOperation = glDrawArrays,
        cArguments = (GL_QUADS, 0, 36)
)


1.2.451 stack trace:

Code: Select all

[mbooth@mc FretsOnFire]$ ./FretsOnFire
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering.
Traceback (most recent call last):
  File "src/GameEngine.py", line 350, in run
  File "src/GameEngine.py", line 324, in loading
  File "src/View.py", line 183, in render
  File "src/Dialogs.py", line 264, in render
  File "src/Font.py", line 179, in render
  File "src/Font.py", line 155, in _renderString
  File "/usr/lib/python2.4/site-packages/OpenGL/error.py", line 188, in glCheckError
GLError: GLError(
        err = 1285,
        description = 'out of memory',
        baseOperation = glDrawArrays,
        cArguments = (GL_QUADS, 0, 40)
)


Using Fedora 8 (2.6.23.9-85.fc8), nVidia Geforce FX, 1Gb memory.

For what it's worth, I also filed this bug in SourceForge:
http://sourceforge.net/tracker....=900254
Last edited by CMTG on Thu Dec 27, 2007 9:25 am, edited 1 time in total.
lester
Member
Posts: 8
Joined: December 26th, 2007
Location: Ukraine
Reputation: 0

Postby lester » Thu Dec 27, 2007 9:39 am

>NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).

Maybe you should add
Section "DRI"
Mode "666"
EndSection

into your xorg.conf?
User avatar
NickGreen91
Member
Posts: 948
Joined: June 11th, 2007
Location: Orange, CA
Reputation: 0
Contact:

Postby NickGreen91 » Thu Dec 27, 2007 1:58 pm

CMTG wrote:I get this error immediately on startup in both 1.2.512 and 1.2.451.

1.2.512 stack trace:

Code: Select all

[mbooth@mc FretsOnFire]$ ./FretsOnFire
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering.
Traceback (most recent call last):
  File "src/GameEngine.py", line 350, in run
  File "src/GameEngine.py", line 342, in main
  File "src/View.py", line 183, in render
  File "src/Menu.py", line 207, in render
  File "src/Font.py", line 179, in render
  File "src/Font.py", line 155, in _renderString
  File "/usr/lib/python2.4/site-packages/OpenGL/error.py", line 188, in glCheckError
GLError: GLError(
        err = 1285,
        description = 'out of memory',
        baseOperation = glDrawArrays,
        cArguments = (GL_QUADS, 0, 36)
)


1.2.451 stack trace:

Code: Select all

[mbooth@mc FretsOnFire]$ ./FretsOnFire
NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering.
Traceback (most recent call last):
  File "src/GameEngine.py", line 350, in run
  File "src/GameEngine.py", line 324, in loading
  File "src/View.py", line 183, in render
  File "src/Dialogs.py", line 264, in render
  File "src/Font.py", line 179, in render
  File "src/Font.py", line 155, in _renderString
  File "/usr/lib/python2.4/site-packages/OpenGL/error.py", line 188, in glCheckError
GLError: GLError(
        err = 1285,
        description = 'out of memory',
        baseOperation = glDrawArrays,
        cArguments = (GL_QUADS, 0, 40)
)


Using Fedora 8 (2.6.23.9-85.fc8), nVidia Geforce FX, 1Gb memory.

For what it's worth, I also filed this bug in SourceForge:
http://sourceforge.net/tracker....=900254

Technically thats not a bug.
You need to delete your original version 1.2.512 ini
called "fretsonfire.ini" usually...
the thing is since its on Linux, I have no idea where that is.
My 'Band Site' -- ReverbNation
Karate Joe - Nick Green AMAZING ONLY! -- View Topic
Image

Return to “Tech Support”

Who is online

Users browsing this forum: No registered users and 6 guests