Bug 25839 - Resources aren't always extracted from referenced class libraries when embedding the mono runtime
Summary: Resources aren't always extracted from referenced class libraries when embedd...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Other ()
Version: Master
Hardware: PC Mac OS
: Normal normal
Target Milestone: 2.4.0 (C6)
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2015-01-08 12:57 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2015-06-08 12:30 UTC (History)
4 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 Rolf Bjarne Kvinge [MSFT] 2015-01-08 12:57:00 UTC
Use test project from bug #23652.

* Enable mono embedding in the project's options.
* Build & run.
* Click on the button. 

Actual result:

2015-01-08 18:54:18.226 uicontrolinlibrary[34952:707] -[windowinlibraryController loadWindow]: failed to load window nib file 'windowinlibrary'.

Expected result:

No such message and a new window should show up.

Checking build logs, this is printed when not embedding the mono runtime:

> Extracting embedded content
> Extracted windowinlibrary.nib from controllibrary.dll

and it's not printed otherwise.

Full build logs:
Without mono runtime: https://gist.github.com/rolfbjarne/2f87805d658ed0c3f313
With mono runtime: https://gist.github.com/rolfbjarne/e29ab5dfe4682c5fc6df
Comment 1 Ram Chandra 2015-01-09 04:50:05 UTC
Hi Rolf,

I have checked this issue but I am unable to reproduce this behavior.

Steps I followed:

1. Using test project from bug #23652
2. Build and deploy the project.
3. Click on the  Load window In Control library.

Observation: When I click on the button I observed that a new window is opened. I am not getting any error/exception message.

Screencast: http://www.screencast.com/t/KyAPn0WvYtB

Could you please provide build info? So that we can reproduce this issue at our end. 

Please let me know if I am missing something?

Environment Info:

=== Xamarin Studio ===

Version 5.7 (build 660)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
Runtime:
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: 8.6.0.52 (Trial Edition)
Hash: 7c4c2c5
Branch: 
Build date: 2015-01-08 22:29:16-0500

=== Xamarin.Android ===

Version: 4.20.0.28 (Trial Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin.Mac ===

Version: 1.11.3.0 (Trial Edition)

=== Build Information ===

Release ID: 507000660
Git revision: 6a74f9bdb90d9415b597064d815c9be38b401fee
Build date: 2014-12-18 00:38:00-05
Xamarin addins: 57be0f5e1433cb58b70ea9b52e9dc77ad791be40

=== Operating System ===

Mac OS X 10.10.0
Darwin Jatin66s-iMac.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 2 Rolf Bjarne Kvinge [MSFT] 2015-01-09 13:55:26 UTC
@Ram, did you enable mono embedding in the project's Mac options?
Comment 3 Rolf Bjarne Kvinge [MSFT] 2015-01-12 04:38:19 UTC
Reopening
Comment 4 Ram Chandra 2015-01-12 06:37:53 UTC
@Thanks Rolf.

I have checked this issue and I am able to reproduce this issue.

Steps I followed:

1. Using test project from bug #23652
2. Enable the "Include the Mono runtime in the application bundle" option
3. Build and deploy the project.
4. Click on the  Load window In Control library.

Observation: When I enable the "Include the Mono runtime in the application bundle" option, I observed that XS shows following error message and doesn't open the new window.

"uicontrolinlibrary[1975:43147] -[windowinlibraryController loadWindow]: failed to load window nib file 'windowinlibrary'."  

Screencast: http://www.screencast.com/t/8pbUW3rl

Application Output: https://gist.github.com/RamChBachkheti/2471a9addb6057b082d8

Environment Info:

=== Xamarin Studio ===

Version 5.7 (build 661)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
Runtime:
	Mono 3.12.0 ((detached/1538a59)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000072

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: 8.6.0.52 (Starter Edition)
Hash: 7c4c2c5
Branch: 
Build date: 2015-01-08 22:29:16-0500

=== Xamarin.Android ===

Version: 4.20.0.40 (Starter Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin.Mac ===

Version: 1.11.3.0 (Trial Edition)

=== Build Information ===

Release ID: 507000661
Git revision: b70bab61da996da29045ea8ee8aed1a6faedbe78
Build date: 2015-01-05 16:31:31-05
Xamarin addins: 82f6c71490562d6cd125a09287f441902fdac3d7

=== Operating System ===

Mac OS X 10.10.0
Darwin Jatin66s-iMac.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 5 Timothy Risi 2015-06-08 12:30:47 UTC
fixed on master (md-addins) / 4bbcdd40a8f179133b1a7cee640a23043e0490ac