Android Question java.lang.RuntimeException ERR

Discussion in 'Android Questions' started by coldteam, Apr 11, 2019.

  1. coldteam

    coldteam Member Licensed User

    Hello, I ask for help. In my game on libgdx, an error began to appear:
    Code:
    java.lang.RuntimeException:
      at android.os.Handler.<init> (Handler.java:
    203)
      at android.os.Handler.<init> (Handler.java:
    117)
      at android.app.Dialog.<init> (Dialog.java:
    142)
      at android.app.AlertDialog.<init> (AlertDialog.java:
    201)
      at android.app.AlertDialog$Builder.create (AlertDialog.java:
    1107)
      at anywheresoftware.b4a.BA.ShowErrorMsgbox (BA.java:
    270)
      at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:
    234)
      at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:
    180)
      at anywheresoftware.b4a.libgdx.LibGDX$b.render (SourceFile:
    154)
      at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame (SourceFile:
    449)
      at android.opengl.GLSurfaceView$GLThread.guardedRun (
    GLSurfaceView.java:1571)
      at android.opengl.GLSurfaceView$GLThread.run (
    GLSurfaceView.java:1270)
    any ideas ?
     
  2. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    Are you running in debug or release mode?

    - Colin.
     
  3. coldteam

    coldteam Member Licensed User

    libgdx application cannot be started in debug mode. I can not catch the error. and then when it happens

    2 times this happened to me during the main draw cycle.
     
  4. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    That's why I was asking. You can run libGDX apps in debug mode, but they are very unstable & have a tendency to randomly crash.

    - Colin.
     
  5. coldteam

    coldteam Member Licensed User

    this happens in the working version. I began to receive reports in the developer console.
     
  6. coldteam

    coldteam Member Licensed User

    I'm using msgbox in the game, but I don't think the error is related to this. because the message is shown in the game settings and is not called from the main draw cycle.
     
  7. Computersmith64

    Computersmith64 Well-Known Member Licensed User

  8. coldteam

    coldteam Member Licensed User

    Yes, I read it. but no solution was found.
     
  9. coldteam

    coldteam Member Licensed User

    I got this error, maybe it is related
    Code:
    ~e:java.util.ConcurrentModificationException
    ~e:    at java.util.LinkedList$ListItr.checkForComodification(
    LinkedList.java:966)
    ~e:    at java.util.LinkedList$ListItr.next(
    LinkedList.java:888)
    ~e:    at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:
    247)
    ~e:    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    190)
    ~e:    at anywheresoftware.b4a.BA$
    2.run(BA.java:370)
    ~e:    at android.os.Handler.handleCallback(Handler.java:
    789)
    ~e:    at android.os.Handler.dispatchMessage(Handler.java:
    98)
    ~e:    at android.os.Looper.loop(Looper.java:
    164)
    ~e:    at android.app.ActivityThread.main(ActivityThread.java:
    6938)
    ~e:    at java.lang.reflect.Method.invoke(Native Method)
    ~e:    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:
    327)
    ~e:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
    1374)
    java.util.ConcurrentModificationException
        at java.util.LinkedList$ListItr.checkForComodification(
    LinkedList.java:966)
        at java.util.LinkedList$ListItr.next(
    LinkedList.java:888)
        at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:
    247)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:
    190)
        at anywheresoftware.b4a.BA$
    2.run(BA.java:370)
        at android.os.Handler.handleCallback(Handler.java:
    789)
        at android.os.Handler.dispatchMessage(Handler.java:
    98)
        at android.os.Looper.loop(Looper.java:
    164)
        at android.app.ActivityThread.main(ActivityThread.java:
    6938)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:
    327)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
    1374)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice