Hundreds of log error messages after updating

Hi, after updating to the latest PUN/Voice v2.26.3 I get hundreds of log messages which slow Unity to a crawl:

[Photon Voice.Recorder] 2021-08-04T02:27:41:OnAudioConfigChanged deviceWasChanged=True
UnityEngine.Debug:LogFormat (UnityEngine.Object,string,object[])
Photon.Voice.Unity.VoiceLogger:LogInfo (string,object[]) (at Assets/Photon/PhotonVoice/Code/VoiceLogger.cs:95)
Photon.Voice.Unity.Recorder:OnAudioConfigChanged (bool) (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1760)
UnityEngine.AudioSettings:InvokeOnAudioConfigurationChanged (bool) (at /Users/bokken/buildslave/unity/build/Modules/Audio/Public/ScriptBindings/Audio.bindings.cs:333)

[Photon Voice.Recorder] 2021-08-04T02:27:41:Restarting Recording as a result of audio config/device change.
UnityEngine.Debug:LogFormat (UnityEngine.Object,string,object[])
Photon.Voice.Unity.VoiceLogger:LogInfo (string,object[]) (at Assets/Photon/PhotonVoice/Code/VoiceLogger.cs:95)
Photon.Voice.Unity.Recorder:HandleDeviceChange () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1833)
Photon.Voice.Unity.Recorder:OnAudioConfigChanged (bool) (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1764)
UnityEngine.AudioSettings:InvokeOnAudioConfigurationChanged (bool) (at /Users/bokken/buildslave/unity/build/Modules/Audio/Public/ScriptBindings/Audio.bindings.cs:333)

[Photon Voice.Recorder] 2021-08-04T02:27:41:Unsubscribed from audio configuration changes via Unity callback.
UnityEngine.Debug:LogFormat (UnityEngine.Object,string,object[])
Photon.Voice.Unity.VoiceLogger:LogInfo (string,object[]) (at Assets/Photon/PhotonVoice/Code/VoiceLogger.cs:95)
Photon.Voice.Unity.Recorder:UnsubscribeFromSystemChanges () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1888)
Photon.Voice.Unity.Recorder:RemoveVoice (bool) (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1728)
Photon.Voice.Unity.Recorder:StopRecordingInternal () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:2256)
Photon.Voice.Unity.Recorder:StopRecording () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1265)
Photon.Voice.Unity.Recorder:RestartRecording (bool) (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1183)
Photon.Voice.Unity.Recorder:HandleDeviceChange () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1835)
Photon.Voice.Unity.Recorder:OnAudioConfigChanged (bool) (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1764)
UnityEngine.AudioSettings:InvokeOnAudioConfigurationChanged (bool) (at /Users/bokken/buildslave/unity/build/Modules/Audio/Public/ScriptBindings/Audio.bindings.cs:333)

[Photon Voice.Recorder] 2021-08-04T02:27:41:Setting recorder's source to Photon microphone device=[Default Device] (-128)
UnityEngine.Debug:LogFormat (UnityEngine.Object,string,object[])
Photon.Voice.Unity.VoiceLogger:LogInfo (string,object[]) (at Assets/Photon/PhotonVoice/Code/VoiceLogger.cs:95)
Photon.Voice.Unity.Recorder:CreateLocalVoiceAudioAndSource () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1522)
Photon.Voice.Unity.Recorder:Setup () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1415)
Photon.Voice.Unity.Recorder:StartRecordingInternal () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:2282)
Photon.Voice.Unity.Recorder:StartRecording () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1250)
Photon.Voice.Unity.Recorder:RestartRecording (bool) (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1184)
Photon.Voice.Unity.Recorder:HandleDeviceChange () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1835)
Photon.Voice.Unity.Recorder:OnAudioConfigChanged (bool) (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1764)
UnityEngine.AudioSettings:InvokeOnAudioConfigurationChanged (bool) (at /Users/bokken/buildslave/unity/build/Modules/Audio/Public/ScriptBindings/Audio.bindings.cs:333)

[Photon Voice.Recorder] 2021-08-04T02:27:41:Setting recorder's source to MacOS.AudioInPusher
UnityEngine.Debug:LogFormat (UnityEngine.Object,string,object[])
Photon.Voice.Unity.VoiceLogger:LogInfo (string,object[]) (at Assets/Photon/PhotonVoice/Code/VoiceLogger.cs:95)
Photon.Voice.Unity.Recorder:CreateLocalVoiceAudioAndSource () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1552)
Photon.Voice.Unity.Recorder:Setup () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1415)
Photon.Voice.Unity.Recorder:StartRecordingInternal () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:2282)
Photon.Voice.Unity.Recorder:StartRecording () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1250)
Photon.Voice.Unity.Recorder:RestartRecording (bool) (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1184)
Photon.Voice.Unity.Recorder:HandleDeviceChange () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1835)
Photon.Voice.Unity.Recorder:OnAudioConfigChanged (bool) (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1764)
UnityEngine.AudioSettings:InvokeOnAudioConfigurationChanged (bool) (at /Users/bokken/buildslave/unity/build/Modules/Audio/Public/ScriptBindings/Audio.bindings.cs:333)

UnityEngine.Debug:LogFormat (UnityEngine.Object,string,object[])
Photon.Voice.Unity.VoiceLogger:LogInfo (string,object[]) (at Assets/Photon/PhotonVoice/Code/VoiceLogger.cs:95)
Photon.Voice.Unity.Recorder:SubscribeToSystemChanges () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1876)
Photon.Voice.Unity.Recorder:Setup () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1426)
Photon.Voice.Unity.Recorder:StartRecordingInternal () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:2282)
Photon.Voice.Unity.Recorder:StartRecording () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1250)
Photon.Voice.Unity.Recorder:RestartRecording (bool) (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1184)
Photon.Voice.Unity.Recorder:HandleDeviceChange () (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1835)
Photon.Voice.Unity.Recorder:OnAudioConfigChanged (bool) (at Assets/Photon/PhotonVoice/Code/Recorder.cs:1764)
UnityEngine.AudioSettings:InvokeOnAudioConfigurationChanged (bool) (at /Users/bokken/buildslave/unity/build/Modules/Audio/Public/ScriptBindings/Audio.bindings.cs:333)


Over and over and over again. Hundreds of times until Unity crashes. Need help please.

Thanks.

Comments

  • This is for the Photo Mic Type. The Unity Mic Type doesn't seem to do this. Though the Unity Mic Type spews out a whole bunch of these messages instead: "There are no audio listeners in the scene. Please ensure there is always one audio listener in the scene." What on earth is going on? Everything was fine with my previous version of Photon Voice. I'm on a Mac, Unity v2020.2.6f1.
  • Bump. Anyone? Bueller?
  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @Grant,

    Sorry for the delay I was on vacation.

    First, I don't see error logs, those are info logs, right?
    Second, try disabling recorder.ReactOnSystemChanges on macOS, there is a known issue there due to a Unity callback being triggered infinite times.
    There are no audio listeners in the scene. Please ensure there is always one audio listener in the scene.
    I don't think this is directly related to Photon Voice, this is on Unity and check your scene setup.
    An AudioListener is needed for audio.
    Unity v2020.2.6f1.
    hmm we usually support LTS versions.
    please try 2020.3.