Is this over Bluetooth?
If yes, check over USB. If it does work over USB you have a Bluetooth
bandwidth issue, which may be solved by trying a different dongle and/or
recalibrating the IOIO oscillator (see the IOIODude page on the wiki).
If not, please try upgrading to the latest firmware / IOIOLib versions
first.
If that doesn't fix it, please try to provide more information in the form
of a *minimal* application that demonstrates the problem (i.e. with as few
AnalogInputs as possible and with as little logic as possible).


On Wed, May 7, 2014 at 1:39 PM, James Miller <[email protected]> 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.
>

-- 
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.

Reply via email to