Re: OSGi with Bndtools and Apache Felix throws exception
Posted by
Wade Walker on
Mar 25, 2013; 8:29pm
URL: https://forum.jogamp.org/OSGi-with-Bndtools-and-Apache-Felix-throws-exception-tp4028765p4028810.html
Looking at the log, I see
wglARBPFIDs2GLCapabilities: Invalid pfdID 0/1: 0
updateGraphicsConfigurationARB: wglARBPFIDs2GLCapabilities failed with 1 pfd ids
It's failing to choose a pixel format for some reason. I'm not sure why that might happen, maybe Sven could help on this if you submit a bug report at
https://jogamp.org/bugzilla/.
One other thing you could try: find a Felix-based program that shows some normal AWT graphics window, and look to see how/where they create their window. Then put your JOGL initialization stuff in the same spot in your program. I noticed you're trying to start JOGL in the Activator.start() method, but this may be too early in the app lifecycle, or on a non-GUI thread, or something else that won't let JOGL work properly.
In my Eclipse RCP apps, I don't start JOGL until the app is creating the window that I'm going to display into (inside View.createPartControl()) -- maybe there's an equivalent location for Felix apps?