Page 1 of 1

"Failed to add service" and other problems

Posted: Thu Jul 26, 2012 6:38 pm
by aleksi
Hi
I just got my pi and went straight to programming with opengl with it. I downloaded opengles-book examples (from https://github.com/benosteen/opengles-book-samples) and modified my existing gles2 code to use bcm_host. However, I ran into following problems:
-Most of sample code only causes flicker, not any graphics
-My code does the same
In trying to fix this, I ran rpi-update. After rebooting, no opengl applications work anymore. All opengl applications output the following:

Code: Select all

pi@raspberrypi:~/opengles-book-samples/Raspi/Chapter_2/Hello_Triangle$ ./CH02_HelloTriangle 
3422136784: * failed to add service - already in use?
I noticed that raspberry now booted in 1920x1200 fb mode by default, but lowering it to vga did not help? Is there something trivial I'm overlooking? Anybody have any ideas?

I was trying to port my simple android application:
Image

Thanks, Aleksi.

Re: "Failed to add service" and other problems

Posted: Fri Jul 27, 2012 6:06 am
by Toad King
I've recently been getting that same error, but only with programs compiled on the newer firmware update. Stuff compiled on an earlier update still work file.

Re: "Failed to add service" and other problems

Posted: Fri Jul 27, 2012 10:08 am
by dom
Toad King wrote:I've recently been getting that same error, but only with programs compiled on the newer firmware update. Stuff compiled on an earlier update still work file.
Hmmm, the ARM side libs have been rebuilt with the newer gcc-4.7.1 tools. Possibly an issue there.
I've just tried running ./rebuild.sh in hello_pi and hello_triangle works on 192M split.

Are you building on Pi?

Re: "Failed to add service" and other problems

Posted: Fri Jul 27, 2012 4:23 pm
by Toad King
I did some more testing, and it turns out only programs using GLES/OpenVG were failing, and it had nothing to do with the firmware they were compiled under. Programs just using OpenMAXIL (like omxplayer) worked fine. Going back to an old firmware version (with old libraries) fixed it.

Re: "Failed to add service" and other problems

Posted: Fri Jul 27, 2012 6:55 pm
by dff180
Have the same issue after rpi-update.
Recompiled (rebuild.sh) examples also with gcc-4.7.1 but same problem.

Compiling on RPI (Foundation Raspbian image)
Kernel 3.1.9+ #202
Running 128/128 split

Re: "Failed to add service" and other problems

Posted: Sat Jul 28, 2012 2:01 am
by dom
I think I've fixed this problem. Apologies for regression. Please update and test.

Re: "Failed to add service" and other problems

Posted: Sat Jul 28, 2012 12:53 pm
by dff180
GLES binaries (hello_triangle2,...) are running again after rpi-update.
thxdom.