aleksi
Posts: 1
Joined: Thu Jul 26, 2012 5:58 pm

"Failed to add service" and other problems

Thu Jul 26, 2012 6:38 pm

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.

User avatar
Toad King
Posts: 157
Joined: Sun Dec 18, 2011 8:03 pm

Re: "Failed to add service" and other problems

Fri Jul 27, 2012 6:06 am

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.

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

Re: "Failed to add service" and other problems

Fri Jul 27, 2012 10:08 am

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?

User avatar
Toad King
Posts: 157
Joined: Sun Dec 18, 2011 8:03 pm

Re: "Failed to add service" and other problems

Fri Jul 27, 2012 4:23 pm

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.

dff180
Posts: 5
Joined: Tue Jun 26, 2012 9:00 pm

Re: "Failed to add service" and other problems

Fri Jul 27, 2012 6:55 pm

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

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

Re: "Failed to add service" and other problems

Sat Jul 28, 2012 2:01 am

I think I've fixed this problem. Apologies for regression. Please update and test.

dff180
Posts: 5
Joined: Tue Jun 26, 2012 9:00 pm

Re: "Failed to add service" and other problems

Sat Jul 28, 2012 12:53 pm

GLES binaries (hello_triangle2,...) are running again after rpi-update.
thxdom.

Return to “OpenGLES”