Our current SDR online list: https://sdr-list.xyz/

Problem to start-rx88 error with library/std/src/io/stdio.rs:1118

Started by bujd, Oct 02, 2024, 08:13 AM

Previous topic - Next topic

bujd

I am using debian kernel 6.1.0-21-amd64. Just do my first the fresh install of sw. So install required lib, clone git repo and install.

I have not modify config files in any manner and just use standard generic.



# ./start-rx888mk2.sh
spectrumserver: no process found
rx888_stream: no process found
root@protonF:/mnt/disk2/home/juraj/PhanotSDR/PhantomSDR-Plus# thread 'main' panicked at library/std/src/io/stdio.rs:1118:9:
failed printing to stdout: Broken pipe (os error 32)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


The process is terminated

The problem looks like happend in the second part after pipe:
rx888_stream -f ./rx888_stream/SDDC_FX3.img -s 60000000 -g 60 -m low -d --pga -o - | build/spectrumserver --config config-rx888mk2.toml


The linux core file is created.

#----------------------------------------------------------------
#coredumpctl list
TIME                PID  UID  GID SIG    COREFILE EXE  SIZE

Wed 2024-10-02 07:53:22 CEST  196749    0    0 SIGABRT present /mnt/disk2/home/juraj/PhanotSDR/PhantomSDR-Plus/build/spectrumserver 403.0K


#----------------------------------------------------------------
PhantomSDR-Plus# coredumpctl dump 196749 --output 196749.core
          PID: 196749 (spectrumserver)
          UID: 0 (root)
          GID: 0 (root)
        Signal: 6 (ABRT)
    Timestamp: Wed 2024-10-02 07:53:22 CEST (4min 6s ago)
  Command Line: build/spectrumserver --config config-test-rx888mk2.toml
    Executable: /mnt/disk2/home/juraj/PhanotSDR/PhantomSDR-Plus/build/spectrumserver
Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
        Slice: user-1000.slice
      Session: 2
    Owner UID: 1000 (juraj)
      Boot ID: baec19f01750415faf8d80cf14f16939
    Machine ID: 071d6fe6948f4a3fb61b4900a02ef103
      Hostname: protonF
      Storage: /var/lib/systemd/coredump/core.spectrumserver.0.baec19f01750415faf8d80cf14f16939.196749.1727848402000000.zst (present)
  Size on Disk: 403.0K
      Message: Process 196749 (spectrumserver) of user 0 dumped core.
               
                Stack trace of thread 196749:
                #0  0x00007f49c3061e2c n/a (libc.so.6 + 0x8ae2c)
                #1  0x00007f49c3012fb2 raise (libc.so.6 + 0x3bfb2)
                #2  0x00007f49c2ffd472 abort (libc.so.6 + 0x26472)
                #3  0x00007f49c329d919 n/a (libstdc++.so.6 + 0x9d919)
                #4  0x00007f49c32a8e1a n/a (libstdc++.so.6 + 0xa8e1a)
                #5  0x00007f49c32a8e85 _ZSt9terminatev (libstdc++.so.6 + 0xa8e85)
                #6  0x00007f49c32a90d8 __cxa_throw (libstdc++.so.6 + 0xa90d8)
                #7  0x000055624d9a9f90 n/a (/mnt/disk2/home/juraj/PhanotSDR/PhantomSDR-Plus/build/spectrumserver + 0x18f90)
                #8  0x000055624d9b115f n/a (/mnt/disk2/home/juraj/PhanotSDR/PhantomSDR-Plus/build/spectrumserver + 0x2015f)
                #9  0x0000000000000000 n/a (n/a + 0x0)
                ELF object binary architecture: AMD x86-64




Bas ON5HB

I tested on Debian Bookworm and that works fine.

Did you disable OpenCL in the toml-file?

You can not run with opencl or cuda if opencl isn't compiled into the binary and working.
Try to set it to none for acceleration.

Also you didn't mention the CPU / GPU etc.

To run 60MSPS can't be done on any system.
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

bujd

/cpuinfo
model name   : AMD Ryzen 7 7730U with Radeon Graphics
I do not have any GPU in place.

accelerator="none" # Accelerator: none, cuda, opencl
Thx a lot. I have modify config files and it start to work.




Juraj om0ace

Bas ON5HB

Quote from: bujd on Oct 07, 2024, 02:32 PMmodel name  : AMD Ryzen 7 7730U with Radeon Graphics

The bold part is the GPU build in the CPU ;)

Those build-in don't support OpenCL.

Unlike the Intel CPU's where the build-in GPU does support OpenGL.
For some weird reason AMD stopped the support some time ago.

Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

alanVK2ZIW

Hi all,
rx888_stream fails when piped to spectrumserver.

But, when piped to dd of=junk, runs fine.

Issue is, cannot write to stdout, running in a thread.

There's a bug in main.rs lines 357 and 358, the use of println()
that should be eprintln() to write out to stderr.

Also, we don't want that 'garbage' in the output I & Q stream.

Alan VK2ZIW

Bas ON5HB

It has been fixed by the maker of the driver.
As I opened a request is done.

A new install will install the updated code.
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Powered by EzPortal