OppiaMobile Community

Bluetooth / sync isuess

Hi @alex
I have actually realised the issue is with one of the phones, (maybe it has issues with permissions to write to the storage). But it eventually worked after re-installation of the app. Maybe I need to test this using another phone

But below are the splunk errors i received.

Error Message

java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
Where

CourseInstall.java:78

Short Stacktrace
0 java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
1 at org.digitalcampus.oppia.service.courseinstall.CourseInstall.installDownloadedCourse(CourseInstall.java:78)
2 at org.digitalcampus.oppia.task.InstallDownloadedCoursesTask.doInBackground(InstallDownloadedCoursesTask.java:53)
3 at org.digitalcampus.oppia.task.InstallDownloadedCoursesTask.doInBackground(InstallDownloadedCoursesTask.java:32)
4 at android.os.AsyncTask$2.call(AsyncTask.java:304)
5 at java.util.concurrent.FutureTask.run(FutureTask.java:237)
6 at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
7 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
8 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
9 at java.lang.Thread.run(Thread.java:761)
Tag

and

Error Message

java.io.IOException: Broken pipe

Where

DataOutputStream.java:107

Short Stacktrace

0 java.io.IOException: Broken pipe


1 at android.net.LocalSocketImpl.writeba_native(Native Method)
2 at android.net.LocalSocketImpl.-wrap3(LocalSocketImpl.java)
3 at android.net.LocalSocketImpl$SocketOutputStream.write(LocalSocketImpl.java:144)
4 at android.bluetooth.BluetoothSocket.write(BluetoothSocket.java:558)
5 at android.bluetooth.BluetoothOutputStream.write(BluetoothOutputStream.java:85)
6 at java.io.DataOutputStream.write(DataOutputStream.java:107)
7 at org.digitalcampus.oppia.service.bluetooth.BluetoothTransferService.transferFile(BluetoothTransferService.java:320)
8 at org.digitalcampus.oppia.service.bluetooth.BluetoothTransferService.sendFile(BluetoothTransferService.java:286)
9 at org.digitalcampus.oppia.service.bluetooth.BluetoothTransferService.lambda$onStartCommand$0$BluetoothTransferService(BluetoothTransferService.java:181)
10 at org.digitalcampus.oppia.service.bluetooth.-$$Lambda$BluetoothTransferService$KN6t9iywi0cLc7fHaZeDDG5C7z8.run(lambda)
11 at android.os.Handler.handleCallback(Handler.java:836)
12 at android.os.Handler.dispatchMessage(Handler.java:103)
13 at android.os.Looper.loop(Looper.java:203)
14 at android.os.HandlerThread.run(HandlerThread.java:61)

Thanks for letting us know it’s working… yes maybe it was a permissions issue or something up with that particular SD card?

This particular phone HTC phone has issues, maybe its the fault SD card because some times, it fails to even download courses.