Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
briar
briar
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 694
    • Issues 694
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 14
    • Merge Requests 14
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • briar
  • briarbriar
  • Issues
  • #192

Closed
Open
Opened Dec 18, 2015 by akwizgran@akwizgranOwner

Failure to open Bluetooth listening socket

Got this stacktrace on the Sony Xperia Tipo (Android 4.0.4) when Bluetooth was enabled to add a contact. The device has been running for several days and making Bluetooth connections. Perhaps some kind of resource leak? Should we be releasing sockets differently to avoid this?

The Bluetooth adapter is enabled, but the attempt to add a contact fails immediately.

12-18 13:22:37.116 25207-26268/org.briarproject W/DroidtoothPlugin: java.io.IOException: No available channels
                                                                    java.io.IOException: No available channels
                                                                        at android.bluetooth.BluetoothAdapter.createNewRfcommSocketAndRecord(BluetoothAdapter.java:1119)
                                                                        at android.bluetooth.BluetoothAdapter.listenUsingInsecureRfcommWithServiceRecord(BluetoothAdapter.java:1067)
                                                                        at org.briarproject.plugins.droidtooth.InsecureBluetooth.listen(InsecureBluetooth.java:35)
                                                                        at org.briarproject.plugins.droidtooth.DroidtoothPlugin$2.run(DroidtoothPlugin.java:163)
                                                                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
                                                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
                                                                        at java.lang.Thread.run(Thread.java:856)
Edited Nov 21, 2020 by Cleopatra
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: briar/briar#192