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 638641 - System.NullReferenceException: Object reference not set to an instance of an object at System.NumberFormatter.ResetCharBuf (int)
System.NullReferenceException: Object reference not set to an instance of an ...
Status: RESOLVED NOTGNOME
Product: banshee
Classification: Other
Component: general
unspecified
Other Linux
: Normal major
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
: 622229 651881 653297 659918 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-01-04 11:23 UTC by Christoph Wolk
Modified: 2011-09-23 10:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christoph Wolk 2011-01-04 11:23:44 UTC
Using Banshee from Ubuntu daily ppa, BCE from git

I just had Banshee crash. Unfortunately, I have no idea what caused it or whether it's repeatable. Relevant part from the debug log:

[1 Debug 12:15:54.087] Player state change: Idle -> Loading
[1 Debug 12:15:54.090] (libbanshee:player) [subtitle]: lookup for subtitle for video file.

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
at System.NumberFormatter.ResetCharBuf (int) <IL 0x00008, 0x00013>
at System.NumberFormatter.FormatDecimal (int,System.Globalization.NumberFormatInfo) <IL 0x00024, 0x0002f>
at System.NumberFormatter.IntegerToString (string,System.IFormatProvider) <IL 0x000a4, 0x000c3>
at System.NumberFormatter.NumberToString (string,int,System.IFormatProvider) <IL 0x00013, 0x00037>
at int.ToString (string,System.IFormatProvider) <IL 0x00004, 0x00019>
at string.FormatHelper (System.Text.StringBuilder,System.IFormatProvider,string,object[]) <IL 0x0015c, 0x00438>
at string.Format (System.IFormatProvider,string,object[]) <IL 0x00004, 0x00015>
at string.Format (string,object) <IL 0x00000, 0x00043>
at Hyena.ConsoleCrayon.GetAnsiColorControlCode (System.ConsoleColor,bool) <IL 0x00028, 0x00075>
at Hyena.ConsoleCrayon.SetColor (System.ConsoleColor,bool) <IL 0x0002b, 0x00029>
at Hyena.ConsoleCrayon.set_ForegroundColor (System.ConsoleColor) <IL 0x0000c, 0x00020>
at Hyena.Log.Commit (Hyena.LogEntryType,string,string,bool) <IL 0x00067, 0x00101>
at Banshee.GStreamer.Service.NativeLogHandler (Hyena.LogEntryType,intptr,intptr) <IL 0x00058, 0x0009b>
at (wrapper native-to-managed) Banshee.GStreamer.Service.NativeLogHandler (Hyena.LogEntryType,intptr,intptr) <IL 0x00024, 0x00057>
Comment 1 David Nielsen 2011-01-09 16:33:14 UTC
This looks fairly similar but the traces are not exactly the same (though this one is against 1.6.1).

http://bugzilla-attachments.gnome.org/attachment.cgi?id=164167
Comment 2 Andrés G. Aragoneses (IRC: knocte) 2011-01-09 17:25:24 UTC
If it's an NRE inside System.NumberFormatter it must be a Mono bug. Could you provide Mono version please?
Comment 3 Christoph Wolk 2011-01-09 17:33:52 UTC
Sure:

mono --version                                                    (01-09 18:32)
Mono JIT compiler version 2.6.7 (Debian 2.6.7-3ubuntu1)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
	TLS:           __thread
	GC:            Included Boehm (with typed GC and Parallel Mark)
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  x86
	Disabled:      none
Comment 4 Andrés G. Aragoneses (IRC: knocte) 2011-01-09 17:35:49 UTC
Thanks
Comment 5 Andrés G. Aragoneses (IRC: knocte) 2011-01-09 17:38:00 UTC
(In reply to comment #1)
> This looks fairly similar but the traces are not exactly the same (though this
> one is against 1.6.1).
> 
> http://bugzilla-attachments.gnome.org/attachment.cgi?id=164167

Hey David, it looks the same to me, could you provide bug number?
Comment 6 David Nielsen 2011-01-09 17:54:34 UTC
*** Bug 622229 has been marked as a duplicate of this bug. ***
Comment 7 Gabriel Burt 2011-01-11 22:23:20 UTC
I filed this against Mono seven months ago: https://bugzilla.novell.com/show_bug.cgi?id=607585
Comment 8 Andrés G. Aragoneses (IRC: knocte) 2011-09-23 10:32:39 UTC
*** Bug 651881 has been marked as a duplicate of this bug. ***
Comment 9 Andrés G. Aragoneses (IRC: knocte) 2011-09-23 10:33:10 UTC
*** Bug 653297 has been marked as a duplicate of this bug. ***
Comment 10 Andrés G. Aragoneses (IRC: knocte) 2011-09-23 10:34:50 UTC
*** Bug 659918 has been marked as a duplicate of this bug. ***