After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 651881 - Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
Unhandled Exception: System.NullReferenceException: Object reference not set ...
Status: RESOLVED DUPLICATE of bug 638641
Product: banshee
Classification: Other
Component: general
2.1.0
Other Linux
: Normal critical
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-04 21:16 UTC by Cristian Aravena Romero
Modified: 2011-09-23 10:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
banshee.log (16.72 KB, text/plain)
2011-06-04 21:16 UTC, Cristian Aravena Romero
Details

Description Cristian Aravena Romero 2011-06-04 21:16:15 UTC
Created attachment 189236 [details]
banshee.log

1) Play music
2) Close banshee (crash)

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
at System.NumberFormatter.ResetCharBuf (int) <IL 0x00008, 0x0001f>
at System.NumberFormatter.FormatDecimal (int,System.Globalization.NumberFormatInfo) <IL 0x00024, 0x00047>
at System.NumberFormatter.IntegerToString (string,System.IFormatProvider) <IL 0x000a4, 0x000df>
at System.NumberFormatter.NumberToString (string,int,System.IFormatProvider) <IL 0x00013, 0x0005b>
at int.ToString (string,System.IFormatProvider) <IL 0x00004, 0x00027>
at string.FormatHelper (System.Text.StringBuilder,System.IFormatProvider,string,object[]) <IL 0x0015c, 0x0060e>
at string.Format (System.IFormatProvider,string,object[]) <IL 0x00004, 0x00027>
at string.Format (string,object[]) <IL 0x00000, 0x0001f>
at Banshee.SmartPlaylist.SmartPlaylistSource.Refresh () [0x00000] in /build/buildd/banshee-2.1.0+git20110601.r1.589cf04/src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs:406
at Banshee.SmartPlaylist.SmartPlaylistSource.RefreshAndReload () [0x00000] in /build/buildd/banshee-2.1.0+git20110601.r1.589cf04/src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs:375
at Banshee.SmartPlaylist.SmartPlaylistSource.HandleTracksChanged (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) [0x00027] in /build/buildd/banshee-2.1.0+git20110601.r1.589cf04/src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs:490
at (wrapper delegate-invoke) Banshee.Sources.PrimarySource/TrackEventHandler.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00044, 0x0005e>
at (wrapper delegate-invoke) Banshee.Sources.PrimarySource/TrackEventHandler.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00098>
at (wrapper delegate-invoke) Banshee.Sources.PrimarySource/TrackEventHandler.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00098>
at (wrapper delegate-invoke) Banshee.Sources.PrimarySource/TrackEventHandler.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00098>
at (wrapper delegate-invoke) Banshee.Sources.PrimarySource/TrackEventHandler.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00098>
at (wrapper delegate-invoke) Banshee.Sources.PrimarySource/TrackEventHandler.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00098>
at (wrapper delegate-invoke) Banshee.Sources.PrimarySource/TrackEventHandler.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00098>
at Banshee.Sources.PrimarySource/<OnTracksChanged>c__AnonStorey21.<>m__18 () [0x0004d] in /build/buildd/banshee-2.1.0+git20110601.r1.589cf04/src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs:409
at Hyena.ThreadAssist.SpawnFromMain (System.Threading.ThreadStart) [0x00017] in /build/buildd/banshee-2.1.0+git20110601.r1.589cf04/src/Hyena/Hyena/Hyena/ThreadAssist.cs:112
at Banshee.Sources.PrimarySource.OnTracksChanged (Hyena.Query.QueryField[]) [0x00014] in /build/buildd/banshee-2.1.0+git20110601.r1.589cf04/src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs:398
at Banshee.Sources.PrimarySource.NotifyTracksChanged (Hyena.Query.QueryField[]) [0x00000] in /build/buildd/banshee-2.1.0+git20110601.r1.589cf04/src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs:335
at Banshee.Collection.Database.DatabaseTrackInfo.Save (bool,Hyena.Query.QueryField[]) [0x00118] in /build/buildd/banshee-2.1.0+git20110601.r1.589cf04/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs:221
at Banshee.Collection.Database.DatabaseTrackInfo.UpdateLastPlayed () [0x0000c] in /build/buildd/banshee-2.1.0+git20110601.r1.589cf04/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs:182
at Banshee.GStreamer.PlayerEngine.OnAboutToFinish (intptr) [0x00000] in /build/buildd/banshee-2.1.0+git20110601.r1.589cf04/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs:384
at (wrapper native-to-managed) Banshee.GStreamer.PlayerEngine.OnAboutToFinish (intptr) <IL 0x00022, 0x0006f>
Comment 1 olivier dufour 2011-08-21 13:34:53 UTC
so what can be null and is an integer and param of format in refresh:
DbId is a int?
PrimarySourceId is just an int

So it is DbId!
nad it is set by Create called by Save ().

So save () is not called before track of a smartplaylist is played...

So have you create a smart playlist before playing the file ? or it is the standard ones ?
Comment 2 Andrés G. Aragoneses (IRC: knocte) 2011-08-21 13:51:20 UTC
The NRE is happening inside the System.NumberFormatter.IntegerToString() method, thus it is in Mono's class libraries. Cristian, what version of Mono do you have?
Comment 3 Cristian Aravena Romero 2011-08-21 14:07:21 UTC
I work with Ubuntu +1, upgrade my system.  My version of mono is 2.10.4-2.
Comment 4 Andrés G. Aragoneses (IRC: knocte) 2011-08-21 14:19:02 UTC
And you can still reproduce the problem with that version of Mono?
Comment 5 Cristian Aravena Romero 2011-08-21 14:30:06 UTC
I use banshee and rhythmbox. I think not, but I could not tell.
Comment 6 olivier dufour 2011-08-22 08:29:58 UTC
So String.Format do not manage nullable int.
But we can fixed it in banshee and report a bug on mono bugzilla.
Comment 7 Andrés G. Aragoneses (IRC: knocte) 2011-08-22 09:13:47 UTC
Olivier: cool, you have a small testcase app that can reproduce the problem? If yes, open a bug in http://bugzilla.xamarin.com/ and post the URL here.
Comment 8 olivier dufour 2011-08-22 10:21:55 UTC
I have done a testcase and it work with my version.
So must be a bug in old mono version.
I think we can closed it as not a gnome bug...
Comment 9 Andrés G. Aragoneses (IRC: knocte) 2011-08-22 10:24:39 UTC
(In reply to comment #5)
> I use banshee and rhythmbox. I think not, but I could not tell.

Now that you have a new Mono version we think you should not hit this bug again.

But please if you hit it again, post on this bug again or reopen it so we can track it down to report a better bug upstream. Thanks.
Comment 10 Andrés G. Aragoneses (IRC: knocte) 2011-08-22 10:28:12 UTC
*** Bug 653297 has been marked as a duplicate of this bug. ***
Comment 11 Andrés G. Aragoneses (IRC: knocte) 2011-09-23 10:32:39 UTC

*** This bug has been marked as a duplicate of bug 638641 ***