tinyb icon indicating copy to clipboard operation
tinyb copied to clipboard

GDBus Error on new discoveries

Open giuseppemr opened this issue 5 years ago • 3 comments

Good morning everyone,

I am actually using tinyb library for Java on a Raspberry Pi 3+ to scan for BLE devices. After a period of time (it can be minutes or hours), new scans make the system blocks in a non recoverable loop with this error:

2020-10-09T08:27:16,310 [Thread-896] ERROR o.e.k.i.b.BluetoothLeAdapterImpl - Stop discovery failed
tinyb.BluetoothException: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.7 was not provided by any .service files
        at tinyb.BluetoothAdapter.stopDiscovery(Native Method)
        at org.eclipse.kura.internal.ble.BluetoothLeAdapterImpl$BluetoothFuture.run(BluetoothLeAdapterImpl.java:266)
        at java.lang.Thread.run(Thread.java:748)

I tried to stop and restart my program, restart the bluetooth service, but the only solution is to completely reboot the system. Any help is really appreciated. Thanks.

giuseppemr avatar Oct 09 '20 07:10 giuseppemr

@giuseppemr check solution with power on/off adapter

tommyNy avatar Nov 23 '20 15:11 tommyNy

@tommyNy thank you for replying. Could you please send me the link of this solution?

giuseppemr avatar Nov 23 '20 15:11 giuseppemr

@giuseppemr check bluetoothctl CLI tool for Linux Maybe Your bluez version is incompatible with tinyb

tommyNy avatar Nov 23 '20 19:11 tommyNy