Skip to content

Xamarin app is throwing System.NotImplementedException: byref delegate #31075

Closed

Description

@JRawlins737

Looking at the code reference below the exception is getting thrown where a return used to exist..(commented out)

Are there plans to update and return a valid value? causes multiple exceptions per day per user

https://github.com/dotnet/corefx/blob/09698dd91c53e123d3a0f1240b5f611b3c14639c/src/System.Linq.Expressions/src/System/Linq/Expressions/Interpreter/LightLambda.cs#L352

Exception thrown is:
System.NotImplementedException: byref delegate
at System.Linq.Expressions.Interpreter.LightLambda.CreateCustomDelegate (System.Type delegateType) <0x1052b3620 + 0x00738> in <b17c8f8ec0e94e6aa946d54abe0cfd86#d5047ea47da6b88a294b7510b13ff6ef>:0
at System.Linq.Expressions.Interpreter.LightLambda.MakeDelegate (System.Type delegateType) <0x1052b3da0 + 0x0005f> in <b17c8f8ec0e94e6aa946d54abe0cfd86#d5047ea47da6b88a294b7510b13ff6ef>:0
at System.Linq.Expressions.Interpreter.LightDelegateCreator.CreateDelegate (System.Runtime.CompilerServices.IStrongBox[] closure) <0x1052ac220 + 0x0006f> in <b17c8f8ec0e94e6aa946d54abe0cfd86#d5047ea47da6b88a294b7510b13ff6ef>:0
at System.Linq.Expressions.Interpreter.LightDelegateCreator.CreateDelegate () <0x1052ac1e0 + 0x0002f> in <b17c8f8ec0e94e6aa946d54abe0cfd86#d5047ea47da6b88a294b7510b13ff6ef>:0
at System.Linq.Expressions.Expression1[TDelegate].Compile (System.Boolean preferInterpretation) <0x105274ea0 + 0x0005f> in <b17c8f8ec0e94e6aa946d54abe0cfd86#d5047ea47da6b88a294b7510b13ff6ef>:0 at System.Linq.Expressions.Expression1[TDelegate].Compile () <0x105274e60 + 0x0002f> in <b17c8f8ec0e94e6aa946d54abe0cfd86#d5047ea47da6b88a294b7510b13ff6ef>:0
at Unity.UnityContainer+<>c__DisplayClass111_0.b__1 () <0x106163780 + 0x003a3> in <f5d5eaafc5e641898d8fba8b91c55f8c#d5047ea47da6b88a294b7510b13ff6ef>:0
at System.Threading.Tasks.Task.InnerInvoke () <0x104c02870 + 0x00077> in <939d99b14d934342858948926287beba#d5047ea47da6b88a294b7510b13ff6ef>:0
at System.Threading.Tasks.Task.Execute () <0x104c02550 + 0x0003b> in <939d99b14d934342858948926287beba#d5047ea47da6b88a294b7510b13ff6ef>:0

Activity

  1. AutumnEvans418 commented on Dec 18, 2019

    @AutumnEvans418

    I get this exception too. Do you know what causes this?

  2. JRawlins737 commented on Dec 19, 2019

    @JRawlins737
    Author
  3. clintonrocksmith-skedulo commented on Jan 3, 2020

    @clintonrocksmith-skedulo

    We also get this error, it gets bubbled up inside Unity Container Resolving for us. It's a soft/quiet crash for us thankfully. But it does show up in our crash reporting for Xamarin.iOS

  4. transferred this issue fromdotnet/corefxon Feb 1, 2020
  5. mrbrl commented on Feb 13, 2020

    @mrbrl

    same here - getting hundreds a day of these

  6. added
    untriaged
    on Feb 23, 2020
  7. jaredpar commented on Jul 9, 2020

    @jaredpar
    Member

    The particular code path here is controlled by the NO_FEATURE_STATIC_DELEGATE conditional flag. To my understanding this is not a flag that is supported by the .NET runtime but rather by Mono. The flag is just present here because this source is consumed by the Mono builds of the framework.

    Given this is not supported by the .NET Runtime I'm closing this issue. Please instead open this issue on https://github.com/mono/mono.

    Unfortunately I can't transfer issues across organizations or I would do that.

  8. ghost locked as resolved and limited conversation to collaborators on Dec 12, 2020
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

    area-System.Linq.Expressionsuntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions