lukasjapan / bt-speaker

A simple Bluetooth Speaker Daemon for the Raspberry Pi 3
GNU General Public License v3.0
493 stars 94 forks source link

Exception: <type 'exceptions.OSError'> #50

Open freedreamer82 opened 6 years ago

freedreamer82 commented 6 years ago

Hi , I tried to start the daemon manually and i get thi stuff ( raspberry 3 ). I see the device on my phone and it tries to connect to it but suddenly the connection drops..

any idea ?

thanks

Marco

Device connected. device=/org/bluez/hci0/dev_B4_9C_DF_3C_D9_26 Hiding adapter from all devices.

Audio Device: Advanced Linux Sound Architecture (ALSA) output

Playing: /usr/share/sounds/freedesktop/stereo/service-login.oga Ogg Vorbis stream: 2 channel, 22050 Hz

Done. Exception: <type 'exceptions.OSError'> Device disconnected. device=/org/bluez/hci0/dev_B4_9C_DF_3C_D9_26 Showing adapter to all devices.

xfjx commented 6 years ago

I am getting the same error after reinstalling.

Did you find out the root of the problem? Maybe it is related to an updated bluetooth package in rasbian?

xfjx commented 6 years ago

I think my problem was ralated to another app already having the alsa device open.

freedreamer82 commented 6 years ago

yes could be. I had another app using alsa as well, stopping that , now it works.

stupidusername commented 6 years ago

Check that you are executing the app from it's source directory. That message is printed when librtpsbc.so can't be found. This code belongs to bt_manager/codecs.py:

def __init__(self, config):

        import sys

        try:
            self.codec = ffi.dlopen('./librtpsbc.so')
        except:
            print 'Exception:', sys.exc_info()[0]

        self.config = ffi.new('sbc_t *')
        self.ts = ffi.new('unsigned int *', 0)
        self.seq_num = ffi.new('unsigned int *', 0)
        self._init_sbc_config(config)
self.codec.sbc_init(self.config, 0)
schlimmchen commented 4 years ago

yes could be. I had another app using alsa as well, stopping that , now it works.

@freedreamer82 In that case you might want to close this issue, please.