https://bugs.freedesktop.org/show_bug.cgi?id=62180

          Priority: medium
            Bug ID: 62180
          Assignee: [email protected]
           Summary: sdremote: java crash when bluetooth socket closes
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: UNCONFIRMED
           Version: 4.0.0.3 release
         Component: Android Impress Remote
           Product: LibreOffice

Sometimes the bluetooth socket is closed thus:

I/sdremote(31827): CommunicationService.run: at "Work"
W/bt-rfcomm( 1247): Port state disc_wait_ua Event ignored 12
W/bt-btif ( 1247): invalid rfc slot id: 8

W/System.err(31827): java.io.IOException: bt socket closed, read return: -1
W/System.err(31827):     at
android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:416)
W/System.err(31827):     at
android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:96)
W/System.err(31827):     at
java.io.InputStreamReader.read(InputStreamReader.java:244)
W/System.err(31827):     at
java.io.BufferedReader.fillBuf(BufferedReader.java:130)
W/System.err(31827):     at
java.io.BufferedReader.readLine(BufferedReader.java:354)
W/System.err(31827):     at
org.libreoffice.impressremote.communication.Client.listen(Client.java:74)
W/System.err(31827):     at
org.libreoffice.impressremote.communication.Client.access$000(Client.java:26)
W/System.err(31827):     at
org.libreoffice.impressremote.communication.Client$1.run(Client.java:60)

Which in turn ( I imagine ) emits an onServiceDisconnected on the
PresentationFragment's ServiceConnection sub-class.

Unfortunately, that doesn't close the PresentationFragment - which carries on
running until it crashes:

E/AndroidRuntime(31827): java.lang.NullPointerException
E/AndroidRuntime(31827):     at
org.libreoffice.impressremote.PresentationFragment.updateSlideNumberDisplay(PresentationFragment.java:157)
E/AndroidRuntime(31827):     at
org.libreoffice.impressremote.PresentationFragment.access$300(PresentationFragment.java:44)
E/AndroidRuntime(31827):     at
org.libreoffice.impressremote.PresentationFragment$ClickListener.onItemSelected(PresentationFragment.java:250)
E/AndroidRuntime(31827):     at
android.widget.AdapterView.fireOnSelected(AdapterView.java:892)
E/AndroidRuntime(31827):     at
android.widget.AdapterView.selectionChanged(AdapterView.java:879)
E/AndroidRuntime(31827):     at
android.widget.Gallery.selectionChanged(Gallery.java:561)
E/AndroidRuntime(31827):     at
android.widget.AdapterView.checkSelectionChanged(AdapterView.java:1043)
E/AndroidRuntime(31827):     at
android.widget.Gallery.setSelectionToCenterChild(Gallery.java:607)
E/AndroidRuntime(31827):     at
android.widget.Gallery.trackMotionScroll(Gallery.java:402)
E/AndroidRuntime(31827):     at
android.widget.Gallery$FlingRunnable.run(Gallery.java:1520)
E/AndroidRuntime(31827):     at
android.os.Handler.handleCallback(Handler.java:725)
E/AndroidRuntime(31827):     at
android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(31827):     at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(31827):     at
android.app.ActivityThread.main(ActivityThread.java:5041)
E/AndroidRuntime(31827):     at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime(31827):     at
java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(31827):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime(31827):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime(31827):     at dalvik.system.NativeStart.main(Native Method)

with (I assume) a null mCommunicationService pointer.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to