Bug #1082

avatar

Exception: Item has already been added. Key in dictionary: '37' Key being added: '37'

Added by Leo Nava 3022 days ago. Updated 3021 days ago.

Status:Closed Start:01/16/2016
Priority:Normal Due date:
Assigned to:avatarMirco Bauer % Done:

100%

Category:Frontend GNOME
Target version:1.0.3
Complexity:

Low

Found in Version:

Fedora 1.0.1 Engine 1.0.1.0

Votes: 0

Description

Exception Type:
System.ArgumentException

Exception Message:
Item has already been added. Key in dictionary: '37'  Key being added: '37'

Exception StackTrace:
  at System.Collections.Hashtable.Insert (System.Object key, System.Object nvalue, Boolean add) [0x00326] in /builddir/build/BUILD/mono-4.0.5/external/referencesource/mscorlib/system/collections/hashtable.cs:1058 
  at System.Collections.Hashtable.Add (System.Object key, System.Object value) [0x00000] in /builddir/build/BUILD/mono-4.0.5/external/referencesource/mscorlib/system/collections/hashtable.cs:444 
  at System.Text.Encoding.GetEncoding (Int32 codepage) [0x00218] in /builddir/build/BUILD/mono-4.0.5/external/referencesource/mscorlib/system/text/encoding.cs:528 
  at Smuxi.Frontend.Gnome.PreferencesDialog._Load () [0x00258] in /builddir/build/BUILD/smuxi-1.0.1/src/Frontend-GNOME/Preferences/PreferencesDialog.cs:345 
  at Smuxi.Frontend.Gnome.PreferencesDialog..ctor (Gtk.Window parent) [0x00a5b] in /builddir/build/BUILD/smuxi-1.0.1/src/Frontend-GNOME/Preferences/PreferencesDialog.cs:298 
  at Smuxi.Frontend.Gnome.MenuWidget.OnPreferencesActionActivated (System.Object sender, System.EventArgs e) [0x0001b] in /builddir/build/BUILD/smuxi-1.0.1/src/Frontend-GNOME/Views/MenuWidget.cs:181 

Associated revisions

Revision 0af9c48282e27e61f34330fa842860153f93429a
Added by Mirco Bauer 3021 days ago

Frontend-GNOME: workaround ArgumentException in PreferencesDialog._Load() (closes: #1082)

On Mono 4.0.5 Encoding.GetEncoding(int) throws for some reason an
ArgumentException which crashes Smuxi. We catch this exception to prevent that
crash.

History

Updated by Mirco Bauer 3021 days ago

avatar
  • Category set to Frontend GNOME
  • Assigned to set to Mirco Bauer
  • Complexity set to Low

That's a bug in the Mono runtime, but I will add a workaround to Smuxi's code so it doesn't crash.

Updated by Mirco Bauer 3021 days ago

avatar

The bug in Mono is tracked here: https://bugzilla.xamarin.com/show_bug.cgi?id=30709
It seems like newer Mono versions maybe don't have that bug. I am on Mono 4.2.1 and I can't reproduce the issue.

Updated by Mirco Bauer 3021 days ago

avatar
  • Target version changed from 1.0.1 to 1.0.3

Updated by Mirco Bauer 3021 days ago

avatar
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Updated by Mirco Bauer 3021 days ago

avatar

The issue will be gone with Smuxi 1.0.2 or 1.1 whatever happens first.
Thank you for your report!

Also available in: Atom PDF