GNOME Bugzilla – Bug 629534
GLib.MissingIntPtrCtorException: GLib.Object subclass Banshee.Gui.Widgets.TaskStatusIcon
Last modified: 2010-11-06 20:49:05 UTC
Created attachment 170164 [details] Banshee Log Originally reported at: https://bugs.launchpad.net/bugs/636953 Binary package hint: banshee After starting Banshee it suddenly crashed after showing the main window briefly. Crash happened right after external harddrive was plugged in (and mounted), but I don't know weather that is relevant. Including the log from /home/user/.config/banshee-1.
*** Bug 629732 has been marked as a duplicate of this bug. ***
Created attachment 170497 [details] [review] proposed patch This should address the issue, I know the patch isn't in the preferred git format but I am currently unable to access my development machine.
Review of attachment 170497 [details] [review]: Other that its format, there's a lot of unneeded stuff in the patch. If I just add the one line to TaskStatusIcon.cs, compilation fails : Making all in Banshee.ThickClient MCS ../../../bin/Banshee.ThickClient.dll ./Banshee.Gui.Widgets/TaskStatusIcon.cs(58,49): error CS1729: The type `Hyena.Widgets.AnimatedImage' does not contain a constructor that takes `1' arguments
Created attachment 172447 [details] [review] Updated and tested patch I apologize for the delay, here is a fixed and tested patch for the problem.
The correct fix would be to figure out where is creating the TaskStatusIcon and ensure that the icon is stored in a local field on that class. That will ensure that it isn't GC'ed early which is what is happening here. If you commit that patch you'll end up creating new managed copies of TaskStatusIcon and you'll end up with crazy issues where values set on the managed properties on that class will reset back to the defaults magically.
I committed a fix for this in d986b8581d78. Let me know if it fixes the issue for you.
I have not been able to trigger it on git master during similar workloads as tended towards triggering it before. I am fairly certain it is gone, if it rears its ugly head again I will reopen.