FIX: open of shared memory object failed

Friday, July 14th, 2006 at 8:41 pm | 12,041 views | trackback url

If you’re using the ATI driver (fglrx) on your Linux machine and are suddenly getting these errors:

FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!
FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!
FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!
FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!

But your 3D/OpenGL application works as root, the fix is to add the following line to your /etc/fstab file:

tmpfs   /dev/shm   tmpfs   defaults   0   0

Then type “mount tmpfs” to mount it:

Voila! No more errors.

Last Modified: Friday, July 14th, 2006 @ 20:41

5 Responses to “FIX: open of shared memory object failed”

  1. Wicked, thanks for that. Where did you pick up the fix from? I had a strange case where it _did_ work at first, w/out this fix, then stopped again…

  2. Just great! Thank you for this tip ….. now it works fine ;)

  3. Thanks for the fix!

  4. yay, that worked, fixed google earth and second life, I wonder what causes it though!

  5. Greetings! Very helpful advice in this particular article!
    It is the little changes which will make the largest changes.
    Thanks a lot for sharing!


Leave a Reply

You must be logged in to post a comment.

Bad Behavior has blocked 969 access attempts in the last 7 days.