LWJGLCanvas broken

Hey guys,



since the last update i get the following nullpointer exception. I can’t say at what revision the error occurs, but i always update the engine once a week. Any ideas?



[java]java.lang.NullPointerException

at com.jme3.system.lwjgl.LwjglCanvas.restoreCanvas(LwjglCanvas.java:230)

at com.jme3.system.lwjgl.LwjglCanvas.runLoop(LwjglCanvas.java:180)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:207)

at java.lang.Thread.run(Thread.java:662)[/java]



Regards

Moe

Thanks, fixed

1 Like

Hey thanks,



but now there is an other issue:



[java]java.lang.NullPointerException

at com.jme3.post.FilterPostProcessor.reshape(FilterPostProcessor.java:281)

at com.jme3.post.FilterPostProcessor.initialize(FilterPostProcessor.java:118)

at com.jme3.renderer.RenderManager.notifyReshape(RenderManager.java:209)

at com.jme3.renderer.RenderManager.notifyReshape(RenderManager.java:233)

at com.jme3.app.Application.reshape(Application.java:354)

at framework.jme3.CityApplication.reshape(CityApplication.java:372)

at com.jme3.system.lwjgl.LwjglCanvas.runLoop(LwjglCanvas.java:188)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:207)

at java.lang.Thread.run(Thread.java:662)[/java]

renderer is null…

how comes the renderer can be null in renderManager?

How do you initialize your application?

I never do anything with the renderer. It seems to have something to do with the NullContext. I’ve nothing changed in my program for the last two weeks.



My initialize-method:



[java]@Override

public final void initialize() {

super.initialize();

registerLoaders();

buildSceneGraph();

MaterialManager.setup(assetManager);

cityIO = new CityIO(this);

pickManager = new PickManager(inputManager, cam, nodes.get(NodeType.CITY_BUILDING));

filterProcessor = new FilterPostProcessor(assetManager);



if (USE_POSTFILTER_AA) {

log.info("Setting " + POSTFILTER_ANTI_ALIASING + “x anti aliasing to PostFilterProcessor”);

filterProcessor.setNumSamples(POSTFILTER_ANTI_ALIASING);

}



viewPort.addProcessor(filterProcessor);

stateManager.attach(new ScreenshotAppState());

cam.setFrustumFar(FRUSTUM_FAR);

TestInputMapping.registerMappings(this);

fireOnApplicationInitialize();

moduleDialog = new ModuleDialog(this);

initialized = true;

log.info(“Successfully initialized CityApplication”);

synchronized (this) {

notify();

}

}[/java]

Its an issue introduced by Kirill, we talked about it. The render is in fact null, which is bad.

We are still thinking on how to fix this issue. I might be able to come up with a solution later today.

1 Like

Hey guys,



thank you for fixing that renderer bug. Application now works :wink:



Regards

Moe