Doesn't work on my Pi3b+
Started by Bmclp




2 posts in this topic
Bmclp

 
13-06-24, 22:14 -
#1
Hello ! I need some help out here ^^ !

I have tried the origin samplerbox on my Pi3b+ and it works fine but I discovered hansehv's version wich looks better , so I wanted to give it a try.

So I flashed my SD with the Sbox20220206.img giving me a boot partition and Samples partition
But when I turn on my Pi it's loading and my keyboard turning on and then no sound .... My Pi is only red light and sometime a quick green one. (I tried to remormat, re flash the sd, with a usb stick and without ect...)

What am I doing wrong ? What is the problem ?
Bmclp

 
14-06-24, 10:41 -
#2
So i checked if samplerbox was crashing or not loading via wifi and the cmd in windows and yes sampler box is running correctly, have detected my keyboard and loaded the demo preset.



Quote:==========================================

  https://github.com/hansehv/SamplerBox
>>>>  Distribution image  2022-02-06  <<<<
> Synced with GitHub status 2022-02-06  <
> = merge of branch: 'Python3 migration' <
no track of local changes, that's for you!
==========================================
IP's: ['192.168.1.102']
Wireless: TP-Link_C10C, -45dBm: Very good
Available audio devices:
  0 bcm2835 HDMI 1: - (hw:0,0), ALSA (0 in, 8 out)
  1 bcm2835 Headphones: - (hw:1,0), ALSA (0 in, 8 out)
  2 sysdefault, ALSA (0 in, 128 out)
< 3 default, ALSA (0 in, 128 out)
Opened audio device #0 bcm2835 HDMI 1: - (hw:0,0)
  samplerate 44100Hz, blocksize=384, LFOcycle=1
  valid blocksizes: [32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384]
Opened Alsamixer: card (hw:0,x), control HDMI
We have None, we want 0 Demo
Opened input "Midi Through:Midi Through Port-0 14:0" as SMFplayer
Opened input "KOMPLETE KONTROL M32:KOMPLETE KONTROL M32 MIDI 1 24:0"
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "./modules/http_gui.py", line 212, in HTTP_Server
    httpd = server_class(server_address, handler_class)
  File "/usr/lib/python3.7/socketserver.py", line 452, in __init__
    self.server_bind()
  File "/usr/lib/python3.7/http/server.py", line 137, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/lib/python3.7/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use

Loaded '0 Demo', 80% free memory left

From nowhere after another reboot and 20 minutes waiting (and no changes in anything) suddenly I could play sounds. 
So after playing some chords and stuff I stopped the Pi and reboot it and still nothing.
I tired more times but no sounds at all, just this one time ..
Weiiiiird....

I just don't understand what's hapening ! 

(Sorry for my poor english )
noek

39 posts 0 threads Joined: Jan 2021
21-06-24, 22:06 -
#3
Hi Bmclp,

The screen log indicates you manually started the samplerbox without stopping the booted instance - that's the cause of the errors in the http thread. Not a real issue for the sound, but it might hide the real issue as the booted instance may have your audio adapter in use.
See the debugging docs for ways to get that right.

Having said that: samplerbox seems to open the HDMI audio out. Since the upgrade to python3, samplerbox has a real delay opening the PI's audio builtin system. Not 20 minutes, but rather 5 or so. But anyway: there are errors in that area.

If you do use another audio adapter, I may be able to help you with if you can supply next info:
  • what audio adapter do you use
  • the new console log
  • the configuration.txt
Regards, Noek