Thanks Ytai! It certainly seems like it was a bandwidth issue. I replaced the dongle I was using with a new one, and it hasn't crashed since changing it.
For others that may have this issue, I'm going to leave the name of the bluetooth adapter that resolved this problem: I used a bluetooth 4.0 dongle called 'Nano Dongle' manufactured by SMK Link and bought it for $10.00 at Fry's. On Wednesday, May 7, 2014 1:39:24 PM UTC-7, James Miller wrote: > > In my project, I'm using 5 Sharp IR Range Finders (4 long range and 1 > close range). > > There's a fatal error in my app causing it to crash when I read from all 5 > sensors. I tested it with just two, and it still crashed. > > Here are two examples of the error logs I've been getting: > 1. > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > 05-07 13:27:46.985: E/AndroidRuntime(9717): FATAL EXCEPTION: Thread-348 > 05-07 13:27:46.985: E/AndroidRuntime(9717): Process: > com.example.abr_read_ir, PID: 9717 > 05-07 13:27:46.985: E/AndroidRuntime(9717): > java.lang.ArrayIndexOutOfBoundsException: length=3; index=3 > 05-07 13:27:46.985: E/AndroidRuntime(9717): at > ioio.lib.impl.IncomingState.handleI2cResult(IncomingState.java:430) > 05-07 13:27:46.985: E/AndroidRuntime(9717): at > ioio.lib.impl.IOIOProtocol$IncomingThread.run(IOIOProtocol.java:774) > 2. > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > 05-07 13:32:55.944: E/AndroidRuntime(10133): FATAL EXCEPTION: Thread-342 > 05-07 13:32:55.944: E/AndroidRuntime(10133): Process: > com.example.abr_read_ir, PID: 10133 > 05-07 13:32:55.944: E/AndroidRuntime(10133): java.lang.NullPointerException > 05-07 13:32:55.944: E/AndroidRuntime(10133): at > ioio.lib.impl.IncomingState$DataModuleState.dataReceived(IncomingState.java:115) > 05-07 13:32:55.944: E/AndroidRuntime(10133): at > ioio.lib.impl.IncomingState.handleI2cResult(IncomingState.java:430) > 05-07 13:32:55.944: E/AndroidRuntime(10133): at > ioio.lib.impl.IOIOProtocol$IncomingThread.run(IOIOProtocol.java:774) > > These errors were generated in an app where I open all five analog pins in > setup(), and in the loop() I'm reading from each one. > > How do I fix this problem? > > -- You received this message because you are subscribed to the Google Groups "ioio-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/d/optout.
