SystemUIServer process not responding
Since a few weeks I have noticed that occasionally all system icons in the top right corner of the screen (like clock, Wi-Fi, Bluetooth, battery etc.) except Spotlight are not responding. Hovering the mouse icon over them results in the beachball. After some digging using Activity Monitor I found out that the SystemUIServer process is also not responding (marked red). After restarting the process, everything turns back to normal. However after a few hours, the process locks up again.
Does anyone have any good ideas on why this is happening, or maybe a quick fix for detecting a locked up process and restarting it? Thanks!
MacBook Pro (15-inch, Late 2016), macOS Sierra (10.12.3)