Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App doesn't load on Android #12373

Closed
GuiOliv opened this issue Jan 1, 2023 · 3 comments
Closed

App doesn't load on Android #12373

GuiOliv opened this issue Jan 1, 2023 · 3 comments
Labels
platform/android 🤖 s/try-latest-version Please try to reproduce the potential issue on the latest public version t/bug Something isn't working

Comments

@GuiOliv
Copy link

GuiOliv commented Jan 1, 2023

Description

Hello.
I'm developing an app with MAUI and, although everything works fine on Windows, when I use an emulator on Android, the app gets stuck on the purple .NET screen, loading forever.

The emulator I'm using is Pixel 5 - API 30.

What should I do?

Steps to Reproduce

https://github.com/GuiOliv/Work-Tasks

Then Debug on the Android Emulator

Link to public reproduction project repository

https://github.com/GuiOliv/Work-Tasks

Version with bug

6.0 Release Candidate 2 or older

Last version that worked well

6.0 Release Candidate 2 or older

Affected platforms

Android

Affected platform versions

Android 11

Did you find any workaround?

No response

Relevant log output

This debug engine does not support exception conditions. The condition(s) will be ignored.
> am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.companyname.work_tasks/crc643bb52084c4688013.MainActivity"
> Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.companyname.work_tasks/crc643bb52084c4688013.MainActivity }
Loaded assembly: Work Tasks.dll
[name.work_task] Late-enabling -Xcheck:jni
[name.work_task] Unquickening 12 vdex files!
[name.work_task] Unexpected CPU variant for X86 using defaults: x86_64
[name.work_task] The ClassLoaderContext is a special shared library.
[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
[monodroid] Creating public update directory: `/data/user/0/com.companyname.work_tasks/files/.__override__`
[name.work_task] 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=10.0.2.2:52432,embedding=1
[monodroid-gc] GREF GC Threshold: 46080
[name.work_task] Symbol file data-0x7ad26b2f4040 doesn't match image Mono.Android.dll
Loaded assembly: Mono.Android.dll [External]
Loaded assembly: System.Runtime.dll [External]
Loaded assembly: Java.Interop.dll [External]
Loaded assembly: System.Collections.dll [External]
Resolved pending breakpoint for 'Android.Runtime.JNIEnv.RegisterJniNatives(System.IntPtr, System.Int32, System.IntPtr, System.IntPtr, System.Int32)' to [0x0](no debug symbols).
Loaded assembly: System.Threading.dll [External]
Loaded assembly: System.Runtime.InteropServices.dll [External]
Loaded assembly: System.Threading.Thread.dll [External]
Loaded assembly: System.Diagnostics.StackTrace.dll [External]
[name.work_task] Attempt to remove non-JNI local reference, dumping thread
Loaded assembly: data-0x7ad26b2f4040 [External]
Loaded assembly: data-0x7ad26b314060 [External]
Loaded assembly: data-0x7ad054270040 [External]
Loaded assembly: netstandard.dll [External]
Loaded assembly: System.Linq.dll [External]
[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
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]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[name.work_task] Symbol file data-0x7ad00dc31040 doesn't match image Microsoft.Maui.Controls.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
Loaded assembly: Microsoft.Maui.Controls.dll [External]
[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
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]
Loaded assembly: System.ComponentModel.TypeConverter.dll [External]
Loaded assembly: System.Private.Uri.dll [External]
Loaded assembly: System.Runtime.Loader.dll [External]
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]
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
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: System.Runtime.CompilerServices.Unsafe.dll [External]
Loaded assembly: Xamarin.AndroidX.Core.dll [External]
Loaded assembly: Microsoft.Extensions.DependencyInjection.Abstractions.dll [External]
Loaded assembly: Microsoft.Maui.Controls.Xaml.dll [External]
Loaded assembly: Syncfusion.Maui.Core.dll [External]
Loaded assembly: Microsoft.Extensions.Configuration.dll [External]
Loaded assembly: Microsoft.Extensions.Configuration.Abstractions.dll [External]
Loaded assembly: Microsoft.Extensions.Logging.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: 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: Microsoft.Extensions.DependencyInjection.dll [External]
Loaded assembly: System.Diagnostics.Tracing.dll [External]
Loaded assembly: Syncfusion.Licensing.dll [External]
Loaded assembly: Microsoft.Data.SqlClient.dll [External]
Loaded assembly: System.Data.Common.dll [External]
Loaded assembly: System.ComponentModel.Primitives.dll [External]
Loaded assembly: System.Threading.Tasks.dll [External]
Loaded assembly: System.Diagnostics.DiagnosticSource.dll [External]
Loaded assembly: System.Transactions.Local.dll [External]
Loaded assembly: System.Xml.ReaderWriter.dll [External]
Loaded assembly: System.Private.Xml.dll [External]
Loaded assembly: System.Runtime.Extensions.dll [External]
Loaded assembly: System.Threading.Timer.dll [External]
Loaded assembly: System.Threading.ThreadPool.dll [External]
Loaded assembly: System.Resources.ResourceManager.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly en-US/Microsoft.Data.SqlClient.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en-US/Microsoft.Data.SqlClient.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/Microsoft.Data.SqlClient.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/Microsoft.Data.SqlClient.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en-US/Microsoft.Data.SqlClient.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en-US/Microsoft.Data.SqlClient.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/Microsoft.Data.SqlClient.resources.dll
Thread started: .NET Timers #2
Loaded assembly: System.Text.RegularExpressions.dll [External]
Loaded assembly: System.Configuration.ConfigurationManager.dll [External]
Loaded assembly: System.Collections.Specialized.dll [External]
Loaded assembly: System.Security.Permissions.dll [External]
Loaded assembly: System.Diagnostics.Process.dll [External]
Loaded assembly: System.Collections.NonGeneric.dll [External]
Loaded assembly: System.Diagnostics.FileVersionInfo.dll [External]
Loaded assembly: System.Net.WebClient.dll [External]
Loaded assembly: System.Net.WebHeaderCollection.dll [External]
Loaded assembly: System.Net.Requests.dll [External]
Loaded assembly: System.ComponentModel.EventBasedAsync.dll [External]
Loaded assembly: System.Text.Encoding.Extensions.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly en/Microsoft.Data.SqlClient.resources.dll
[name.work_task] Explicit concurrent copying GC freed 524(108KB) AllocSpace objects, 0(0B) LOS objects, 24% free, 1808KB/2411KB, paused 292us total 2.987ms
Loaded assembly: System.Security.Cryptography.Algorithms.dll [External]
Loaded assembly: System.Security.Cryptography.Primitives.dll [External]
Loaded assembly: Microsoft.Identity.Client.dll [External]
Loaded assembly: mscorlib.dll [External]
Loaded assembly: System.Text.Encoding.CodePages.dll [External]
Loaded assembly: System.Net.Security.dll [External]
Loaded assembly: Microsoft.Win32.Primitives.dll [External]
Loaded assembly: System.Net.Sockets.dll [External]
Loaded assembly: System.Net.NameResolution.dll [External]
Thread started: <Thread Pool> #3
Thread started: .NET ThreadPool Gate #4
Thread started: <Thread Pool> #5
Thread started: <Thread Pool> #6
Thread finished: <Thread Pool> #6
Thread finished: <Thread Pool> #5
The thread 0x6 has exited with code 0 (0x0).
The thread 0x5 has exited with code 0 (0x0).
Thread started: <Thread Pool> #7
Thread finished: <Thread Pool> #7
Thread finished: <Thread Pool> #3
The thread 0x7 has exited with code 0 (0x0).
The thread 0x3 has exited with code 0 (0x0).
Thread started: <Thread Pool> #8
Thread started: <Thread Pool> #9
Thread finished: <Thread Pool> #9
The thread 0x9 has exited with code 0 (0x0).
Thread started: <Thread Pool> #10
@GuiOliv GuiOliv added the t/bug Something isn't working label Jan 1, 2023
@PureWeen PureWeen added platform/android 🤖 s/try-latest-version Please try to reproduce the potential issue on the latest public version labels Jan 3, 2023
@ghost
Copy link

ghost commented Jan 3, 2023

Hi @GuiOliv. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

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.

@PureWeen
Copy link
Member

PureWeen commented Jan 3, 2023

If the latest version doesn't work, can you attach a logcat file as well?
https://learn.microsoft.com/en-us/xamarin/android/deploy-test/debugging/android-debug-log?tabs=windows

@VladislavAntonyuk
Copy link
Contributor

Most likely because you are trying to connect to sql server from your Android device

@ghost ghost closed this as completed Jan 12, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Feb 11, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/android 🤖 s/try-latest-version Please try to reproduce the potential issue on the latest public version t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants