app_server resource cleanup issues
|Reported by:||anevilyak||Owned by:||axeld|
|Has a Patch:||no||Platform:||All|
While running Tracker in the debugger and trying to reproduce ticket #698, I've been quite reliably able to seriously confuse the app_server (incidentally, this is easier to reproduce by doing something like svn up of the haiku source tree while taking the steps in the ticket, since this will result in enough lag in processing the launch commands that the tracker window won't immediately lose focus). Every so often, the debugger would die for as yet unclear reasons, but when this occurred, quite a bit of cleanup doesn't seem to happen that should. For one, the debugger's server-side app thread is still present, for another, one of Tracker's window threads. Furthermore, associated with that window thread I see something like 30 offscreen bitmap threads also still in the app_server even though both the Debugger and Tracker teams are gone at this point. This seems to have completely messed up the clipping furthermore: when switching workspaces to the one the Debugger was previously running in, the area of the former Debugger's window does not invalidate properly and has garbage from the previous workspace.