You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UWP release build fails when referencing MessagePack (OutOfMemoryException) #440
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.
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
Activity
gentledepp commentedon May 13, 2019
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
AArnott commentedon Dec 4, 2019
Does not repro with MessagePack 2.0.