Bug 16635 - [iOS Device]Sample app 'PaintCode' get crashed after clicking on any option.
Summary: [iOS Device]Sample app 'PaintCode' get crashed after clicking on any option.
Alias: None
Product: iOS
Classification: Xamarin
Component: Samples ()
Version: 7.0.4.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: GouriKumari
: 16772 ()
Depends on:
Reported: 2013-12-06 00:53 UTC by Prashant manu
Modified: 2014-01-07 07:01 UTC (History)
3 users (show)

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

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:

Description Prashant manu 2013-12-06 00:53:41 UTC
Steps to reproduce:
1. Open iOS sample PaintCode.
2. Debug or Run the sample.
3. click on any option.

Actual Result: Application get crashed throwing exception "A System.Format Exception"

Expected Result: User should able to navigate all options for PaintCode application.

Supplement info: 
Exception details: https://gist.github.com/saurabh360/a5760c83f54323ae47ea
iOS Device Log: https://gist.github.com/saurabh360/489d11d07031bf5f4dd0

Environment details:
All Mac and Windows
XS 4.2.2(build 2)
Mono 3.2.5
MTVS 1.10.24

Regression Status: Same behavior happening with stable X.iOS
Comment 1 Rolf Bjarne Kvinge [MSFT] 2013-12-06 05:36:26 UTC
This looks like a problem with the current culture:

System.FormatException: Unknown char: .
  at System.Double.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00014] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Double.cs:231
  at System.Single.Parse (System.String s) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Single.cs:203
  at PaintCode.DrawingViewController.ViewDidLoad () [0x0002c] in /Users/nischal/Desktop/3rd DEC/monotouch-samples-master/PaintCode/PaintCodeDemo/LineArt/DrawingViewController.cs:24

the sample should probably specify the culture to parse the string with.
Comment 2 Sebastien Pouliot 2013-12-13 09:00:01 UTC
*** Bug 16772 has been marked as a duplicate of this bug. ***
Comment 5 Atin 2014-01-07 07:01:51 UTC
Today, we have checked this issue with:

XS 4.2.3(build 24)
ML 10.8.5
App info: monotouch-samples-master 4c4db9c34329c89c9f9b739d9b98c7e11d3324ae
Device: iPhone 4s 7.0.4
Mono 3.2.6

Now this sample is not throws any exception and user is able to navigate all options.

Hence marking this  as Verified.