ERROR: Object reference not set to an instance of an object

When developing thing in Fuse I often get this error. It would be good if it could give me more information so that I can debug this.

This is a common error that could come from a lot of places.

How to debug depends on platform:

  • On iOS, use Xcode to break on exception and inspect the stack trace.
  • On Android, compile with uno build --target=Android -DCPPSTACKTRACE and run the log script in the build folder
  • On DotNetExe, you should get proper stack traces
  • In Preview, the monitor should give you the info

The problem is that monitor gives me this:

ERROR: Object reference not set to an instance of an object

I was hoping not to have to run it in XCode, as this is super slow.

Bjørn-Olav: Many thanks for providing a test case in the Slack channel. Both the poor error messages and the actual crashes are now being fixed. :slight_smile: