Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulseaudio / Pipewire main loop blocking causing crash on RX on certain linux systems [miniaudio] #157

Open
Ades128 opened this issue Aug 18, 2024 · 35 comments

Comments

@Ades128
Copy link

Ades128 commented Aug 18, 2024

Using on 6.10.5-arch1-1
Gnome 46

doesn't append with 1.2.0
append with ether .appimage and trackaudio-bin from AUR repo

a clean install didn't change anything

way to reproduce:
Hit the RX button of a frequency, also on OBS

debugging informations from gdb

gdb_180824_1.3.0.beta1.txt

@neilenns
Copy link
Contributor

Did you reset your audio settings when installing 1.3.0.beta1?

@Ades128
Copy link
Author

Ades128 commented Aug 19, 2024

Yes, i had to, all audio settings were not set. And it's mandatory on the doc :)

@pierr3
Copy link
Owner

pierr3 commented Aug 19, 2024

What audio backend are you using? PulseAudio? Can you try with a different backend if you have any?

@Ades128
Copy link
Author

Ades128 commented Aug 20, 2024

Usually ALSA but it crashs also with Pulseaudio.
same using different devices.

@TryFanGamer
Copy link

this happens to me to on MAC

@neilenns
Copy link
Contributor

this happens to me to on MAC

Did you reset your audio settings prior to connecting?
What audio backend are you using?

@TryFanGamer
Copy link

Screenshot 2024-08-22 at 12 51 28 i did still not able to connect RX of TX

@neilenns
Copy link
Contributor

Screenshot 2024-08-22 at 12 51 28 i did still not able to connect RX of TX

It's probably not the cause, but why is your speaker device set to Microsoft Teams Audio?

@TryFanGamer
Copy link

I tested to see if that was the problem. It did not affect the RX or TX problem. dos not mater if its on that or MAC audio. going back to 1.2 fix the problem

@TryFanGamer
Copy link

its fix i did not use the Apple silicone one. :-)

@neilenns
Copy link
Contributor

its fix i did not use the Apple silicone one. :-)

So you installed this one instead and it worked? trackaudio-1.3.0-beta.1-x86_64.AppImage

@TryFanGamer
Copy link

TryFanGamer commented Aug 22, 2024

no i installed the trackaudio-1.3.0-beta.1-apple-silicon.dmg and it worked it did not work whit the trackaudio-1.3.0-beta.1-x64.dmg i only locked at the DMG file as that is usually a Mac file

@neilenns
Copy link
Contributor

@Ades128 can you please try installing this and seeing if it solves your crash issue: trackaudio-1.3.0-beta.1-apple-silicon.dmg

@Ades128
Copy link
Author

Ades128 commented Aug 22, 2024

@neilenns what version is it exactly ?
if it is the latest commit, i can also try trackaudio-git AUR package if you want.

@neilenns
Copy link
Contributor

@neilenns what version is it exactly ? if it is the latest commit, i can also try trackaudio-git AUR package if you want.

There's no version newer than beta1, the link I provided goes straight to the installer that TryFanGamer says fixed their issue.

@YukiSuter
Copy link

YukiSuter commented Aug 25, 2024

The same issue is happening for me on ubuntu. Installed using the .deb file

Its worth noting I tried changing it to JACK and now I can't even open the settings panel without it crashing :/

@pierr3
Copy link
Owner

pierr3 commented Aug 26, 2024

JACK support is still funky and not something I can do much about. It's possible that this crash is related to some accidental regression in afv-native that gcc on linux does not like. The next beta is likely to address this

@Ades128
Copy link
Author

Ades128 commented Sep 7, 2024

The same issue is happening for me on ubuntu. Installed using the .deb file

Its worth noting I tried changing it to JACK and now I can't even open the settings panel without it crashing :/

I get the same issue without investigate, to have it up again modify the setting into ~/.config/Trackaudio/config.json

@Ades128
Copy link
Author

Ades128 commented Sep 7, 2024

@Ades128 can you please try installing this and seeing if it solves your crash issue: trackaudio-1.3.0-beta.1-apple-silicon.dmg

@neilenns sorry for my late answer, i can't try .dmg files on Archlinux, only .appimage, .deb or AUR packages.
i'll try new commits from the git, will see. (AUR package trackaudio-git)

@neilenns
Copy link
Contributor

neilenns commented Sep 8, 2024

@Ades128 Can you please try the new beta release and see if it works better for you. Thanks!

@Ibot02
Copy link

Ibot02 commented Sep 8, 2024

Not the OP, but I had the same issue earlier with 1.3.0beta2 (on ubuntu linux, I use pipewire and tried selecting both the pulseAudio and ALSA backends. Microphone test worked fine, but trying to enable RX on a frequency crashes the program).
If it's possible to post a build with debug symbols, I could run that in gdb to see where the problem comes from?

