g0orx / linhpsdr

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

Cannot add TX device #100

Open daneenjah opened 3 years ago

daneenjah commented 3 years ago

When trying to add a TX device, I get the following error: malloc(): memory corruption (fast)

Doesn't matter what device I choose, it locks up and closes. Tried on two different machines.

Radio is Apache Labs ANAN-7000DLE MKII. Tried on Mint and Artix, same issues but sometimes get this one instead: full_rx_buffer: channel=0 fexchange0: error=-2 linhpsdr: ../cairo/src/cairo-region.c:149: _cairo_region_set_error: Assertion `status < CAIRO_STATUS_LAST_STATUS' failed.

g0orx commented 3 years ago

I am not sure what you mean by "When trying to add a TX device". The discovery should find the radio and the transmit capability should be there by default without having to add anything. I have never tried running on Mint or Artix. Could you give me some information about what version they are and I will try to install and run with them.

The' full_rx_buffer: channel=0 fexchange0: error=-2' is a warning message. It usually happens when something is slowing the system down so a buffer is not processed in time. What computer harwdare are you using?

-- John

daneenjah commented 3 years ago

Apologies, I should have been more clear. I'm talking about under configuration -> TX. When I try to add a "Local Microphone" is when I get these errors. Both Artix and Mint are newest version, and Mint is based on Debian so there shouldn't be any compatability issues there. I downloaded Ubuntu 21.04 and will give that a try when I get a chance.

My Artix computer is an i9-9900k, 32GB RAM. Mint is an i3-8100, 16GB RAM. CPU loads on the i3 is around 40-50%. I have an i7-9700 on the way which I think will clear up the buffer issues. I'm not worried about getting it running on the Artix system as it's a completely different OS than what you've built on.

I want to add, I really appreciate you working on software for Linux for this! The receiver performance is absolutely stunning and beats my 101d. If I can get this TX thing figured out I'll sell the 101!

Thank you for your time.

daneenjah commented 3 years ago

I installed Ubuntu 21.04 on a fresh drive and installed everything from scratch. Upon selecting the Pulse sink (setup as per WSJT.pdf under documentation directory) I got this:

malloc(): unaligned fastbin chunk detected

Second try gave me this: GLib:ERROR:../../../glib/gmain.c:3909:g_main_context_check: assertion failed: (i <= 0 || fds[i - 1].fd < fds[i].fd) Bail out! GLib:ERROR:../../../glib/gmain.c:3909:g_main_context_check: assertion failed: (i <= 0 || fds[i - 1].fd < fds[i].fd) Aborted (core dumped)

I don't think this is a hardware issue as I've tried 4 different sound cards and even tried different RAM while I was in the case. And it's a Pulse sink so shouldn't be touched by hardware as is.