Android Question java.lang.RuntimeException ERR

coldteam

Active Member
Licensed User
Longtime User
Hello, I ask for help. In my game on libgdx, an error began to appear:
B4X:
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 ?
 

coldteam

Active Member
Licensed User
Longtime 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.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime 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.
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.
 
Upvote 0

coldteam

Active Member
Licensed User
Longtime User
this happens in the working version. I began to receive reports in the developer console.
 
Upvote 0

coldteam

Active Member
Licensed User
Longtime 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.
 
Upvote 0

coldteam

Active Member
Licensed User
Longtime User
I got this error, maybe it is related
B4X:
~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)
 
Upvote 0
Top