xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.49k stars 515 forks source link

[Mono 2019-06][Interpreter]ResourcesTest.Embedded : System.IO.FileNotFoundException : Invalid Image #6297

Open mandel-macaque opened 5 years ago

mandel-macaque commented 5 years ago

Test fails when executed on a tvOS device when running with the interpreter and mono 2019-06.

mandel-macaque commented 5 years ago

/cc @lewurm might not be a blocker, but looks like a regression.

marek-safar commented 5 years ago

@mandel-macaque could you include some log info?

mandel-macaque commented 5 years ago

The only info I have is the static trace of the failure:

[FAIL] ResourcesTest.Embedded : System.IO.FileNotFoundException : Invalid Image at System.Resources.ResourceManager+ResourceManagerMediator.GetResourceFileName (System.Globalization.CultureInfo culture) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/resources/resourcemanager.cs:1654 at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet (System.Globalization.CultureInfo culture, System.Collections.Generic.Dictionary`2[TKey,TValue] localResourceSets, System.Boolean tryParents, System.Boolean createIfNotExists, System.Threading.StackCrawlMark& stackMark) [0x00065] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/resources/manifestbasedresourcegroveler.cs:104 at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo requestedCulture, System.Boolean createIfNotExists, System.Boolean tryParents, System.Threading.StackCrawlMark& stackMark) [0x00099] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/resources/resourcemanager.cs:815 at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, System.Boolean createIfNotExists, System.Boolean tryParents) [0x00002] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/resources/resourcemanager.cs:759 at System.Resources.ResourceManager.GetString (System.String name, System.Globalization.CultureInfo culture) [0x0005a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/resources/resourcemanager.cs:1321 at EmbeddedResources.ResourcesTest.Embedded () [0x0001b] in /Users/mandel/Xamarin/xamarin-macios/mono-2019-06/xamarin-macios/tests/EmbeddedResources/ResourcesTest.cs:39 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:395 ResourcesTest : 16 ms EmbeddedResources.dll : 16 ms

mandel-macaque commented 5 years ago

Also, I can confirm that it does not only happen on a tvOS device but on an iOS 64b too.

mandel-macaque commented 5 years ago

Moving to Future, tests have bene ignored after PR https://github.com/xamarin/xamarin-macios/pull/6832

lewurm commented 5 years ago

I can't reproduce on master from Wednesday (fe9e1c42481b7d47563601912c541575699153ee), that is mono 2019-08. Any chances that we have fixed it by accident?

ResourcesTest
    [PASS] ResourcesTest.Embedded
ResourcesTest : 35 ms
EmbeddedResources.dll : 36 ms
Screenshot 2019-09-20 at 09 38 46