SatDump / SatDump

A generic satellite data processing software.
https://www.satdump.org
GNU General Public License v3.0
1.33k stars 148 forks source link

Unable to spawn SatDump in another program. #270

Closed bclswl0827 closed 1 year ago

bclswl0827 commented 1 year ago

Description of the issue

I was spawning a SatDump as a subprocess in a Go program, but it always throws error.

Hardware (SDR/PC/OS)

SDR: SDRplay 1A PC: x86_64 architecture OS: Bullseye Debian GNU/Linux

Version (Eg, 1.0.0, CI Build #171)

SatDump v1.1.0-a35e30c

Logs after the cras (satdump.logs)

I was using this command

/usr/local/bin/satdump live gk2a_lrit /files --source sdrplay --samplerate 3000000 --frequency 1.69214e9 --gain 40 --http_server 127.0.110.22:1234  --agc  --bias --dc_block true

satdump logs

[11:30:28 - 08/03/2023] (I)    _____       __  ____                      
[11:30:28 - 08/03/2023] (I)   / ___/____ _/ /_/ __ \__  ______ ___  ____ 
[11:30:28 - 08/03/2023] (I)   \__ \/ __ `/ __/ / / / / / / __ `__ \/ __ \
[11:30:28 - 08/03/2023] (I)  ___/ / /_/ / /_/ /_/ / /_/ / / / / / / /_/ /
[11:30:28 - 08/03/2023] (I) /____/\__,_/\__/_____/\__,_/_/ /_/ /_/ .___/ 
[11:30:28 - 08/03/2023] (I)                                     /_/      
[11:30:28 - 08/03/2023] (I) Starting SatDump v1.1.0-a35e30c
[11:30:28 - 08/03/2023] (I) 
[11:30:28 - 08/03/2023] (I) Loading config /usr/local/share/satdump//satdump_cfg.json
[11:30:28 - 08/03/2023] (W) No user configuration found! Keeping defaults.
[11:30:28 - 08/03/2023] (I) Loading plugins from /usr/local/share/satdump//plugins
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libsdrpp_server_support.so...
[11:30:28 - 08/03/2023] (T) Plugin spyserver_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libjpss_support.so...
[11:30:28 - 08/03/2023] (T) Plugin jpss_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libanalog_support.so...
[11:30:28 - 08/03/2023] (T) Plugin analog_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libcubesat_support.so...
[11:30:28 - 08/03/2023] (T) Plugin cubesat_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libjason3_support.so...
[11:30:28 - 08/03/2023] (T) Plugin jason3_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/librtltcp_support.so...
[11:30:28 - 08/03/2023] (T) Plugin rtltcp_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libmeteor_support.so...
[11:30:28 - 08/03/2023] (T) Plugin meteor_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libfengyun4_support.so...
[11:30:28 - 08/03/2023] (T) Plugin fenyun4_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libfengyun3_support.so...
[11:30:28 - 08/03/2023] (T) Plugin fengyun3_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libeos_support.so...
[11:30:28 - 08/03/2023] (T) Plugin eos_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libusrp_sdr_support.so...
[11:30:28 - 08/03/2023] (T) Plugin usrp_sdr_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/liboceansat_support.so...
[11:30:28 - 08/03/2023] (T) Plugin oceansat_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libfengyun2_support.so...
[11:30:28 - 08/03/2023] (T) Plugin fengyun2_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libhimawari_support.so...
[11:30:28 - 08/03/2023] (T) Plugin himawari_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libaim_support.so...
[11:30:28 - 08/03/2023] (T) Plugin aim_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libdvb_support.so...
[11:30:28 - 08/03/2023] (T) Plugin dvb_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libbluewalker3_support.so...
[11:30:28 - 08/03/2023] (T) Plugin bluewalker3_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libothers_support.so...
[11:30:28 - 08/03/2023] (T) Plugin others_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libairspy_sdr_support.so...
[11:30:28 - 08/03/2023] (T) Plugin airspy_sdr_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libinmarsat_support.so...
[11:30:28 - 08/03/2023] (T) Plugin inmarsat_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libmirisdr_sdr_support.so...
[11:30:28 - 08/03/2023] (T) Plugin mirisdr_sdr_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libspyserver_support.so...
[11:30:28 - 08/03/2023] (T) Plugin spyserver_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libsimd_sse41.so...
[11:30:28 - 08/03/2023] (T) Plugin simd_sse41 loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libproba_support.so...
[11:30:28 - 08/03/2023] (T) Plugin proba_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libsdrplay_sdr_support.so...
[11:30:28 - 08/03/2023] (I) SDRPlay APi is ready!
[11:30:28 - 08/03/2023] (T) Plugin sdrplay_sdr_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/liborbcomm_support.so...
[11:30:28 - 08/03/2023] (T) Plugin orbcomm_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libgoes_support.so...
[11:30:28 - 08/03/2023] (T) Plugin goes_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libspacex_support.so...
[11:30:28 - 08/03/2023] (T) Plugin spacex_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libtubsat_support.so...
[11:30:28 - 08/03/2023] (T) Plugin tubsat_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/liblandsat_support.so...
[11:30:28 - 08/03/2023] (T) Plugin landsat_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libgk2a_support.so...
[11:30:28 - 08/03/2023] (T) Plugin gk2a_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libairspyhf_sdr_support.so...
[11:30:28 - 08/03/2023] (T) Plugin airspyhf_sdr_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libmats_support.so...
[11:30:28 - 08/03/2023] (T) Plugin mats_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libelektro_arktika_support.so...
[11:30:28 - 08/03/2023] (T) Plugin elektro_arktika_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libhackrf_sdr_support.so...
[11:30:28 - 08/03/2023] (T) Plugin hackrf_sdr_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libnoaa_metop_support.so...
[11:30:28 - 08/03/2023] (T) Plugin noaa_metop_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libsimd_avx2.so...
[11:30:28 - 08/03/2023] (E) CPU Does not support AVX2. Extension plugin NOT loading!
[11:30:28 - 08/03/2023] (T) Plugin simd_avx2 loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libdmsp_support.so...
[11:30:28 - 08/03/2023] (T) Plugin dmsp_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/libgcom_support.so...
[11:30:28 - 08/03/2023] (T) Plugin gcom_support loaded!
[11:30:28 - 08/03/2023] (T) Loading plugin /usr/local/share/satdump//plugins/librtlsdr_sdr_support.so...
[11:30:28 - 08/03/2023] (T) Plugin rtlsdr_sdr_support loaded!
[11:30:28 - 08/03/2023] (D) Loaded plugins (39) : 
[11:30:28 - 08/03/2023] (D)  - aim_support
[11:30:28 - 08/03/2023] (D)  - airspy_sdr_support
[11:30:28 - 08/03/2023] (D)  - airspyhf_sdr_support
[11:30:28 - 08/03/2023] (D)  - analog_support
[11:30:28 - 08/03/2023] (D)  - bluewalker3_support
[11:30:28 - 08/03/2023] (D)  - cubesat_support
[11:30:28 - 08/03/2023] (D)  - dmsp_support
[11:30:28 - 08/03/2023] (D)  - dvb_support
[11:30:28 - 08/03/2023] (D)  - elektro_arktika_support
[11:30:28 - 08/03/2023] (D)  - eos_support
[11:30:28 - 08/03/2023] (D)  - fengyun2_support
[11:30:28 - 08/03/2023] (D)  - fengyun3_support
[11:30:28 - 08/03/2023] (D)  - fenyun4_support
[11:30:28 - 08/03/2023] (D)  - gcom_support
[11:30:28 - 08/03/2023] (D)  - gk2a_support
[11:30:28 - 08/03/2023] (D)  - goes_support
[11:30:28 - 08/03/2023] (D)  - hackrf_sdr_support
[11:30:28 - 08/03/2023] (D)  - himawari_support
[11:30:28 - 08/03/2023] (D)  - inmarsat_support
[11:30:28 - 08/03/2023] (D)  - jason3_support
[11:30:28 - 08/03/2023] (D)  - jpss_support
[11:30:28 - 08/03/2023] (D)  - landsat_support
[11:30:28 - 08/03/2023] (D)  - mats_support
[11:30:28 - 08/03/2023] (D)  - meteor_support
[11:30:28 - 08/03/2023] (D)  - mirisdr_sdr_support
[11:30:28 - 08/03/2023] (D)  - noaa_metop_support
[11:30:28 - 08/03/2023] (D)  - oceansat_support
[11:30:28 - 08/03/2023] (D)  - orbcomm_support
[11:30:28 - 08/03/2023] (D)  - others_support
[11:30:28 - 08/03/2023] (D)  - proba_support
[11:30:28 - 08/03/2023] (D)  - rtlsdr_sdr_support
[11:30:28 - 08/03/2023] (D)  - rtltcp_support
[11:30:28 - 08/03/2023] (D)  - sdrplay_sdr_support
[11:30:28 - 08/03/2023] (D)  - simd_avx2
[11:30:28 - 08/03/2023] (D)  - simd_sse41
[11:30:28 - 08/03/2023] (D)  - spacex_support
[11:30:28 - 08/03/2023] (D)  - spyserver_support
[11:30:28 - 08/03/2023] (D)  - tubsat_support
[11:30:28 - 08/03/2023] (D)  - usrp_sdr_support
[11:30:28 - 08/03/2023] (D) Registered modules (78) : 
[11:30:28 - 08/03/2023] (D)  - aim_instruments
[11:30:28 - 08/03/2023] (D)  - angels_argos
[11:30:28 - 08/03/2023] (D)  - aqua_db_decoder
[11:30:28 - 08/03/2023] (D)  - bw3_decoder
[11:30:28 - 08/03/2023] (D)  - ccsds_conv_r2_concat_decoder
[11:30:28 - 08/03/2023] (D)  - ccsds_ldpc_decoder
[11:30:28 - 08/03/2023] (D)  - ccsds_simple_psk_decoder
[11:30:28 - 08/03/2023] (D)  - ccsds_turbo_r6_k8920_decoder
[11:30:28 - 08/03/2023] (D)  - cloudsat_cpr
[11:30:28 - 08/03/2023] (D)  - coriolis_windsat
[11:30:28 - 08/03/2023] (D)  - cryosat_siral
[11:30:28 - 08/03/2023] (D)  - dmsp_rtd_decoder
[11:30:28 - 08/03/2023] (D)  - dmsp_rtd_instruments
[11:30:28 - 08/03/2023] (D)  - dvbs2_demod
[11:30:28 - 08/03/2023] (D)  - dvbs_demod
[11:30:28 - 08/03/2023] (D)  - elektro_arktika_msugs
[11:30:28 - 08/03/2023] (D)  - elektro_lrit_data_decoder
[11:30:28 - 08/03/2023] (D)  - eos_instruments
[11:30:28 - 08/03/2023] (D)  - falcon_decoder
[11:30:28 - 08/03/2023] (D)  - fengyun_ahrpt_decoder
[11:30:28 - 08/03/2023] (D)  - fengyun_mpt_decoder
[11:30:28 - 08/03/2023] (D)  - fengyun_svissr_decoder
[11:30:28 - 08/03/2023] (D)  - fengyun_svissr_image_decoder
[11:30:28 - 08/03/2023] (D)  - fsk_demod
[11:30:28 - 08/03/2023] (D)  - fy3_instruments
[11:30:28 - 08/03/2023] (D)  - fy4_lrit_data_decoder
[11:30:28 - 08/03/2023] (D)  - gcom1_instruments
[11:30:28 - 08/03/2023] (D)  - gk2a_lrit_data_decoder
[11:30:28 - 08/03/2023] (D)  - goes_grb_cadu_extractor
[11:30:28 - 08/03/2023] (D)  - goes_grb_data_decoder
[11:30:28 - 08/03/2023] (D)  - goes_gvar_decoder
[11:30:28 - 08/03/2023] (D)  - goes_gvar_image_decoder
[11:30:28 - 08/03/2023] (D)  - goes_lrit_data_decoder
[11:30:28 - 08/03/2023] (D)  - goes_mdl_decoder
[11:30:28 - 08/03/2023] (D)  - goes_sd_image_decoder
[11:30:28 - 08/03/2023] (D)  - goesn_sd_decoder
[11:30:28 - 08/03/2023] (D)  - himawaricast_data_decoder
[11:30:28 - 08/03/2023] (D)  - inmarsat_aero_decoder
[11:30:28 - 08/03/2023] (D)  - inmarsat_aero_parser
[11:30:28 - 08/03/2023] (D)  - inmarsat_stdc_decoder
[11:30:28 - 08/03/2023] (D)  - inmarsat_stdc_parser
[11:30:28 - 08/03/2023] (D)  - jason3_instruments
[11:30:28 - 08/03/2023] (D)  - jpss_instruments
[11:30:28 - 08/03/2023] (D)  - ldcm_instruments
[11:30:28 - 08/03/2023] (D)  - lucky7_decoder
[11:30:28 - 08/03/2023] (D)  - lucky7_demod
[11:30:28 - 08/03/2023] (D)  - mats_instruments
[11:30:28 - 08/03/2023] (D)  - meteor_hrpt_decoder
[11:30:28 - 08/03/2023] (D)  - meteor_instruments
[11:30:28 - 08/03/2023] (D)  - meteor_lrpt_decoder
[11:30:28 - 08/03/2023] (D)  - meteor_msumr_lrpt
[11:30:28 - 08/03/2023] (D)  - metop_ahrpt_decoder
[11:30:28 - 08/03/2023] (D)  - metop_dump_decoder
[11:30:28 - 08/03/2023] (D)  - metop_instruments
[11:30:28 - 08/03/2023] (D)  - network_client
[11:30:28 - 08/03/2023] (D)  - network_server
[11:30:28 - 08/03/2023] (D)  - noaa_apt_decoder
[11:30:28 - 08/03/2023] (D)  - noaa_apt_demod
[11:30:28 - 08/03/2023] (D)  - noaa_dsb_decoder
[11:30:28 - 08/03/2023] (D)  - noaa_gac_decoder
[11:30:28 - 08/03/2023] (D)  - noaa_hrpt_decoder
[11:30:28 - 08/03/2023] (D)  - noaa_instruments
[11:30:28 - 08/03/2023] (D)  - oceansat2_db_decoder
[11:30:28 - 08/03/2023] (D)  - oceansat_ocm
[11:30:28 - 08/03/2023] (D)  - orbcomm_stx_demod
[11:30:28 - 08/03/2023] (D)  - pm_demod
[11:30:28 - 08/03/2023] (D)  - proba_instruments
[11:30:28 - 08/03/2023] (D)  - products_processor
[11:30:28 - 08/03/2023] (D)  - psk_demod
[11:30:28 - 08/03/2023] (D)  - s2_ts2tcp
[11:30:28 - 08/03/2023] (D)  - s2_udp_cadu_extractor
[11:30:28 - 08/03/2023] (D)  - saral_argos
[11:30:28 - 08/03/2023] (D)  - scisat1_instruments
[11:30:28 - 08/03/2023] (D)  - sdpsk_demod
[11:30:28 - 08/03/2023] (D)  - spacex_tlm_decoder
[11:30:28 - 08/03/2023] (D)  - terra_db_demod
[11:30:28 - 08/03/2023] (D)  - tubin_decoder
[11:30:28 - 08/03/2023] (D)  - xrit_goesrecv_publisher
[11:30:28 - 08/03/2023] (I) Loading pipelines from /usr/local/share/satdump//pipelines
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/JPSS.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/NOAA.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/AIM.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Meteor-M.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/FengYun-3.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/BlueWalker3.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Cloudsat.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Himawari.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Test.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/GCOM.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Elektro_Arktika.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/EOS.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Work-In-Progress.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Oceansat.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/MetOp.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/FengYun-4.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/TUBSAT.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Orbcomm.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Lucky7.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Proba.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/SpaceX.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Inmarsat.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Others.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/FengYun-2.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/GOES.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Cryosat.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Jason-3.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Coriolis.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/Stereo.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/MATS.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/DMSP.json
[11:30:28 - 08/03/2023] (T) Found pipeline file /usr/local/share/satdump//pipelines/GK2A.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/JPSS.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/NOAA.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/AIM.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Meteor-M.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/FengYun-3.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/BlueWalker3.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Cloudsat.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Himawari.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Test.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/GCOM.json
[11:30:28 - 08/03/2023] (W) Module gcom_amsr2 is not loaded. Skipping pipeline!
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Elektro_Arktika.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/EOS.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Work-In-Progress.json
[11:30:28 - 08/03/2023] (W) Module 8psk_demod is not loaded. Skipping pipeline!
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Oceansat.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/MetOp.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/FengYun-4.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/TUBSAT.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Orbcomm.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Lucky7.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Proba.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/SpaceX.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Inmarsat.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Others.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/FengYun-2.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/GOES.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Cryosat.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Jason-3.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Coriolis.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/Stereo.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/MATS.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/DMSP.json
[11:30:28 - 08/03/2023] (I) Loading pipelines from file /usr/local/share/satdump//pipelines/GK2A.json
[11:30:28 - 08/03/2023] (D) Registered pipelines :
[11:30:28 - 08/03/2023] (D)  - npp_hrd
[11:30:28 - 08/03/2023] (D)  - jpss_hrd
[11:30:28 - 08/03/2023] (D)  - jpss_tlm
[11:30:28 - 08/03/2023] (D)  - noaa_hrpt
[11:30:28 - 08/03/2023] (D)  - noaa_gac
[11:30:28 - 08/03/2023] (D)  - noaa_dsb
[11:30:28 - 08/03/2023] (D)  - noaa_apt
[11:30:28 - 08/03/2023] (D)  - aim_dump
[11:30:28 - 08/03/2023] (D)  - meteor_hrpt
[11:30:28 - 08/03/2023] (D)  - meteor_m2_lrpt
[11:30:28 - 08/03/2023] (D)  - meteor_m2-x_lrpt
[11:30:28 - 08/03/2023] (D)  - fengyun3_ab_ahrpt
[11:30:28 - 08/03/2023] (D)  - fengyun3_c_ahrpt
[11:30:28 - 08/03/2023] (D)  - fengyun3_abc_mpt
[11:30:28 - 08/03/2023] (D)  - fengyun3_d_ahrpt
[11:30:28 - 08/03/2023] (D)  - fengyun3_e_ahrpt
[11:30:28 - 08/03/2023] (D)  - fengyun3_abc_dpt
[11:30:28 - 08/03/2023] (D)  - fengyun3_d_dpt
[11:30:28 - 08/03/2023] (D)  - fengyun3_e_dpt
[11:30:28 - 08/03/2023] (D)  - bluewalker3_wide
[11:30:28 - 08/03/2023] (D)  - bluewalker3_narrow
[11:30:28 - 08/03/2023] (D)  - cloudsat_link
[11:30:28 - 08/03/2023] (D)  - himawaricast
[11:30:28 - 08/03/2023] (D)  - s2_test
[11:30:28 - 08/03/2023] (D)  - gfsk_test
[11:30:28 - 08/03/2023] (D)  - dvbs_test
[11:30:28 - 08/03/2023] (D)  - test_custom
[11:30:28 - 08/03/2023] (D)  - gcom_w1_link
[11:30:28 - 08/03/2023] (D)  - elektro_rdas
[11:30:28 - 08/03/2023] (D)  - arktika_rdas
[11:30:28 - 08/03/2023] (D)  - elektro_lrit
[11:30:28 - 08/03/2023] (D)  - elektro_hrit
[11:30:28 - 08/03/2023] (D)  - elektro_tlm
[11:30:28 - 08/03/2023] (D)  - arktika_tlm
[11:30:28 - 08/03/2023] (D)  - aqua_db
[11:30:28 - 08/03/2023] (D)  - terra_db
[11:30:28 - 08/03/2023] (D)  - aura_db
[11:30:28 - 08/03/2023] (D)  - aeolus_dump
[11:30:28 - 08/03/2023] (D)  - prisma_dump
[11:30:28 - 08/03/2023] (D)  - sentinel6_dump
[11:30:28 - 08/03/2023] (D)  - sentinel6_tlm
[11:30:28 - 08/03/2023] (D)  - iris_dump
[11:30:28 - 08/03/2023] (D)  - smap_s_link
[11:30:28 - 08/03/2023] (D)  - cheops_link
[11:30:28 - 08/03/2023] (D)  - timed_dump
[11:30:28 - 08/03/2023] (D)  - grace_fo_link
[11:30:28 - 08/03/2023] (D)  - cfosat1_dump
[11:30:28 - 08/03/2023] (D)  - gk2a_cdas
[11:30:28 - 08/03/2023] (D)  - eumetcast_africa
[11:30:28 - 08/03/2023] (D)  - hinode_s_dump
[11:30:28 - 08/03/2023] (D)  - smos_tlm
[11:30:28 - 08/03/2023] (D)  - neossat_dump
[11:30:28 - 08/03/2023] (D)  - formosat5_s_dump
[11:30:28 - 08/03/2023] (D)  - ops_sat_s_link
[11:30:28 - 08/03/2023] (D)  - iris_s_dump
[11:30:28 - 08/03/2023] (D)  - swot_tlm
[11:30:28 - 08/03/2023] (D)  - tiahne1_tlm
[11:30:28 - 08/03/2023] (D)  - orion_link
[11:30:28 - 08/03/2023] (D)  - paz_s_tlm
[11:30:28 - 08/03/2023] (D)  - gcom_s_band
[11:30:28 - 08/03/2023] (D)  - oceansat2_db
[11:30:28 - 08/03/2023] (D)  - oceansat3_argos
[11:30:28 - 08/03/2023] (D)  - metop_ahrpt
[11:30:28 - 08/03/2023] (D)  - metop_dump
[11:30:28 - 08/03/2023] (D)  - fengyun4_lrit
[11:30:28 - 08/03/2023] (D)  - fengyun4_hrit23
[11:30:28 - 08/03/2023] (D)  - tubin_x_dump
[11:30:28 - 08/03/2023] (D)  - orbcomm_stx
[11:30:28 - 08/03/2023] (D)  - lucky7_link
[11:30:28 - 08/03/2023] (D)  - proba1_dump
[11:30:28 - 08/03/2023] (D)  - proba2_dump
[11:30:28 - 08/03/2023] (D)  - probav_s_dump
[11:30:28 - 08/03/2023] (D)  - probav_x_dump
[11:30:28 - 08/03/2023] (D)  - falcon9_tlm
[11:30:28 - 08/03/2023] (D)  - starship_tlm
[11:30:28 - 08/03/2023] (D)  - crew_dragon_tlm
[11:30:28 - 08/03/2023] (D)  - inmarsat_std_c
[11:30:28 - 08/03/2023] (D)  - inmarsat_aero_6
[11:30:28 - 08/03/2023] (D)  - inmarsat_aero_12
[11:30:28 - 08/03/2023] (D)  - inmarsat_aero_105
[11:30:28 - 08/03/2023] (D)  - inmarsat_aero_84
[11:30:28 - 08/03/2023] (D)  - saral_l_band
[11:30:28 - 08/03/2023] (D)  - angels_l_band
[11:30:28 - 08/03/2023] (D)  - gazelle_l_band
[11:30:28 - 08/03/2023] (D)  - yunhai_ahrpt
[11:30:28 - 08/03/2023] (D)  - syracuse3b_tlm
[11:30:28 - 08/03/2023] (D)  - scisat1_dump
[11:30:28 - 08/03/2023] (D)  - CALIPSO
[11:30:28 - 08/03/2023] (D)  - landsat_ldcm_tlm
[11:30:28 - 08/03/2023] (D)  - landsat_ldcm_link
[11:30:28 - 08/03/2023] (D)  - youthsat_dump
[11:30:28 - 08/03/2023] (D)  - fengyun_svissr
[11:30:28 - 08/03/2023] (D)  - goes_gvar
[11:30:28 - 08/03/2023] (D)  - goes_hrit
[11:30:28 - 08/03/2023] (D)  - goes_hrit_tcp
[11:30:28 - 08/03/2023] (D)  - goes_grb
[11:30:28 - 08/03/2023] (D)  - goesr_cda
[11:30:28 - 08/03/2023] (D)  - goes_mdl
[11:30:28 - 08/03/2023] (D)  - goes_lrit
[11:30:28 - 08/03/2023] (D)  - goesn_cda
[11:30:28 - 08/03/2023] (D)  - goesn_sounder
[11:30:28 - 08/03/2023] (D)  - goesn_sd
[11:30:28 - 08/03/2023] (D)  - cryosat_dump
[11:30:28 - 08/03/2023] (D)  - jason3_link
[11:30:28 - 08/03/2023] (D)  - coriolis_db
[11:30:28 - 08/03/2023] (D)  - stereo_lr
[11:30:28 - 08/03/2023] (D)  - mats_dump
[11:30:28 - 08/03/2023] (D)  - dmsp_rtd
[11:30:28 - 08/03/2023] (D)  - gk2a_lrit
[11:30:28 - 08/03/2023] (D)  - gk2a_lrit_tcp
[11:30:28 - 08/03/2023] (D)  - gk2a_hrit
[11:30:28 - 08/03/2023] (I) Loading TLEs from /root/.config/satdump/satdump_tles.txt
[11:30:28 - 08/03/2023] (T) Add satellite METOP-A
[11:30:28 - 08/03/2023] (T) Add satellite METOP-B
[11:30:28 - 08/03/2023] (T) Add satellite METOP-C
[11:30:28 - 08/03/2023] (T) Add satellite NOAA 15
[11:30:28 - 08/03/2023] (T) Add satellite NOAA 18
[11:30:28 - 08/03/2023] (T) Add satellite NOAA 19
[11:30:28 - 08/03/2023] (T) Add satellite FENGYUN 3A
[11:30:28 - 08/03/2023] (T) Add satellite FENGYUN 3B
[11:30:28 - 08/03/2023] (T) Add satellite FENGYUN 3C
[11:30:28 - 08/03/2023] (T) Add satellite FENGYUN 3D
[11:30:28 - 08/03/2023] (T) Add satellite FENGYUN 3E
[11:30:28 - 08/03/2023] (T) Add satellite METEOR-M 1
[11:30:28 - 08/03/2023] (T) Add satellite METEOR-M 2
[11:30:28 - 08/03/2023] (T) Add satellite METEOR-M2 2
[11:30:28 - 08/03/2023] (T) Add satellite TERRA
[11:30:28 - 08/03/2023] (T) Add satellite AQUA
[11:30:28 - 08/03/2023] (T) Add satellite AURA
[11:30:28 - 08/03/2023] (T) Add satellite SUOMI NPP
[11:30:28 - 08/03/2023] (T) Add satellite NOAA 20
[11:30:28 - 08/03/2023] (T) Add satellite NOAA 21 (JPSS-2)
[11:30:28 - 08/03/2023] (T) Add satellite JASON-3
[11:30:28 - 08/03/2023] (T) Add satellite CFOSAT
[11:30:28 - 08/03/2023] (T) Add satellite CORIOLIS
[11:30:28 - 08/03/2023] (T) Add satellite PROBA-1
[11:30:28 - 08/03/2023] (T) Add satellite PROBA-2
[11:30:28 - 08/03/2023] (T) Add satellite PROBA-V
[11:30:28 - 08/03/2023] (T) Add satellite CLOUDSAT
[11:30:28 - 08/03/2023] (T) Add satellite ISS (ZARYA)
[11:30:28 - 08/03/2023] (T) Add satellite GCOM-W1 (SHIZUKU)
[11:30:28 - 08/03/2023] (T) Add satellite GCOM-C (SHIKISAI)
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 16) > this->size() (which is 0)

