Skip to content

UWP release build fails when referencing MessagePack (OutOfMemoryException) #440

Closed

Description

@gentledepp

When publishing a UWP app to the Micosoft Store, enabling optimization and .net native compile chain are mandatory.
However, when referencing MessagePack, the process returns -1 and fails with an OutOfMemoryException.

Activity

  1. gentledepp commented on May 13, 2019

    @gentledepp
    Author

    As two days of tiring research revealed, it has to do with the attribute that is used on most methods of MessagePackSerializer:
    [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]

    We'll solved this by adding another compiler directive for UWP which simply ignores this attribute

    see #401

  2. AArnott commented on Dec 4, 2019

    @AArnott
    Collaborator

    Does not repro with MessagePack 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions