Troubleshooting - sanitaravel/starship_analyzer GitHub Wiki
Troubleshooting Starship Analyzer
This page provides solutions to common problems you may encounter when using Starship Analyzer.
Installation Issues
PyTorch Installation Failures
Problem: Error installing PyTorch or CUDA compatibility issues.
Solution:
- Try installing with CPU-only version:
python setup.py --force-cpu
- Check your CUDA version with
nvidia-smi
and install a compatible PyTorch version - Visit PyTorch's installation page for specific instructions
# For manual PyTorch installation with CUDA 11.8
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118
EasyOCR Installation Issues
Problem: Error installing EasyOCR or its dependencies.
Solution:
- Install required system libraries:
- Windows: No additional libraries needed
- Ubuntu/Debian:
sudo apt-get install libgl1-mesa-glx
- macOS:
brew install libomp
- Try installing with pip directly:
pip install easyocr
- Ensure you have C++ build tools installed on your system
OpenCV Dependencies Missing
Problem: OpenCV fails to initialize due to missing system libraries.
Solution:
- Windows: Install Visual C++ Redistributable
- Ubuntu/Debian:
sudo apt-get install libsm6 libxext6 libxrender-dev libgl1-mesa-glx
- macOS:
brew install gcc libomp
Runtime Issues
High Memory Usage
Problem: Application uses too much RAM and crashes.
Solution:
- Reduce batch size in processing options
- Process every Nth frame instead of every frame
- Use lower resolution videos
- Close other memory-intensive applications
- Add swap space/virtual memory to your system
Slow Processing Speed
Problem: Video processing is extremely slow.
Solution:
- Enable GPU acceleration if available
- Reduce video resolution
- Increase frame sampling interval
- Optimize batch size for your system
- Close other CPU/GPU intensive applications
- Consider upgrading hardware for large-scale processing
OCR Quality Issues
Problem: Poor quality text recognition from telemetry overlay.
Solution:
- Use higher resolution video sources
- Enable debug mode to see OCR detection regions
- Adjust WHITE_THRESHOLD in settings if necessary
- Try processing a different part of the video where telemetry is clearer
- Use videos where telemetry isn't obscured by bright backgrounds
Engine Detection Problems
Problem: Incorrect engine status detection.
Solution:
- Enable debug mode to view engine detection points
- Adjust brightness threshold if necessary
- Check that the video format matches expected layout
- Use official SpaceX webcasts which have consistent engine views
- Select video segments where engines are clearly visible
Data Issues
Missing or Incomplete Data
Problem: Processed data has gaps or missing values.
Solution:
- Check the logs for processing errors
- Try processing with a higher frame sampling rate
- Use debug mode to identify frames with recognition issues
- Ensure the video has clear telemetry overlays
- Filter or interpolate data in post-processing
Inaccurate Telemetry Values
Problem: Extracted telemetry values don't match what's visible in the video.
Solution:
- Enable debug mode to see OCR detection regions
- Verify the video has standard SpaceX telemetry formatting
- Try processing at a higher resolution
- Check logs for OCR confidence values
- Manually verify a few frames to confirm correct ROI positioning
Visualization Issues
Plots Not Generating
Problem: Visualization doesn't produce expected plots.
Solution:
- Check if data file exists and contains valid data
- Verify that matplotlib and dependencies are correctly installed
- Check logs for plotting errors
- Ensure you have write permissions to the output directory
- Try a different output format (PNG, SVG, etc.)
Plot Quality Issues
Problem: Generated plots have rendering issues or are low quality.
Solution:
- Adjust DPI settings for output files
- Check for compatible font installations
- Update matplotlib to the latest version
- Try a different output format
- For interactive plots, check browser compatibility
Log File Analysis
If you're experiencing issues not covered here, check your log files:
- Locate the latest log file in the
logs
directory - Look for ERROR or WARNING messages
- Check system information at the start of the log
- Note any exception stack traces
- Share relevant log sections when seeking support
Getting Additional Help
If you're still experiencing issues:
- Search for similar issues in the GitHub repository
- Create a new issue with:
- Detailed description of the problem
- Steps to reproduce
- Log file contents
- System information
- Screenshots if applicable
- For urgent assistance, contact the project maintainers directly
System-Specific Solutions
Windows-Specific Issues
- Path length limitations: Use shorter installation paths
- Antivirus interference: Add exceptions for the project directory
- Command prompt limitations: Use PowerShell for better output handling
macOS-Specific Issues
- Permissions issues: Ensure proper permissions with
chmod +x setup.py
- Video codecs: Install VLC or ffmpeg for broader codec support
- M1/M2 compatibility: Use Python versions built for Apple Silicon
Linux-Specific Issues
- Missing libraries: Install development packages with apt/yum/etc.
- Permission issues: Use
sudo
for system-level installations - Display issues: Install required X11 packages for visualization