Closed Jay-57blocks closed 1 month ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Hi,
This didn't solve my problem, it happened all of a sudden, it was weird, we could only analyze it through the logs.
Best regards/Jay Ren
github-actions[bot] @.***>于2024年9月15日 周日下午7:27写道:
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Closed similar issues:
- [Android] App crashes when start from background (#4169) https://github.com/dotnet/maui/issues/4169, similarity score: 0.81
- [Android,iOS] Real device crash on navigation (#18372) https://github.com/dotnet/maui/issues/18372, similarity score: 0.79
- Null Reference Exception thrown if HotReload enabled (#3628) https://github.com/dotnet/maui/issues/3628, similarity score: 0.79
- Nested Entry View In A Frame Causes Crash (#15196) https://github.com/dotnet/maui/issues/15196, similarity score: 0.79
- Runs in Windows Emulator, Throws System.NullReferenceException error in Android Emulator. Don't know where to start. (#10249) https://github.com/dotnet/maui/issues/10249, similarity score: 0.79
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
— Reply to this email directly, view it on GitHub https://github.com/dotnet/maui/issues/24774#issuecomment-2351548156, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7TIKBS4XEWPYJRJKTV6WQ3ZWVVLRAVCNFSM6AAAAABOHXLVBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJRGU2DQMJVGY . You are receiving this because you authored the thread.Message ID: @.***>
Hi, are you able to provide a repro so that we can try to reproduce this on our end?
Hi, He only made the mistake in our company's project, and I don't know how to reproduce the mistake in a new project.
Have you received similar errors before? Or possible solutions. Best regards/Jay Ren
dotnet-policy-service[bot] @.***>于2024年9月17日 周二上午2:31写道:
Hi @Jay-57blocks https://github.com/Jay-57blocks. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
— Reply to this email directly, view it on GitHub https://github.com/dotnet/maui/issues/24774#issuecomment-2353621891, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7TIKBXQHOZYWJ5LHLMXZFTZW4PXJAVCNFSM6AAAAABOHXLVBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJTGYZDCOBZGE . You are receiving this because you were mentioned.Message ID: @.***>
You mentioned that an earlier version of MAUI worked. SR3 has been out for a while, so the commit you are on now worked on SR3 in the past? Does changing the MAUI version that you had prior work? I'd also be curious if updating your MAUI version to the latest helps this issue at all?
I am suddenly experiencing the same issue today. All of a sudden, debugging on Android fails and throws the same error. Debugging on iOS works fine. Updating .NET MAUI and all NuGet packages makes no difference.
Could you provide us with a sample project so we can investigate it further? Looking forward to your reply!
@steffenborup are you also able to provide a repro as ninachen03 mentioned? It would greatly help us figure out what is going on.
I have solved the problem for now. I was using the MSBuild Exec task to run "dotnet-project-licenses" as part of my build process. I used the tool to generate license texts that were then included in my app.
Once I removed the task, the exception no longer occurs. It seems really odd, though.
I didn't do anything. I took two days off, and then I ran the project again, and it didn't report an error. It was so strange that I couldn't find any reason.
Best regards/Jay Ren
steffenborup @.***>于2024年9月25日 周三下午5:39写道:
I have solved the problem for now. I was using the MSBuild Exec task to run "dotnet-project-licenses" as part of my build process. I used the tool to generate license texts that were then included in my app.
Once I removed the task, the exception no longer occurs. It seems really odd, though.
— Reply to this email directly, view it on GitHub https://github.com/dotnet/maui/issues/24774#issuecomment-2373578211, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7TIKBX5UT3FYIS2DN2I6EDZYKAFDAVCNFSM6AAAAABOHXLVBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZTGU3TQMRRGE . You are receiving this because you were mentioned.Message ID: @.***>
Seeing this as well. I'm not using fragments explicitly (don't even know what they are, TBH). My app worked fine on one emulator. I stopped it, started a new one, and I got this error: No view found for id for fragment NavigationRootManager_ElementBasedFragment Now it won't work on any of my emulators.
Complete error message:
java.lang.IllegalArgumentException: No view found for id 0x7f0800f3 (
My app doesn't use fragments, and there's no view named left. I am at a total loss right now.
This is where it breaks (this is in Platforms/Android/MainActivity.cs)
savedInstanceState is null.
As I mentioned, I didn't change anything, just stopped the debugger (clicked the red square), and tried to start a different emulator. VS 2022 Pro.
I just did a factory reset on the emulator and cleaned my solution. It worked twice and then started throwing the same exception.
Update: I am seeing this bug intermittently, but, I am able to work around it by a) full soln clean then rebuild, AND b) factory reset of the emulator(s). Knock on wood. :)
Sorry this is happening! Without any clear reproduction its hard for us to look into... I see the original author has it "fixed" now... If anyone is still hitting this and has clear information on what shows this, how to reproduce and what mitigates etc. Please feel free to open a new issue linking to this one. Thank you!
Description
Hi,
I have encountered an error during development, When I start the app, the program immediately terminates and freezes on the splash screen page
UNMC_Debug_AnyCPU_net8.0-android_Build_2024-09-15T19_19_22.4673372+08_00.zip
I don't know why it happened, I thought I changed the code to cause an exception, but after I Reset commit, the error still occurs.
I also tried the following, none of them worked: 1, Delete the app and reinstall it 2, Reboot the phone 3, Clean+Rebuild 4, Delete the bin folder
I don't know how to do it anymore, I expect to solve this problem soon, thanks!
Steps to Reproduce
I'm not sure how this problem arose
dotnet workload list
wasm-tools-net6 8.0.8/8.0.100 VS 17.9.34728.123 maui-windows 8.0.72/8.0.100 VS 17.9.34728.123 maccatalyst 17.5.8020/8.0.100 VS 17.9.34728.123 ios 17.5.8020/8.0.100 VS 17.9.34728.123 android 34.0.113/8.0.100 VS 17.9.34728.123
Link to public reproduction project repository
No response
Version with bug
8.0.10 SR3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 13, Windows
Did you find any workaround?
No
Relevant log output