question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

libGDX 1.9.2 crash on Mac OS X, GdxRuntimeException: AbstractMethodError on getBackBufferWidth()

See original GitHub issue

Issue 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:closed
  • Created 8 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
badlogiccommented, Mar 19, 2016

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:

Sure, here we go:

Configuration on demand is an incubating feature.
:core:compileJava UP-TO-DATE
:core:processResources UP-TO-DATE
:core:classes UP-TO-DATE
:core:jar UP-TO-DATE
:desktop:compileJava UP-TO-DATE
:desktop:processResources UP-TO-DATE
:desktop:classes UP-TO-DATE
:desktop:run
2016-03-19 22:13:49.905 java[76187:15488655] 22:13:49.905 WARNING: 140:
This application, or a library it uses, is using the deprecated Carbon
Component Manager for hosting Audio Units. Support for this will be removed
in a future release. Also, this makes the host incompatible with version 3
audio units. Please transition to the API's in AudioComponent.h.
Application: create() called
Exception in thread "LWJGL Application"
com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NoSuchMethodError:
com.badlogic.gdx.graphics.g2d.PixmapPacker.(IILcom/badlogic/gdx/graphics/Pixmap$Format;IZLcom/badlogic/gdx/graphics/g2d/PixmapPacker$PackStrategy;)V
at
com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:127)
Caused by: java.lang.NoSuchMethodError:
com.badlogic.gdx.graphics.g2d.PixmapPacker.(IILcom/badlogic/gdx/graphics/Pixmap$Format;IZLcom/badlogic/gdx/graphics/g2d/PixmapPacker$PackStrategy;)V
at
com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.generateData(FreeTypeFontGenerator.java:347)
at
com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.generateFont(FreeTypeFontGenerator.java:149)
at
com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.generateFont(FreeTypeFontGenerator.java:142)
at com.gangfort.game.utils.ResourceManager.(ResourceManager.java:44)
at
com.gangfort.game.utils.ResourceManager.getInstance(ResourceManager.java:32)
at com.gangfort.game.screens.SplashScreen.(SplashScreen.java:29)
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)

BUILD SUCCESSFUL

Total time: 9.603 secs
Mac-MacBook-Pro:GANGFORT gintas$ ```

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/libgdx/libgdx/issues/3946#issuecomment-198778767
0reactions
badlogiccommented, Mar 19, 2016

Oki, please close the issue 😃 On Mar 19, 2016 9:33 PM, “Gintas Z.” notifications@github.com wrote:

Yeah, turns out I had a bunch of libGDX’s jars inside core module. Everything works now, thanks man [image: 👍] 😉

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/libgdx/libgdx/issues/3946#issuecomment-198779995

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to understand LibGDX crash logs on iOS device
My libgdx app crashes from time to time on an iOS device. I received the device log from xcode, but it does not...
Read more >
Having some trouble with World : r/libgdx - Reddit
world = new World(new Vector2(0,0), true); this is where the program crashes Error message: Exception in thread "main"…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found