dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.17k stars 1.74k forks source link

App crashes within a few seconds #1383

Closed MahmudX closed 2 years ago

MahmudX commented 3 years ago

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

System Information

Screenshots

maui_notworking_ss

maui-check Output

maui-check.txt

Build Output

buid output.txt

Debug output

debug output.txt

matt-goldman commented 3 years ago

See #1361

MahmudX commented 3 years ago

After disabling the hot reload, the app doesn't crash but freezes instead. Also if it were the hot reload issue, it would have run perfectly if I fire it up from the command line.

After running multiple times (After disabling the Hot reload), the result didn't change.

So I cleaned the solution, uninstalled the existing app from the emulator, and tried to run again. Now the app is not even starting. Here is the result if I try to run from the command line -

image

Here the build gets failed, but if I run from the visual studio -

image

Also, you can see in the picture that the app wasn't got installed at all.

Screenshot_1624143537

But here is the recent view -

Screenshot_1624143766

This time I used vs 2022 preview 1. I tried all the basic troubleshooting such as restarting the IDE and cleaning the project.

jfversluis commented 2 years ago

Hey @MahmudX are you still having issues with this? Did you get it to work with newer versions?

jsuarezruiz commented 2 years ago

I tried with latest Preview (Pre 11, cannot reproduce the issue and Hot Reload is working. However, we maintain the issue open to receive feedback from @MahmudX.

MahmudX commented 2 years ago

You guys are responding so fast. Such fast that I was bored and tired of waiting, therefore uninstalled all the MAUI workload to be in peace.

jfversluis commented 2 years ago

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