question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Binding Crash with "System.ExecutionEngineException" or "System.NullReferenceException"

See original GitHub issue

When running the following code the programm crashs if there are tow many updates of the Propoerty. The issue only happens on Windows.

public class MyViewModel : ReactiveObject
{
        private string _text;

        public string Text
        {
            get => _text;
            set
            {
                this.RaiseAndSetIfChanged(ref _text, value);
            }
        }
}

<TextBox Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" Text="{Binding Text}" ></TextBox>

  • OS: Windows (Works on Linux, Mac not tested)
  • Version 0.10.0, 0.9.10 (have not tested more than these two versions)

Error message: A Exception of the type "System.NullReferenceException" happend in Unknown Modul. or A Exception of the type "System.ExecutionEngineException" happend in Unknown Modul.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
maxkatz6commented, Nov 8, 2022

Original issue was caused by invoking UI code on non UI thread. So I am closing this.

@cezarypiatek your issue seems to be same as here https://github.com/AvaloniaUI/Avalonia/issues/8810

0reactions
timuniecommented, Nov 7, 2022

@cezarypiatek Let’s see. If you manage to do so, or if you can share all your code, it may be easier for us to get the root cause.

Thanks for your effort.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NullReferenceException during C++ callback to C# function
Debugger told me about System.NullReferenceException } } } }. The problem is that it crashes in 6860th iteration! I believe that the problem ......
Read more >
System.ExecutionEngineException almost every time when ...
ExecutionEngineException and the debug session crashes (Visual Studio itself does NOT crash, and I can't really determine if it is less stable ...
Read more >
Troubleshooting on iOS devices
Unity includes software-based handling of the NullReferenceException. ... Various crashes occur on the device when a combination of System.Security.
Read more >
NullReferenceException when building Xamarin Android ...
I've been trying to build a Xamarin Android Binding Library having a .jar file in it. ... BINDINGSGENERATOR : error BG0000: System.
Read more >
Getting System.NullReferenceException crash : r/Bannerlord
Getting System.NullReferenceException crash. Hello there. After 600 days in game I started to get this crash. When I load a save that is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found