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.
Liam said on September 10th, 2006 at 2:21 pm quote
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…
db said on October 30th, 2006 at 3:35 pm quote
Just great! Thank you for this tip ….. now it works fine ;)
Jack said on January 12th, 2007 at 6:38 pm quote
Thanks for the fix!
sean said on January 30th, 2007 at 7:31 am quote
yay, that worked, fixed google earth and second life, I wonder what causes it though!
Laser eye surgery said on April 21st, 2013 at 4:27 am quote
Greetings! Very helpful advice in this particular article!
It is the little changes which will make the largest changes.
Thanks a lot for sharing!