Bug 2390 - System.FormatException when trying to assign a launch image
Summary: System.FormatException when trying to assign a launch image
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 2.8.4.1
Hardware: Macintosh Mac OS
: Highest normal
Target Milestone: ---
Assignee: Mikayla Hutchinson [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2011-12-07 10:06 UTC by Grégoire Larreur
Modified: 2011-12-30 18:38 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Upload jpg image (316.14 KB, image/tiff)
2011-12-29 02:31 UTC, Saurabh
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Grégoire Larreur 2011-12-07 10:06:04 UTC
When in monodevelop I try to assign a launch image to my application using the menu proposed in Iphone Application in Options, I got the following exception: 

System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
  at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 
  at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 
  at System.String.Format (System.String format, System.Object arg0) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Core.GettextCatalog.GetString (System.String phrase, System.Object arg0) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/Gettext.cs:99 
  at MonoDevelop.MacDev.PlistEditor.ImageChooser.CheckImage (FilePath path) [0x00148] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.MacDev/MonoDevelop.MacDev.PlistEditor/ImageChooser.cs:133 
  at MonoDevelop.IPhone.PlistEditor.ImageChooserControler.SetFile (FilePath selectedFile) [0x0000c] in /private/tmp/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/PlistEditor/LaunchImageFileManager.cs:162
Comment 1 Jeffrey Stedfast 2011-12-22 17:47:12 UTC
Fixed.
Comment 2 Mikayla Hutchinson [MSFT] 2011-12-22 17:48:25 UTC
FYI this was a nonfatal error that occurred only when trying to assign an image with an unsupported format, e.g. .jpg.
Comment 3 Saurabh 2011-12-29 02:31:16 UTC
Created attachment 1105 [details]
Upload jpg image
Comment 4 Saurabh 2011-12-29 02:32:09 UTC
We have verified this issue with MonoDevelop 2.8.5 and MonoTouch 5.0.4,it is still exist and getting error when uploading .jpg image

error detail:

System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
  at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 
  at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 
  at System.String.Format (System.String format, System.Object arg0) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Core.GettextCatalog.GetString (System.String phrase, System.Object arg0) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/Gettext.cs:99 
  at MonoDevelop.MacDev.PlistEditor.ImageChooser.CheckImage (FilePath path) [0x00148] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.MacDev/MonoDevelop.MacDev.PlistEditor/ImageChooser.cs:133 
  at MonoDevelop.IPhone.PlistEditor.ImageChooserControler.SetFile (FilePath selectedFile) [0x0000c] in /private/tmp/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/PlistEditor/LaunchImageFileManager.cs:162


Please find attache screenshot and 

Kindly reopen this bug
Comment 5 Mikayla Hutchinson [MSFT] 2011-12-30 18:38:46 UTC
There has not yet been a release including this fix.