mbrakken
11 years agoVisitor
[Solved] Crash & reboot from gridscreen, event data 8947848
I made some changes to a channel I'm developing and now I have an intermittent crash and system reboot occurring. I'm still working to isolate the conditions that lead to it, but I have a question about some data I'm receiving right before the crash which I feel may provide some insight.
The code block that I crash from is:
and the console output looks like:
So I make it through one iteration of the for loop and then crash out.
GetIndex() returns either 20 or 21 in these circumstances, and GetData() returns 8947848, 8947849, 8947853, etc.
Of note, too: I don't have 22 rows on the grid screen. I have 3, at indexes 0 through 2. I suspect I can avoid the crash by handling GetIndex() results that are unexpected (like 21), but I'm wondering why I'm getting a message with these index and data values and what they might mean.
Additionally, I just noticed that I don't always crash after receiving these index/data values, I just crash most of the time.
I appreciate any insight. Thanks.
The code block that I crash from is:
while true
print "Waiting for message"
msg = wait(0, m.port)
print "Got Message:";type(msg)
if type(msg) = "roGridScreenEvent" then
print "msg= "; msg.GetMessage() " , index= "; msg.GetIndex(); " data= "; msg.getData()
if msg.isListItemFocused() then
print"list item focused: "; msg.GetIndex()
[do more things]
end if
[do more things]
end if
end while
and the console output looks like:
Waiting for message
Got Message:roGridScreenEvent
msg= , index= 21 data= 8947853
list item focused: 21
Waiting for message
Connection closed by foreign host.
So I make it through one iteration of the for loop and then crash out.
GetIndex() returns either 20 or 21 in these circumstances, and GetData() returns 8947848, 8947849, 8947853, etc.
Of note, too: I don't have 22 rows on the grid screen. I have 3, at indexes 0 through 2. I suspect I can avoid the crash by handling GetIndex() results that are unexpected (like 21), but I'm wondering why I'm getting a message with these index and data values and what they might mean.
Additionally, I just noticed that I don't always crash after receiving these index/data values, I just crash most of the time.
I appreciate any insight. Thanks.