B4X:
CallSub2(Main, "ProcessOBDData_SelfTestMessage", FilterType)
B4X:
Sub ProcessOBDData_SelfTestMessage(FilterType As String)
'Remove Self Test Message
If FilterType = 602 Then 'FORD SELF TEST MESSAGE
If lstView(VP.CurrentPage).GetSize >= 2 Then lstView(VP.CurrentPage).RemoveAt(1)
End If
End Sub
====Timer_RequestOBD: Mode1===============
CheckOBDModeAll: Main.Attempt 1
CheckOBDModeAll: SendOBDData 010C
====Timer_RequestOBD: Mode3===============
CheckOBDModeAll: Main.Attempt 1
CheckOBDModeAll: SendOBDData 03
CheckOBDModeAll: Datarecieved 486B10430440000000004A
>
ProcessOBDData: Ret - 0
Error occurred on line: 1645 (Communication)
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.keywords.Common.CallSubDebug2(Common.java:1056)
at scantech.cardiagnosticpro.communication._processobddata(communication.java:2765)
at scantech.cardiagnosticpro.communication._checkobdmodeall(communication.java:5192)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:262)
at scantech.cardiagnosticpro.communication._requestobdgeneric(communication.java:13916)
at scantech.cardiagnosticpro.communication._timer_requestobd_tick(communication.java:17674)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.objects.Timer$TickTack.run(Timer.java:105)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Caused by: java.lang.RuntimeException: java.lang.Exception: Sub ProcessOBDData_SelfTestMessage signature does not match expected signature.
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:336)
at anywheresoftware.b4a.debug.Debug.CallSubNew2(Debug.java:285)
... 27 more
Caused by: java.lang.Exception: Sub ProcessOBDData_SelfTestMessage signature does not match expected signature.
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:321)
... 28 more
This had me pulling my hair. It crashes only with my large project. I test the code above with new project and will not duplicate the error. I can correct it by adding a return line below it or add logs. Weird stuff happening.