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.

App crashes within a few seconds

See original GitHub issue

Description

If I run the app on the android emulator, the app opens up and crases within few seconds. But I was able to click on the click me button and saw the increment but. I’ve tried with vs 2019 16.11 and newly released vs 2022 preview 1. The result is the same. I’ve tried reinstalling .NET6 SDK, Android Emulator, cleaning the project, creating another project, downloading the sample weather app from GitHub but the problem remained.

If I run the installed version of the app from the emulater, it gets stucks. The Weather ’21 demo app also crashes.

Steps to Reproduce

  1. dotnet new maui
  2. dotnet restore
  3. dotnet build
  4. dotnet build -t:Run -f net6.0-android

Expected Behavior

The app should run smoothly.

Actual Behavior

Crashing without any build error.

Basic Information

  • Version with issue: 6.0.1000-preview.5.794
  • Last known good version: None
  • IDE: Visual Studio 2019 16.11 (Preview) & Visual Studio 2022 17.0.0 (Preview 1.0)
  • Platform Target Frameworks:
    • Android: 9.0, 11.0
  • Nuget Packages: Microsoft.Maui (6.0.1000-preview.5.794)
  • Affected Devices: Android

System Information

  • Windows 10 Pro
  • 16 GIG
  • AMD Ryzen 5 3600
  • Nvidea GeForce GT220 1GB

Screenshots

maui_notworking_ss

maui-check Output

maui-check.txt

Build Output

buid output.txt

Debug output

debug output.txt

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
matt-goldmancommented, Jun 19, 2021

See #1361

0reactions
jfversluiscommented, Nov 5, 2021

Glad your life is better now! Let us know if we can help you in any other way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

most apps crash a few seconds after opening them
Method 3* Try to Reset or Repair the game in Windows Settings > Apps > Apps & Features > [Name of game] >...
Read more >
Why do my apps keep crashing on Android, How to fix it
There can be multiple ways in which you can fix an app that keeps crashing on your Android smartphone. 1. Force stop the...
Read more >
Why are my Android phone apps crashing or closing & how ...
Another reason for Android apps crashing can be a lack of storage space in your device. This can occur when you overload your...
Read more >
Why Do My Apps Keep Crashing on Android?
Low storage space can cause Android phones to freeze, and it can also drain your battery and damage your phone in the long...
Read more >
All iOS 15 apps crash when quickly restarted (iPhone)
Close the app and quickly reopen. This will cause the app to crash if you do it fast enough. It seems to work...
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