libGDX 1.9.2 crash on Mac OS X, GdxRuntimeException: AbstractMethodError on getBackBufferWidth()
See original GitHub issueIssue details
Getting this crash on Mac OS X 10.11.3 after updating from 1.7.2 to 1.9.2:
Exception in thread “LWJGL Application” com.badlogic.gdx.utils.GdxRuntimeException: java.lang.AbstractMethodError: com.badlogic.gdx.backends.lwjgl.LwjglGraphics.getBackBufferWidth()I at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:127) Caused by: java.lang.AbstractMethodError: com.badlogic.gdx.backends.lwjgl.LwjglGraphics.getBackBufferWidth()I at com.badlogic.gdx.graphics.glutils.HdpiUtils.glViewport(HdpiUtils.java:44) at com.badlogic.gdx.utils.viewport.Viewport.apply(Viewport.java:49) at com.badlogic.gdx.utils.viewport.ScalingViewport.update(ScalingViewport.java:62) at com.badlogic.gdx.scenes.scene2d.Stage.<init>(Stage.java:115) at com.badlogic.gdx.scenes.scene2d.Stage.<init>(Stage.java:91) at com.gangfort.game.screens.SplashScreen.<init>(SplashScreen.java:26) at com.gangfort.game.Application.create(Application.java:92) at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:143) at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:120)
Reproduction steps/code
Main class:
public class DesktopLauncher {
public static final int V_WIDTH = 1136;
public static final int V_HEIGHT = 640;
public static void main (String[] arg)
{
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
config.width = V_WIDTH;
config.height = V_HEIGHT;
config.initialBackgroundColor = Color.BLACK;
config.title = Application.TITLE;
DesktopPlatformSpecificWrapper wrapper = new DesktopPlatformSpecificWrapper();
new LwjglApplication(new Application(wrapper), config);
}
}
Crash line:
this.stage = new Stage();
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
Hrm, something must be messed up in your setup 😕 I can’t quite see what in the Gradle files you provided. Weirdly enough, the build via Gradle gives you a different error than the build in Android Studio. Did you wire up JARs manually in Android Studio somehow? On Mar 19, 2016 9:16 PM, “Gintas Z.” notifications@github.com wrote:
Oki, please close the issue 😃 On Mar 19, 2016 9:33 PM, “Gintas Z.” notifications@github.com wrote: