SKKU-ESLAB / opel-alpha

Open Platform Event Logger (OPEL) Project
Other
3 stars 0 forks source link

Exception mishandling in OpelCommunicator #156

Closed RedCarrottt closed 7 years ago

RedCarrottt commented 7 years ago

OPEL Manager에서 CameraViewer를 동작하여 Wi-fi Direct 연결을 시도할 때, 간헐적으로 아래와 같은 에러가 발생합니다.

04-08 11:02:22.881 32000-459/com.example.opel_manager D/cmfw_send_msg: payload_size = 4
04-08 11:02:22.891 32000-829/com.example.opel_manager W/System.err: java.io.IOException: bt socket closed, read return: -1
04-08 11:02:22.891 32000-829/com.example.opel_manager W/System.err:     at android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:733)
04-08 11:02:22.891 32000-829/com.example.opel_manager W/System.err:     at android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:60)
04-08 11:02:22.891 32000-829/com.example.opel_manager W/System.err:     at java.io.DataInputStream.readByte(DataInputStream.java:75)
04-08 11:02:22.891 32000-829/com.example.opel_manager W/System.err:     at selectiveconnection.OpelCommunicator.cmfw_recv_msg(OpelCommunicator.java:868)
04-08 11:02:22.891 32000-829/com.example.opel_manager W/System.err:     at selectiveconnection.OpelCommunicator.cmfw_wfd_on(OpelCommunicator.java:949)
04-08 11:02:22.891 32000-829/com.example.opel_manager W/System.err:     at com.gst_sdk_tutorials.rpi_control.TCPStreaming.run(rpiviewer.java:442)
04-08 11:02:22.891 32000-459/com.example.opel_manager D/WFD_ON: Scan!
04-08 11:02:22.891 32000-829/com.example.opel_manager E/AndroidRuntime: FATAL EXCEPTION: Thread-1950
                                                                        Process: com.example.opel_manager, PID: 32000
                                                                        java.lang.IllegalArgumentException
                                                                            at java.util.Arrays.copyOfRange(Arrays.java:2663)
                                                                            at selectiveconnection.OpelCommunicator.cmfw_wfd_on(OpelCommunicator.java:951)
                                                                            at com.gst_sdk_tutorials.rpi_control.TCPStreaming.run(rpiviewer.java:442)
04-08 11:02:22.891 32000-32000/com.example.opel_manager D/SendMsg: {"type":"2011"}
04-08 11:02:22.911 32000-32000/com.example.opel_manager D/BluetoothSocket: getOutputStream(): myUserId = 0
04-08 11:02:22.911 32000-32000/com.example.opel_manager D/cmfw_send_msg: payload_size = 16
04-08 11:02:22.911 32000-32000/com.example.opel_manager D/WFD_OFF: wfd_in_use = 0
04-08 11:02:22.971 32000-32194/com.example.opel_manager D/mali_winsys: new_window_surface returns 0x3000,  [1440x2560]-format:1
04-08 11:02:23.021 32000-32000/com.example.opel_manager I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@44edfd1 time:258572624
04-08 11:02:23.041 32000-32000/com.example.opel_manager D/GStreamer: Surface destroyed
RedCarrottt commented 7 years ago

160 에서 Communication Framework의 버그를 수정하면서 이 현상도 보이지 않게 되었습니다.

따라서, 해당 issue를 close합니다.