Troubleshooting
Common issues and solutions for SomaFM Player.
Installation Issues
Binary Not Found
Problem: soma-player: command not found
Solutions:
-
Check PATH: Ensure
~/.local/bin
is in your PATHecho $PATH | grep -o ~/.local/bin
-
Add to PATH (if missing):
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc
-
Verify installation:
ls -la ~/.local/bin/soma-player
Permission Denied
Problem: Permission denied
when running
Solution:
chmod +x ~/.local/bin/soma-player
Audio Dependencies (Linux)
Problem: Audio playback fails on Linux
Solutions:
# Ubuntu/Debian
sudo apt-get install libasound2-dev
# Fedora/CentOS/RHEL
sudo dnf install alsa-lib-devel
# Arch Linux
sudo pacman -S alsa-lib
Playback Issues
No Audio Output
Symptoms: Player starts but no sound
Debugging Steps:
-
Check system audio:
# Test system audio speaker-test -t sine -f 1000 -l 1
-
Check volume levels:
- System volume is not muted
- Player volume is above 0%
-
Audio device selection:
- Ensure correct audio output device is selected
- Try switching audio devices in system settings
Stream Connection Fails
Symptoms: "Failed to connect to stream"
Solutions:
-
Check internet connection:
ping somafm.com
-
Try different channel: Some channels may be temporarily unavailable
-
Check firewall: Ensure outbound HTTP connections are allowed
-
Restart application: Connection issues may be temporary
Stuttering Audio
Symptoms: Audio cuts out or stutters
Causes & Solutions:
- Network issues: Check internet stability
- High CPU usage: Close other applications
- Audio buffer issues: Restart the application
- System audio driver: Update audio drivers
Interface Issues
Display Problems
Problem: Interface looks corrupted or misaligned
Solutions:
-
Terminal size: Ensure terminal is at least 80x24
resize -s 24 80
-
Terminal compatibility: Use a modern terminal emulator
- ✅ Recommended: Alacritty, Kitty, iTerm2, Windows Terminal
- ⚠️ May have issues: Old terminals, basic consoles
-
Color support: Enable 256-color support
echo $TERM # Should show something like xterm-256color
Spectrum Visualizer Issues
Problem: Visualizer not showing or appears static
Solutions:
- Terminal size: Ensure sufficient space for visualizer
- Color support: Enable color in terminal
- Refresh rate: Try resizing terminal window
Keyboard Input Not Working
Problem: Keys don't respond
Solutions:
- Terminal focus: Ensure terminal window has focus
- Input capture: Some terminals may capture certain keys
- Restart: Try restarting the application
Configuration Issues
Settings Not Saving
Problem: Volume/channel changes don't persist
Debugging:
-
Check permissions:
ls -la ~/.config/soma-player/
-
Create directory (if missing):
mkdir -p ~/.config/soma-player
-
Check disk space:
df -h ~/.config
Configuration File Corrupted
Problem: Application fails to start with config error
Solution:
# Backup existing config
mv ~/.config/soma-player/config.toml ~/.config/soma-player/config.toml.backup
# Restart application (creates new default config)
soma-player
Performance Issues
High CPU Usage
Symptoms: System becomes slow while playing
Solutions:
-
Check running processes:
top | grep soma-player
-
Reduce terminal effects: Use simpler terminal themes
-
Update system: Ensure OS and drivers are current
Memory Usage
Symptoms: Memory usage grows over time
Solutions:
- Restart periodically: Long-running sessions may accumulate memory
- Check logs: Look for memory-related errors in logs
- Update: Ensure you're running the latest version
Network Issues
Proxy/Corporate Network
Problem: Cannot connect through corporate proxy
Solutions:
-
HTTP proxy: Set proxy environment variables
export http_proxy=http://proxy.company.com:8080 export https_proxy=http://proxy.company.com:8080
-
Direct connection: Try from personal network to isolate issue
Firewall Blocking
Problem: Connections blocked by firewall
Required access:
- Outbound HTTP (port 80)
- Outbound HTTPS (port 443)
- Audio streams (various ports)
Logging and Debugging
Enable Debug Logging
RUST_LOG=debug soma-player
Check Log Files
# View recent logs
tail -f ~/.config/soma-player/logs/soma-player.log
# Search for errors
grep -i error ~/.config/soma-player/logs/soma-player.log
Collect Debug Information
For bug reports, collect:
-
Version information:
soma-player --version
-
System information:
uname -a
-
Terminal information:
echo $TERM tput colors
-
Log excerpt (relevant error messages)
Getting Help
Before Reporting Issues
- Check this troubleshooting guide
- Search existing issues on GitHub
- Try with debug logging enabled
- Test basic functionality (can you run
soma-player --version
?)
Reporting Bugs
Include this information:
- Exact error message
- Steps to reproduce
- System information (OS, terminal)
- Log files (with debug enabled)
- Expected vs actual behavior
Community Support
- GitHub Issues: Technical problems and bugs
- GitHub Discussions: General questions and usage help
Quick Fixes
Complete Reset
If all else fails, completely reset the application:
# Stop the application
# Remove all application data
rm -rf ~/.config/soma-player
# Reinstall (if using install script)
curl -sSL https://raw.githubusercontent.com/mpuccini/soma-play/main/install.sh | bash
# Or rebuild from source
git clone https://github.com/mpuccini/soma-play.git
cd soma-play
cargo build --release
cp target/release/soma-player ~/.local/bin/
Emergency Commands
If the interface becomes unresponsive:
- Ctrl+C: Force quit (may leave terminal in bad state)
- Ctrl+Z: Suspend (then
fg
to resume orkill %1
to terminate) - Close terminal: Last resort