nathanturk2
Posts: 12
Joined: Tue Jan 06, 2015 7:31 pm

Pi3d stopped working

Fri Apr 03, 2015 8:19 am

Recently Pi3d has stopped working. Whenever I try to open a program like Silo or Starfield I get this error:

libEGL warning: DRI2: failed to authenticate
Traceback (most recent call last):
File "/usr/local/bin/indiecity/InstalledApps/skillmanmedia/Full/pi3d_demos/Starfield.py", line 13, in <module>
DISPLAY = pi3d.Display.create(x=50, y=50)
File "/usr/local/lib/python3.2/dist-packages/pi3d/Display.py", line 496, in create
display.opengl.create_display(x, y, w, h, depth=depth, samples=samples)
File "/usr/local/lib/python3.2/dist-packages/pi3d/util/DisplayOpenGL.py", line 64, in create_display
self.create_surface(x, y, w, h)
File "/usr/local/lib/python3.2/dist-packages/pi3d/util/DisplayOpenGL.py", line 147, in create_surface
assert self.surface != EGL_NO_SURFACE
AssertionError

Does anyone know how to fix this?

ps I have tried to reinstall whatever packages were related to libEGL

nathanturk2
Posts: 12
Joined: Tue Jan 06, 2015 7:31 pm

Re: Pi3d stopped working

Sat Apr 04, 2015 2:59 pm

Note: I am using Noobs (Raspbian)

toxibunny
Posts: 1382
Joined: Thu Aug 18, 2011 9:21 pm

Re: Pi3d stopped working

Sat Apr 04, 2015 10:20 pm

have you changed the amount of memory allocated for graphics recently?
note: I may or may not know what I'm talking about...

nathanturk2
Posts: 12
Joined: Tue Jan 06, 2015 7:31 pm

Re: Pi3d stopped working

Thu Apr 16, 2015 7:19 pm

I have had my rpi 2 for quite some time now but I at least assume that I haven't changed the memory allocation...

nathanturk2
Posts: 12
Joined: Tue Jan 06, 2015 7:31 pm

Re: Pi3d stopped working

Thu Apr 16, 2015 7:39 pm

I have set the memory allocation to 256 mb (or MB is it?) and I still get the same error.

p.s. not even the 2D demos work...

p.p.s. the 2D demos don't give any errors, they just don't start

User avatar
paddyg
Posts: 2332
Joined: Sat Jan 28, 2012 11:57 am
Location: UK

Re: Pi3d stopped working

Fri Apr 17, 2015 9:07 am

@nathanturk2 from the way you phrased your question it sounds like pi3d used to work fine. There have been a few occasions where "something else" has installed files on the Raspberry Pi that basically don't work but "supersede" the correct files. see here
http://pi3d.github.io/html/FAQ.html Q2 and Q7

try running the find command I suggest there, if you get copies of the shared libraries that are not in/opt/vc/lib/ (ie in /usr/lib/arm-linux-gnueabihf/ or elsewhere) then they have to be destroyed! (or symlinked around) If this does turn out to be your problem then it would be useful if you could identify what might have installed the rogue files! (If it's not the solution let me know and I will look further into it)
also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

nathanturk2
Posts: 12
Joined: Tue Jan 06, 2015 7:31 pm

Re: Pi3d stopped working

Fri Apr 17, 2015 1:27 pm

Let me test that...

nathanturk2
Posts: 12
Joined: Tue Jan 06, 2015 7:31 pm

Re: Pi3d stopped working

Fri Apr 17, 2015 1:35 pm

Thankyou! I used Q7 as a solution and after typing all of the commands (which I personally didn't entirely understand) it worked! Everything works fine now.

User avatar
paddyg
Posts: 2332
Joined: Sat Jan 28, 2012 11:57 am
Location: UK

Re: Pi3d stopped working

Fri Apr 17, 2015 2:56 pm

@nathanturk2, good news. Have you any idea what you installed that put the rubbish onto the system? That would be useful info for the maintainers of raspbian (and theoretically the application in question). If you don't know you could run the script I suggest here:
viewtopic.php?p=323492#p323492
which might remind you, or else just post the results back here (with an approx date that pi3d stopped working) and I will work my way through the list to find the culprit.
also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

Return to “Troubleshooting”