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

[06x] Reopening about dialog causes NRE #3748

Open
gonX opened this issue Jan 25, 2025 · 1 comment
Open

[06x] Reopening about dialog causes NRE #3748

gonX opened this issue Jan 25, 2025 · 1 comment
Labels
bug Something isn't working gui Affects driver GUI linux/gtk Affects the Linux platform
Milestone

Comments

@gonX
Copy link
Member

gonX commented Jan 25, 2025

How to reproduce:

  • Open about dialog (Help -> About, or press F1)
  • Close dialog (press the Close button or press Escape)
  • Open dialog again
  • Receive NullReferenceException

Stack trace:

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 Eto.PlatformDetect.GetCallingAssembly()
   at InvokeStub_PlatformDetect.GetCallingAssembly(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
   at Eto.Forms.AboutDialog..ctor()
   at OpenTabletDriver.UX.App.get_AboutDialog() in /home/gonx/prog/_opentabletdriver/opentabletdriver/OpenTabletDriver.UX/App.cs:line 138
   at OpenTabletDriver.UX.MainForm.<ConstructMenu>b__13_1(Object sender, EventArgs e) in /home/gonx/prog/_opentabletdriver/opentabletdriver/OpenTabletDriver.UX/MainForm.cs:line 212
   at Eto.Forms.Command.OnExecuted(EventArgs e)
   at Eto.Forms.Command.Execute()
   at Eto.Forms.Command.System.Windows.Input.ICommand.Execute(Object parameter)
   at Eto.PropertyStore.CommandWrapper.Command_Execute(Object sender, EventArgs e)
   at Eto.Forms.MenuItem.OnClick(EventArgs e)
   at Eto.Forms.MenuItem.Callback.OnClick(MenuItem widget, EventArgs e)
   at Eto.GtkSharp.Forms.Menu.ButtonMenuItemHandler`2.ButtonMenuItemConnector.HandleActivated(Object sender, EventArgs e)
   at InvokeStub_EventHandler.Invoke(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
@gonX gonX added bug Something isn't working gui Affects driver GUI labels Jan 25, 2025
@gonX gonX added this to the v0.6.6 milestone Jan 25, 2025
@github-actions github-actions bot added the needs-triage This issue or PR has not been properly labeled yet label Jan 25, 2025
@Mrcubix
Copy link
Contributor

Mrcubix commented Jan 25, 2025

Can't reproduce on Windows.

@gonX gonX added linux/gtk Affects the Linux platform and removed needs-triage This issue or PR has not been properly labeled yet labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gui Affects driver GUI linux/gtk Affects the Linux platform
Projects
None yet
Development

No branches or pull requests

2 participants