@pierr3
Copy link
Owner

pierr3 commented Sep 8, 2024 via email

@Ibot02
Copy link

Ibot02 commented Sep 8, 2024

Don't have npm installed.
Where does the log file get saved to?

@Ibot02
Copy link

Ibot02 commented Sep 8, 2024

Where does the log file get saved to?

nvm, found it.
trackaudio.log

@Ades128
Copy link
Author

Ades128 commented Sep 8, 2024

@Ades128 Can you please try the new beta release and see if it works better for you. Thanks!

I tryed beta2 .appimage and trackaudio-bin AUR packages.
I tryed almost all audio configs i've got, neither work. with wrong ones i receive a warning message (that's correct) and with others who work on 1.2.0, it crashed.
I made a complete fresh install after removing all config files, still the same.

Would you like me to provide the log file or dump ?

@pierr3
Copy link
Owner

pierr3 commented Sep 8, 2024

Yes, please provide both if you can.

@Ades128
Copy link
Author

Ades128 commented Sep 10, 2024

@pierr3 here there are, fresh produced ;)

trace.log
trackaudio.log

@Ades128 Ades128 changed the title 1.3.0.beta1 crash when RX is selected from 1.3.0.beta1 crash when RX is selected Sep 10, 2024
@pierr3
Copy link
Owner

pierr3 commented Sep 10, 2024

Thank you, incredibly useful. It seems like this is an issue with Pulseaudio, most likely stemming from Miniaudio (the underlying audio-to-system library). Can I ask you to try and update your system, inc PulseAudio drivers, and if possible to try another audio API, but preferably not JACK?

@pierr3
Copy link
Owner

pierr3 commented Sep 10, 2024

Found it, it's this issue: mackron/miniaudio#881 and this one mackron/miniaudio#877

Seems like some commits have been pushed on dev to try and fix that (mackron/miniaudio@d46e19f). If you are proficient enough, try to rebuild TrackAudio manually and swap out miniaudio.h in backend/extern/afv-native/include/afv-native/audio with the latest one from that repo, while adding config.pulse.blockingMainLoop = MA_FALSE; to the audio device config.

The author says this might come from an issue with Pipewire or even certain hardware.

I am willing to try and switch to the dev version but it might break other things.

@pierr3 pierr3 changed the title from 1.3.0.beta1 crash when RX is selected Pulseaudio / Pipewire main loop blocking causing crash on RX on certain linux systems [miniaudio] Sep 10, 2024
@Ades128
Copy link
Author

Ades128 commented Sep 11, 2024

Found it, it's this issue: mackron/miniaudio#881 and this one mackron/miniaudio#877

Seems like some commits have been pushed on dev to try and fix that (mackron/miniaudio@d46e19f). If you are proficient enough, try to rebuild TrackAudio manually and swap out miniaudio.h in backend/extern/afv-native/include/afv-native/audio with the latest one from that repo, while adding config.pulse.blockingMainLoop = MA_FALSE; to the audio device config.

The author says this might come from an issue with Pipewire or even certain hardware.

I am willing to try and switch to the dev version but it might break other things.

additional questions:

miniaudio.h from the dev branche ?

config.pulse.blockingMainLoop = MA_FALSE you confirm that will be in /etc/pulse/XX.conf file ?

@Ades128
Copy link
Author

Ades128 commented Sep 12, 2024

@pierr3
I rebuilt it with the latest miniaudio.h from dev branche 0.11.22

juste confirm if i'd right with adding config.pulse.blockingMainLoop = MA_FALSE in /etc/pulse/XX.conf file

it still crashs. The bt:

gdb.txt

@fagidutt
Copy link

Can confirm that this behaviour exists in 1.3 (all versions), and not in 1.2.
About the above conversation: i didn't compile trackaudio myself to test, however, i think that @Ades128 attempt at compiling with the dev branch miniaudio.h is pointless, as the commit doesn't seem to be part of the branch, or any branch for that matter. I may be mistaken, though. For reference, if someone wants to try self-compiling, this is the commit with the mentioned changes. Admittedly, i'm more used to GitLab than GitHub, so i may have missed something as to which branch may or may not contain the fix.

Hope this helps.

I'm currently running 1.2 without issues so far.

@neilenns
Copy link
Contributor

It looks like that commit got reverted: mackron/miniaudio#881 (comment).

@pierr3
Copy link
Owner

pierr3 commented Oct 26, 2024

It did get reverted. We can't do much unfortunately but hope for a pulseaudio update, and eventually a miniaudio fix

@Tebro
Copy link

Tebro commented Nov 23, 2024

I am having this crash with the latest aur build, I have not used the software before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants