easyeffects icon indicating copy to clipboard operation
easyeffects copied to clipboard

After the system locks the screen and the user logs in again, the program starts to stutter and freeze the audio.

Open brunodupim08 opened this issue 1 year ago • 8 comments

EasyEffects Version

6.2.8 - 6.3.0 - 7.0.0 - 7.0.1

What package are you using?

Flatpak (Flathub)

Distribution

fedora 36, fedora 37, ubuntu 20.04

Describe the bug

The bug has been happening for a while now, I believe it's been around 7 months, but it hasn't been fixed yet. This error has occurred on more than one of my machines, and I don't think it's due to my configuration, as I have deleted the program's file folder several times in the directory ~/.var/app/com.github.wwmm.easyeffects. The error always occurs when the system logs out the user and they log in again.

Expected Behavior

The program should function normally with audio after the user logs in again.

Debug Log

Debug Log
Paste your log here

Additional Information

The program also starts to stutter and freeze when I open Discord, even just opening the program causes it to stutter. My Discord is also a Flatpak.

No response

brunodupim08 avatar Mar 02 '23 02:03 brunodupim08

Does the stuttering happen when opening other audio related applications, flatpak or system? For example, discord's web client in chromium, or OBS?

Can you provide any information about CPU / memory usage during and around the issues occurence?

IIRC, the default config in gdm3 allows the system to enter sleep while on the lock screen, even if automatic sleep is disabled in gnome-settings; pipewire might be struggling to restore from sleep mode. I am too sleepy atm to give solid advice on this issue, so will try to remember about gdm3's configuration more tomorrow.

violetmage avatar Mar 02 '23 04:03 violetmage

Maybe Pipewire process was restarted #1447. The output of sudo journalctl may help to see this. If PipeWire dies or is restarted for whatever reason EasyEffects has to be killed and restarted manually.

wwmm avatar Mar 02 '23 05:03 wwmm

I have this issue as well. It only happens on my laptop which has manjaro on it. I installed the manjaro-pipewire package and then easy effects with it. I have to kill and then restart the easyeffects application to fix the problem. My desktop running the same setup though does not have this issue. It's been going on for a few months. (I installed off of AUR)

E-daw avatar Mar 25 '23 07:03 E-daw

@wwmm Shower thoughts:

Is there even a proper (system agnostic) method to detect if pipewire is alive / responsive?

violetmage avatar Aug 08 '23 23:08 violetmage

Is there even a proper (system agnostic) method to detect if pipewire is alive / responsive?

I do not think many services out there provide reliable ways to do this. PipeWire and Pulseaudio included. In both servers the first thing you do is calling an init function that is of the void type. If this one freezes you are already in a bad situation. And you can't call any other function without calling this one first. So depending on where the failing is happening it is hard to put counter measures in place.

wwmm avatar Aug 09 '23 00:08 wwmm

Good afternoon, forgive me for not answering, I'm afraid the problem has been solved for me, but as incredible as it seems it was today, I took the time to look at this and deleted all the settings and started adding effect by effect and calmly analyzing the problem. I found that when I enable the "crystallizer" in the default or with any modification the stutters and crashes start. "Perhaps it could be coincidence", but if I keep enabling and disabling it many times it causes the program to lose the ability to stay in the background, and closes the program, only resolving it by restarting, after making the change by removing the crystallizer from all my presets and deleting the settings the problem disappeared.

Remembering that I'm no audio expert, I just modified the least I knew and tried to overcome the problem over time, I'm going to attach one of the files in the old format and the new one for you to confirm, along with the configuration of the pc that you asked for and I didn't I sent, and remembering that for me the problem occurred in any program with audio output and input, while running easyeffect.

had to rename to .txt for upload. New-Dupim-Rock.txt Dupim-Rock-antigo.txt

brunodupim08 avatar Aug 10 '23 21:08 brunodupim08

Operating System: Arch Linux KDE Plasma Version: 5.27.7 KDE Frameworks Version: 5.108.0 Qt Version: 5.15.10 Kernel Version: 6.4.9-arch1-1 (64-bit) Graphics Platform: X11 Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz Memory: 15.5 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 630 GPU 0: Intel CoffeeLake-H GT2 [UHD Graphics 630] GPU 1: NVIDIA GeForce GTX 1050 Ti Mobile Manufacturer: Acer Product Name: Nitro AN515-52 System Version: V1.28

brunodupim08 avatar Aug 10 '23 21:08 brunodupim08

My other presets are here. https://github.com/brunodupim08/EasyEffects-DupimPresets

brunodupim08 avatar Aug 10 '23 21:08 brunodupim08