Mac OS X - Mavericks - No sound after 2 or 3 days (debug log attached)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Memphiz Offline
Team-Kodi Developer
Posts: 10,795
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #106
@FernetMenta ... this is the code now:

https://github.com/Memphiz/xbmc/commits/osxdevicereset

Will you PR the top most commit and i do the rest in a seperate PR? Or should we PR both in one?

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
FernetMenta Offline
Team-Kodi Developer
Posts: 3,090
Joined: Jul 2010
Reputation: 62
Location: Munich
Post: #107
can you submit both in one and relate the pr to this issue?
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,795
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #108
done

https://github.com/xbmc/xbmc/pull/4441

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
crypticknight Offline
Junior Member
Posts: 9
Joined: Jun 2013
Reputation: 0
Post: #109
I'm also going to test this as I have a Mac Mini 2010, xbmc 12.3 and have tested the various versions except for this most recent one. The one where repstein said it originally fixed this issue seemed to fix it for me but for some reason made the dialog move from the center channel to the left and right rear channels. I'll post any findings i have as well. I don't post much but thank you guys for your diligence at finding a solution to this.
find quote
crypticknight Offline
Junior Member
Posts: 9
Joined: Jun 2013
Reputation: 0
Post: #110
Ok same outcome. audio looks fixed as far as it plays after i turn my receiver back on.

Mac Mini Mid 2010
2.4 GHz Intel Core 2 Duo
6GB 1067Memory
Nvidia 320 256MB
OS X 10.9.2(13C64)

Receiver is Pioneer VSX522 w/ Bose Acousitmas 10
Skin is Aeon

Audio settings are

Default
5.1
1 Min

Dialog for movies with DTS 5.1 or higher has dialog coming out of the rear speakers instead of the center speaker.

debug
(This post was last modified: 2014-03-19 00:05 by crypticknight.)
find quote
ganbyt Offline
Junior Member
Posts: 5
Joined: May 2012
Reputation: 0
Post: #111
I will test on a mac mini that I just reformat and install osx 10.9.1
might help
find quote
repstein Offline
Donor
Posts: 77
Joined: Dec 2011
Reputation: 0
Location: Wellington.Florida
Post: #112
I was testing with a 2.0 configuration. I can also test later with a 5.1 configuration and let you know.
find quote
ganbyt Offline
Junior Member
Posts: 5
Joined: May 2012
Reputation: 0
Post: #113
log http://xbmclogs.com/show.php?id=152353
I got no sound on dts
my settings are mac mini osx 10.9.1 connected to pioneer vsx 921
hope the information cam help
if you need to try anything on this machine Im trying to help any test jut send my a guide and I well be happy to help you..
find quote
Gigantur Offline
Senior Member
Posts: 112
Joined: Dec 2012
Reputation: 0
Location: Melbourne, Australia
Post: #114
(2014-03-18 15:06)Memphiz Wrote:  Yes i have reenabled them for sure:

see https://github.com/Memphiz/xbmc/blob/osx...X.cpp#L296

In giganturs logs they didn't appear always - it was in repsteins logs where we saw them. (its a different story why those are not fired on giganturs setup - it seems the os doesn't think anything to the device list changed ...).

I suspect if I hard power off TV it will ..

As above - in my previous experience standy and power off are different - if i rebooted my previous gen mac with TV actually off versus standby (then turned TV on later) the mac was a train wreck in terms of graphics - at the time i found heaps of info on the web saying same thing ..
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,795
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #115
@all those who are chiming in here now - keep this thread on topic and don't post any other audio issues here.

Last comment in this thread from me for the offtopic things -

@ganbyt - you have set your defsult device to builtin output or optical or something. You need to set your speaker layout to 2.0 in that vase or switch to hdmi in OSX audio settings.

@crypticknight - make a new thread with a debug log or switch your speakerlayout to 2.0

now stop threadjacking...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Gigantur Offline
Senior Member
Posts: 112
Joined: Dec 2012
Reputation: 0
Location: Melbourne, Australia
Post: #116
(2014-03-19 09:08)Gigantur Wrote:  
(2014-03-18 15:06)Memphiz Wrote:  Yes i have reenabled them for sure:

see https://github.com/Memphiz/xbmc/blob/osx...X.cpp#L296

In giganturs logs they didn't appear always - it was in repsteins logs where we saw them. (its a different story why those are not fired on giganturs setup - it seems the os doesn't think anything to the device list changed ...).

I suspect if I hard power off TV it will ..

As above - in my previous experience standy and power off are different - if i rebooted my previous gen mac with TV actually off versus standby (then turned TV on later) the mac was a train wreck in terms of graphics - at the time i found heaps of info on the web saying same thing ..

Still ok with hard power off .. here is the debug

Steps:

Play
Pause
TV OFF
wait 3 minutes
TV ON
Play (ok)
Pause
upload debug

Log shows the following after the power off:

