Visual bug in Dock after macOS Mojave installation After installing the macOS Mojave update, I get a strange visual bug in the Dock from time to time. It disappears when I click on something in the Dock or if I try to make a screenshot (that's why I had to capture the screenshot using camera instead of screenshots).

There is a horizontal line between the Mail and Calendar app icons and one in the middle of the Notes icon:



There is a horizontal line in the middle of the ForkLift icon:


Note: When installing the macOS Mojave update, my Mac got stuck on the analytics screen (like described here: Mojave install froze on &quot;analytics&quot;, successful force reboot- but did it miss anything?) and I had to restart it manually. Maybe that has corrupted my installation?
I'm using macOS Mojave 10.14 on a 2014 MacBook Pro.
Does anyone know how I can fix this?
Edit:
It looks like that this bug isn't linked to specific icons on the Dock. It appears randomly and disappears when I click on the dock. It looks a bit like it only appears next to active apps most of the time. It's still present after several restarts of my MacBook.

Edit 2:
I was able to reproduce this bug. I appears every time I minimize a window. You can see it here:

You have to look closely to the Postman icon (the 6th from the left), the Mail icon (10th) and the Notes icon (12th) after I minimize Chrome. You can see the bright square until I click on the Chrome icon again.
Edit 3:
I updated my Mac to 10.14.2 and the bug still appears.
I have this exact problem while connected on an external monitor using a Macbook Pro 2017. The problem is the window animation, I experience this problem using the Scale Effect animation but it disappears as soon as I am using the Genie Effect. That's an acceptable workaround, still I wonder how this is not fixed on Apple's side.