It only happens when "Select Any Unit" is activated (which actually means View Chosen Player & Select Any) and you select multiple teams' units. Then all defense ranges disappear immediately and you see why it can be usefull to have error messages activated in chat:
[cawidgets.lua] Error: Error in DrawWorldPreUnit(): [string "LuaUI/Widgets/gui_defenserange.lua"]:900: Incorrect arguments to gl.DrawGroundCircle()
[cawidgets.lua] Error: Removed widget: Defense Range Zero-K
In my last games even the whole GUI crashed and I had to /reload it. Idk if the bug also appears for other players. Maybe most players just don't use "Select Any Unit".
I used to switch between "Select Any Unit" and "View All & Select Any" by hotkeys. Since the bug only appears with "Select Any Unit" I will now switch between "View Chosen Player" and "View All & Select Any" instead.
As the problem is thus solved for me, I am ok with any of the following "solutions":
1. Solve the actual problem.
2. Remove the option "Select Any Unit". (maybe best)
3. Add a comment that unit ranges can disappear or GUI can crash when multiple teams' units are selected to the tooltip description of "Select Any Unit".
4. Make a ticket on googlecode and never touch it again.
5. Do nothing.