Closed doh38 closed 6 years ago
Duplicate of https://github.com/wwmm/pulseeffects/issues/318 ?
It seems to be. I still can't reproduce it but I will take a look at the code and see if there is anything that could explain why some people are having this problem
@Dodjob do you have Use Default
turned on in PE settings menu or is it disabled?
After a second look at your logs I think that the info I talked in the pots above is irrelevant. You are having the crash when PE tries to load its sinks. This stage comes in the first initialization steps and has nothing to do with custom device selection.
It seems that PE is not being capable to load a null sink in your system. Strange.
Yeap, I would love to change this, but PulseEffect doesnt start ^^ I tried to start it on another user on the same computer... and .. it works.. which means.. it's something config related somewhere. I tried to remove "config/pulse" without succes. That maybe help tho :)
You are right. In your case you would not be able to see the window XD
Wait... You can not remove config/pulse
?!?! What is the output of ls -l ~/.config/pulse/
It seems you have permission problems in your folder
I found a work-around: I installed the Flathub package! But possibly more interesting, it is version 4.2.8 which is a little behind on the developments.
Of course, I would rather use the PPA version (Flathub is great for proprietary blobs) but it's a nice thing to compare side by side.
@wwmm I can remove it ^^ it's just that it doesnt make my beloved pulseeffects working again :( *do you have any kind of files generated in the user space? like a config file I evtl. could delete? Removing my only json (yes pretty weak) doesn't solve anything :)
Try to run dconf reset -f /com/github/wwmm/pulseeffects/
. This will reset PE settings
OMG.. It's back <3 Lot's of thanks.. Aaah really :D *big fan here ;)
Yep, confirmed here to. Had to wait a second before I could try it, but after rebooting the settings are preserved and the pulse audio still starts. Now all that's left is to roll out a patch that resets the settings if PulseEffects crashes.
*should I close the issue now? :1st_place_medal:
No, fix should be deployed in some way. Never assume that all users read the github page. @wwmm Ideas?
It is good to know this helps but at this moment it is not clear why it fixed the problem. I don't think it is possible to reset PE in this kind of crash. Maybe we should consider an automatic reset after each upgrade. It is not the first time a reset fixes issues that a few users have but I and other users don't. I wonder if it is possible that dconf database gets corrupted after an upgrade
Hey. I have no idea if this is possible. but as soon as there is no special permission to run your command. I think just add somehow a little batch at first start after update (the program let somehow a trace of used version when it shut down and check if it is the same when it starts) would do the trick. Again, mega N00B here and mostly very fran of your program.. because I used qpaeq for years and always was wondering why somethnig like Viperfx wasn't ported to linux. Sorry for the roman and slight OT but you made somone really happy with your work. ;)
No problems :-)
Doing an automatic reset after each upgrade or downgrade is easy.If you take a look at PE settings menu you will see we have a reset button. All that has to be done is calling the reset function we already have when the version string changes. And as most of PE settings are saved to the presets file this automatic reset will not be annoying to the users. I am just not sure if it is the better course of action. But without being able to reproduce the issue I don't have a better idea
I remember I saw ~/.gconf or ~/.dbus beloning to root instead of user for multiple time. No idea why it happend so.
If it's not possible to build in some try{}catch{} on the top level of the application, then best to just pre-emptively reset.
A try/catch could only be done if I knew where the problem was and what was causing it. But without being able to reproduce the issue this is impossible.
I must confess, my knowledge on Python is almost none, but I was thinking of starting and ending the entire application in one big try/catch(...), where the last possible catch quickly clears settings before throwing the error. This way, users can restart the app without to much loss. Done such a thing in the past where the last catch() just mails the support desk.
PulseEffects 4 is written in C++. PE 3 that was in Python. The assert that causes the abort happens deep inside Pulseaudio that is written in C. I have my doubts that a C++ try/catch will magically handle C assertion failures. We probably would need to know what caused this Pulseaudio assertion to fail as well as which operation invoked it.
And now that PE has 20000 lines of code I doubt it would be easy to handle this with only 1 try/catch
*just to let you know that last update went smoothly on my side :)
It was a wonderful program but no longer works for me after the most recent update. I am using Ubuntu 18.10. Here is the last bit of an strace before it explodes:
futex(0x560b2a1328b0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x560b2a1328b0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x560b2a1306d0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x560b2a1306d0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x560b2a12fbf0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x560b2a12fbf0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x560b2a0ef880, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x560b2a0ef880, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x560b2a12a450, FUTEX_WAKE_PRIVATE, 2147483647) = 0 socketpair(AF_UNIX, SOCK_STREAM, 0, [20, 21]) = 0 write(4, "\1\0\0\0\0\0\0\0", 8) = 8 socketpair(AF_UNIX, SOCK_STREAM, 0, [22, 23]) = 0 futex(0x560b29e5c3a0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 write(23, "W", 1) = 1 close(23) = 0 close(22) = 0 socketpair(AF_UNIX, SOCK_STREAM, 0, [22, 23]) = 0 socketpair(AF_UNIX, SOCK_STREAM, 0, [24, 25]) = 0 futex(0x560b29e5c3a0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 write(25, "W", 1) = 1 close(25) = 0 close(24) = 0 socketpair(AF_UNIX, SOCK_STREAM, 0, [24, 25]) = 0 brk(0x560b2a167000) = 0x560b2a167000 munmap(0x7f98d63bf000, 1) = 0 access("/run", F_OK) = 0 stat("/run", {st_mode=S_IFDIR|0755, st_size=1520, ...}) = 0 access("/run/user", F_OK) = 0 stat("/run/user", {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0 access("/run/user/2000", F_OK) = 0 stat("/run/user/2000", {st_mode=S_IFDIR|0700, st_size=320, ...}) = 0 access("/run/user/2000/dconf", F_OK) = 0 stat("/run/user/2000/dconf", {st_mode=S_IFDIR|0700, st_size=40, ...}) = 0 openat(AT_FDCWD, "/run/user/2000/dconf/user", O_RDWR|O_CREAT, 0600) = 26 pwrite64(26, "\0", 1, 1) = 1 mmap(NULL, 1, PROT_READ, MAP_SHARED, 26, 0) = 0x7f98d63bf000 close(26) = 0 openat(AT_FDCWD, "/home/nanook/.config/dconf/user", O_RDONLY) = 26 fstat(26, {st_mode=S_IFREG|0644, st_size=60246, ...}) = 0 mmap(NULL, 60246, PROT_READ, MAP_PRIVATE, 26, 0) = 0x7f98b7562000 close(26) = 0 write(5, "\1\0\0\0\0\0\0\0", 8) = 8 futex(0x560b298e6d20, FUTEX_WAKE_PRIVATE, 1) = 0 futex(0x560b2988d0f0, FUTEX_WAKE_PRIVATE, 1) = 0 getpid() = 26024 write(2, "Assertion 'o' failed at pulse/op"..., 92Assertion 'o' failed at pulse/operation.c:133, function pa_operation_get_state(). Aborting. ) = 92 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0 getpid() = 26024 gettid() = 26024 tgkill(26024, 26024, SIGABRT) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=26024, si_uid=2000} --- +++ killed by SIGABRT (core dumped) +++ Aborted (core dumped)
@4nanook it may be better to open another issue. In any case strace output will probably not be very helpful. if you are having segmentation faults try to get the core dump like described in Reporting-Bugs
Executing dconf reset -f /com/github/wwmm/pulseeffects/
may also help when crashing after an upgrade
The dconf command made it work, thank you.
---------------------------------------_- Eskimo North Linux Friendly Internet Access, Shell Accounts, and Hosting. Knowledgeable human assistance, not telephone trees or script readers. See our web site: http://www.eskimo.com/ (206) 812-0051 or (800) 246-6874.
On Sun, 28 Oct 2018, Wellington Wallace wrote:
Date: Sun, 28 Oct 2018 21:25:05 -0700 From: Wellington Wallace notifications@github.com Reply-To: wwmm/pulseeffects <reply+0034e62d2763c2223a9fb34747e86126753018215fee101d92cf0000000117ee4da 192a169ce152b7d0b@reply.github.com> To: wwmm/pulseeffects pulseeffects@noreply.github.com Cc: Robert Dinse nanook@eskimo.com, Mention mention@noreply.github.com Subject: Re: [wwmm/pulseeffects] My PulseEffects crash (Ubuntu 18.04 -PulseEffects 4.3.1-2) (#327)
Executing
dconf reset -f /com/github/wwmm/pulseeffects/
may also help when crashing after an upgrade-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/wwmm/pulseeffects/issues/327#issuecomment-433784728
It has worked until today. but no more after dailly restart. Here are the logs + info:
LOG+INFO
Ubuntu 18.04 PulseEffects 4.3..1.2 -- from the PPA: Hit:7 http://ppa.launchpad.net/mikhailnov/pulseeffects/ubuntu bionic InRelease doh@tvux: G_MESSAGES_DEBUG=pulseeffects pulseeffects (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.901: pulse_manager: context is connecting (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.901: pulse_manager: context is authorizing (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.902: pulse_manager: context is setting name (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.902: pulse_manager: context is ready (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.902: pulse_manager: connected to: unix:/run/user/1000/pulse/native (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.902: pulse_manager: protocol version: 32 (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.902: pulse_manager: Pulseaudio version: 12.2 (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.902: pulse_manager: default pulseaudio source: alsa_input.usb-093a_262c-01.analog-mono (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.902: pulse_manager: default pulseaudio sink: alsa_output.pci-0000_00_1b.0.iec958-stereo (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.902: pulse_manager: loading Pulseeffects applications output sink... (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.903: pulse_manager: default pulseaudio sink sampling rate: 96000 Hz (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.903: pulse_manager: default pulseaudio sink audio format: s32le (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.903: pulse_manager: loading Pulseeffects microphone output sink... (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.903: pulse_manager: default pulseaudio source sampling rate: 48000 Hz (pulseeffects:3383): pulseeffects-DEBUG: 15:40:14.903: pulse_manager: default pulseaudio source audio format: s16le Assertion 'o' failed at pulse/operation.c:133, function pa_operation_get_state(). Aborting. Aborted (core dumped) doh@tvux: $ pactl list short 0 module-device-restore 1 module-stream-restore 2 module-card-restore 3 module-augment-properties 4 module-switch-on-port-available 5 module-udev-detect tsched=0 6 module-alsa-card device_id="2" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=no fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1" 7 module-alsa-card device_id="1" name="usb-093a_262c-01" card_name="alsa_card.usb-093a_262c-01" namereg_fail=false tsched=no fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1" 8 module-alsa-card device_id="0" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false tsched=no fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1" 9 module-alsa-card device_id="3" name="usb-Harman_Kardon_USB_AV_Receiver-00" card_name="alsa_card.usb-Harman_Kardon_USB_AV_Receiver-00" namereg_fail=false tsched=no fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1" 10 module-bluetooth-policy 11 module-bluetooth-discover 12 module-bluez5-discover 13 module-native-protocol-unix 14 module-default-device-restore 15 module-rescue-streams 16 module-always-sink 17 module-intended-roles 18 module-suspend-on-idle 19 module-console-kit 20 module-systemd-login 21 module-position-event-sounds 22 module-role-cork 23 module-filter-heuristics 24 module-filter-apply 25 module-equalizer-sink 26 module-dbus-protocol 27 module-x11-publish display=:1 28 module-x11-bell display=:1 sample=bell.ogg 29 module-x11-cork-request display=:1 30 module-x11-xsmp display=:1 session_manager=local/tvux:@/tmp/.ICE-unix/1809,unix/tvux:/tmp/.ICE-unix/1809 31 module-null-sink sink_name=PulseEffects_apps sink_properties=device.description="PulseEffects(apps)"device.class="sound" channels=2 rate=96000 32 module-null-sink sink_name=PulseEffects_mic sink_properties=device.description="PulseEffects(mic)"device.class="sound" channels=2 rate=48000 0 alsa_output.pci-0000_01_00.1.hdmi-stereo module-alsa-card.c s32le 2ch 48000Hz SUSPENDED 1 alsa_output.pci-0000_00_1b.0.iec958-stereo module-alsa-card.c s32le 2ch 96000Hz RUNNING 2 alsa_output.usb-Harman_Kardon_USB_AV_Receiver-00.analog-surround-21 module-alsa-card.c s16le 3ch 48000Hz SUSPENDED 3 alsa_output.pci-0000_00_1b.0.iec958-stereo.equalizer module-equalizer-sink.c float32le 2ch 96000Hz SUSPENDED 4 PulseEffects_apps module-null-sink.c s32le 2ch 96000Hz SUSPENDED 5 PulseEffects_mic module-null-sink.c s32le 2ch 48000Hz SUSPENDED 0 alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor module-alsa-card.c s32le 2ch 48000Hz SUSPENDED 1 alsa_input.usb-093a_262c-01.analog-mono module-alsa-card.c s16le 1ch 48000Hz SUSPENDED 2 alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor module-alsa-card.c s32le 2ch 96000Hz IDLE 3 alsa_input.pci-0000_00_1b.0.analog-stereo module-alsa-card.c s32le 2ch 96000Hz SUSPENDED 4 alsa_output.usb-Harman_Kardon_USB_AV_Receiver-00.analog-surround-21.monitor module-alsa-card.c s16le 3ch 48000Hz SUSPENDED 5 alsa_input.usb-Harman_Kardon_USB_AV_Receiver-00.iec958-stereo module-alsa-card.c s16le 2ch 48000Hz SUSPENDED 6 alsa_output.pci-0000_00_1b.0.iec958-stereo.equalizer.monitor module-equalizer-sink.c float32le 2ch 96000Hz SUSPENDED 7 PulseEffects_apps.monitor module-null-sink.c s32le 2ch 96000Hz SUSPENDED 8 PulseEffects_mic.monitor module-null-sink.c s32le 2ch 48000Hz SUSPENDED 0 1 - module-equalizer-sink.c float32le 2ch 96000Hz 2 1 14 protocol-native.c float32le 2ch 96000Hz 0 module-systemd-login.c (null) 1 protocol-native.c indicator-sound-service 2 protocol-native.c indicator-sound-service 4 protocol-native.c unity-settings-daemon 10 module-x11-xsmp.c (null) 12 protocol-native.c chrome 14 protocol-native.c chrome 20 protocol-native.c pactl 0 bell.ogg float32le 1ch 44100Hz 0,200 0 alsa_card.pci-0000_01_00.1 module-alsa-card.c 1 alsa_card.usb-093a_262c-01 module-alsa-card.c 2 alsa_card.pci-0000_00_1b.0 module-alsa-card.c 3 alsa_card.usb-Harman_Kardon_USB_AV_Receiver-00 module-alsa-card.c doh@tvux: $ pactl list-sinks No valid command specified. doh@tvux: $ pacmd list-sinks 6 sink(s) available. index: 0 name: