Do

"System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> GLib.MissingIntPtrCtorException: GLib.Object subclass Do.Interface.ClassicWindow must provide a protected or public IntPtr ctor to support wrapping of native object handles." crash clicking preferences

Bug #394529 reported by Martin Pool
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Do
New
Medium
Unassigned

Bug Description

I'm running Version: 0.8.2+dfsg-0~9.04~ppa3 from the PPA (obviously).

I just clicked the dropdown in the Do popup box, then Preferences. Do immediately crashed with this traceback:

Marshaling activate 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. ---> GLib.MissingIntPtrCtorException: GLib.Object subclass Do.Interface.ClassicWindow must provide a protected or public IntPtr ctor to support wrapping of native object handles.
  at GLib.ObjectManager.CreateObject (IntPtr raw) [0x00000]
  at GLib.Object.GetObject (IntPtr o, Boolean owned_ref) [0x00000]
  at GLib.Object.GetObject (IntPtr o) [0x00000]
  at Gtk.Grab.get_Current () [0x00000]
  at Do.Core.Controller.ShowPreferences () [0x00000]
  at Do.Universe.PreferencesItem.Run () [0x00000]
  at Do.UI.MainMenu+<MenuItemFromRunnableItem>c__AnonStorey30.<>m__42 (System.Object sender, System.EventArgs e) [0x00000]
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000]
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000]
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000]
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000]
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Do.Do.Main(System.String[] args)

Thanks for a great program.

Robert Dyer (psybers)
Changed in do:
importance: Undecided → Medium
Revision history for this message
Charlie Daly (cdaly) wrote :

This happened to me too.
Running on 2.6.28-14-generic #47-Ubuntu SMP Sat Jul 25 00:28:35 UTC 2009 i686 GNU/Linux

GNOME Do 0.8.2
Release

I can't see how to get more info about gnome-do.

Revision history for this message
Lysander (pinlisandro) wrote :

Happens to me too on a fresh GNOME Do install (both 8.2 and 8.3.3.1), running on 2.6.30-gentoo-r8 #5 i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz GenuineIntel GNU/Linux. For whatever's worth it works flawlessly on a AMD64 tricore system, with 64-bit libraries and binaries.

Revision history for this message
Gerry (gerry-spm+lnchpad) wrote :

Happens to me quite often when I click on a program icon in the doc. I imagine this is probably happening to a lot more people who have not reported it as the problem cause isn't predictable.

Ubuntu Karmic
uname -a --> Linux 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:05:19 UTC 2010 i686 GNU/Linux
GNOME Do 0.8.2

Revision history for this message
Gerry (gerry-spm+lnchpad) wrote :

This is happening to me multiple times a day.

One method to replicate the bug (although it happens in a lot of other situations):

Requirements
===========
- Have Compiz enabled
- Have gnome-do set to the Docky theme

1. Press Ctrl+Space to bring up Do and type "switch" and select Compiz-switch to disable compiz
2. Repeat step 1 to re-enable compiz
3. Move your mouse so that Docky appears and click on an icon to start it.
4. Watch as nothing happens and see how gnome-do is no longer running. Logging the errors will reveal the exception that is not being handled.

Revision history for this message
Gerry (gerry-spm+lnchpad) wrote :

This bug appears to be related to the following bug as the exception seems to be the same: https://bugs.launchpad.net/ubuntu/+source/gnome-do/+bug/448094/

However I'm not sure if that fix will also fix the issue presented in this bug.

Revision history for this message
Lysander (pinlisandro) wrote :

Apparently the bug gerry refers to was fixed on 0.8.3.1. but i still experience the crash whenever i open the Preferences window

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.