FS#34044 - [monodevelop] NullReferenceException when running on pt-br locale

Attached to Project: Arch Linux
Opened by Felipe Zorzo (felipebz) - Wednesday, 27 February 2013, 02:02 GMT
Last edited by Isenmann Daniel (ise) - Thursday, 27 June 2013, 05:47 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Isenmann Daniel (ise)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

MonoDevelop 4.0 isn't working when running on pt-br locale. Project creation doesn't work nor the "Preferences" window, making it unusable.

This is the stacktrace:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.SourceEditor.DefaultSourceEditorOptions ---> System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.Projects.Policies.PolicyService ---> System.NullReferenceException: Object reference not set to an instance of an object
at MonoDevelop.Projects.Policies.PolicyService..cctor () [0x0008d] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs:69
--- End of inner exception stack trace ---
at MonoDevelop.SourceEditor.DefaultSourceEditorOptions.Init () [0x00011] in /build/src/monodevelop-4.0/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorOptions.cs:70
at MonoDevelop.SourceEditor.DefaultSourceEditorOptions..cctor () [0x00000] in /build/src/monodevelop-4.0/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorOptions.cs:61
--- End of inner exception stack trace ---
at MonoDevelop.SourceEditor.OptionPanels.GeneralOptionsPanel..ctor () [0x00062] in /build/src/monodevelop-4.0/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/GeneralOptionsPanel.cs:43
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0011e] in /build/src/mono-2.10.8/mcs/class/corlib/System.Reflection/MonoMethod.cs:526
--- End of inner exception stack trace ---
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00131] in /build/src/mono-2.10.8/mcs/class/corlib/System.Reflection/MonoMethod.cs:532
at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /build/src/mono-2.10.8/mcs/class/corlib/System.Reflection/MonoMethod.cs:541
at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x0000e] in /build/src/mono-2.10.8/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:62
at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x000c7] in /build/src/mono-2.10.8/mcs/class/corlib/System/Activator.cs:333
at Mono.Addins.RuntimeAddin.CreateInstance (System.String typeName, Boolean throwIfNotFound) [0x00017] in /build/src/monodevelop-4.0/external/mono-addins/Mono.Addins/Mono.Addins/RuntimeAddin.cs:431
at MonoDevelop.Ide.Extensions.OptionsPanelNode.CreatePanel () [0x00022] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Extensions/OptionsPanelNode.cs:102
at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.CreatePage (TreeIter it, MonoDevelop.Ide.Extensions.OptionsDialogSection section, System.Object dataObject) [0x00174] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:561
at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.AddSection (TreeIter parentIter, MonoDevelop.Ide.Extensions.OptionsDialogSection section, System.Object dataObject) [0x0005c] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:362
at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.AddChildSections (TreeIter parentIter, MonoDevelop.Ide.Extensions.OptionsDialogSection section, System.Object dataObject) [0x00028] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:375
at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.AddSection (TreeIter parentIter, MonoDevelop.Ide.Extensions.OptionsDialogSection section, System.Object dataObject) [0x00053] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:359
at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.AddSection (MonoDevelop.Ide.Extensions.OptionsDialogSection section, System.Object dataObject) [0x00000] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:346
at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.FillTree () [0x00044] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:258
at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog..ctor (Gtk.Window parentWindow, System.Object dataObject, System.String extensionPath, Boolean removeEmptySections) [0x00376] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:184
at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog..ctor (Gtk.Window parentWindow, System.Object dataObject, System.String extensionPath) [0x00000] in <filename unknown>:0
at MonoDevelop.Ide.Gui.Workbench.ShowGlobalPreferencesDialog (Gtk.Window parentWindow, System.String panelId) [0x00012] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:537
at MonoDevelop.Ide.Gui.Workbench.ShowGlobalPreferencesDialog (Gtk.Window parentWindow) [0x00000] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:526
at MonoDevelop.Ide.Commands.MonodevelopPreferencesHandler.Run () [0x00000] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/EditCommands.cs:80
at MonoDevelop.Components.Commands.CommandHandler.Run (System.Object dataItem) [0x00000] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:61
at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:42
at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info, System.Object dataItem, System.Object target, CommandSource source) [0x00064] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1096
at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002d1] in /build/src/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1067

This issue was already fixed in upstream: https://github.com/mono/monodevelop/commit/bf4d6a9b4162df3548711afb4b81de3e7151b2bc.patch
This task depends upon

Closed by  Isenmann Daniel (ise)
Thursday, 27 June 2013, 05:47 GMT
Reason for closing:  Fixed
Comment by Isenmann Daniel (ise) - Tuesday, 25 June 2013, 18:20 GMT
Is this bug still valid with the newest version??
Comment by Felipe Zorzo (felipebz) - Wednesday, 26 June 2013, 23:10 GMT
Nope. It was fixed.

Loading...