Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Created attachment 7483 [details]
If the "Icon" set for the Master page does not match the filename casing, the Detail page does not render. This only happens on a device. In the simulator, it does work.
This scenario causes a crash on device and emulator.
### Steps to Reproduce:
1. Run the attached sample on an iOS Device. The Detail page area should show a Label with "Yay, it worked."
2. If it does not show the label, you have reproduced the issue.
3. Run the same project on an iOS simulator. You will see the Label text and the "Hamburger" icon.
1. Run the sample on a device / emulator and it will crash. (Expected)
### Actual Results:
iOS: Doesn't render on device. Renders fine on simulator.
Android: Crashes on device and emulator. (Expected)
>ResourceType] No package identifier when getting value for resource number 0x00000000
>[MonoDroid] UNHANDLED EXCEPTION: Android.Content.Res.Resources+NotFoundException: Exception of type >'Android.Content.Res.Resources+NotFoundException' was thrown.
>[MonoDroid] at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (intptr,intptr,intptr,Android.Runtime.JValue) [0x00084] in >/Users/builder/data/lanes/monodroid-mlion-monodroid-4.12->series/163212a9/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:895
>[MonoDroid] at Android.Runtime.JNIEnv.FinishCreateInstance (intptr,intptr,intptr,Android.Runtime.JValue) [0x0000b] in >/Users/builder/data/lanes/monodroid-mlion-monodroid-4.12->series/163212a9/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:272
>[MonoDroid] at Android.Support.V4.App.ActionBarDrawerToggle..ctor >(Android.App.Activity,Android.Support.V4.Widget.DrawerLayout,int,int,int) <IL 0x0023f, 0x00eaf>
>[MonoDroid] at Xamarin.Forms.Platform.Android.Platform.UpdateMasterDetailToggle () <IL 0x000a2, 0x00343>
>[MonoDroid] at Xamarin.Forms.Platform.Android.Platform.UpdateActionBar () <IL 0x00098, 0x002fb>
>[MonoDroid] at Xamarin.Forms.Platform.Android.Platform.SetPage (Xamarin.Forms.Page) <IL 0x000b1, 0x003a3>
>[MonoDroid] at Xamarin.Forms.Platform.Android.AndroidActivity.SetPage (Xamarin.Forms.Page) <IL 0x000b6, 0x003fb>
>[MonoDroid] at MasterDetailTest.Android.MainActivity.OnCreate (Android.OS.Bundle) [0x00015] in >/Users/John/Projects/MasterDetailTest/Android/MainActivity.cs:24
>[MonoDroid] at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in >/Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/163212a9/source/monodroid/src/Mono.Android/platforms/android->15/src/generated/Android.App.Activity.cs:1943
>[MonoDroid] at (wrapper dynamic-method) object.6f05df6a-7690-496c-98b6-d79ce50c551f (intptr,intptr,intptr) <IL 0x00017, 0x0001f>
### Expected Results:
iOS: It should probably fail since the file name should be case sensitive. Some type of Resource not found exception. Similar to Android. The confusing part is it works on the simulator, so its not very obvious when you don't see any rendered results when testing on a device.
Android: This produces expected results, although the error message is a bit mysterious...
### Build Date & Platform:
XF 1.2.2 pre2
### Additional Information:
The issue is on line 13 of MasterDetailTestPage.cs:
> Icon = "settings.png"
The actual file resource is named "Settings.png". Change the code to:
> Icon = "Settings.png"
Things work as expected now.
I have checked this issue and able to reproduce this, To reproduce this issue I have followed the steps mentioned in bug description.
Output log: https://gist.github.com/shrutis360/ac79e65d4339094ee184
=== Xamarin Studio ===
Version 5.2 (build 386)
Installation UUID: 1a096c6f-0678-402e-89b2-a2c10f7e80e4
Mono 3.6.0 ((no/f540f8a)
GTK+ 2.24.23 (Raleigh theme)
Package version: 306000039
=== Xamarin.Android ===
Version: 4.14.0 (Business Edition)
Android SDK: /Users/360_macmini/Desktop/android-sdk-macosx
Supported Android versions:
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
3.2 (API level 13)
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)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
=== Apple Developer Tools ===
Xcode 5.1 (5084)
=== Xamarin.iOS ===
Version: 184.108.40.206 (Business Edition)
Build date: 2014-08-01 15:27:48-0400
=== Xamarin.Mac ===
Version: 220.127.116.11 (Business Edition)
=== Build Information ===
Release ID: 502000386
Git revision: e6a54dee5376e6e7a2d9982695b060fddc09e65d
Build date: 2014-08-04 14:03:28-04
Xamarin addins: 2b5a5c26ac2ee74c6e91a8d24ef44d0ca9cb74d0
=== Operating System ===ac OS X 10.9.4
Darwin ShrutiMac.local 13.3.0 Darwin Kernel Version 13.3.0
Tue Jun 3 21:27:35 PDT 2014
There really should be better error handling for this. It is such an obvious error but it literally took me two days to track it down. The errors I was seeing, when I saw errors at all didn't point me in this direction at all.
Super frustrating. Thank you to whoever posted this though
Sorry the filenames are really case sensitive.