PhantomSDR Support Forum

General Category => PhantomSDR Bugs => Topic started by: hb3xdc on Sep 08, 2024, 10:01 PM

Title: Black waterfall after some time
Post by: hb3xdc on Sep 08, 2024, 10:01 PM
On v1.5.3 and v1.5.4 I noticed sometimes the SDR freezes, It just shows a black waterfall and S9+60 S-Meter:

(https://i.ibb.co/f8H9HDm/msedge-w-Tp0n-CJHKB.png)

You have to restart the Service then again to get it working

Atm visible at Zug SDR
http://zugsdr.ddns.net:8074/
Title: Re: Black waterfall after some time
Post by: hb3xdc on Sep 08, 2024, 10:08 PM
PS: It happen mostly on the RX888:
Log in console shows endless:

Dropping Audio due to buffering slow client

and
[2024-09-08 21:53:01] [error] handle_read_frame error: websocketpp.transport:7 (End of File)

Title: Re: Black waterfall after some time
Post by: Bas ON5HB on Sep 09, 2024, 12:11 PM
What toml settings do you use?
Did you update /etc/default/grub ?

GRUB_CMDLINE_LINUX_DEFAULT="systemd.unit=multi-user.target usbcore.usbfs_memory_mb=512 pci=noaer"
The systemd.unit parameter prevent the GUI from starting...can be started with startx or remove the param if you want the GUI.

Did you add to /etc/sysctl.conf

kernel.perf_cpu_time_max_percent=0
Did you install cpufrequtils and lock the CPU to performance and e.g. 2G min/max cpu speed?
Never set max speed, as the CPU may get too warm and/or crash.

Just some ideas to try.
Title: Re: Black waterfall after some time
Post by: Bas ON5HB on Sep 09, 2024, 11:39 PM
Quote from: hb3xdc on Sep 08, 2024, 10:08 PMPS: It happen mostly on the RX888:
Log in console shows endless:

Dropping Audio due to buffering slow client

and
[2024-09-08 21:53:01] [error] handle_read_frame error: websocketpp.transport:7 (End of File)


Can you post the TOML file you use?
Title: Re: Black waterfall after some time
Post by: hb3xdc on Sep 10, 2024, 10:21 PM
[server]
port=8074 # Server port
html_root="/opt/WebSDR_DIR/PhantomSDR-Plus/frontend/dist/" # HTML files to be hosted
otherusers=1 # Send where other users are listening, 0 to disable
threads=1



[websdr]
register_online=true # If the SDR should be registered on https://sdr-list.xyz then put it to true
name="Lucerne HF - HB3XDC RX888" # Name that is shown on https://sdr-list.xyz
antenna="Hari Delta Loop" # Antenna that is shown on https://sdr-list.xyz
grid_locator="JN47DB" # 4 or 6 length Grid Locatlr shown on https://sdr-list.xyz and for the Distance of FT8 Signals
hostname="websdr.hb3xdc.ch" # If you use ddns or something to host with a domain enter it here for https://sdr-list.xyz

[limits]
audio=100
waterfall=100
events=100

[input]
sps=60000000 # Input Sample Rate
fft_size=4194304 # FFT bins
brightness_offset=-1 # Waterfall brightness offset. Reduce to negative if you see black regions in the waterfall
fft_threads=4 # FFT threads
frequency=0 # Baseband frequency
signal="real" # real or iq
accelerator="opencl" # Accelerator: none, cuda, opencl
audio_sps=12000 # Audio Sample Rate
audio_compression="flac" # flac or opus
waterfall_size=2048
waterfall_compression="zstd" # zstd or av1
smeter_offset=0

[input.driver]
name="stdin" # Driver name
format="s16" # Sample format: u8, s8, u16, s16, u32, s32, f32, f64

[input.defaults]
frequency=5505000 # Default frequency to show user
modulation="USB" # Default modulation
Title: Re: Black waterfall after some time
Post by: hb3xdc on Sep 10, 2024, 10:22 PM
This is my config, atm it happended again, see for exampel http://websdr.hb3xdc.ch:8074/
Title: Re: Black waterfall after some time
Post by: hb3xdc on Sep 10, 2024, 10:28 PM
GRUB Settings are:

 If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.usbfs_memory_mb=2048"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
Title: Re: Black waterfall after some time
Post by: hb3xdc on Sep 10, 2024, 10:32 PM
In the attachment, I have a output of dmesg on this system, maybe someone sees any impotrant stuff inside it
Title: Re: Black waterfall after some time
Post by: linkz on Sep 10, 2024, 11:03 PM
https://devopsx.com/intel-gpu-hang/#increase-driver-timeout maybe ?
be careful and check values before change
Title: Re: Black waterfall after some time
Post by: Bas ON5HB on Sep 11, 2024, 10:54 AM
Couple of things I have noticed.

The GPU i915 hang is a known Linux problem, if I'm not mistaken it uses a wrong driver, you have to Google for it, as many more people have i915 problems.

https://askubuntu.com/questions/1306700/fixing-gpu-hang-caused-by-i915-driver

Second, change this in your config:

threads=3 <= you have 1, meaning the webserver can run out of CPU-cycles.

fft_size=8388608 <= I noticed it needs to be much higher.
fft_threads=1 <= the waterfall doesn't need more when the GPU is used, it brings nothing.

Also check with intel_gpu-top that your GPU doesn't run out of memory, maybe use a bigger GPU memory in the BIOS, mine is set to maximum of 512MB, just to be sure.