Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: error - FATAL EXCEPTION: GLThread 87

  1. #1
    Join Date
    Mar 2013
    Thanked 0 Times in 0 Posts

    Default error - FATAL EXCEPTION: GLThread 87

    I am using libGDX. my core, and desktop project work fine but when i run android project it give me errors. any idea what is this error and how to fix it?

    01-07 12:59:17.348: E/AndroidRuntime(911): FATAL EXCEPTION: GLThread 87
    01-07 12:59:17.348: E/AndroidRuntime(911): java.lang.VerifyError: com/mine/Entity/Player
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.GameStates.S3_PlayState.init(S3_PlayState.java:60)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.GameStates.GameState.<init>(GameState.java:10)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.GameStates.S3_PlayState.<init>(S3_PlayState.java:45)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.GameStates.GameStateManager.loadState(GameStateManager.java:37)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.GameStates.GameStateManager.<init>(GameStateManager.java:22)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.asteroid.MyGdxGame.create(MyGdxGame.java:54)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:334)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1505)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

    s3_PlayState.class - line 60
    playerBulletsObj = new ArrayList<PlayerBullets>(); //line 59
    playerObj = new Player(playerBulletsObj); //line 60

  2. #2
    Forum VIP
    Join Date
    Jun 2011
    My Mood
    Thanked 89 Times in 74 Posts
    Blog Entries

    Default Re: error - FATAL EXCEPTION: GLThread 87

    I'm not very familiar with libGDX but a VerifyError usually means that you are targeting an API level that isn't supported. What API level? Try bumping it up to 4.2 or something high end and see if that helps.

    Before this can you confirm your dev environment is set up for libGDX? For example, can you run the sample code? I ask because the few times I have used it I remember it being a b**ch to set up and unforgiving if the libraries aren't being exported correctly. Pay special attention to the build path and make sure you can follow the New Project guide step by step.

Similar Threads

  1. need help with this exception error
    By booshmahn in forum Exceptions
    Replies: 1
    Last Post: August 25th, 2013, 03:00 AM
  2. NullPointer exception error
    By davx in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 18th, 2012, 01:08 PM
  3. Right way to code a static initializer with fatal error?
    By Sean4u in forum Java Theory & Questions
    Replies: 5
    Last Post: September 27th, 2011, 02:47 PM
  4. "java.lang.NoSuchMethodError: main" and "fatal exception occured."
    By joachim89 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 10th, 2010, 08:35 AM
  5. Replies: 4
    Last Post: June 18th, 2009, 09:23 AM