dotnet / android

.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
MIT License
1.93k stars 525 forks source link

Error messages in logcat about linker and text relocation #3670

Open sdebruyn opened 5 years ago

sdebruyn commented 5 years ago

Steps to Reproduce

  1. Just run the app and open logcat (see details below)

Expected Behavior

No error logs

Actual Behavior

I get log messages like the following sample about every assembly in my app:

  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-mscorlib.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-mscorlib.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Edrive.Components.AdvancedRecyclerView.Bindings.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Edrive.Components.AdvancedRecyclerView.Bindings.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Edrive.Core.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Edrive.Core.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.eDrive.DataContracts.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.eDrive.DataContracts.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Edrive.Driver.Core.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Edrive.Driver.Core.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Edrive.Droid.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Edrive.Droid.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Linda.Api.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Linda.Api.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Linda.Droid.Common.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Linda.Droid.Common.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Linda.eDrive.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Linda.eDrive.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Linda.Models.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-BelgianRail.Linda.Models.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Flurl.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Flurl.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-IdentityModel.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-IdentityModel.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-IdentityModel.OidcClient.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-IdentityModel.OidcClient.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-KellermanSoftware.Compare-NET-Objects.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-KellermanSoftware.Compare-NET-Objects.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-LiteDB.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-LiteDB.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Lottie.Android.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Lottie.Android.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.AppCenter.Analytics.Android.Bindings.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.AppCenter.Analytics.Android.Bindings.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.AppCenter.Analytics.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.AppCenter.Analytics.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.AppCenter.Android.Bindings.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.AppCenter.Android.Bindings.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.AppCenter.Crashes.Android.Bindings.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.AppCenter.Crashes.Android.Bindings.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.AppCenter.Crashes.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.AppCenter.Crashes.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.AppCenter.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.AppCenter.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.Azure.Amqp.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.Azure.Amqp.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.Azure.ServiceBus.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.Azure.ServiceBus.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.Azure.Services.AppAuthentication.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.Azure.Services.AppAuthentication.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.Extensions.Logging.Abstractions.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.Extensions.Logging.Abstractions.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.Extensions.Logging.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
  "/data/app/be.belgianrail.btr.edrive.acceptance-IpwuVT9BKa64GRGdPHEq8Q==/lib/arm/libaot-Microsoft.Extensions.Logging.dll.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)

Version Information

https://github.com/bitrise-io/bitrise.io/blob/7c3b18036452369888ea387b7e92ab7518c13db2/system_reports/osx-vs4mac-stable.log

csproj (compilation settings)

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
        <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
        <ProjectGuid>{67E6C5E0-CA8F-49D9-BB52-F09264DFB719}</ProjectGuid>
        <ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
        <OutputType>Library</OutputType>
        <RootNamespace>BelgianRail.Edrive.Driver.Droid</RootNamespace>
        <AssemblyName>BelgianRail.Edrive.Driver.Droid</AssemblyName>
        <TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
        <AndroidApplication>True</AndroidApplication>
        <AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
        <AndroidResgenClass>Resource</AndroidResgenClass>
        <AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
        <MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
        <MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
        <OutputPath>bin\$(Configuration)</OutputPath>
        <ErrorReport>prompt</ErrorReport>
        <WarningLevel>4</WarningLevel>
        <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
        <RestoreProjectStyle>PackageReference</RestoreProjectStyle>
        <AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
        <AndroidTlsProvider>btls</AndroidTlsProvider>
        <AndroidEnableSGenConcurrent>false</AndroidEnableSGenConcurrent>
        <AndroidSupportedAbis>armeabi-v7a;arm64-v8a</AndroidSupportedAbis>
        <RunCodeAnalysis>false</RunCodeAnalysis>
        <LangVersion>latest</LangVersion>
        <AndroidEnableMultiDex>true</AndroidEnableMultiDex>
        <ImplicitConfigurationDefine>$(Configuration.ToUpperInvariant())</ImplicitConfigurationDefine>
        <DefineConstants>$(DefineConstants);$(ImplicitConfigurationDefine)</DefineConstants>
        <EnableProguard>false</EnableProguard>
        <AndroidLinkMode>Full</AndroidLinkMode>
        <Optimize>true</Optimize>
        <AotAssemblies>true</AotAssemblies>
        <BundleAssemblies>true</BundleAssemblies>
        <AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
    </PropertyGroup>
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
        <DebugSymbols>true</DebugSymbols>
        <DebugType>full</DebugType>
        <Optimize>false</Optimize>
        <AndroidLinkMode>None</AndroidLinkMode>
        <AndroidUseSharedRuntime>true</AndroidUseSharedRuntime>
        <AndroidResgenExtraArgs>--no-crunch</AndroidResgenExtraArgs>
        <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
        <AndroidSupportedAbis>armeabi-v7a;x86;x86_64;arm64-v8a</AndroidSupportedAbis>
        <AotAssemblies>false</AotAssemblies>
        <BundleAssemblies>false</BundleAssemblies>
    </PropertyGroup>
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Development|AnyCPU' ">
        <AndroidSupportedAbis>armeabi-v7a;x86;x86_64;arm64-v8a</AndroidSupportedAbis>
    </PropertyGroup>
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Integration|AnyCPU' " />
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Test|AnyCPU' " />
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Acceptance|AnyCPU' " />
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Production|AnyCPU' " />
sdebruyn commented 5 years ago

This does not happen immediately at startup and the log message right before this one is about GC: Explicit concurrent copying GC freed 2023(222KB) AllocSpace objects, 2(104KB) LOS objects, 26% free, 1431KB/1943KB, paused 179us total 17.250ms