Originally I assumed this was a problem with the
ACT-Discord-Triggers plugin, so I created an
issue for it.
The owner of the repo thinks given the behaviour, this is actually a bug with ACT and not the plugin.
The problem is, when I attempt to play a TTS trigger after either connecting then disconnecting my bot to/from a voice channel or disabling the ACT_DiscordTriggers.dll plugin, I get an error popup saying "A new guard page for the stack cannot be created".
The log file contains the following information.
***** 2018-12-12T18:44:40 - Error with DeInit of Discord Plugin.
System.NullReferenceException: Object reference not set to an instance of an object.
at DiscordAPI.DiscordClient.<deInIt>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at ACT_DiscordTriggers.DiscordPlugin.<DeInitPlugin>d__26.MoveNext()
at Advanced_Combat_Tracker.FormActMain.WriteExceptionLog(Exception ex, String MoreInfo)
at ACT_DiscordTriggers.DiscordPlugin.<DeInitPlugin>d__26.MoveNext()
at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
at ACT_DiscordTriggers.DiscordPlugin.DeInitPlugin()
at Advanced_Combat_Tracker.FormActMain.pluginPanelEnabledChecked(Object sender, EventArgs e)
at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
at System.Windows.Forms.CheckBox.OnClick(EventArgs e)
at System.Windows.Forms.CheckBox.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Advanced_Combat_Tracker.ActLoader.Main(String[] args)
*****
Comments
When I say "play a TTS trigger" I mean going to the Custom Triggers tab, selecting a trigger that is set to play TTS and clicking the play button.