[haiku-bugs] Re: [Haiku] #4954: Proliferation of BBuffer instances when playing sound

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 19 Mar 2019 19:31:12 -0000

#4954: Proliferation of BBuffer instances when playing sound
------------------------------+-----------------------
   Reporter:  Adek336         |      Owner:  Barrett
       Type:  bug             |     Status:  reopened
   Priority:  normal          |  Milestone:  R1
  Component:  Kits/Media Kit  |    Version:  R1/alpha1
 Resolution:                  |   Keywords:
 Blocked By:  14755           |   Blocking:
Has a Patch:  0               |   Platform:  All
------------------------------+-----------------------

Comment (by leavengood):

 I need to test but wonder if the media_server just doesn't get notified by
 the roster when the sample app (and similar command-line apps) quit?
 Therefore it never cleans up resources from that app. Though the test code
 from #4920 has a BApplication so should interact with the roster. The only
 way to know for sure is add some logging to the media_server.

 But nonetheless I think for crashes at least we need a cleanup thread
 which periodically goes through the resources in media_server and removes
 things for teams which are no longer running.

 I do not know if there is a cleaner method. If anyone has suggestions let
 me know.

 I may also run BeOS and see what threads are in their media_server to see
 if there is an obvious cleanup one.

 I think this is also the cause of #14755.

 Also as mentioned buffer management needs work.

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

Other related posts: