hello_triangle failed after update #2

Closed
FrankBuss opened this Issue May 4, 2012 · 3 comments

Projects

None yet

2 participants

@FrankBuss

after executing your script on a clean debian6-19-04-2012.zip installation (just installed "git-core" before to install all certificates for the script), the program /opt/vc/src/hello_pi/hello_triangle doesn't work anymore.
hello_triangle.bin: triangle.c:167: init_ogl: Assertion `state->surface != ((EGLSurface)0)' failed.

@Hexxeh
Owner
Hexxeh commented May 6, 2012

I've had a quick look at the code for this, and I'd hazard a guess it's probably because the GPU memory split is set too low.

Try running rpi-update 192 and then run hello_triangle again.

@FrankBuss

Thanks, with "rpi-update 192" the triangle example worked. Maybe it was some graphics RAM issue? "opt/vc/bin/tvservice -s" on my device says "state 0x120016, 1920x1200 @ 60Hz, progressive" after installing the 19-04 image.

@Hexxeh
Owner
Hexxeh commented May 6, 2012

Yeah, if you're using the default 224MB split it's not enough, that's why you see the error.

@Hexxeh Hexxeh closed this May 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment