Today I downloaded the latest development build after uninstalling 3.5. I ran my game, and it threw a NullReferenceException the moment I tried to play a sound. It’s worth noting that I recently switched to a new computer which is connected to a TV screen, with no other source of audio. Before I tried the development build, no exception was thrown, but no audio played.
Also, with the latest installer, the game window starts in a different position from before, with some of the window going past the edge of the screen. That’s not too difficult to fix, I can just manually set the window position, but it is different from before.
Here’s the exception details. Could it be related to XACT?
System.NullReferenceException was unhandled
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=MonoGame.Framework
StackTrace:
at Microsoft.Xna.Framework.Audio.SoundEffectInstance.PlatformClearFilter()
at Microsoft.Xna.Framework.Audio.SoundEffectInstancePool.GetInstance(Boolean forXAct)
at Microsoft.Xna.Framework.Audio.SoundEffect.GetPooledInstance(Boolean forXAct)
at Microsoft.Xna.Framework.Audio.SoundEffect.Play()
at ThankGoodnessForGravity.SoundManager.PlaySound(SoundEffects effect) in D:\Source\ThankGoodnessForGravity\ThankGoodnessForGravity\ThankGoodnessForGravity\SoundManager.cs:line 46
at ThankGoodnessForGravity.Robot.CheckSequenceSignals() in D:\Source\ThankGoodnessForGravity\ThankGoodnessForGravity\ThankGoodnessForGravity\Robot.cs:line 632
at ThankGoodnessForGravity.Robot.Update() in D:\Source\ThankGoodnessForGravity\ThankGoodnessForGravity\ThankGoodnessForGravity\Robot.cs:line 257
at ThankGoodnessForGravity.Level.Update() in D:\Source\ThankGoodnessForGravity\ThankGoodnessForGravity\ThankGoodnessForGravity\Level.cs:line 65
at ThankGoodnessForGravity.Game1.Update(GameTime gameTime) in D:\Source\ThankGoodnessForGravity\ThankGoodnessForGravity\ThankGoodnessForGravity\Game1.cs:line 168
at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at MonoGame.Framework.WinFormsGameWindow.RunLoop()
at MonoGame.Framework.WinFormsGamePlatform.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at ThankGoodnessForGravity.Program.Main() in D:\Source\ThankGoodnessForGravity\ThankGoodnessForGravity\ThankGoodnessForGravity\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: