Post subject: BizHawk throws an error when launching TAS Studio
Joined: 10/26/2015
Posts: 11
Location: N/A
Hi, so BizHawk throws a rather large error when I try opening TAS Studio, I am currently using Hawk to tas a Super Mario World hack. The Version I am currently running on is 1.11.4 This just randomly happened in the middle of a TAS. Error System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at BizHawk.Client.EmuHawk.TAStudio.BranchesMarkersSplit_SplitterMoved(Object sender, SplitterEventArgs e) at System.Windows.Forms.SplitContainer.OnSplitterMoved(SplitterEventArgs e) at System.Windows.Forms.SplitContainer.set_SplitterDistance(Int32 value) at System.Windows.Forms.SplitContainer.ApplySplitterDistance() at System.Windows.Forms.SplitContainer.ResizeSplitContainer() at System.Windows.Forms.SplitContainer.OnLayout(LayoutEventArgs e) at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args) at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty) at System.Windows.Forms.Control.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl) at System.Windows.Forms.ContainerControl.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl) at System.Windows.Forms.Control.ScaleChildControls(SizeF includedFactor, SizeF excludedFactor, Control requestingControl) at System.Windows.Forms.Control.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl) at System.Windows.Forms.ContainerControl.OnChildLayoutResuming(Control child, Boolean performLayout) at System.Windows.Forms.ContainerControl.OnChildLayoutResuming(Control child, Boolean performLayout) at System.Windows.Forms.Control.OnLayoutResuming(Boolean performLayout) at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout) at BizHawk.Client.EmuHawk.TAStudio.InitializeComponent() at BizHawk.Client.EmuHawk.TAStudio..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at BizHawk.Client.EmuHawk.ToolManager.CreateInstance(Type toolType, String dllPath) at BizHawk.Client.EmuHawk.ToolManager.CreateInstance[T](String dllPath) at BizHawk.Client.EmuHawk.ToolManager.Load[T](String toolPath, Boolean focus) at BizHawk.Client.EmuHawk.MainForm.TAStudioMenuItem_Click(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Im the Peaciest :D
adelikat
He/Him
Emulator Coder, Site Developer, Site Owner, Expert player (3598)
Joined: 11/3/2004
Posts: 4738
Location: Tennessee
You closed TAStudio (or the whole emulator) while it was minimized. You got bogus data in your config.ini file If you remove your config file, it should work again.
It's hard to look this good. My TAS projects
Joined: 10/26/2015
Posts: 11
Location: N/A
No Such luck, also are we talking the Config.ini in the place my Hawk is installed? System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at BizHawk.Client.EmuHawk.TAStudio.BranchesMarkersSplit_SplitterMoved(Object sender, SplitterEventArgs e) at System.Windows.Forms.SplitContainer.OnSplitterMoved(SplitterEventArgs e) at System.Windows.Forms.SplitContainer.set_SplitterDistance(Int32 value) at System.Windows.Forms.SplitContainer.ApplySplitterDistance() at System.Windows.Forms.SplitContainer.ResizeSplitContainer() at System.Windows.Forms.SplitContainer.OnLayout(LayoutEventArgs e) at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args) at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty) at System.Windows.Forms.Control.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl) at System.Windows.Forms.ContainerControl.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl) at System.Windows.Forms.Control.ScaleChildControls(SizeF includedFactor, SizeF excludedFactor, Control requestingControl) at System.Windows.Forms.Control.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl) at System.Windows.Forms.ContainerControl.OnChildLayoutResuming(Control child, Boolean performLayout) at System.Windows.Forms.ContainerControl.OnChildLayoutResuming(Control child, Boolean performLayout) at System.Windows.Forms.Control.OnLayoutResuming(Boolean performLayout) at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout) at BizHawk.Client.EmuHawk.TAStudio.InitializeComponent() at BizHawk.Client.EmuHawk.TAStudio..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at BizHawk.Client.EmuHawk.ToolManager.CreateInstance(Type toolType, String dllPath) at BizHawk.Client.EmuHawk.ToolManager.CreateInstance[T](String dllPath) at BizHawk.Client.EmuHawk.ToolManager.Load[T](String toolPath, Boolean focus) at BizHawk.Client.EmuHawk.MainForm.TAStudioMenuItem_Click(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Im the Peaciest :D
Editor, Expert player (2012)
Joined: 8/25/2013
Posts: 1199
The heck you trying to hide with those spoiler tags, the secrets of an american teenager?
effort on the first draft means less effort on any draft thereafter - some loser
Joined: 10/26/2015
Posts: 11
Location: N/A
Y'know, I just realized this isnt like those toggle spoilers that you click and and they stay .-.
Im the Peaciest :D
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
easy and common bug.
public TAStudio() {
InitializeComponent(); <--- form does layout logic
...
Settings = new TAStudioSettings(); <-- Settings is constructed later
}

private void BranchesMarkersSplit_SplitterMoved(object sender, SplitterEventArgs e)
{
  <-- called from layout logic. Settings isnt built yet
 Settings.BranchMarkerSplitDistance = BranchesMarkersSplit.SplitterDistance;
}
Manifests differently on different systems due to DPI, themes, and other desktop settings making winforms take different initialization layout codepaths
Joined: 10/26/2015
Posts: 11
Location: N/A
So, how do I fix it? Please use layman's terms.
Im the Peaciest :D
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
You wait for a programmer to fix it
Joined: 10/26/2015
Posts: 11
Location: N/A
Wait, so its not on my side? Its BizHawk thats borked?
Im the Peaciest :D
Active player (266)
Joined: 7/14/2014
Posts: 57
Location: Kansas City, MO
If it's of any help, I just encountered the same problem on a laptop running Windows 10 and got around it by adjusting the "Change the size of text, apps, and other items" setting (Settings -> System -> Display) from 125% to 100%.
Current Project: Pocky & Rocky (SNES) improvements Status: Stage 2 - fighting the octopus Frames improved so far: 577
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
omg, bugs in software, news at 11