Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NativeAOT] Resource manager tests failing with MissingMethodException : No parameterless constructor defined for type #87303

Closed
jkotas opened this issue Jun 9, 2023 · 3 comments · Fixed by #87304
Labels
area-NativeAOT-coreclr Known Build Error Use this to report build issues in the .NET Helix tab

Comments

@jkotas
Copy link
Member

jkotas commented Jun 9, 2023

https://dev.azure.com/dnceng-public/public/_build/results?buildId=300486&view=ms.vss-test-web.build-test-results-tab

Running assembly:System.Resources.Extensions.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
[FAIL] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.ResourceManagerLoadsCorrectReader
System.MissingMethodException : No parameterless constructor defined for type 'System.Resources.Extensions.DeserializingResourceReader'.
   at System.ActivatorImplementation.CreateInstance(Type, BindingFlags, Binder, Object[], CultureInfo, Object[]) + 0x36b
   at System.Resources.ManifestBasedResourceGroveler.InternalGetResourceSetFromSerializedData(Stream, String, String, ResourceManager.ResourceManagerMediator) + 0xe6
   at System.Resources.ManifestBasedResourceGroveler.CreateResourceSet(Stream, Assembly) + 0x1d9
   at System.Resources.ResourceManager.GetResourceSet(CultureInfo, Boolean, Boolean) + 0xd5
   at System.Resources.Extensions.Tests.PreserializedResourceWriterTests.ResourceManagerLoadsCorrectReader() + 0x5d
   at System.Resources.Extensions!<BaseAddress>+0x982be4
   at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xef
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.BinaryFormattedResources
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.TestResourceManagerIsSafeForConcurrentAccessAndEnumeration
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.CanReadViaResourceManager
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.EmbeddedResourcesAreUpToDate
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.BinaryFormattedResourcesWithoutTypeName
Finished System.Resources.Extensions.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51

Error Message

{
  "ErrorMessage": "",
  "ErrorPattern": "System.MissingMethodException : No parameterless constructor defined for type",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Report

Build Definition Test Pull Request
300641 dotnet/runtime System.Resources.Extensions.Tests.PreserializedResourceWriterTests.ResourceManagerLoadsCorrectReader #87055
300606 dotnet/runtime System.Resources.Extensions.Tests.PreserializedResourceWriterTests.ResourceManagerLoadsCorrectReader
300486 dotnet/runtime System.Resources.Extensions.Tests.PreserializedResourceWriterTests.ResourceManagerLoadsCorrectReader #87288

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 3 3
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jun 9, 2023
@ghost
Copy link

ghost commented Jun 9, 2023

Tagging subscribers to this area: @dotnet/area-system-resources
See info in area-owners.md if you want to be subscribed.

Issue Details

https://dev.azure.com/dnceng-public/public/_build/results?buildId=300486&view=ms.vss-test-web.build-test-results-tab

Running assembly:System.Resources.Extensions.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
[FAIL] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.ResourceManagerLoadsCorrectReader
System.MissingMethodException : No parameterless constructor defined for type 'System.Resources.Extensions.DeserializingResourceReader'.
   at System.ActivatorImplementation.CreateInstance(Type, BindingFlags, Binder, Object[], CultureInfo, Object[]) + 0x36b
   at System.Resources.ManifestBasedResourceGroveler.InternalGetResourceSetFromSerializedData(Stream, String, String, ResourceManager.ResourceManagerMediator) + 0xe6
   at System.Resources.ManifestBasedResourceGroveler.CreateResourceSet(Stream, Assembly) + 0x1d9
   at System.Resources.ResourceManager.GetResourceSet(CultureInfo, Boolean, Boolean) + 0xd5
   at System.Resources.Extensions.Tests.PreserializedResourceWriterTests.ResourceManagerLoadsCorrectReader() + 0x5d
   at System.Resources.Extensions!<BaseAddress>+0x982be4
   at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xef
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.BinaryFormattedResources
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.TestResourceManagerIsSafeForConcurrentAccessAndEnumeration
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.CanReadViaResourceManager
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.EmbeddedResourcesAreUpToDate
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.BinaryFormattedResourcesWithoutTypeName
Finished System.Resources.Extensions.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
Author: jkotas
Assignees: -
Labels:

area-System.Resources

Milestone: -

@ghost
Copy link

ghost commented Jun 9, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

https://dev.azure.com/dnceng-public/public/_build/results?buildId=300486&view=ms.vss-test-web.build-test-results-tab

Running assembly:System.Resources.Extensions.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
[FAIL] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.ResourceManagerLoadsCorrectReader
System.MissingMethodException : No parameterless constructor defined for type 'System.Resources.Extensions.DeserializingResourceReader'.
   at System.ActivatorImplementation.CreateInstance(Type, BindingFlags, Binder, Object[], CultureInfo, Object[]) + 0x36b
   at System.Resources.ManifestBasedResourceGroveler.InternalGetResourceSetFromSerializedData(Stream, String, String, ResourceManager.ResourceManagerMediator) + 0xe6
   at System.Resources.ManifestBasedResourceGroveler.CreateResourceSet(Stream, Assembly) + 0x1d9
   at System.Resources.ResourceManager.GetResourceSet(CultureInfo, Boolean, Boolean) + 0xd5
   at System.Resources.Extensions.Tests.PreserializedResourceWriterTests.ResourceManagerLoadsCorrectReader() + 0x5d
   at System.Resources.Extensions!<BaseAddress>+0x982be4
   at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xef
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.BinaryFormattedResources
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.TestResourceManagerIsSafeForConcurrentAccessAndEnumeration
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.CanReadViaResourceManager
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.EmbeddedResourcesAreUpToDate
[SKIP] System.Resources.Extensions.Tests.PreserializedResourceWriterTests.BinaryFormattedResourcesWithoutTypeName
Finished System.Resources.Extensions.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
Author: jkotas
Assignees: -
Labels:

area-System.Resources, untriaged, area-NativeAOT-coreclr

Milestone: -

@jkotas
Copy link
Member Author

jkotas commented Jun 9, 2023

@MichalStrehovsky Could you please take a look?

It looks like this was introduced as side-effect of #87238

@jkotas jkotas added the Known Build Error Use this to report build issues in the .NET Helix tab label Jun 9, 2023
MichalStrehovsky added a commit to MichalStrehovsky/runtime that referenced this issue Jun 9, 2023
Looks like this is still needed. Fixes dotnet#87303.
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jun 9, 2023
jkotas pushed a commit that referenced this issue Jun 9, 2023
Looks like this is still needed. Fixes #87303.
@ghost ghost removed in-pr There is an active PR which will close this issue when it is merged untriaged New issue has not been triaged by the area owner labels Jun 9, 2023
@dotnet dotnet locked as resolved and limited conversation to collaborators Jul 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-NativeAOT-coreclr Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@jkotas and others