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.21k stars 1.75k forks source link

[Android] Java.Lang.IllegalArgumentException: 'No view found for id 0x7f0900fd (com.twe.elon:id/labeled) for fragment NavigationRootManager_ElementBasedFragment{e99ccf3} (d735450b-8b7e-4e10-87d0-3b9a8251e4b3 id=0x7f0900fd)' #24774

Closed Jay-57blocks closed 1 month ago

Jay-57blocks commented 1 month ago

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

Java.Lang.IllegalArgumentException: 'No view found for id 0x7f0900fd (com.twe.elon:id/labeled) for fragment NavigationRootManager_ElementBasedFragment{e99ccf3} (d735450b-8b7e-4e10-87d0-3b9a8251e4b3 id=0x7f0900fd)

image

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

I've uploaded the Build Logging log attachment above:
[UNMC_Debug_AnyCPU_net8.0-android_Build_2024-09-15T19_19_22.4673372+08_00.zip

Here is the console log:

This debug engine does not support exception conditions. The condition(s) will be ignored.
Start debugging Android application ...
Forwarding debugger port 8809
Detecting existing process
> am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.twe.elon/crc6462652f9ee391236e.MainActivity"
> Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.twe.elon/crc6462652f9ee391236e.MainActivity }
Loaded assembly: System.Private.CoreLib.dll [External]
Loaded assembly: UNMC.dll
Loaded assembly: Mono.Android.dll [External]
Loaded assembly: System.Runtime.dll [External]
Loaded assembly: Java.Interop.dll [External]
Loaded assembly: System.Runtime.InteropServices.dll [External]
Resolved pending breakpoint for 'Android.Runtime.JNIEnvInit.RegisterJniNatives(System.IntPtr, System.Int32, System.IntPtr, System.IntPtr, System.Int32)' to /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNIEnvInit.cs:57 [0x00000].
Loaded assembly: System.Collections.dll [External]
Loaded assembly: Mono.Android.Runtime.dll [External]
Loaded assembly: System.Threading.dll [External]
Loaded assembly: System.Threading.Thread.dll [External]
Loaded assembly: System.Diagnostics.StackTrace.dll [External]
Loaded assembly: data-0xb400007564b80600 [External]
Loaded assembly: data-0xb400007564ba2880 [External]
Loaded assembly: data-0xb400007564bf5d40 [External]
Loaded assembly: netstandard.dll [External]
Loaded assembly: System.Linq.dll [External]
Loaded assembly: System.Collections.Concurrent.dll [External]
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointSendToIde(System.String)' to D:\a\_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:423 [0x00000].
Loaded assembly: System.Text.Json.dll [External]
Loaded assembly: System.Text.Encodings.Web.dll [External]
Loaded assembly: System.ComponentModel.dll [External]
Loaded assembly: Microsoft.Maui.Controls.dll [External]
Loaded assembly: System.ObjectModel.dll [External]
Loaded assembly: Microsoft.Maui.dll [External]
Loaded assembly: Microsoft.Maui.Graphics.dll [External]
Loaded assembly: Microsoft.Maui.Essentials.dll [External]
Loaded assembly: Microsoft.Extensions.Logging.Abstractions.dll [External]
[com.twe.elon] Late-enabling -Xcheck:jni
Loaded assembly: System.Runtime.Loader.dll [External]
[CompatibilityChangeReporter] Compat change id reported: 171979766; UID 10252; state: ENABLED
[nativeloader] Configuring classloader-namespace for other apk /system/framework/org.apache.http.legacy.jar. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~~pJH9LJhGwDl9fQmrKm3gMg==/com.twe.elon-M5lNcIF5w55ALaUbiliwBg==/lib/arm64:/data/app/~~pJH9LJhGwDl9fQmrKm3gMg==/com.twe.elon-M5lNcIF5w55ALaUbiliwBg==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.twe.elon
[nativeloader] Extending system_exposed_libraries: libhigh_dynamic_range.arcsoft.so:libBeauty_v4.camera.samsung.so:libexifa.camera.samsung.so:libjpega.camera.samsung.so:libOpenCv.camera.samsung.so:libImageScreener.camera.samsung.so:libMyFilter.camera.samsung.so:libtensorflowLite.myfilter.camera.samsung.so:libtensorflowlite_inference_api.myfilter.camera.samsung.so:libHpr_RecGAE_cvFeature_v1.0.camera.samsung.so:libHprFace_GAE_api.camera.samsung.so:libFace_Landmark_API.camera.samsung.so:libHprFace_GAE_jni.camera.samsung.so:libFacialBasedSelfieCorrection.camera.samsung.so:libDLInterface_aidl.camera.samsung.so:libObjectAndSceneClassification_2.5_OD.camera.samsung.so:libQREngine.camera.samsung.so:libEventDetector.camera.samsung.so:libFood.camera.samsung.so:libFoodDetector.camera.samsung.so:libPortraitSolution.camera.samsung.so:libsrib_CNNInterface.camera.samsung.so:libsrib_humanaware_engine.camera.samsung.so:libInteractiveSegmentation.camera.samsung.so:libImageCropper.camera.samsung.so:libsmart_cropping.camera.samsung.so:libMult
[ziparchive] Unable to open '/data/app/~~pJH9LJhGwDl9fQmrKm3gMg==/com.twe.elon-M5lNcIF5w55ALaUbiliwBg==/base.dm': No such file or directory
[ziparchive] Unable to open '/data/app/~~pJH9LJhGwDl9fQmrKm3gMg==/com.twe.elon-M5lNcIF5w55ALaUbiliwBg==/base.dm': No such file or directory
[nativeloader] Configuring classloader-namespace for other apk /data/app/~~pJH9LJhGwDl9fQmrKm3gMg==/com.twe.elon-M5lNcIF5w55ALaUbiliwBg==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~pJH9LJhGwDl9fQmrKm3gMg==/com.twe.elon-M5lNcIF5w55ALaUbiliwBg==/lib/arm64:/data/app/~~pJH9LJhGwDl9fQmrKm3gMg==/com.twe.elon-M5lNcIF5w55ALaUbiliwBg==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.twe.elon
[GraphicsEnvironment] ANGLE Developer option for 'com.twe.elon' set to: 'default'
[GraphicsEnvironment] ANGLE GameManagerService for com.twe.elon: false
[GraphicsEnvironment] Neither updatable production driver nor prerelease driver is supported.
[NetworkSecurityConfig] No Network Security Config specified, using platform default
[NetworkSecurityConfig] No Network Security Config specified, using platform default
[DOTNET] JNI_OnLoad: JNI_OnLoad in pal_jni.c
[DOTNET] GetOptionalClassGRef: optional class com/android/org/conscrypt/OpenSSLEngineImpl was not found
[monodroid] Creating public update directory: `/data/user/0/com.twe.elon/files/.__override__`
[com.twe.elon] Attempt to remove non-JNI local reference, dumping thread
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8809,server=y,embedding=1,timeout=1726397897
[monodroid-gc] GREF GC Threshold: 46080
[com.twe.elon] Attempt to remove non-JNI local reference, dumping thread
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to D:\a\_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:418 [0x00000].
Loaded assembly: System.Memory.dll [External]
Loaded assembly: System.Reflection.Emit.Lightweight.dll [External]
Loaded assembly: System.Reflection.Emit.ILGeneration.dll [External]
Loaded assembly: System.Reflection.Primitives.dll [External]
Loaded assembly: Xamarin.AndroidX.Core.dll [External]
Loaded assembly: Microsoft.Extensions.DependencyInjection.Abstractions.dll [External]
Loaded assembly: System.Console.dll [External]
Loaded assembly: Microsoft.Maui.Controls.Xaml.dll [External]
Loaded assembly: Microsoft.Maui.Controls.Compatibility.dll [External]
Loaded assembly: CommunityToolkit.Maui.dll [External]
Loaded assembly: CommunityToolkit.Maui.Core.dll [External]
Loaded assembly: BarcodeScanning.Native.Maui.dll [External]
Loaded assembly: DevExpress.Maui.Core.dll [External]
Loaded assembly: Plugin.LocalNotification.dll [External]
Loaded assembly: Prism.Container.Abstractions.dll [External]
Loaded assembly: Prism.Maui.dll [External]
Loaded assembly: DryIoc.dll [External]
Loaded assembly: Prism.DryIoc.Maui.dll [External]
Loaded assembly: Microsoft.Extensions.Configuration.dll [External]
Loaded assembly: Microsoft.Extensions.Configuration.Abstractions.dll [External]
Loaded assembly: Prism.Events.dll [External]
Loaded assembly: Xamarin.AndroidX.AppCompat.dll [External]
Loaded assembly: Xamarin.Google.Android.Material.dll [External]
Loaded assembly: Xamarin.AndroidX.SwipeRefreshLayout.dll [External]
Loaded assembly: System.ComponentModel.TypeConverter.dll [External]
Loaded assembly: System.Private.Uri.dll [External]
Loaded assembly: Xamarin.AndroidX.Fragment.dll [External]
Loaded assembly: Xamarin.AndroidX.Activity.dll [External]
Loaded assembly: Xamarin.AndroidX.Lifecycle.ViewModel.dll [External]
Loaded assembly: Xamarin.AndroidX.Lifecycle.Common.dll [External]
Loaded assembly: Xamarin.AndroidX.SavedState.dll [External]
Loaded assembly: Xamarin.AndroidX.DrawerLayout.dll [External]
Loaded assembly: Xamarin.AndroidX.CustomView.dll [External]
Loaded assembly: Xamarin.AndroidX.Navigation.Runtime.dll [External]
Loaded assembly: System.Net.Primitives.dll [External]
Loaded assembly: DevExpress.Data.v23.1.dll [External]
Loaded assembly: Xamarin.GooglePlayServices.Location.dll [External]
Loaded assembly: Xamarin.GooglePlayServices.Base.dll [External]
Loaded assembly: Prism.Container.DryIoc.dll [External]
Loaded assembly: Prism.dll [External]
Loaded assembly: Microsoft.Extensions.DependencyInjection.dll [External]
Loaded assembly: System.Linq.Expressions.dll [External]
Loaded assembly: Plugin.BLE.dll [External]
Loaded assembly: Microsoft.Extensions.Configuration.Json.dll [External]
Loaded assembly: Microsoft.Extensions.Primitives.dll [External]
Loaded assembly: System.Text.Encoding.Extensions.dll [External]
Loaded assembly: System.Xml.ReaderWriter.dll [External]
Loaded assembly: System.Private.Xml.dll [External]
[ConnectivityManager] StackLog: [android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4191)] [android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4233)] [android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4615)] [android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4585)] [crc6488302ad6e9e4df1a.MauiApplication.n_onCreate(Native Method)] [crc6488302ad6e9e4df1a.MauiApplication.onCreate(MauiApplication.java:28)] [android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1266)] [android.app.ActivityThread.handleBindApplication(ActivityThread.java:7614)] [android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)] [android.app.ActivityThread$H.handleMessage(ActivityThread.java:2400)]
Thread started:  #2
Loaded assembly: Interfaces.dll [External]
Loaded assembly: Serilog.dll [External]
Loaded assembly: UNCCLient.dll [External]
Loaded assembly: Api.dll [External]
Loaded assembly: System.Net.Http.dll [External]
Loaded assembly: IdentityModel.dll [External]
Loaded assembly: Lottie.Maui.dll [External]
Loaded assembly: Plugin.Maui.Audio.dll [External]
Loaded assembly: Stateless.dll [External]
Loaded assembly: Microsoft.AppCenter.Analytics.dll [External]
Loaded assembly: Microsoft.AppCenter.dll [External]
Loaded assembly: Microsoft.AppCenter.Crashes.dll [External]
Loaded assembly: System.Text.RegularExpressions.dll [External]
[CompatibilityChangeReporter] Compat change id reported: 183155436; UID 10252; state: ENABLED
[ConnectivityManager] StackLog: [android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4191)] [android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4233)] [android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4615)] [android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:4585)] [com.microsoft.appcenter.utils.NetworkStateHelper.reopen(NetworkStateHelper.java:112)] [com.microsoft.appcenter.utils.NetworkStateHelper.<init>(NetworkStateHelper.java:66)] [com.microsoft.appcenter.utils.NetworkStateHelper.getSharedInstance(NetworkStateHelper.java:81)] [com.microsoft.appcenter.http.HttpUtils.createHttpClientWithoutRetryer(HttpUtils.java:203)] [com.microsoft.appcenter.http.HttpUtils.createHttpClient(HttpUtils.java:198)] [com.microsoft.appcenter.http.HttpUtils.createHttpClient(HttpUtils.java:192)] [com.microsoft.appcenter.AppCenter.finishConfiguration(AppCenter.java:895)] [com.microsoft.appcenter.AppCenter.access$500(AppCenter.java:64)] [com.microsoft.appcenter.AppCenter$5.run(AppCenter.java:784)]
Loaded assembly: Serilog.Sinks.Debug.dll [External]
Thread started: <Thread Pool> #3
Thread started:  #4
Thread started: .NET TP Gate #5
Thread started: <Thread Pool> #6
Thread started: <Thread Pool> #7
Loaded assembly: Xamarin.Google.Crypto.Tink.Android.dll [External]
Loaded assembly: Xamarin.AndroidX.Security.SecurityCrypto.dll [External]
Loaded assembly: System.Diagnostics.DiagnosticSource.dll [External]
Thread started:  #8
Loaded assembly: System.Diagnostics.Tracing.dll [External]
[0:] [18:57:55 INF] 2024-09-15:10:57:55.800: TraceLifeCycle AppInitialized
Loaded assembly: Xamarin.AndroidX.RecyclerView.dll [External]
Loaded assembly: Xamarin.AndroidX.CardView.dll [External]
Loaded assembly: Xamarin.AndroidX.CoordinatorLayout.dll [External]
Loaded assembly: System.ComponentModel.Primitives.dll [External]
Loaded assembly: Lottie.Android.dll [External]
Loaded assembly: DevExpress.Maui.Charts.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly en-GB/System.Private.CoreLib.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en-GB/System.Private.CoreLib.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/System.Private.CoreLib.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/System.Private.CoreLib.resources.dll
Loaded assembly: System.Drawing.Common.dll [External]
Loaded assembly: System.Numerics.Vectors.dll [External]
Thread finished:  #8
The thread 8 has exited with code 0 (0x0).
[com.twe.elon] Explicit concurrent copying GC freed 54058(3387KB) AllocSpace objects, 49(1316KB) LOS objects, 68% free, 2891KB/9035KB, paused 93us,37us total 23.337ms
Loaded assembly: mscorlib.dll [External]
Loaded assembly: System.dll [External]
[TrafficStats] tagSocket(6) with statsTag=0xd83ddc19, statsUid=-1
Thread started:  #9
Thread started:  #10
Thread started:  #11
Loaded assembly: System.Runtime.Serialization.Json.dll [External]
Loaded assembly: System.Private.DataContractSerialization.dll [External]
Loaded assembly: System.Runtime.Serialization.Xml.dll [External]
Loaded assembly: System.Runtime.Serialization.Primitives.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly en-GB/System.Private.DataContractSerialization.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en-GB/System.Private.DataContractSerialization.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/System.Private.DataContractSerialization.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/System.Private.DataContractSerialization.resources.dll
Loaded assembly: System.Runtime.Intrinsics.dll [External]
[OpenGLRenderer] RenderThread::requireGlContext()
[OpenGLRenderer] RenderThread::setGrContext()
Loaded assembly: Xamarin.AndroidX.Loader.dll [External]
[AppCompatDelegate] Checking for metadata for AppLocalesMetadataHolderService : Service not found
Loaded assembly: _Microsoft.Android.Resource.Designer.dll [External]
[com.twe.elon] Explicit concurrent copying GC freed 12123(814KB) AllocSpace objects, 1(20KB) LOS objects, 64% free, 3315KB/9459KB, paused 88us,36us total 25.087ms
Resolved pending breakpoint at 'MauiProgram.cs:161,1' to void UNMC.MauiProgram.<NavigateToMainPage>d__3.MoveNext () [0x00132].
[0:] [18:58:02 INF] 2024-09-15:10:58:02.112: TraceNavigation NavigationPage/DebugDashBoard
[MediaPlayer-JNI] native_setup
[MediaPlayerNative] constructor
[MediaPlayerNative] setListener
[0:] [18:58:02 INF] 2024-09-15:10:58:02.452: TracePower LimitedBattery
[MediaPlayerNative] setDataSource(IDataSource)
[MediaPlayerNative] setVideoSurfaceTexture
[MediaPlayerNative] prepare
Thread started:  #12
[monodroid-assembly] open_from_bundles: failed to load assembly en-GB/UNMC.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en-GB/UNMC.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/UNMC.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/UNMC.resources.dll
Thread started:  #13
Thread started:  #14
[MediaPlayerNative] message received msg=200, ext1=10973, ext2=0
[MediaPlayerNative] info/warning (10973, 0)
[MediaPlayerNative] message received msg=1, ext1=0, ext2=0
[MediaPlayerNative] MediaPlayer::notify() prepared
[MediaPlayerNative] signal application thread
[MediaPlayerNative] prepare complete - status=0
[MediaPlayerNative] invoke 76
Thread started: <Thread Pool> #15
[MediaPlayer-JNI] native_setup
[MediaPlayerNative] constructor
[MediaPlayerNative] setListener
[MediaPlayerNative] setDataSource(IDataSource)
[MediaPlayerNative] setVideoSurfaceTexture
[MediaPlayerNative] prepare
Thread started:  #16
Thread started:  #17
[MediaPlayerNative] message received msg=200, ext1=10973, ext2=0
[MediaPlayerNative] info/warning (10973, 0)
[MediaPlayerNative] message received msg=1, ext1=0, ext2=0
[MediaPlayerNative] MediaPlayer::notify() prepared
[MediaPlayerNative] signal application thread
[MediaPlayerNative] prepare complete - status=0
[MediaPlayerNative] invoke 76
Loaded assembly: System.Security.Cryptography.dll [External]
[MediaPlayer-JNI] native_setup
[MediaPlayerNative] constructor
[MediaPlayerNative] setListener
[MediaPlayerNative] setDataSource(IDataSource)
Loaded assembly: System.Collections.NonGeneric.dll [External]
[MediaPlayerNative] setVideoSurfaceTexture
[MediaPlayerNative] prepare
Loaded assembly: System.Net.Requests.dll [External]
Thread started:  #18
[MediaPlayerNative] message received msg=200, ext1=10973, ext2=0
[MediaPlayerNative] info/warning (10973, 0)
[MediaPlayerNative] message received msg=1, ext1=0, ext2=0
[MediaPlayerNative] MediaPlayer::notify() prepared
[MediaPlayerNative] signal application thread
[MediaPlayerNative] prepare complete - status=0
[MediaPlayerNative] invoke 76
[MediaPlayer-JNI] native_setup
[MediaPlayerNative] constructor
[MediaPlayerNative] setListener
[MediaPlayerNative] setDataSource(IDataSource)
[MediaPlayerNative] setVideoSurfaceTexture
[MediaPlayerNative] prepare
[MediaPlayerNative] message received msg=200, ext1=10973, ext2=0
[MediaPlayerNative] info/warning (10973, 0)
[MediaPlayerNative] message received msg=1, ext1=0, ext2=0
[MediaPlayerNative] MediaPlayer::notify() prepared
[MediaPlayerNative] signal application thread
[MediaPlayerNative] prepare complete - status=0
[MediaPlayerNative] invoke 76
Loaded assembly: Newtonsoft.Json.dll [External]
[MediaPlayer-JNI] native_setup
[MediaPlayerNative] constructor
[MediaPlayerNative] setListener
[MediaPlayerNative] setDataSource(IDataSource)
Loaded assembly: System.Runtime.Serialization.Formatters.dll [External]
[MediaPlayerNative] setVideoSurfaceTexture
[MediaPlayerNative] prepare
[MediaPlayerNative] message received msg=200, ext1=10973, ext2=0
[MediaPlayerNative] info/warning (10973, 0)
[MediaPlayerNative] message received msg=1, ext1=0, ext2=0
[MediaPlayerNative] MediaPlayer::notify() prepared
[MediaPlayerNative] signal application thread
[MediaPlayerNative] prepare complete - status=0
[MediaPlayerNative] invoke 76
[MediaPlayer-JNI] native_setup
[MediaPlayerNative] constructor
[MediaPlayerNative] setListener
Loaded assembly: System.Diagnostics.TraceSource.dll [External]
[MediaPlayerNative] setDataSource(IDataSource)
[MediaPlayerNative] setVideoSurfaceTexture
[MediaPlayerNative] prepare
Loaded assembly: System.Runtime.Numerics.dll [External]
[MediaPlayerNative] message received msg=200, ext1=10973, ext2=0
[MediaPlayerNative] info/warning (10973, 0)
[MediaPlayerNative] message received msg=1, ext1=0, ext2=0
[MediaPlayerNative] MediaPlayer::notify() prepared
[MediaPlayerNative] signal application thread
[MediaPlayerNative] prepare complete - status=0
[MediaPlayerNative] invoke 76
[MediaPlayer-JNI] native_setup
[MediaPlayerNative] constructor
[MediaPlayerNative] setListener
[MediaPlayerNative] setDataSource(IDataSource)
[MediaPlayerNative] setVideoSurfaceTexture
[MediaPlayerNative] prepare
[MediaPlayerNative] message received msg=200, ext1=10973, ext2=0
[MediaPlayerNative] info/warning (10973, 0)
[MediaPlayerNative] message received msg=1, ext1=0, ext2=0
[MediaPlayerNative] MediaPlayer::notify() prepared
[MediaPlayerNative] signal application thread
[MediaPlayerNative] prepare complete - status=0
[MediaPlayerNative] invoke 76
[MediaPlayer-JNI] native_setup
[MediaPlayerNative] constructor
[MediaPlayerNative] setListener
[MediaPlayerNative] setDataSource(IDataSource)
[MediaPlayerNative] setVideoSurfaceTexture
[MediaPlayerNative] prepare
Loaded assembly: System.Data.Common.dll [External]
[MediaPlayerNative] message received msg=200, ext1=10973, ext2=0
[MediaPlayerNative] info/warning (10973, 0)
[MediaPlayerNative] message received msg=1, ext1=0, ext2=0
[MediaPlayerNative] MediaPlayer::notify() prepared
[MediaPlayerNative] signal application thread
[MediaPlayerNative] prepare complete - status=0
[MediaPlayerNative] invoke 76
[MediaPlayer-JNI] native_setup
[MediaPlayerNative] constructor
[MediaPlayerNative] setListener
[MediaPlayerNative] setDataSource(IDataSource)
[MediaPlayerNative] setVideoSurfaceTexture
[MediaPlayerNative] prepare
[MediaPlayerNative] message received msg=200, ext1=10973, ext2=0
[MediaPlayerNative] info/warning (10973, 0)
[MediaPlayerNative] message received msg=1, ext1=0, ext2=0
[MediaPlayerNative] MediaPlayer::notify() prepared
[MediaPlayerNative] signal application thread
[MediaPlayerNative] prepare complete - status=0
[MediaPlayerNative] invoke 76
[com.twe.elon] Explicit concurrent copying GC freed 1415(244KB) AllocSpace objects, 19(2508KB) LOS objects, 60% free, 3932KB/10076KB, paused 121us,45us total 25.505ms
[com.twe.elon] Explicit concurrent copying GC freed 79(20KB) AllocSpace objects, 0(0B) LOS objects, 60% free, 3928KB/10072KB, paused 98us,48us total 24.446ms
[MediaPlayer-JNI] native_setup
[MediaPlayerNative] constructor
[MediaPlayerNative] setListener
[MediaPlayerNative] setDataSource(IDataSource)
[0:] [18:58:03 INF] 2024-09-15:10:58:03.298: TraceInfo : 
[MediaPlayerNative] setVideoSurfaceTexture
[MediaPlayerNative] prepare
[MediaPlayerNative] message received msg=200, ext1=10973, ext2=0
[MediaPlayerNative] info/warning (10973, 0)
[MediaPlayerNative] message received msg=1, ext1=0, ext2=0
[MediaPlayerNative] MediaPlayer::notify() prepared
[MediaPlayerNative] signal application thread
[MediaPlayerNative] prepare complete - status=0
[MediaPlayerNative] invoke 76
Thread started: .NET Timer #19
[0:] [18:58:03 INF] 2024-09-15:10:58:03.493: TraceNavigation [NavigationStackClassNames]: 
[DecorView] [INFO] isPopOver=false config=true
[DecorView] updateCaptionType: isFloating=false isApplication=true hasWindowDecorCaption=false this=DecorView@b415167[]
[DecorView] setCaptionType = 0, this = DecorView@b415167[]
[DecorView] getCurrentDensityDpi: from real metrics. densityDpi=300 msg=resources_loaded
[DecorView] setWindowBackground: isPopOver=false color=fff6f6f6 d=android.graphics.drawable.LayerDrawable@34559b2
Loaded assembly: Xamarin.AndroidX.Lifecycle.Runtime.dll [External]
Loaded assembly: Xamarin.Kotlin.StdLib.dll [External]
Loaded assembly: Xamarin.KotlinX.Coroutines.Core.Jvm.dll [External]
Loaded assembly: Xamarin.AndroidX.Lifecycle.LiveData.Core.dll [External]
[com.twe.elon] Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
[com.twe.elon] Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
[CompatibilityChangeReporter] Compat change id reported: 210923482; UID 10252; state: ENABLED
[PhoneWindow] forceLight changed to false [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4314 com.android.internal.policy.PhoneWindow.setNavigationBarColor:4033 crc6462652f9ee391236e.MainActivity.n_onCreate:-2 crc6462652f9ee391236e.MainActivity.onCreate:59 android.app.Activity.performCreate:8591 
[AndroidRuntime] Shutting down VM
[AndroidRuntime] FATAL EXCEPTION: main
[AndroidRuntime] Process: com.twe.elon, PID: 17264
[AndroidRuntime] java.lang.IllegalArgumentException: No view found for id 0x7f0900fd (com.twe.elon:id/labeled) for fragment NavigationRootManager_ElementBasedFragment{e99ccf3} (d735450b-8b7e-4e10-87d0-3b9a8251e4b3 id=0x7f0900fd)
[AndroidRuntime]    at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:559)
[AndroidRuntime]    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:278)
[AndroidRuntime]    at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2103)
[AndroidRuntime]    at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2004)
[AndroidRuntime]    at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1941)
[AndroidRuntime]    at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3206)
[AndroidRuntime]    at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3116)
[AndroidRuntime]    at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:263)
[AndroidRuntime]    at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:350)
[AndroidRuntime]    at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:251)
[AndroidRuntime]    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1510)
[AndroidRuntime]    at android.app.Activity.performStart(Activity.java:8616)
[AndroidRuntime]    at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4204)
[AndroidRuntime]    at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
[AndroidRuntime]    at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
[AndroidRuntime]    at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
[AndroidRuntime]    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
[AndroidRuntime]    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)
[AndroidRuntime]    at android.os.Handler.dispatchMessage(Handler.java:106)
[AndroidRuntime]    at android.os.Looper.loopOnce(Looper.java:226)
[AndroidRuntime]    at android.os.Looper.loop(Looper.java:313)
[AndroidRuntime]    at android.app.ActivityThread.main(ActivityThread.java:8757)
[AndroidRuntime]    at java.lang.reflect.Method.invoke(Native Method)
[AndroidRuntime]    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
[AndroidRuntime]    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
**Java.Lang.IllegalArgumentException:** 'No view found for id 0x7f0900fd (com.twe.elon:id/labeled) for fragment NavigationRootManager_ElementBasedFragment{e99ccf3} (d735450b-8b7e-4e10-87d0-3b9a8251e4b3 id=0x7f0900fd)'
github-actions[bot] commented 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!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Jay-57blocks commented 1 month ago

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:

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: @.***>

tj-devel709 commented 1 month ago

Hi, are you able to provide a repro so that we can try to reproduce this on our end?

Jay-57blocks commented 1 month ago

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: @.***>

tj-devel709 commented 1 month ago

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?

steffenborup commented 1 month ago

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.

ninachen03 commented 1 month ago

Could you provide us with a sample project so we can investigate it further? Looking forward to your reply!

tj-devel709 commented 1 month ago

@steffenborup are you also able to provide a repro as ninachen03 mentioned? It would greatly help us figure out what is going on.

steffenborup commented 1 month ago

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.

Jay-57blocks commented 1 month ago

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: @.***>

toneware commented 1 month ago

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 (id/left) for fragment NavigationRootManager_ElementBasedFragment{9e1d0b5} (4958e6c6-0dac-4fca-a46d-044b8e691792 id=0x7f0800f3)

My app doesn't use fragments, and there's no view named left. I am at a total loss right now.

toneware commented 1 month ago

This is where it breaks (this is in Platforms/Android/MainActivity.cs) image

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.

toneware commented 1 month ago

I just did a factory reset on the emulator and cleaned my solution. It worked twice and then started throwing the same exception.

toneware commented 1 month ago

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. :)

jfversluis commented 1 month ago

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!