xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] Label generates Invalid ID 0x logs #12893

Open ChasakisD opened 4 years ago

ChasakisD commented 4 years ago

Description

I am running a Xamarin.Forms Android application in my OnePlus 8T with Android 11 and when the application launches, it spams Invalid ID logs in output for every Label in the Page. I suspect that maybe there is an issue with fonts. I tried also to use a custom font and set it explicitly but I got the same logs.

Steps to Reproduce

  1. Create a new Xamarin.Forms from the template in VS 16.8.1
  2. Add only a Label in the MainPage
  3. After the application runs you will get around 4 logs of:
    11-17 19:06:29.191 E/invalididsample(28325): Invalid ID 0x00000000.
    11-17 19:06:29.192 E/invalididsample(28325): Invalid ID 0x00000000.
    11-17 19:06:29.208 E/invalididsample(28325): Invalid ID 0x00000005.
    11-17 19:06:29.223 E/invalididsample(28325): Invalid ID 0x00000005.

Expected Behavior

There should be no Invalid ID logs

Actual Behavior

The more label instances you add the more Invalid ID logs it generates and it is spamming Invalid ID logs when navigating

Basic Information

Environment

Visual Studio 16.8.1 Info Microsoft Visual Studio Community 2019 (Latest) Version 16.8.1 VisualStudio.16.Release/16.8.1+30711.63 Microsoft .NET Framework Version 4.8.04084 Installed Version: Community ASP.NET and Web Tools 2019 16.8.550.19892 ASP.NET and Web Tools 2019 ASP.NET Core Razor Language Services 16.1.0.2052803+84e121f1403378489b842e1797df2f3f5a49ac3c Provides languages services for ASP.NET Core Razor. ASP.NET Web Frameworks and Tools 2019 16.8.550.19892 For additional information, visit https://www.asp.net/ Azure App Service Tools v3.0.0 16.8.550.19892 Azure App Service Tools v3.0.0 Azure Functions and Web Jobs Tools 16.8.550.19892 Azure Functions and Web Jobs Tools C# Tools 3.8.0-5.20519.18+4c195c3ac1974edcefa76774d7a59a2350ec55fa C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used. Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools. Dotfuscator Community Edition 5.44.0.10087-6530a8d80a PreEmptive Protection - Dotfuscator CE Extensibility Message Bus 1.2.6 (master@34d6af2) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration. IntelliCode Extension 1.0 IntelliCode Visual Studio Extension Detailed Info JetBrains ReSharper 2020.2.4 Build 202.0.20200925.65451 JetBrains ReSharper package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper. Copyright © 2020 JetBrains, Inc. Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.30924.1 Microsoft Continuous Delivery Tools for Visual Studio 0.4 Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE. Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines Microsoft Library Manager 2.1.113+g422d40002e.RR Install client-side libraries easily to any web project Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers Microsoft Visual Studio Tools for Containers 1.1 Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container. Mono Debugging for Visual Studio 16.8.43 (00471f8) Support for debugging Mono processes with Visual Studio. NuGet Package Manager 5.8.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/ ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info SQL Server Data Tools 16.0.62010.06180 Microsoft SQL Server Data Tools StylerPackage Extension 1.0 StylerPackage Visual Stuido Extension Detailed Info TypeScript Tools 16.0.21016.2001 TypeScript Tools for Microsoft Visual Studio Visual Basic Tools 3.8.0-5.20519.18+4c195c3ac1974edcefa76774d7a59a2350ec55fa Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used. Visual F# Tools 16.8.0-beta.20507.4+da6be68280c89131cdba2045525b80890401defd Microsoft Visual F# Tools Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio Visual Studio Container Tools Extensions 1.0 View, manage, and diagnose containers within Visual Studio. Visual Studio Tools for Containers 1.0 Visual Studio Tools for Containers VisualStudio.DeviceLog 1.0 Information about my package VisualStudio.Foo 1.0 Information about my package VisualStudio.Mac 1.0 Mac Extension for Visual Studio VSColorOutput 2.71 Color output for build and debug windows - https://mike-ward.net/vscoloroutput Xamarin 16.8.000.255 (d16-8@d002176) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android. Xamarin Designer 16.8.0.507 (remotes/origin/d16-8@e87b24884) Visual Studio extension to enable Xamarin Designer tools in Visual Studio. Xamarin Templates 16.8.112 (86385a3) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms. Xamarin.Android SDK 11.1.0.17 (d16-8/c0e2b8e) Xamarin.Android Reference Assemblies and MSBuild support. Mono: be2226b Java.Interop: xamarin/java.interop/d16-8@79d9533 ProGuard: Guardsquare/proguard/proguard6.2.2@ebe9000 SQLite: xamarin/sqlite/3.32.1@1a3276b Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-8@2fb1cbc Xamarin.iOS and Xamarin.Mac SDK 14.4.1.3 (e30c41de3) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
jsuarezruiz commented 4 years ago

@ChasakisD Do you see this error in the Output using Android 11 or also in other conditions (Android 10)?

ChasakisD commented 4 years ago

@jsuarezruiz I run the application on my older phone Xiaomi Mi 8 using Android 10 and there were no Invalid ID logs. So I think the issue is either with OnePlus phones or with Android 11. Also tried to change the Target SDK to Android 11 but it did not fix the issue.

jmcruvellier commented 3 years ago

I'm getting the same issue :

image

Problem not there when debugging with the Android emulator.

jsuarezruiz commented 3 years ago

Seems to happen with Android 11.

3Spiders commented 3 years ago

someone resolved this?

pver commented 3 years ago

Also seeing this, only on Android 11:

11-19 09:12:15.442 10706 10706 E my.app: Invalid ID 0x00000002.
11-19 09:12:15.442 10706 10706 E my.app: Invalid ID 0x00000012.
11-19 09:12:15.442 10706 10706 E my.app: Invalid ID 0x00000012.
11-19 09:12:15.448 10706 10706 E my.app: Invalid ID 0x00000002.
11-19 09:12:15.449 10706 10706 E my.app: Invalid ID 0x00000012.
11-19 09:12:15.449 10706 10706 E my.app: Invalid ID 0x00000012.
11-19 09:12:15.457 10706 10706 E my.app: Invalid ID 0x00000002.
11-19 09:12:15.457 10706 10706 E my.app: Invalid ID 0x00000012.
11-19 09:12:15.457 10706 10706 E my.app: Invalid ID 0x00000012.
11-19 09:12:15.465 10706 10706 E my.app: Invalid ID 0x00000002.
11-19 09:12:15.466 10706 10706 E my.app: Invalid ID 0x00000012.
11-19 09:12:15.466 10706 10706 E my.app: Invalid ID 0x00000012.
11-19 09:12:15.469 10706 10706 E my.app: Invalid ID 0x00000000.
11-19 09:12:15.470 10706 10706 E my.app: Invalid ID 0x00000000.
AndrewSatMap commented 3 years ago

Was there a solution for this?

I have also been having the problem on my OnePlus 7t Pro phone ever since I upgraded to Android 11. I don't have access to any other Android 11 devices on which to try this.

tsgowtham commented 3 years ago

I've noticed these logs in a blank project too. I tried running the project just after VS generated and observed similar logs.

VS 2019: Version 16.10.4 Xamarin: 16.10.000.234 Xamarin.Android SDK: 11.3.0.4 Phone: OnePlus 7, Android 11