Bug 18116 - Xamarin.IOS app crash on device when using DateTime objects
Summary: Xamarin.IOS app crash on device when using DateTime objects
Status: RESOLVED DUPLICATE of bug 17690
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 7.0.7
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: 7.2.1
Assignee: Bugzilla
Depends on:
Reported: 2014-03-03 03:34 UTC by andy
Modified: 2014-03-12 17:55 UTC (History)
2 users (show)

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

DateTime Demo project which crashs on iPhone 5 / 4 (7.17 KB, application/zip)
2014-03-03 03:36 UTC, andy
iOS Log from Xamarin Studio (96.59 KB, text/rtf)
2014-03-03 04:17 UTC, andy
Log from XCode (98.02 KB, application/octet-stream)
2014-03-03 04:17 UTC, andy

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 andy 2014-03-03 03:34:24 UTC
I’m struggling with an issue when I use a DateTime object.
Every time I use a DateTime object my app crash on my iPhone 5 and iPhone 4.
On the simulator and on a iPhone 5s device it works correctly.

My Code looks as follows:

public override void ViewDidLoad ()
			base.ViewDidLoad ();

			DateTime myDateTime = DateTime.Now;

			string dateAsString = myDateTime.ToString ();

In XCode i get the error: Exception Type: EXC_BAD_ACCESS (SIGSEGV).

I attached a sample project.
Comment 1 andy 2014-03-03 03:36:52 UTC
Created attachment 6193 [details]
DateTime Demo project which crashs on iPhone 5 / 4
Comment 2 Rolf Bjarne Kvinge [MSFT] 2014-03-03 03:54:05 UTC
Do you live/use a Swiss German region on your device? [bug #17690]

If not, please attach the crash report (you can get the crash report from Xcode's Organizer), and any device log output (which you can find in Xamarin Studio's menu View -> Pads -> iOS Device Log).
Comment 3 andy 2014-03-03 04:17:34 UTC
Created attachment 6195 [details]
iOS Log from Xamarin Studio
Comment 4 andy 2014-03-03 04:17:57 UTC
Created attachment 6196 [details]
Log from XCode
Comment 5 andy 2014-03-03 04:18:14 UTC
Thank you for your fast response :)

Yes i live in a Swiss German region

I attached both logs. i found an interesting line in the log:
the local store doesn't allow tasks and we have no default calendar :(
Comment 6 Rolf Bjarne Kvinge [MSFT] 2014-03-03 09:25:52 UTC
So this is a duplicate of bug #17690.

The bug has been fixed, but we haven't released it yet. Bug #17690 lists a few workarounds people have used in the meantime.

*** This bug has been marked as a duplicate of bug 17690 ***