mikerr
Posts: 2825
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

GL Surface locked - even after reboot

Mon Jul 23, 2012 10:05 am

I've been playing around with OPENGLES in C and pi3d/python - then it all stopped working with assert: surface errors.

No problem I thought, its hung onto a resource - just reboot - but the problem persists even after a power down overnight.

Even hello_triangle no longer works:

Code: Select all

./hello_triangle.bin
hello_triangle.bin: triangle.c:174: init_ogl: Assertion `state->surface != ((EGLSurface)0)' failed.
Aborted
Android app - Raspi Card Imager - download and image SD cards - No PC required !

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: GL Surface locked - even after reboot

Mon Jul 23, 2012 10:20 am

Are you sure you didn't switch to the 224M memory split?

mikerr
Posts: 2825
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: GL Surface locked - even after reboot

Mon Jul 23, 2012 10:32 am

Just did an rpi-update to check and YES, its on 224/32 !

Pretty sure I didn't change that last night, last changes were the start_elf sound fix
(was that set to 224/32?)
Otherwise I must have been changing things when half asleep or changed it without rebooting.

Changed to 128/128, reboot and all is fine again.

Thanks for the quick thinking !
Android app - Raspi Card Imager - download and image SD cards - No PC required !

Return to “OpenGLES”