-
Notifications
You must be signed in to change notification settings - Fork 2
Description
The doc strings in getsensor.r2py claim there are no exceptions for the get_acceleration() call. However, sometimes there is an exception (in sensorlib) when parsing json received from SL4A, such as the following:
Uncaught exception!
Following is a full traceback, and a user traceback.
The user traceback excludes non-user modules. The most recent call is displayed last.
Full debugging traceback:
"/storage/emulated/0/Android/data/com.sensibility_testbed/files/sl4a/seattle/seattle_repy/repyV2/emultimer.py", line 115, in wrapped_func
"poll.r2py", line 10, in acc
"getsensor.r2py", line 969, in get_acceleration
"sensorlib.r2py", line 111, in request_data
"/storage/emulated/0/Android/data/com.sensibility_testbed/files/extras/python/json/init.py", line 326, in loads
"/storage/emulated/0/Android/data/com.sensibility_testbed/files/extras/python/json/decoder.py", line 369, in decode
User traceback:
"poll.r2py", line 10, in acc
"getsensor.r2py", line 969, in get_acceleration
"sensorlib.r2py", line 111, in request_data
"/storage/emulated/0/Android/data/com.sensibility_testbed/files/extras/python/json/init.py", line 326, in loads
"/storage/emulated/0/Android/data/com.sensibility_testbed/files/extras/python/json/decoder.py", line 369, in decode
Exception (with type 'exceptions.ValueError'): Extra data: line 2 column 1 - line 4 column 1 (char 48 - 144)