rescrobbled
rescrobbled copied to clipboard
Process does nothing after idle time
rescrobbled is started by systemd and runs fine at first. But after a longer time without any active mpris player running it seems to silently die somehow.
The process itself is still running, but there is no more logging message.
strace shows this:
[pid 94080] nanosleep({tv_sec=1, tv_nsec=0}, 0x7ffe6d0cfc20) = 0
[pid 94080] sendmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\0\1\0\0\0\0^\354\0\0b\0\0\0\1\1o\0\1\0\0\0/\0\0\0\0\0\0\0"..., iov_len=120}, {iov_base="", iov_len=0}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 120
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 500) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 476) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 463) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 454) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 445) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 432) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 416) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 404) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 388) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 377) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 361) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 352) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 335) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 323) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 314) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 303) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 294) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 284) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 275) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 264) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 251) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 240) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 227) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 208) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 192) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 181) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 163) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 151) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 139) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 125) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 114) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 102) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 92) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 79) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 67) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 55) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 44) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 33) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 22) = 1 ([{fd=6, revents=POLLIN}])
[pid 94080] poll([{fd=6, events=POLLIN}], 1, 11) = 1 ([{fd=6, revents=POLLIN}])
Hmm, that's strange. The program doesn't output anything as long as no player is started, so are you saying it simply refuses to detect new players after running for a while? How long was the idle time?
Idle times have been different, but it was at least an hour when I noticed those dropouts. There was no player playing for that time but one or two were running (ncmpcpp and ncspot). When I then started a song again nothing happened in rescrobbled. Stopping the players and starting them again did not change anything. The only thing that made rescrobbled work again was to restart the service via systemctl.
Very weird, I haven't experienced this myself. I'll have to investigate this. Thanks for the report.
@madhatter I've never been able to reproduce this unfortunately so I'm closing for now, but feel free to reopen if the problem still exists.