Skip to content

Exceptions get swallowed in host #22424

@MartinZikmund

Description

@MartinZikmund

Current behavior 🐛

When an exception happens on startup, Run method of UnoPlatformHost may swallow it and act as if the issue is in fact caused by not calling await host.RunAsync()

Expected behavior 🎯

The actual exception should be shown if the task fails. If it is not failed and is still running, the current exception message can be shown.

How to reproduce it (as minimally and precisely as possible) 🔬

No response

Workaround 🛠️

No response

Renderer 🎨

  • Skia
  • Native

Affected platforms 📱💻🖥️

No response

Uno.Sdk version (and other relevant versions) 📦

No response

IDE version 🧑‍💻

No response

Anything else we need to know? 💬

No response

Metadata

Metadata

Labels

difficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.triage/untriagedIndicates an issue requires triaging or verification

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions