You are right that this is not a “normal” error. The project window is implemented using the GUI functions that you know and love. So, it has an OnGUI() function. Inside this OnGUI the code has spotted that the Asset Database is locked. Most operations that work on the database lock the database, do their work, and then unlock it. So, my guess is that somehow an operation on the database has gone wrong and the database is not unlocked. (Are you doing any editor scripting?) Does the problem persist if you quit from Unity and re-open your project?
You wouldn’t by any chance be running unity on Wine on Linux would you??? Because similar errors have happened on linux…
Anyway, “Repainting while performing asset operations! UnityEditor.DockArea:OnGUI()” this sounds like it might be an error that has happened from importing assets or something… you said you keep getting it… Have you tried restarting unity???
Thanks for your feedback.
I restarded unity and even rebooted the PC and kept getting the error, then I reorganized my folders some more, and suddenly the problem stopped happening. Sadly I could not tell which folder or file was causing the error.
It is likely that unity didn't like some of the drag & dropping (exclusively done through unity and never in the windows filesystem), and luckily it's gone.
Just had this problem myself, I only had a couple of local changes so it was easy to spot. I had a .max file which had been accidentally saved within the project (I only ever export .fbx to Unity) and the file only had a spline in it, afaik Unity would see this as an empty file, this file did exist on the Asset Server but I was the only one with 3dsMax so nobody else had the same error. Anyways, I deleted it and the error went away after a restart.