Skip to content

[iOS/tvOS] CustomAttributeDecoderTests.TestCustomAttributeDecoder failing on devices #60579

Open

Description

@steveisok

This test fails with:

System.BadImageFormatException : Invalid serialized string.
at System.Reflection.Throw.InvalidSerializedString()
   at System.Reflection.Metadata.BlobReader.ReadSerializedString()
   at System.Reflection.Metadata.Ecma335.CustomAttributeDecoder`1[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].DecodeArgument(BlobReader& valueReader, ArgumentTypeInfo info)
   at System.Reflection.Metadata.Ecma335.CustomAttributeDecoder`1[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].DecodeArrayArgument(BlobReader& blobReader, ArgumentTypeInfo info)
   at System.Reflection.Metadata.Ecma335.CustomAttributeDecoder`1[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].DecodeArgument(BlobReader& valueReader, ArgumentTypeInfo info)
   at System.Reflection.Metadata.Ecma335.CustomAttributeDecoder`1[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].DecodeFixedArguments(BlobReader& signatureReader, BlobReader& valueReader, Int32 count)
   at System.Reflection.Metadata.Ecma335.CustomAttributeDecoder`1[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].DecodeValue(EntityHandle constructor, BlobHandle value)
   at System.Reflection.Metadata.CustomAttribute.DecodeValue[String](ICustomAttributeTypeProvider`1 provider)
   at System.Reflection.Metadata.Decoding.Tests.CustomAttributeDecoderTests.TestCustomAttributeDecoder()
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Activity

  1. ghost added
    untriaged
    on Oct 18, 2021
  2. added
    os-ios
    os-tvos
    on Oct 18, 2021
  3. added this to the 7.0.0 milestone on Oct 18, 2021
  4. removed
    untriaged
    on Oct 18, 2021
  5. self-assigned this
    on Jul 14, 2022
  6. steveharter commented on Jul 14, 2022

    @steveharter
    Contributor

    @steveisok was this failing in normal CI simulators like for runtime (Build tvOSSimulator x64 Debug AllSubsets_Mono) or only on physical devices?

  7. steveisok commented on Jul 14, 2022

    @steveisok
    MemberAuthor

    I believe it was only devices

  8. steveharter commented on Jul 18, 2022

    @steveharter
    Contributor

    Per the test PR at https://github.com/dotnet/runtime/pull/72224/files that test is passing on simulators so it must be devices then.

    The current test hard-codes "System.Runtime" as the module which since it works in CI should be fine unless these perhaps use single-file executables on the device?

  9. modified the milestones: 7.0.0, 8.0.0 on Aug 3, 2022
  10. steveharter commented on Aug 3, 2022

    @steveharter
    Contributor

    Moving to 8.0; lower-priority and need to verify on devices.

  11. removed their assignment
    on Aug 3, 2022
  12. modified the milestones: 8.0.0, Future on Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions