[haiku-bugs] Re: [haiku-development] Re: So close yet so far!

  • From: Dane Scott - <tunetrackersystems@xxxxxxxxx>
  • To: Cédric Degea <cdegea@xxxxxxx>, "Alexander G. M. Smith" <agmsmith@xxxxxx>, Ryan Leavengood <leavengood@xxxxxxxxx>, Augustin Cavalier <waddlesplash@xxxxxxxxx>, haiku-bugs@xxxxxxxxxxxxx
  • Date: Wed, 19 Feb 2020 10:38:00 -0600

Bang…the media server crash at shutdown seems totally vanquished!  Thanks so 
much guys.  Who was it again who did the work on that fix…was it Ryan?  I have 
$250 for you, contact me.

So one down, two to go!  Remaining...


1.  Media server having trouble initializing at bootup.  Must wait at least 30 
seconds before attempting to play audio.  If attempt happens too soon, media 
server gets irritable, requires reboot to clear.
2. Need to address two HDA outputs without media server crashing or misbehaving 
when sending audio to either of them.

Once we have those resolved, we’re out of the woods!

Best regards,

Dane Scott
---------------------------------------------------
Dane Scott | Support Services
---------------------------------------------------
TuneTracker Systems LLC
612 McDonald St.
Oconto, WI 54153 USA
920-672-8244
http://www.tunetrackersystems.com

Like us!  http://www.facebook.com/tunetracker

---

(Now offering reasonably-priced custom DJ voice-tracking for your station. Call 
for details!)
On Feb 15, 2020, 2:38 PM -0600, Dane Scott - <tunetrackersystems@xxxxxxxxx>, 
wrote:

Hi Ryan, and thank you for the update!

I’ve read through it all, and you can rest assured I’m ready to test anything 
that would be helpful in confirming how a change in code affects things.  
I'll just need the guidance of you, Cedric, Alex, as to what to do to set up 
for and perform the test.

Meanwhile, it’s over to Cedric and Alex to respond more fully and 
effectively.  My best role is to follow along and be ready to leap in 
wherever I’m needed for testing or if we need to come to any decisions about 
direction, etc.

Thanks again, this help is so appreciated Ryan!

Best regards,

Dane Scott
---------------------------------------------------
Dane Scott | Support Services
---------------------------------------------------
TuneTracker Systems LLC
612 McDonald St.
Oconto, WI 54153 USA
920-672-8244
http://www.tunetrackersystems.com

Like us!  http://www.facebook.com/tunetracker

---

(Now offering reasonably-priced custom DJ voice-tracking for your station. 
Call for details!)
On Feb 15, 2020, 2:31 PM -0600, Ryan Leavengood <leavengood@xxxxxxxxx>, wrote:
Hi Dane,

I am replying to you privately regarding this, adding Cédric and
Alexander. I don't know if we need to reply to the dev list at this
point.

Anyhow, I've done some testing and I am pretty sure issue number 1 is
due to the HDA driver. I am not yet sure what is wrong though.
Probably something related to the output stream, making a semaphore
or locking issue, or of course some bug in how the outputs are mapped.
Drivers are an area that are a bit out of my wheelhouse, but I am
trying to learn. I will keep poking at it this weekend, but I can't
say how quickly I will make progress. But I'm trying :)

Jérôme Duval has likely fixed issue number 2 today:
https://review.haiku-os.org/c/haiku/+/2245

Looks like when I made the change in the summer to fix the buffer
leaking I introduced this crash, in some cases. The lifecycle of these
buffers is really complicated, but looking at Jérôme's fix I think he
has figured it out. I want to see if I can add some tests around this
part of the code, and we still need to improve the data structure used
for the shared buffer list. But I don't want to touch that until we
have some sort of test, whether a unit test of some sort, or a driver
program which stress tests this buffer system. If you have any ideas
for that, or existing test programs, let me know.

As for issue number 3, I think we still have some work to do in the
media_server to fix how output connections work. For example the
media_server does not handle disconnecting the output very well. I
have not done much testing in this area or reading of the code, so I
can't make much guesses on timeframe or complexity to fix this, but I
also know it is a bit lower priority for you. Nonetheless when we have
fixed issue number 1 I can take a look at this.

I wish I could put in more time on these issues to get them fixed
faster, but my normal day job keeps me busy and I usually don't have
much energy to work on hard Haiku problems after work. But keeping you
guys running on Haiku is really important to me and other devs so I
just wanted to let you know we have not forgotten about these issues.

--
Regards,
Ryan

Other related posts: