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

[Android][Test] Failed to install mobile app #89567

Closed
fanyang-mono opened this issue Jul 27, 2023 · 4 comments
Closed

[Android][Test] Failed to install mobile app #89567

fanyang-mono opened this issue Jul 27, 2023 · 4 comments
Assignees
Labels
area-Interop-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab

Comments

@fanyang-mono
Copy link
Member

fanyang-mono commented Jul 27, 2023

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=353048
Build error leg or test failing:
Pull request: #89467

Error Message

System.AggregateException : One or more errors occurred. (Failed to install mobile app.
      Expected: True
      Actual:   False) (The following constructor parameters did not have matching fixture data: _Global globalVar)
      ---- Failed to install mobile app.
      Expected: True
      Actual:   False
      ---- The following constructor parameters did not have matching fixture data: _Global globalVar
      Stack Trace:
        
        ----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
           at Interop_NativeLibrary._Global..ctor()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
           at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
        ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Failed to install mobile app",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=353048
Error message validated: Failed to install mobile app
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/27/2023 2:36:55 PM UTC

Report

Build Definition Test Pull Request
362691 dotnet/runtime Interop.WorkItemExecution
362596 dotnet/runtime baseservices.threading.WorkItemExecution #89003
362306 dotnet/runtime nativeaot.SmokeTests.UnitTests.WorkItemExecution #89932
361849 dotnet/runtime PayloadGroup0.WorkItemExecution
361403 dotnet/runtime baseservices.invalid_operations.WorkItemExecution #88724
361283 dotnet/runtime Loader.classloader.WorkItemExecution
361259 dotnet/runtime JIT/Methodical/ldtoken/_il_dbgtypes/_il_dbgtypes.sh
360331 dotnet/runtime nativeaot.SmokeTests.UnitTests.WorkItemExecution
360148 dotnet/runtime JIT.Regression.CLR-x86-JIT.V1-M09-M11.WorkItemExecution #89814
360125 dotnet/runtime Loader.classloader.generics.WorkItemExecution
360127 dotnet/runtime JIT/Methodical/eh/basics/emptyfinally_d/emptyfinally_d.sh
360116 dotnet/runtime PayloadGroup0.WorkItemExecution #89829
359818 dotnet/runtime PayloadGroup0.WorkItemExecution #89809
359734 dotnet/runtime JIT/Methodical/ldtoken/_il_dbgtypes/_il_dbgtypes.sh
359654 dotnet/runtime Loader.classloader.WorkItemExecution
359522 dotnet/runtime PayloadGroup0.WorkItemExecution #89805
359526 dotnet/runtime JIT/Methodical/Arrays/huge/_il_relhuge_b/_il_relhuge_b.sh #89009
359427 dotnet/runtime JIT.1.WorkItemExecution #89260
358612 dotnet/runtime JIT.PGO.WorkItemExecution
358004 dotnet/runtime JIT.Math.WorkItemExecution
357141 dotnet/runtime PayloadGroup0.WorkItemExecution
357075 dotnet/runtime baseservices.mono.WorkItemExecution #89696
356877 dotnet/runtime baseservices.mono.WorkItemExecution
356421 dotnet/runtime baseservices/threading/coverage/OSThreadId/osthreadid/osthreadid.sh
356351 dotnet/runtime JIT.Math.WorkItemExecution #89638
356170 dotnet/runtime JIT.Math.WorkItemExecution
355235 dotnet/runtime baseservices.threading.WorkItemExecution #89009
355027 dotnet/runtime PayloadGroup0.WorkItemExecution #89619
355019 dotnet/runtime JIT.1.WorkItemExecution
354674 dotnet/runtime baseservices.invalid_operations.WorkItemExecution #89521
354230 dotnet/runtime JIT.IL_Conformance.WorkItemExecution
354241 dotnet/runtime nativeaot.SmokeTests.UnitTests.WorkItemExecution #89223
353999 dotnet/runtime baseservices.invalid_operations.WorkItemExecution #89569
353048 dotnet/runtime baseservices.invalid_operations.WorkItemExecution #89467
352553 dotnet/runtime baseservices.mono.WorkItemExecution #89498

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 26 35
@fanyang-mono fanyang-mono added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Jul 27, 2023
@fanyang-mono fanyang-mono self-assigned this Jul 27, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 27, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jul 27, 2023
@fanyang-mono
Copy link
Member Author

fanyang-mono commented Jul 27, 2023

@premun Are you aware of any known issue which could call the Android app failing to be installed?

@vcsjones vcsjones removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 30, 2023
@SamMonoRT
Copy link
Member

