NASAWorldWind / WorldWindJava

The NASA WorldWind Java SDK (WWJ) is for building cross-platform 3D geospatial desktop applications in Java.
720 stars 327 forks source link

OpenGL error when programmatically zooming in on north pole #34

Open basisbit opened 7 years ago

basisbit commented 7 years ago

Using the example nww Java template (or any custom nww implementation), zooming in programmatically when the north pole is about centered on the map view, nww crashed and throws some OpenGL error "javax.media.opengl.GLException: GL-Error 0x505 while creating mutable storage for target".

To reproduce, center the northpole, and use a JButton to zoom in using the following code: ((BasicOrbitView) wwd.getView()).setZoom(((BasicOrbitView) wwd.getView()).getZoom()/2); wwd.redrawNow();. Quickly press the zoom button a couple of times.

Reproducible on different (current hardware) systems. Java callstack of the error: https://gist.github.com/basisbit/717aaeb29023bfb527c6964c507fd778

After this error, the application is frozen - I guess because of some endless loop within redrawNow() / rendering.

basisbit commented 7 years ago

This seems to be independent from the enabled layers list. Also happens when only one RenderableLayer consisting of a 1pixel x 1pixel grey SurfaceImage with Sector.FULL_SPHERE is enabled.