Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] InvalidOperationException: Nullable object must have a value #284

Open
ximael opened this issue Mar 19, 2024 · 4 comments
Open

[bug] InvalidOperationException: Nullable object must have a value #284

ximael opened this issue Mar 19, 2024 · 4 comments

Comments

@ximael
Copy link

ximael commented Mar 19, 2024

InvalidOperationException: Nullable object must have a value.
at System.Nullable`1[T].get_Value () [0x00008] in :0
at Dissonance.Integrations.FMOD_Playback.FMODVoicePlayback.Update () [0x00070] in F:\Git\TavernCoop\Assets\Packages\Dissonance\Integrations\FMOD_Playback\FMODVoicePlayback.cs:141

Unity 2022.3.7f1 LTS
Netcode for gameobjects
Facepunch transport
Dissonance with fmod playback and recording

@martindevans
Copy link
Member

Can you provide any more context about this error message. For example: Does it happen consistently, just sometimes, or only when you do specific things?

@ximael
Copy link
Author

ximael commented Mar 19, 2024

Unfortunately, no. The first dissonance test with several players. Two ppl had this error. The voice continued to work, despite the error.

In players script i change VoiceBroadcastTrigger IsMuted
DissonanceSetup
VoiceSettings
DissonancePlayerName.cs.txt
PlayerSound.cs.txt

@martindevans
Copy link
Member

The error seems to be coming from Assets/Dissonance/Integrations/FMOD_Playback/FMODVoicePlayback.cs, Line 141. What does that code look like in your copy of that file?

It should look like this:

UpdateOutputBus();
if (LatestPlaybackOptions.HasValue)
    UpdatePositionalPlayback(LatestPlaybackOptions.Value); // <-- Line 141

@ximael
Copy link
Author

ximael commented Mar 24, 2024

Yes, UpdatePositionalPlayback(LatestPlaybackOptions.Value);
I have not edited any dissonance source file.

I don't need positional sound and don't send players positions to dissonance. "Use positional data" is disabled.

@ximael ximael changed the title [bug] InvalidOperationException: Nullable object must have a value Mar 25, 2024
@ximael ximael changed the title InvalidOperationException: Nullable object must have a value [bug] InvalidOperationException: Nullable object must have a value Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants