Compile error - leak doesn't exist?
Posted May 28, 2011
Hey guys,
After compiling my map I got a leak error (not unusual) so loaded the pointfile, which put the red line out in the middle of nowhere. (I tried drawing a selection marquee around that area, there's nothing there that I can see).

Also the actual co-ords of the leaked func_brush got flagged on the compile log, but when I go to them, its just a blank space of void on the opposite side of the map with nothing there.
materialPath: e:\steam\steamapps\common\portal 2\portal2\materials
Loading E:\Steam\steamapps\common\portal 2\sdk_content\maps\sp_rubiks_chamber.vmf
ConVarRef gpu_level doesn't point to an existing ConVar
fixing up env_cubemap materials on brush sides...
0...1...2...3...4...5...6...7...8...9...10**** leaked ****
Entity func_brush (1083.39 3823.81 86.67) leaked!
Does anyone have any ideas of how to approach this? I've made sure I have no objects hidden, and I've restarted hammer a few times to no avail.
Thanks in advance.
Registered users don’t see ads!
Register now!
Posted May 28, 2011
Replied
6 minutes
later
I've had this problem plenty of times and so far my way of dealing with it is to delete the brush, or copy and cut it until later, and then try recompiling. There's usually a leak somewhere in the map, so just keep removing brushes until it gives you a proper pointfile.
Hopefully someone has a better way of resolving this issue. My way seems a bit unorthodox. :/
Posted May 28, 2011
Replied
12 minutes
later
Thanks for the reply; that sucks that it's happening for you so frequently. Following your method it seems that something is really fucked with the pointfile, even deleting sides of entire rooms exposing every entity inside still coughs up a pointfile that gives me lines everywhere except where it should. Will keep persisting with that for now, thanks again.
Posted May 28, 2011
Replied
37 minutes
later
Talked to a source ninja, and my error was caused by func_brushes with their origin points way outside the map (the little circles you can drag out from the middle). A bunch had got misplaced (they're very easy to drag accidentally, had no idea what they were); if you go to Map -> Entity Report, filter all the func_brushes, select them all, right click in a 2D viewport and then hit "Center Origins", that should fix it.
Posted May 28, 2011
Replied
52 minutes
later
Actually, most entities have origins, so it's not necessarily a func_brush.
Registered users don’t see ads!
Register now!
Posted May 28, 2011
Replied
5 hours
later
Another method is to load the point file, then go to Edit -> Select All and see if there is an origin at the leak source.