Other info (Eg, Screenshots) / Files useful for debugging (CADU, etc)

I also tried to spawning SatDump in supervisor, but I got the same result.

My Go code snippet:

cmd = exec.Command("/usr/local/bin/satdump", "live", "gk2a_lrit", "/files", "--source", "sdrplay", "--samplerate", "3000000", "--frequency", "1.69214e9", "--gain", "40", "--http_server", "127.0.110.22:1234", "--agc", "--bias", "--dc_block", "true")

cmd.Stderr = os.Stderr
cmd.Stdout = os.Stdout

if err := cmd.Start(); err != nil {
    log.Fatalln("Failed to Start SatDump!")
}
Aang23 commented 1 year ago

Interesting, and does it work if you run it manually, not through your Go program?

bclswl0827 commented 1 year ago

SatDump works well if I run it manually

Aang23 commented 1 year ago

Hmmmm... With the exact same command?

bclswl0827 commented 1 year ago

Exactly the same. BTW, I checked many version and got a working one (But it's not the last available version) https://github.com/SatDump/SatDump/tree/8903c566d9a62f655f47beccfcdbf380849abd4f

Aang23 commented 1 year ago

Do you have a minimal example go code I can debug with?

JVital2013 commented 1 year ago

@bclswl0827 are you still having this issue? I just wrote a similar script and it works fine with go version go1.18.1 linux/amd64 on the latest build of SatDump

Live with GOES HRIT:

package main

import (
    "log"
    "os"
    "os/exec"
)

func main() {
    var cmd = exec.Command("/usr/bin/satdump", "live", "goes_hrit", "/home/jamie/Documents/satdump/test", "--source", "rtltcp", "--samplerate", "2.4e6", "--frequency", "1694.1", "--ip_address", "192.168.1.137", "--http_server", "0.0.0.0:8080")

    cmd.Stderr = os.Stderr
    cmd.Stdout = os.Stdout

    if err := cmd.Start(); err != nil {
        log.Fatalln("Failed to Start SatDump!")
    }
}

Command for offline METEOR M2 LRPT 80k processing

var cmd = exec.Command("/usr/bin/satdump", "meteor_m2-x_lrpt_80k", "cadu", "/media/jamie/Shared/Radio/LEO Satellite/LRPT/2023-07-15 1459 UTC - METEOR M2-3/meteor_m2-x_lrpt_80k.cadu", "/home/jamie/Documents/satdump/test")
bclswl0827 commented 1 year ago

Thank you! This problem seems to come from environment variable settings, I switched to another account and it worked