DivideByZeroException PhotonVoice v1.13 Unity (5.6.4f1) (Windows Standalone)
in Photon Voice
Sometimes photon voice (Unity) spam lots of errors per frame:
Next thing which is missing, is disabling logging warnings from photon voice, which are annoyingly always spamming console (like mic sample rate or skipped frames).
And finally, in voice package is extremely missing namespace fix: http://forum.photonengine.com/discussion/9638/namespace-conflict-with-wwise-errorcode
DivideByZeroException: Division by zero MicWrapper.Read (System.Single[] buffer) ExitGames.Client.Photon.Voice.BufferReaderPushAdapterAsyncPool`1[System.Single].Service (ExitGames.Client.Photon.Voice.LocalVoice localVoice) ExitGames.Client.Photon.Voice.LocalVoice.service () ExitGames.Client.Photon.Voice.VoiceClient.Service () ExitGames.Client.Photon.Voice.LoadBalancingFrontend.Service () PhotonVoiceNetwork.Update ()This error has happened in the builded version, but once I've received it in editor. Unfortunately I could not reproduce this error, but it is very critical, since it is spamming a lot of messages.
Next thing which is missing, is disabling logging warnings from photon voice, which are annoyingly always spamming console (like mic sample rate or skipped frames).
And finally, in voice package is extremely missing namespace fix: http://forum.photonengine.com/discussion/9638/namespace-conflict-with-wwise-errorcode
0
Comments
-
Hi @LevityPlay,
Thank you for choosing Photon!
We will investigate theDivideByZeroException
thank you for reporting it.
We will also look into the other two suggestions:
- logging level setting
- Photon namespace0 -
0
-
Unity reports 0 microphone channels sometimes. The reason for this is unknown. As a workaround, add mic.channels == 0 check in MicWrapper.Read (Assets\Plugins\PhotonVoiceApi\Platforms\Unity\MicWrapper.cs) before division and return false in case of 0 channels. Please report if this helps.
Probably we will add this check in voice package.
The same issue discussed: https://issuetracker.unity3d.com/issues/microphone-dot-start-always-has-0-channels-available
0