@lambdageek - I'm seeing some logs failures indicating there were some warnings (I guess now treated as errors after https://github.com/dotnet/runtime/pull/89197/files ?) I'm not sure if these are related to the change though - https://dev.azure.com/dnceng-public/public/_build/results?buildId=353048&view=logs&j=11fc76eb-f2d5-5967-e9b4-f54329587f75&t=5d22afdd-fd55-5fd8-7ab1-37ebf23474bd

/__w/1/s/src/mono/msbuild/android/build/AndroidBuild.targets(259,5): error MSB4018: Scanning dependencies of target System.Threading.Channels.dll [/__w/1/s/src/tests/FunctionalTests/Android/Device_Emulator/AOT/Android.Device_Emulator.Aot.Test.csproj]
/__w/1/s/src/mono/msbuild/android/build/AndroidBuild.targets(259,5): error MSB4018: [ 65%] Building ASM object CMakeFiles/System.Threading.Channels.dll.dir/__w/1/s/artifacts/obj/Android.Device_Emulator.Aot.Test/Release/net8.0/android-arm64/mobile/System.Threading.Channels.dll.s.o [/__w/1/s/src/tests/FunctionalTests/Android/Device_Emulator/AOT/Android.Device_Emulator.Aot.Test.csproj]
/__w/1/s/src/mono/msbuild/android/build/AndroidBuild.targets(259,5): error MSB4018: clang: warning: argument unused during compilation: '-D FORCE_AOT=1' [-Wunused-command-line-argument] [/__w/1/s/src/tests/FunctionalTests/Android/Device_Emulator/AOT/Android.Device_Emulator.Aot.Test.csproj]
/__w/1/s/src/mono/msbuild/android/build/AndroidBuild.targets(259,5): error MSB4018: clang: warning: argument unused during compilation: '-D STATIC_AOT=1' [-Wunused-command-line-argument] [/__w/1/s/src/tests/FunctionalTests/Android/Device_Emulator/AOT/Android.Device_Emulator.Aot.Test.csproj]
/__w/1/s/src/mono/msbuild/android/build/AndroidBuild.targets(259,5): error MSB4018: clang: warning: argument unused during compilation: '-D ANDROID' [-Wunused-command-line-argument] [/__w/1/s/src/tests/FunctionalTests/Android/Device_Emulator/AOT/Android.Device_Emulator.Aot.Test.csproj]
/__w/1/s/src/mono/msbuild/android/build/AndroidBuild.targets(259,5): error MSB4018: clang: warning: argument unused during compilation: '-fdata-sections' [-Wunused-command-line-argument] [/__w/1/s/src/tests/FunctionalTests/Android/Device_Emulator/AOT/Android.Device_Emulator.Aot.Test.csproj]
/__w/1/s/src/mono/msbuild/android/build/AndroidBuild.targets(259,5): error MSB4018: clang: warning: argument unused during compilation: '-ffunction-sections' [-Wunused-command-line-argument] [/__w/1/s/src/tests/FunctionalTests/Android/Device_Emulator/AOT/Android.Device_Emulator.Aot.Test.csproj]
/__w/1/s/src/mono/msbuild/android/build/AndroidBuild.targets(259,5): error MSB4018: clang: warning: argument unused during compilation: '-funwind-tables' [-Wunused-command-line-argument] [/__w/1/s/src/tests/FunctionalTests/Android/Device_Emulator/AOT/Android.Device_Emulator.Aot.Test.csproj]
/__w/1/s/src/mono/msbuild/android/build/AndroidBuild.targets(259,5): error MSB4018: clang: warning: argument unused during compilation: '-fstack-protector-strong' [-Wunused-command-line-argument] [/__w/1/s/src/tests/FunctionalTests/Android/Device_Emulator/AOT/Android.Device_Emulator.Aot.Test.csproj]
/__w/1/s/src/mono/msbuild/android/build/AndroidBuild.targets(259,5): error MSB4018: clang: warning: argument unused during compilation: '-D _FORTIFY_SOURCE=2' [-Wunused-command-line-argument] [/__w/1/s/src/tests/FunctionalTests/Android/Device_Emulator/AOT/Android.Device_Emulator.Aot.Test.csproj]

@lambdageek
Copy link
Member

lambdageek commented Aug 4, 2023

@SamMonoRT Not all warnings are treated as errors - only the missing prototype warnings are treated as errors. However the compiler now emits more warnings (-Wall is new from #89197, also). So those other ones are harmless.

Also @akoeplinger fixed the register_aot_modules error which I guess is what is making the builds fail #89922

@akoeplinger
Copy link
Member

Yes I think that specific error should be fixed now. Let's close this.

@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Aug 4, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Interop-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

No branches or pull requests

7 participants