What the f---------. So USB-C docks are causing a lot of these problems. We wouldn't need USB-C docks if Apple didn't force us to use them in the first f------- place with their USB-C only ports.
How widespread is this issue of freezing when using docks?? @#$%^&*(OP){
I do not know. I assume it does not happen to everyone?
In my case computer has problems waking from sleep after long enough time that system was really sleeping - when connected to the dock. I have NO problems running with docks, if the system has not been sleeping and only had only powered off display. So, most people may never figure out they have problem, if they have long enough period to sleep (or disabled sleep altogether). Also, my system has no issues waking up from sleep when NOT connected to usb-c dock.
I have two different manufacturer docks (work one ~2 years old which was quite expensive and home new Tripp Lite, on cheaper side) and it happens with both.
It is not clear what causes this - I connect 4k monitor directly through one of the other USB-C ports, so my docks support USB drives, keyboard, ethernet dongle etc. AND I use both for power, they have their own bricks.
If I use unpowered dongles and direct cables, running the same hardware works fine without any issues.
This was new in 10.14.4 and now in 10.14.5. Seems like something does not wake up right, but that is pretty simplistic statement.