23:03:41 T:4677230592 DEBUG: CActiveAE - device change event
23:03:41 T:4677767168 ERROR: CActiveAESink::OutputSamples - failed
23:03:41 T:4677767168 ERROR: CEngineStats::UpdateSinkDelay - inconsistency in buffer time
23:03:41 T:4677767168 ERROR: CCoreAudioDevice::Stop: Unable to stop device. Error = '!dev'
23:03:41 T:4677767168 ERROR: CCoreAudioDevice::RemoveIOProc: Unable to remove IOProc. Error = '!dev'
23:03:41 T:4434699024 DEBUG: CWinSystemOSX::DisplayReconfigured with flags 1
23:03:41 T:4434699024 DEBUG: CWinSystemOSX::AnnounceOnLostDevice
23:03:41 T:4677767168 DEBUG: CCoreAudioStream::Close: Couldn't remove property listener.
23:03:41 T:4677767168 DEBUG: Previous line repeats 1 times.
23:03:41 T:4677767168 DEBUG: CCoreAudioStream::Close: Restoring original physical format for stream 0x0045. ([lpcm] Mixable Interleaved 2 Channel 16-bit Signed Integer LE (48000Hz))
23:03:41 T:4677767168 ERROR: CCoreAudioStream::SetPhysicalFormat: Unable to set physical format for stream 0x0045. Error = '!obj'
23:03:41 T:4677767168 DEBUG: CCoreAudioStream::Close: Closed stream 0x0045.
23:03:41 T:4677767168 ERROR: CCoreAudioDevice::GetBufferSize: Unable to retrieve buffer size. Error = '!obj'
23:03:41 T:4677767168 ERROR: CCoreAudioDevice::SetBufferSize: Unable to set buffer size. Error = '!obj'
23:03:41 T:4677767168 ERROR: CCoreAudioDevice::GetBufferSize: Unable to retrieve buffer size. Error = '!obj'
23:03:41 T:4677767168 ERROR: CCoreAudioDevice::SetBufferSize: Buffer size change not applied.


Oddly, the log also shows a number of errors after the first play/pause (prior to turning the TV off):

23:00:05 T:4434699024 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPause
23:00:05 T:4434699024 DEBUG: ------ Window Init (DialogSeekBar.xml) ------
23:00:05 T:4434699024 DEBUG: Window DialogSeekBar.xml was already loaded
23:00:05 T:4434699024 DEBUG: Alloc resources: 0.17m
23:00:08 T:4939350016 DEBUG: CoreAudio: audiodevicelist changed - reenumerating
23:00:08 T:4939350016 DEBUG: CoreAudio: audiodevicelist changed - done
23:00:08 T:4677230592 DEBUG: CActiveAE - device change event
23:00:08 T:4677767168 ERROR: CActiveAESink::OutputSamples - failed
23:00:08 T:4677767168 ERROR: CEngineStats::UpdateSinkDelay - inconsistency in buffer time
23:00:08 T:4677767168 ERROR: CCoreAudioDevice::Stop: Unable to stop device. Error = '!dev'
23:00:08 T:4677767168 ERROR: CCoreAudioDevice::RemoveIOProc: Unable to remove IOProc. Error = '!dev'
23:00:08 T:4677767168 DEBUG: CCoreAudioStream::Close: Couldn't remove property listener.
23:00:08 T:4677767168 DEBUG: Previous line repeats 1 times.
23:00:08 T:4677767168 DEBUG: CCoreAudioStream::Close: Restoring original physical format for stream 0x0041. ([lpcm] Mixable Interleaved 2 Channel 16-bit Signed Integer LE (48000Hz))
23:00:08 T:4677767168 ERROR: CCoreAudioStream::SetPhysicalFormat: Unable to set physical format for stream 0x0041. Error = '!obj'
23:00:08 T:4677767168 DEBUG: CCoreAudioStream::Close: Closed stream 0x0041.
23:00:08 T:4677767168 ERROR: CCoreAudioDevice::GetBufferSize: Unable to retrieve buffer size. Error = '!obj'
23:00:08 T:4677767168 ERROR: CCoreAudioDevice::SetBufferSize: Unable to set buffer size. Error = '!obj'
23:00:08 T:4677767168 ERROR: CCoreAudioDevice::GetBufferSize: Unable to retrieve buffer size. Error = '!obj'
23:00:08 T:4677767168 ERROR: CCoreAudioDevice::SetBufferSize: Buffer size change not applied.

If these are not relevant then apols - will leave to the guys who know ..
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,795
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #117
Code:
23:00:08 T:4939350016 DEBUG: CoreAudio: audiodevicelist changed - reenumerating

Those errors are because something in the audiodevice list changed (maqybe an airplay target appeared or something like that). What caused it doesn't matter - the operating system clearly detected this and reported it to us. Nothing to see here.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Gigantur Offline
Senior Member
Posts: 112
Joined: Dec 2012
Reputation: 0
Location: Melbourne, Australia
Post: #118
Cool (thanks). The only airplay target I could think of would be xbmc itself ..

The "unable to stop device" immediately after both normal pauses is the bit that seems odd to my eyes (coded under os7 or 8 about 20 years ago!) - as you say it works!

Kudos to you - a great win - will make a lot of people happy
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,795
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #119
The device we try to stop isn't valid anymore because something in the audiolist has changed. Still nothing to see here (whatever causes this callback from the operating system to fire - i have no clue).

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Gigantur Offline
Senior Member
Posts: 112
Joined: Dec 2012
Reputation: 0
Location: Melbourne, Australia
Post: #120
Very cool. Thanks for you thanks in the write-up BTW. When do we expect it will be merged
find quote
Post Reply