Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hello_triangle failed after update #2

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

hello_triangle failed after update #2

FrankBuss opened this issue May 4, 2012 · 3 comments

Comments

@FrankBuss
Copy link

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
Copy link
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
Copy link
Author

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
Copy link
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 as completed May 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant