picom icon indicating copy to clipboard operation
picom copied to clipboard

debug logging can dead lock the X server

Open yshui opened this issue 1 year ago • 1 comments

logging to the terminal can block, e.g. if the terminal emulator is not processing the outputs fast enough. and with debug logging enabled, picom logs in the server critical section (i.e. between XGrabServer and XUngrabServer). if picom got blocked there, it will in turn block the terminal emulator, because it will not be able to update its window when the server is grabbed. a dead lock.

this is low priority because debug logging is not usually enabled for day-to-day uses.

yshui avatar Jan 30 '24 21:01 yshui

potential solution: make logging asynchronous with libev.

yshui avatar Jan 30 '24 21:01 yshui