Bug? Random errors just in Rapid debug mode?

JohnC

Expert
Licensed User
Longtime User
For some reason, when I run my app in rapid debug mode, assorted errors will often occur during app startup that will kill it. Other times the app will startup fine in rapid mode.

But when I run the app in legacy mode, it always starts up fine.

Many of the errors I see in rapid mode are "index out of bounds" exceptions.

It seems as if events will sometimes trigger in a different sequence when in rapid mode versus when running in legacy mode.

Any ideas about why rapid mode is causing intermitent startup exceptions?
 

JohnC

Expert
Licensed User
Longtime User
Here is the log for one of the errors:

B4X:
** Activity (main) Create, isFirst = true **
An error occurred:
(Line: 34) Sub Activity_Create(FirstTime As Boolean)
java.lang.IndexOutOfBoundsException: index 1

And here is my code for the Activity_Create:

B4X:
34 Sub Activity_Create(FirstTime As Boolean)
35
36        Activity.LoadLayout("login")
37   
38        If FirstTime = True Then
39            libIME.Initialize("IME")
40            'libIME.SetLengthFilter(txtPasscode,6)
41            tmrShowKeyboard.Initialize("tmrShowKeyboard",200)
42            tmrShowKeyboard.Enabled = True
43         End If
44    
45         Activity.Title = "Blacktop Mobile v" & Blacktop.GetAppVersion
46         RetryCount = 3
47  End Sub
 

JohnC

Expert
Licensed User
Longtime User
Yeah - it doesn't give any more info, and then the app and debugger close
 

JohnC

Expert
Licensed User
Longtime User
Yes, if I don't touch the code, then try to launch it 1 or 2 more times the app/debugger will run
 

JohnC

Expert
Licensed User
Longtime User
Here is another line of code that the Rapid debugger crashed with:
B4X:
10       Dim HasData as Boolean
....
229      If HasData = True Then
230           S = S & "<tr>" & L & "</tr>"
231           L = ""

And the log entries were:

An error occurred:
(Line: 229) If HasData = True Then
java.lang.IndexOutOfBoundsException: index 7


I have no idea what it thinks is out of bounds.
 

JohnC

Expert
Licensed User
Longtime User
I do not wish to post it publicly, how can I send it to you privately?
 

JohnC

Expert
Licensed User
Longtime User
I will send it in a few days - I just need to meet a deadline first.
 
Top