Bug 34267 - libmonosgen-2.0.dylib can't map segments into 16KB pages
Summary: libmonosgen-2.0.dylib can't map segments into 16KB pages
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.0 (iOS9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: 9.0.2 (iOS9SR1)
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
: 34469 ()
Depends on:
Blocks:
 
Reported: 2015-09-25 02:07 UTC by Ryoji.Ishikawa
Modified: 2015-10-01 04:03 UTC (History)
3 users (show)

Tags:
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:
Status:
RESOLVED FIXED

Description Ryoji.Ishikawa 2015-09-25 02:07:18 UTC
First, set the project as follows:
 Configuration: Debug
 Support architectures: ARMv7
 Use the SGen generational garbage collector: Enable
 Enable incremental builds : Enable

And then start debugging on the iPad.
Then the app will not start up by crash.


== Device Log =================================================================

Dyld Error Message:
Dyld Message: Library not loaded: @executable_path/libmonosgen-2.0.dylib
  Referenced from: /var/mobile/Containers/Bundle/Application/55E527BA-5851-41D5-BED3-F0FA76D0D511/Test21.app/Test21
  Reason: no suitable image found.  Did find:
	/var/mobile/Containers/Bundle/Application/55E527BA-5851-41D5-BED3-F0FA76D0D511/Test21.app/libmonosgen-2.0.dylib: can't map segments into 16KB pages
	/private/var/mobile/Containers/Bundle/Application/55E527BA-5851-41D5-BED3-F0FA76D0D511/Test21.app/libmonosgen-2.0.dylib: can't map segments into 16KB pages
  Dyld Version: 369.12

===============================================================================
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-09-25 05:04:21 UTC
Which device are you deploying to?

And can you get your complete version information from Xamarin Studio's about menu (click on the Show Details button)?
Comment 2 Ryoji.Ishikawa 2015-09-25 05:29:43 UTC
I was deployed to iPad Air2 (Model A1566).

== Detail infomation =============================================
Xamarin Studio
Version 5.9.7 (build 9)
Installation UUID: 7a37a89e-52f0-49a6-9608-8e7393150974
Runtime:
	Mono 4.0.4 ((detached/cb6d6b2)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400040002

Apple Developer Tools
Xcode 7.0 (8227)
Build 7A220

Xamarin.Mac
Not Installed

Xamarin.iOS
Version: 9.0.1.20 (Business Edition)
Hash: d8e9592
Branch: master
Build date: 2015-09-18 23:22:05-0400

Xamarin.Android
Version: 5.1.6.7 (Starter Edition)
Android SDK: /Developer/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
Java SDK: /usr
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Xamarin Android Player
Not Installed

Build Information
Release ID: 509070009
Git revision: 31fa64709030b3edb971237780a452a4c69943c4
Build date: 2015-09-17 11:44:37-04
Xamarin addins: b105d33d8cd72911ff2cf3ee0b7715d37e5f19a6

Operating System
Mac OS X 10.10.5
Darwin JPC20150005.local 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
=====================================================================
Comment 3 Rolf Bjarne Kvinge [MSFT] 2015-09-25 08:04:57 UTC
This happens because we build libmonosgen-2.0.dylib with iphoneos-version-min=5.1.1, and iOS 9 will not load dylibs with iphoneos-version-min<8.0.
Comment 4 Rolf Bjarne Kvinge [MSFT] 2015-09-25 08:36:45 UTC
Fixed.

maccore/master: 0e6faeca433ef402b3c3141e74992a45a3991560
Comment 5 Rolf Bjarne Kvinge [MSFT] 2015-09-25 08:39:25 UTC
Correction: iOS 9 will not load dylibs with iphoneos-version-min<7.0
Comment 8 Rolf Bjarne Kvinge [MSFT] 2015-10-01 04:03:04 UTC
*** Bug 34469 has been marked as a duplicate of this bug. ***