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

[GTK] crashes when trying to set data store on Eto.Test #2403

Closed
Miepee opened this issue Feb 15, 2023 · 1 comment
Closed

[GTK] crashes when trying to set data store on Eto.Test #2403

Miepee opened this issue Feb 15, 2023 · 1 comment

Comments

@Miepee
Copy link
Contributor

Miepee commented Feb 15, 2023

Expected Behavior

It shouldnt crash

Actual Behavior

It crashes:

Cairo.Surface is leaking, programmer is missing a call to Dispose
Set MONO_CAIRO_DEBUG_DISPOSE to track allocation traces

(Eto.Test.Gtk:130846): Gdk-WARNING **: 18:35:00.000: Server is missing xdg_foreign support

(Eto.Test.Gtk:130846): Gtk-WARNING **: 18:35:00.000: Unable to show '': Vorgang wird nicht unterstützt

(Eto.Test.Gtk:130846): Gdk-WARNING **: 18:35:01.089: Server is missing xdg_foreign support

(Eto.Test.Gtk:130846): Gtk-WARNING **: 18:35:01.089: Unable to show '': Vorgang wird nicht unterstützt
Cairo.Surface is leaking, programmer is missing a call to Dispose
Set MONO_CAIRO_DEBUG_DISPOSE to track allocation traces
Marshaling clicked signal
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: store
  at Eto.Forms.DataStoreExtensions.GetExpandedRowCount[T] (Eto.Forms.IDataStore`1[T] store, System.Int32 index) [0x00009] in /home/narr/Dokumente/gitRepos/Eto/src/Eto/Forms/Controls/DaataStoreExtensions.cs:24 
  at Eto.GtkSharp.Forms.Controls.TreeGridViewHandler.SetSelectedRows (System.Collections.Generic.IEnumerable`1[T] value) [0x00033] in /home/narr/Dokumente/gitRepos/Eto/src/Eto.Gtk/Forms/Controls/TreeGridViewHandler.cs:449 
  at Eto.GtkSharp.Forms.Controls.GridHandler`2[TWidget,TCallback].UpdateModel () [0x00027] in /home/narr/Dokumente/gitRepos/Eto/src/Eto.Gtk/Forms/Controls/GridHandler.cs:105 
  at Eto.GtkSharp.Forms.Controls.TreeGridViewHandler+CollectionHandler.RemoveAllItems () [0x00001] in /home/narr/Dokumente/gitRepos/Eto/src/Eto.Gtk/Forms/Controls/TreeGridViewHandler.cs:96 
  at Eto.CollectionChangedHandler`2[TItem,TCollection].OnUnregisterCollection (System.EventArgs e) [0x00001] in /home/narr/Dokumente/gitRepos/Eto/src/Eto/CollectionChangedHandler.cs:43 
  at Eto.CollectionChangedHandler`2[TItem,TCollection].Unregister () [0x00054] in /home/narr/Dokumente/gitRepos/Eto/src/Eto/CollectionChangedHandler.cs:81 
  at Eto.GtkSharp.Forms.Controls.TreeGridViewHandler.set_DataStore (Eto.Forms.ITreeGridStore`1[T] value) [0x0000e] in /home/narr/Dokumente/gitRepos/Eto/src/Eto.Gtk/Forms/Controls/TreeGridViewHandler.cs:106 
  at Eto.Forms.TreeGridView.set_DataStore (Eto.Forms.ITreeGridStore`1[T] value) [0x00001] in /home/narr/Dokumente/gitRepos/Eto/src/Eto/Forms/Controls/TreeGridView.cs:559 
  at Eto.Test.Sections.Controls.TreeGridViewSection.SetDataStore (Eto.Forms.TreeGridView grid) [0x00011] in /home/narr/Dokumente/gitRepos/Eto/test/Eto.Test/Sections/Controls/TreeGridViewSection.cs:34 
  at Eto.Test.Sections.Controls.GridViewSection`1+<>c__DisplayClass25_0[T].<SetDataButton>b__0 (System.Object sender, System.EventArgs e) [0x00000] in /home/narr/Dokumente/gitRepos/Eto/test/Eto.Test/Sections/Controls/GridViewSection.cs:350 
  at Eto.PropertyStore.TriggerEvent[T] (System.Object key, System.Object sender, T args) [0x00018] in /home/narr/Dokumente/gitRepos/Eto/src/Eto/PropertyStore.cs:238 
  at Eto.Forms.Button.OnClick (System.EventArgs e) [0x00001] in /home/narr/Dokumente/gitRepos/Eto/src/Eto/Forms/Controls/Button.cs:67 
  at Eto.Forms.Button+Callback.OnClick (Eto.Forms.Button widget, System.EventArgs e) [0x0000d] in /home/narr/Dokumente/gitRepos/Eto/src/Eto/Forms/Controls/Button.cs:247 
  at Eto.GtkSharp.Forms.Controls.ButtonHandler`3+ButtonConnector[TControl,TWidget,TCallback].HandleClicked (System.Object sender, System.EventArgs e) [0x00012] in /home/narr/Dokumente/gitRepos/Eto/src/Eto.Gtk/Forms/Controls/ButtonHandler.gtk3.cs:52 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /build/mono/src/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:395 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007e] in /build/mono/src/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:409 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /build/mono/src/mono/external/corefx/src/Common/src/CoreLib/System/Reflection/MethodBase.cs:53 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e1] in /build/mono/src/mono/mcs/class/corlib/System/Delegate.cs:465 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in /build/mono/src/mono/mcs/class/corlib/System/MulticastDelegate.cs:67 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /build/mono/src/mono/mcs/class/corlib/System/Delegate.cs:410 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00034] in <f4e65a396f454052ac52b5e42c5f7520>:0 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00009] in <f4e65a396f454052ac52b5e42c5f7520>:0 
  at GLib.SignalClosure.MarshalCallback (System.IntPtr raw_closure, System.IntPtr return_val, System.UInt32 n_param_vals, System.IntPtr param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x00080] in <f4e65a396f454052ac52b5e42c5f7520>:0 
  at GLib.ExceptionManager.RaiseUnhandledException (System.Exception e, System.Boolean is_terminal) [0x00000] in <f4e65a396f454052ac52b5e42c5f7520>:0 
  at GLib.SignalClosure.MarshalCallback (System.IntPtr raw_closure, System.IntPtr return_val, System.UInt32 n_param_vals, System.IntPtr param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x00000] in <f4e65a396f454052ac52b5e42c5f7520>:0 
  at System.Object.wrapper_native_0x7f8ef21d8e50 () [0x00000] in <282c4228012f4f3d96bdf0f2b2dea837>:0 
  at Gtk.Application.Run () [0x00000] in <ba889255384849bea9fd387fe9008224>:0 
  at Eto.GtkSharp.Forms.ApplicationHandler.Run () [0x0004a] in /home/narr/Dokumente/gitRepos/Eto/src/Eto.Gtk/Forms/ApplicationHandler.cs:301 
  at Eto.Forms.Application.Run () [0x00000] in /home/narr/Dokumente/gitRepos/Eto/src/Eto/Forms/Application.cs:375 
  at Eto.Test.Gtk.Startup.Main (System.String[] args) [0x00029] in /home/narr/Dokumente/gitRepos/Eto/test/Eto.Test.Gtk/Startup.cs:17 

Steps to Reproduce the Problem

  1. Click the "SetDataStore" button in the treegridviewtest in Eto.Test

Specifications

  • Version: 2.7.3
  • Platform(s): GTK
  • Operating System(s): Arch Linux
@cwensley
Copy link
Member

This was fixed recently with #2383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants