Can multiple threads cause a interrupt catch in a try catch statement?

5 views
Skip to first unread message

chen.mi...@bloomfield.org

unread,
Oct 30, 2017, 11:49:20 PM10/30/17
to navx-mxp
Hi, Scott

FTC has started again and I’ve been having some troubles with my FTC app freezing up.

I was sent a message stating the possibility for such a fault

Fault 1: Caused by duplicate threads that occur when the Robot Controller (or DS) app is put into sleep mode and then re-awakened.
This is done routinely by just hitting the phone back button or using the menu/exit option.
This problem seems to manifest itself mostly on ZTE phones.

Is this a possible reason why the try catch statement immediately faults?

Thanks, Michael

admin

unread,
Oct 31, 2017, 3:12:57 PM10/31/17
to navx-mxp
Hi Michael,

I'm not clear on what the symptom you are seeing is, and what the reproducible scenario is for recreating those symptoms.  Can you please help clarify that for me?  Also, do you have a stack trace and source code that you can share?

I assume you are referring to an InterruptedException() being thrown by some java code that is blocking on some sort of IO or timed event.  You mention there's a fault in the try catch statement.  If that's correct, you might find this link useful: https://www.ibm.com/developerworks/library/j-jtp05236/index.html

As to message you received, there aren't enough to details in the message for me to clearly understand what the author is trying to communicate.  However, is the symptom you are seeing happening when the robot controller is put to sleep and then woken up?  The message seems to focus only on the wakeup from sleep case.

I'm happy to help, but will need some more details to be much help on this.

Cheers,

- scott
Reply all
Reply to author
Forward
0 new messages