Gibble
Posts: 56
Joined: Wed May 09, 2012 9:52 am

pi3d egl assertion error

Sun Dec 23, 2012 11:15 am

Hi,

I'm trying to get the pi3d starting example going, https://github.com/tipam/pi3d/wiki/Pi3D-Getting-Started

When I run that code I get an error...


Pi3D module - version 0.07
Copyright (c) Tim Skillman, 2012
Updates available from www.github.com/tipam/pi3d
Screen size 1680 1050
Traceback (most recent call last):
File "test.py", line 3, in <module>
display = pi3d.display()
File "/home/pi/pi3d/tipam-pi3d-1061894/pi3d.py", line 150, in __init__
create_display(self,x,y,w,h,depth)
File "include/pi3dCommon.py", line 585, in create_display
create_surface(self,x,y,w,h)
File "include/pi3dCommon.py", line 623, in create_surface
assert self.surface != EGL_NO_SURFACE
AssertionError

(Note, if I try the bouncing balls demo for example, this works).

Gibble
Posts: 56
Joined: Wed May 09, 2012 9:52 am

Re: pi3d egl assertion error

Sun Dec 23, 2012 11:20 am

Actually I think its the first line of the example...

scnx=800
scny=600
display = pi3d.display(100,100,scnx,scny,0)

Works, but this doesn't.

display = pi3d.display()

Not sure if thats something to do with my Pi, or maybe display needs some parameters or default causes the error ? Will dig later.

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

Re: pi3d egl assertion error

Tue Dec 25, 2012 12:34 am

graphics processor memory allocation? (Waiting till it's clear to put stockings at ends of beds!)
also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

Return to “Python”