Bug 52971 - App crashes on startup when reference Realms library with 'Incremental build' enabled
Summary: App crashes on startup when reference Realms library with 'Incremental build'...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 10.4 (C9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-03-02 13:43 UTC by Andrey Verbin
Modified: 2017-03-03 10:02 UTC (History)
2 users (show)

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


Attachments
Crash log (26.30 KB, text/plain)
2017-03-02 13:43 UTC, Andrey Verbin
Details
Test Case (11.52 KB, application/zip)
2017-03-02 18:14 UTC, Alex Soto [MSFT]
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 NOT_REPRODUCIBLE

Description Andrey Verbin 2017-03-02 13:43:23 UTC
Created attachment 20086 [details]
Crash log

Steps to reproduce
1. Create sample iOS app
2. Add reference to Realms 1.0.4
3. Debug app in simulator 
Expected - everything works ok
Actual - app crash on startup. Crash report attached.
Workaround - uncheck 'Enable incremental builds' checkbox in project settings for Debug configuration.

Xamarin Studio Community
Version 6.2 (build 1821)
Installation UUID: 86f9282e-b65c-4bfd-b623-d690da5c6900
Runtime:
	Mono 4.8.0 (mono-4.8.0-branch/e4a3cf3) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 408000495

NuGet
Version: 3.5.0.0

Xamarin.Profiler
Version: 1.2.0
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Apple Developer Tools
Xcode 8.2.1 (11766.1)
Build 8C1002

Xamarin.iOS
Version: 10.4.0.123 (Xamarin Studio Community)
Hash: 35d1ccd
Branch: cycle9
Build date: 2017-02-16 17:40:00-0500

Xamarin Inspector
Not Installed

Xamarin.Mac
Version: 3.0.0.393 (Xamarin Studio Community)

Xamarin.Android
Not Installed

Xamarin Android Player
Not Installed

Build Information
Release ID: 602001821
Git revision: d41b6e51f3fa46a1943f2e31a778d28a7c73d069
Build date: 2017-02-17 15:18:19-05
Xamarin addins: 1363a8d943bab7700c93a97474060b6734aa7f94
Build lane: monodevelop-lion-cycle9

Operating System
Mac OS X 10.12.2
Darwin averbin 16.3.0 Darwin Kernel Version 16.3.0
    Thu Nov 17 20:23:58 PST 2016
    root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64
Comment 1 Alex Soto [MSFT] 2017-03-02 18:14:05 UTC
Created attachment 20096 [details]
Test Case

Test Case
Comment 2 Alex Soto [MSFT] 2017-03-02 18:17:17 UTC
Hello Andrey

I have attached a sample created by the steps described by you

> Steps to reproduce
> 1. Create sample iOS app
> 2. Add reference to Realms 1.0.4
> 3. Debug app in simulator 

Unfortunately I am not able to reproduce the crash even I added some code to the ViewController.cs using Realm and works fine for us.

Any chance you can take a look at the attached sample and tell us if you are able to reproduce the issue with it? Maybe we are missing something else.
Comment 3 Andrey Verbin 2017-03-03 10:02:45 UTC
Hi, 

Unfortunately something changed in my environment and I cannot reproduce this problem anymore. Looks like this is unfortunate combination of some libraries, my tweaks and hacks in build process or something else.

Thanks