[haiku-bugs] Re: [Haiku] #14755: Haiku Grinds to a Halt when Dribbling

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 15 Aug 2019 11:57:53 -0000

#14755: Haiku Grinds to a Halt when Dribbling
------------------------------------+----------------------------
   Reporter:  AGMS                  |      Owner:  leavengood
       Type:  bug                   |     Status:  assigned
   Priority:  normal                |  Milestone:  Unscheduled
  Component:  Servers/media_server  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:  4954
Has a Patch:  0                     |   Platform:  All
------------------------------------+----------------------------

Comment (by leavengood):

 Replying to [comment:14 Barrett]:

I don't agree. If the media_server is not able to detect when a process
 exit without releasing stuff (and consequently kick out those resources),
 then the whole system is just doomed.

 It really is just this one case of the buffers in the cache in
 BBufferConsumer, as far as I can see. The normal case now does not leak
 buffers, and I think that was 99% of the problem. Since we can associate
 buffers in the cache with port_ids now, we should also be able to detect
 when a port goes away and then clean up. Well that is at least what I plan
 to look at next.

 Seriously though, now that I understand this better, I am curious how you
 would change it? I know you are annoyed with Haiku and probably me, but I
 would actually like your opinion. Because too many things are definitely
 involved here and trying to share the same buffers everywhere is the core
 issue. If you don't think it can be fixed because of the crazy Media Kit
 design, I am starting to agree but unfortunately for the moment we cannot
 fix that. Even if it seems dumb to support a 20 year old design there are
 people still using it, in fact, one pretty important one: TuneTracker.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14755#comment:15>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: