g0orx / linhpsdr

Linux HPSDR
GNU General Public License v3.0
74 stars 45 forks source link

Segfaults and other abrupt halts #16

Open lizdodd opened 6 years ago

lizdodd commented 6 years ago

Git version, fresh today Some are segfaults, this one more specific

$ linhpsdr Build: 2018-08-21 Beta GTK+ version 3.22.30 sysname: Linux nodename: mum-quad release: 4.16.0-2-amd64 version: #1 SMP Debian 4.16.16-2 (2018-06-22) machine: x86_64 discovery protocol1_discovery discover: looking for HPSDR devices on lo discover: bound to lo discover_receive_thread discovery: bytes read -1 discovery: recvfrom socket failed for discover_receive_thread: Resource temporarily unavailable discovery: exiting discover_receive_thread discover: exiting discover for lo discover: looking for HPSDR devices on enp4s0 discover: bound to enp4s0 discover_receive_thread discovery: bytes read -1 discovery: recvfrom socket failed for discover_receive_thread: Resource temporarily unavailable discovery: exiting discover_receive_thread discover: exiting discover for enp4s0 discovery found 0 devices protocol2_discover: looking for HPSDR devices on enp4s0 protocol2_discover: bound to enp4s0 192.168.79.61 255.255.255.0 protocol2_disovery: thread_id=0x5604dcd03c00 protocol2_discover: received 60 bytes protocol2_discover: found 0 protocol=1 device=5 software_version=12 status=2 address=192.168.79.160 (00:1E:C0:A6:A4:26) on enp4s0 DDCs=7 protocol2_discover: bytes read -1 protocol2_discover: recvfrom socket failed for discover_receive_thread: Resource temporarily unavailable protocol2_discover: exiting protocol2_discover_receive_thread protocol2_discover: exiting discover for enp4s0 protocol2_discovery found 1 devices discovery: found protocol=1 device=5 software_version=12 status=2 address=192.168.79.160 (00:1E:C0:A6:A4:26) on enp4s0 main: discovery found 1 devices adding Orion2 tree_selection_changed_cb found 0 starting Linux HPSDR (Beta): Orion2 P2 v1.2 192.168.79.160 (00:1E:C0:A6:A4:26) on enp4s0 create_radio for Orion2 5 192.168.79.160 loadProperties: /home/liz/.local/share/linhpsdr/00-1E-C0-A6-A4-26.props create_receiver: channel=0 sample_rate=192000 create_receiver: OpenChannel: channel=0 buffer_size=1024 sample_rate=192000 receiver_update_title: Linux HPSDR: Rx-0 ADC-0 192000 create_vfo: rx=0 gtk_paned_set_position: rx=0 paned=429496729 launch_rigctl for receiver: 0 iq_thread: channel=0 sendto socket failed for general: seq=0 sendto socket failed for receive_specific: sequence=0 sendto socket failed for general: seq=1 sendto socket failed for receive_specific: sequence=1 create_transmitter: channel=8 rigctl_server: starting server on port 19090 transmitter_init_analyzer: width=0 pixels=0 update_timer: fps=10 protocol2_init: MIC_SAMPLES=64 iq_thread: channel=0 sendto socket failed for general: seq=2 sendto socket failed for receive_specific: sequence=2 protocol2_init: date_socket 22 bound to interface protocol2_init: high_priority_addr setup for port 1027 protocol2_thread: id=0x5604dcd69280 audio: create_audio protocol2_thread protocol2_thread: data_socket bound to interface protocol2_thread: high_priority_addr setup for port 1027 protocol2_timer_thread: id=0x7f4974001400 protocol2_timer_thread mic_read_thread: ENTRY x=1471 y=85 moving main_window to x=1471 y=85 Server listening on port 50000 audio: state_cb: PA_CONTEXT_AUTHORIZING gtk_paned_set_position: rx=0 paned=436383344 gtk_paned_set_position: rx=0 paned=436383344 audio: state_cb: PA_CONTEXT_SETTING_NAME gtk_paned_set_position: rx=0 paned=436383344 audio: state_cb: PA_CONTEXT_READY Output: 0: alsa_output.pci-0000_00_01.1.hdmi-stereo (Built-in Audio Digital Stereo (HDMI)) Output: 1: alsa_output.pci-0000_03_04.0.analog-surround-40 (CMI8788 [Oxygen HD Audio] (CMI8786 (Xonar DGX)) Analog Surround 4.0) Input: 0: alsa_output.pci-0000_00_01.1.hdmi-stereo.monitor (Monitor of Built-in Audio Digital Stereo (HDMI)) Input: 1: alsa_input.pci-0000_00_14.2.analog-stereo (Built-in Audio Analog Stereo) Input: 2: alsa_output.pci-0000_03_04.0.analog-surround-40.monitor (Monitor of CMI8788 [Oxygen HD Audio] (CMI8786 (Xonar DGX)) Analog Surround 4.0) Input: 3: alsa_input.pci-0000_03_04.0.analog-stereo (CMI8788 [Oxygen HD Audio] (CMI8786 (Xonar DGX)) Analog Stereo) gtk_paned_set_position: rx=0 paned=436383344 tx_panadapter_configure_event: width=300 height=190 transmitter_init_analyzer: width=300 pixels=3600 SetAnalyzer id=8 buffer_size=1024 overlap=3392 Assertion 'pa_atomic_load(&b->pool->stat.n_allocated) > 0' failed at pulsecore/memblock.c:235, function stat_remove(). Aborting. Aborted

g0orx commented 6 years ago

Thanks for the feedback.

Did you do a "make clean" before making the latest git pull. The current Makefile does not have all the dependencies if structures are changed. If the segfaults continues would it be possible to run under gdb and get a backtrace.
-- John

lizdodd commented 6 years ago

With a protocol 1 version of firmware loaded the program runs OK. I hadn't done a "make clean" prior to the new make but as I had previously installed the deb package I don't know if I did do a compile before this one or not. For other reasons I am going to get the radio properly checked and it will be out of service, so I won't be testing again soon.