spin7ion / android-bluetooth

Automatically exported from code.google.com/p/android-bluetooth
1 stars 0 forks source link

localBluetoothDevice.scan() runs in a java.lang.StackOverflowError #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start scanning for devies using localBluetoothDevice.scan();

What is the expected output? What do you see instead?
Should simply call scanCompleted() and provide the list of foudn devices, 
but it results in a force close sometimes, especially when calling twice 
after a short period of time.

What version of the product are you using? On what operating system?
AndroidBluetoothAPI 0.3b1 plus Android 1.5 & 1.6

Please provide any additional information below.

10-16 11:52:18.897: ERROR/AndroidRuntime(2335): Uncaught handler: thread 
main exiting due to uncaught exception
10-16 11:52:19.207: DEBUG/dalvikvm(2335): GC freed 4748 objects / 346872 
bytes in 120ms
10-16 11:52:19.297: ERROR/AndroidRuntime(2335): 
java.lang.StackOverflowError
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
java.util.Hashtable.getEntry(Hashtable.java:570)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
java.util.Hashtable.containsKey(Hashtable.java:413)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1002)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBluetoothDeviceImp
l.getName(LocalBluetoothDevice.java:175)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice.getRemoteName
(LocalBluetoothDevice.java:1004)
10-16 11:52:19.297: ERROR/AndroidRuntime(2335):     at 
it.gerdavax.android.bluetooth.LocalBluetoothDevice$RemoteBl

Original issue reported on code.google.com by bonifaz....@gmail.com on 16 Oct 2009 at 3:57

GoogleCodeExporter commented 9 years ago
Hello. I had similar error but I still can't find what causes it.

Original comment by gerda...@gmail.com on 17 Oct 2009 at 6:18

GoogleCodeExporter commented 9 years ago
Should be fixed on 0.3 beta 2. Please, check it.

Original comment by gerda...@gmail.com on 17 Oct 2009 at 8:35

GoogleCodeExporter commented 9 years ago

Original comment by gerda...@gmail.com on 17 Oct 2009 at 8:36