Android Question [SOLVED] Pre-launch report

yfleury

Active Member
Licensed User
Longtime User
I have these error
Capture.JPG

FATAL EXCEPTION: main
Process: com.yves.fleury.mon.deneigeur.client, PID: 11856
java.lang.IndexOutOfBoundsException: Index: 7, Size: 4
at java.util.ArrayList.get(ArrayList.java:411)
at anywheresoftware.b4a.objects.collections.List.Get(List.java:117)
at com.yves.fleury.mon.deneigeur.client.main2._clvavis_itemclick(main2.java:935)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1083)
at anywheresoftware.b4a.keywords.Common.CallSubNew3(Common.java:1046)
at b4a.example3.customlistview$ResumableSub_PanelClickHandler.resume(customlistview.java:803)
at b4a.example3.customlistview._panelclickhandler(customlistview.java:746)
at b4a.example3.customlistview._panel_click(customlistview.java:733)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5646)
at android.view.View$PerformClick.run(View.java:22458)
at android.os.Handler.handleCallback(Handler.java:761)
at android.os.Handler.dispatchMessage(Handler.java:98)
at androidx.test.espresso.base.Interrogator.a(Interrogator.java:19)
at androidx.test.espresso.base.UiControllerImpl.a(UiControllerImpl.java:169)
at androidx.test.espresso.base.UiControllerImpl.a(UiControllerImpl.java:161)
at androidx.test.espresso.base.UiControllerImpl.a(UiControllerImpl.java:34)
at androidx.test.espresso.action.MotionEvents.a(MotionEvents.java:77)
at androidx.test.espresso.action.MotionEvents.a(MotionEvents.java:52)
at androidx.test.espresso.action.Tap.c(Tap.java:8)
at androidx.test.espresso.action.Tap.b(Tap.java:19)
at androidx.test.espresso.action.Tap$1.a(Tap.java:3)
at androidx.test.espresso.action.GeneralClickAction.perform(GeneralClickAction.java:20)
at androidx.test.espresso.ViewInteraction$SingleExecutionViewAction.perform(ViewInteraction.java:9)
at androidx.test.espresso.ViewInteraction.a(ViewInteraction.java:79)
at androidx.test.espresso.ViewInteraction.a(ViewInteraction.java:97)
at androidx.test.espresso.ViewInteraction$1.call(ViewInteraction.java:3)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.Handler.handleCallback(Handler.java:761)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6524)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)

Can you point me in the right direction?
 

yfleury

Active Member
Licensed User
Longtime User
I know that, but I can't find it.

On 13 devices so 6 devices crash with this error from 4 to 7 elements for an array of 4.

But I can't reproduce this error with rapid debogger.
 
Upvote 0

yfleury

Active Member
Licensed User
Longtime User
I have a lot of array like list and map that are filled from an external database using jrdc2. I save some of the data in the internal database. I filled 2 xcostumlistview with imported data that will not be saved and that changes several times per hour of use of the application.

Using the application in debug mode or in release mode, I do not encounter any error. I have errors only in pre launch report.

When my application starts, I have a splash screen and then I display an xcostumlistview with google map. At the first use I ask for a number that is essential to obtain the data.
 
Upvote 0

yfleury

Active Member
Licensed User
Longtime User
Ok I find the error. First time run after install, the app show a splash screen then show the main panel and check if customer is registred. If not, a new panel is show over of main panel and asking a number to connect external database. The pre-launch report click everywhere the acces to the menu on main panel and then can acces of all CLV that causing error.

To solve it, I create a sub panelNumber_click then when I click on panel is catch by the sub and can reach the main menu under this panel.
 
Upvote 0
Top