-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
Crash on screenlock #302
Comments
I've had this exact same issue on master for a while now. |
I lock my screen omgwhat times a day and didn't encounter this problem... BUT I get the same problem on session login ! I will investigate this further, this is a blocker on the release clearly. Thanks |
:( I can't reproduce this via i3lock or by starting a session. My though is it could be related to #253 as signaling is probably involved here. could someone see if the following commits are good/bad
for what it's worth: |
For my crash, I think it's due to the xrandr module command returning badly on login :
My bar is then not updated and a few seconds later I get the status_command error displayed. |
Thanks I think I'll be able to trigger it now. Shouldn't be too hard to fix. |
@pigmonkey @pydsigner can you see if this is now fixed for you in master |
Negative. Same error after screenlock. |
Not working here either. |
Interestingly, turning |
So here's all the error I can gather with debug off:
|
odd the only code I can see that really does anything is
but that should in theory help the issue. if you run it with |
@pigmonkey does running with |
This looks like what is killing things https://github.com/ultrabug/py3status/blob/master/py3status/core.py#L579 If the main loop in |
Hmm that could be possible, also I went away from my PC for ten minutes with it on --debug and it crashed again when logging in. |
@pigmonkey @pydsigner another attempt to fix this now in master |
Current master seems to be working better now. The first fix attempt just left me with cascading I3Status failure nagbars. |
Hmm nope, happened again. |
@pydsigner hmm, what i3status modules do you use? Also the patch just keeps it alive 10 times then lets it die |
Yeah since it's quite a blocker, it would be great to get deeper in the debug if possible. Like, running i3status alone instead of py3status using the /tmp/pystatus_ config generated (or share it with us if possible?) |
@pydsigner @pigmonkey any more info you can share with us on this? |
Sorry for the delay. Using the latest master, I no longer experience the crash when my status command is I only switched to py3status a few weeks ago. I'm still using wnot for weechat notifications. wnot is supposed to be used with i3status like so:
When I moved to py3status stable (2.9). I simply swapped out i3status for py3status.
This is what I'm now using on a regular basis. It works fine. However, when I try to use the latest master with wnot, I still experience the crash after unlocking my screen.
This only happens when using py3status 3.x and wnot in conjuction. Now that I'm using py3status I could probably write a module to replace wnot, but wnot does work well and it was nice that I could continue using it with py3status 2.x. I'd rather continue using wnot with py3status 3.x and not put any more thought into the problem of weechat notifications. :) |
This makes sense. PR #266 changed things so that i3bar should send us a As I don't have From what I can see the problem is that wnot_cli is consuming the py3status output and then adding itself into the output before sending it to i3bar. The reason the py3status uses So as far as fixing this the options are.
Anyhow it's good to get to the bottom of this at last @pydsigner are you doing anything similar to this in your |
I still think that there's something wrong with this SIGUSR2 signaling. I finally debugged my xrandr problems to be linked with this too. The xrandr module is mostly broken by SIGURS2, returning error -12 on some changes (so I have to click twice to switch output) then I see in the logs that i3status dies so I think the two are linked. If I comment this in the core, all those problems go away
|
hmmm, it does seem to be causing us problems. Maybe it needs a rethink and we should look at fixes for the modules rather than py3status. Moving from using threading to multiprocessing for them might be a way forward and might keep them alive when we get the SIGSTOP. |
@pigmonkey py3status (master) has switched to using Once again thanks for your help in this issue |
This does result in the crash. With the good py3status 2.9 and wnot setup, running With the latest master and a status command of Now that we know what is going on I can work with wnot to get it to accept whatever signal py3status ends up using. |
Another option might be to have something like the following as a final pipe. It just pipes everything through but handles the signals. So you might need to send signals to wnot_cli too
|
@pigmonkey do you think we can close this issue mate ? |
Closing as this is an issue in wnot_cli not py3status |
Using the latest git version, py3status seems to be unable to recover from a screen lock. The bar runs fine, but if I lock my screen with i3lock and then unlock, the bar is replaced by the i3 error
Error: status_command process exited unexpectedly (exit 1)
. Oddly I can still see the py3status process running viaps
.This does not happen in 2.9.
The text was updated successfully, but these errors were encountered: