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

[6.0][Android][mono] XHarness exit code 78 PACKAGE_INSTALLATION_FAILURE #84174

Open
carlossanlop opened this issue Mar 31, 2023 · 1 comment
Open
Labels
arch-x64 area-VM-meta-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 os-android runtime-mono specific to the Mono runtime
Milestone

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Mar 31, 2023

Error Blob

{
  "ErrorMessage": "XHarness exit code: 78 (PACKAGE_INSTALLATION_FAILURE)",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Reproduction Steps

Two failure variations, both showed up in the same job.

Failure 1

Affected tests:

Output 1 (expand)
[00:46:29] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 start-server'
[00:46:29] dbug: 
[00:46:29] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 install "/datadisks/disk1/work/A821097B/w/9F0308ED/e/Microsoft.Extensions.Configuration.EnvironmentVariables.Tests.apk"'
[00:46:29] fail: Error:
                 Exit code: 255
                 Standard Output:
                 Performing Push Install
                 adb: error: failed to get feature set: device offline
                 
                 Standard Error:
                 error: device offline
                 
                 
[00:46:29] crit: Install failure: Test command cannot continue
[00:46:29] info: Attempting to remove apk 'net.dot.Microsoft.Extensions.Configuration.EnvironmentVariables.Tests': 
[00:46:29] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 uninstall net.dot.Microsoft.Extensions.Configuration.EnvironmentVariables.Tests'
[00:46:30] fail: Error: Exit code: 20
                 Standard Output:
                 
                 Standard Error:
                 error: device offline
                 - waiting for device -
                 cmd: Can't find service: package
                 
                 
[00:46:30] info: Attempting to remove apk 'net.dot.Microsoft.Extensions.Configuration.EnvironmentVariables.Tests': 
[00:46:30] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 uninstall net.dot.Microsoft.Extensions.Configuration.EnvironmentVariables.Tests'
[00:46:30] fail: Error: Exit code: 20
                 Standard Output:
                 
                 Standard Error:
                 cmd: Can't find service: package
                 
                 
XHarness exit code: 78 (PACKAGE_INSTALLATION_FAILURE)

Failure 2

Affected tests:

Output 2 (expand)
[00:47:20] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 shell getprop sys.boot_completed'
[00:47:20] dbug: sys.boot_completed = ''
[00:47:30] warn: Did not detect boot completion variable on device; variable used ('sys.boot_completed') may be incorrect or device may be in a bad state
[00:47:30] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 version'
[00:47:30] dbug: Working with Android Debug Bridge version 1.0.41
                 Version 29.0.6-6198805
                 Installed as /datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb
                 
[00:47:30] info: Attempting to remove apk 'net.dot.System.Security.SecureString.Tests': 
[00:47:30] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 uninstall net.dot.System.Security.SecureString.Tests'
[00:47:30] info: APK 'net.dot.System.Security.SecureString.Tests' not on device.
[00:47:30] info: Attempting to install /datadisks/disk1/work/A821097B/w/A6E409D9/e/System.Security.SecureString.Tests.apk: 
[00:47:30] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 install "/datadisks/disk1/work/A821097B/w/A6E409D9/e/System.Security.SecureString.Tests.apk"'
[00:47:30] fail: Error:
                 Exit code: 1
                 Standard Output:
                 Performing Streamed Install
                 
                 Standard Error:
                 adb: failed to install /datadisks/disk1/work/A821097B/w/A6E409D9/e/System.Security.SecureString.Tests.apk: 
                 Exception occurred while executing:
                 java.lang.NullPointerException: Attempt to invoke virtual method 'void android.content.pm.PackageManagerInternal.freeStorage(java.lang.String, long, int)' on a null object reference
                 	at com.android.server.StorageManagerService.allocateBytes(StorageManagerService.java:3263)
                 	at android.os.storage.StorageManager.allocateBytes(StorageManager.java:2099)
                 	at android.os.storage.StorageManager.allocateBytes(StorageManager.java:2156)
                 	at com.android.server.pm.PackageInstallerSession.doWriteInternal(PackageInstallerSession.java:723)
                 	at com.android.server.pm.PackageInstallerSession.write(PackageInstallerSession.java:670)
                 	at android.content.pm.PackageInstaller$Session.write(PackageInstaller.java:951)
                 	at com.android.server.pm.PackageManagerShellCommand.doWriteSplit(PackageManagerShellCommand.java:2732)
                 	at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1072)
                 	at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:169)
                 	at android.os.ShellCommand.exec(ShellCommand.java:104)
                 	at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21729)
                 	at android.os.Binder.shellCommand(Binder.java:881)
                 	at android.os.Binder.onTransact(Binder.java:765)
                 	at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4860)
                 	at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4014)
                 	at android.os.Binder.execTransactInternal(Binder.java:1021)
                 	at android.os.Binder.execTransact(Binder.java:994)
                 
                 
[00:47:30] crit: Install failure: Test command cannot continue
[00:47:30] info: Attempting to remove apk 'net.dot.System.Security.SecureString.Tests': 
[00:47:30] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 uninstall net.dot.System.Security.SecureString.Tests'
[00:47:30] info: APK 'net.dot.System.Security.SecureString.Tests' not on device.
[00:47:30] info: Attempting to remove apk 'net.dot.System.Security.SecureString.Tests': 
[00:47:30] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 uninstall net.dot.System.Security.SecureString.Tests'
[00:47:30] info: APK 'net.dot.System.Security.SecureString.Tests' not on device.
XHarness exit code: 78 (PACKAGE_INSTALLATION_FAILURE)
+ exit 78

Report

Build Definition Test Pull Request
958954 dotnet/runtime Microsoft.Extensions.Logging.Tests.WorkItemExecution
951118 dotnet/runtime System.Threading.Tasks.Tests.WorkItemExecution #112480
951065 dotnet/runtime Microsoft.Bcl.Numerics.Tests.WorkItemExecution
950119 dotnet/runtime System.Drawing.Primitives.Tests.WorkItemExecution
947649 dotnet/runtime Microsoft.Bcl.Numerics.Tests.WorkItemExecution
947319 dotnet/runtime System.Composition.AttributeModel.Tests.WorkItemExecution
947329 dotnet/runtime System.Console.Manual.Tests.WorkItemExecution
946847 dotnet/runtime System.Net.NameResolution.Functional.Tests.WorkItemExecution
941724 dotnet/runtime System.Reflection.Context.Tests.WorkItemExecution
940311 dotnet/runtime Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests.WorkItemExecution #111666
2634239 dotnet-runtime Device Startup - iOS HelloWorld nollvm nosymbols.WorkItemExecution
2634140 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2634094 dotnet-runtime Device Startup - iOS HelloWorld nollvm nosymbols.WorkItemExecution
2634072 dotnet-runtime Device Startup - iOS HelloWorld nollvm symbols.WorkItemExecution
2634060 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2634036 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2634021 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2633924 dotnet-runtime Device Startup - iOS HelloWorld llvm nosymbols.WorkItemExecution
2633773 dotnet-runtime Device Startup - iOS HelloWorld nollvm symbols.WorkItemExecution
2633649 dotnet-runtime Device Startup - iOS HelloWorld nollvm symbols.WorkItemExecution
2633445 dotnet-runtime Device Startup - iOS HelloWorld nollvm nosymbols.WorkItemExecution
2633373 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2633110 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2633019 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2632952 dotnet-runtime Device Startup - iOS HelloWorld llvm nosymbols.WorkItemExecution
2632654 dotnet-runtime Device Startup - iOS HelloWorld llvm nosymbols.WorkItemExecution
2632637 dotnet-runtime Device Startup - iOS HelloWorld nollvm symbols.WorkItemExecution
2632620 dotnet-runtime Device Startup - iOS HelloWorld nollvm nosymbols.WorkItemExecution
2632526 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2632472 dotnet-runtime Device Startup - iOS HelloWorld nollvm nosymbols.WorkItemExecution
2632399 dotnet-runtime Device Startup - iOS HelloWorld nollvm symbols.WorkItemExecution
2632345 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2632233 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2631960 dotnet-runtime Device Startup - iOS HelloWorld nollvm symbols.WorkItemExecution
2631810 dotnet-runtime Device Startup - iOS HelloWorld nollvm nosymbols.WorkItemExecution
2631794 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2631765 dotnet-runtime Device Startup - iOS HelloWorld nollvm nosymbols.WorkItemExecution
2631720 dotnet-runtime Device Startup - iOS HelloWorld llvm nosymbols.WorkItemExecution
2630219 dotnet-runtime Device Startup - iOS HelloWorld nollvm symbols.WorkItemExecution
2630192 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2630052 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2629949 dotnet-runtime Device Startup - iOS HelloWorld nollvm nosymbols.WorkItemExecution
2629840 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2629715 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
2629629 dotnet-runtime Device Startup - iOS HelloWorld nollvm nosymbols.WorkItemExecution
2629557 dotnet-runtime Device Startup - iOS HelloWorld llvm nosymbols.WorkItemExecution
2629483 dotnet-runtime Device Startup - iOS HelloWorld llvm nosymbols.WorkItemExecution
2629385 dotnet-runtime Device Startup - iOS HelloWorld nollvm nosymbols.WorkItemExecution
2629292 dotnet-runtime Device Startup - iOS HelloWorld llvm nosymbols.WorkItemExecution
2629211 dotnet-runtime Device Startup - iOS HelloWorld llvm symbols.WorkItemExecution
930374 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #110566
2629030 dotnet-runtime Device Startup - iOS HelloWorld nollvm nosymbols.WorkItemExecution
2628760 dotnet-runtime Device Startup - iOS HelloWorld nollvm symbols.WorkItemExecution
2628691 dotnet-runtime Device Startup - iOS HelloWorld llvm nosymbols.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 54

Known issue validation

Build: 🔎
Result validation: ⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.

@carlossanlop carlossanlop added arch-x64 blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' os-android area-VM-meta-mono runtime-mono specific to the Mono runtime Known Build Error Use this to report build issues in the .NET Helix tab labels Mar 31, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Mar 31, 2023
@ghost
Copy link

ghost commented Mar 31, 2023

Tagging subscribers to 'arch-android': @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Issue Details

Error Blob

{
  "ErrorMessage": "XHarness exit code: 78 (PACKAGE_INSTALLATION_FAILURE)",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Reproduction Steps

Two failure variations, both showed up in the same job.

Failure 1

Affected tests:

Output 1 (expand)
[00:46:29] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 start-server'
[00:46:29] dbug: 
[00:46:29] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 install "/datadisks/disk1/work/A821097B/w/9F0308ED/e/Microsoft.Extensions.Configuration.EnvironmentVariables.Tests.apk"'
[00:46:29] fail: Error:
                 Exit code: 255
                 Standard Output:
                 Performing Push Install
                 adb: error: failed to get feature set: device offline
                 
                 Standard Error:
                 error: device offline
                 
                 
[00:46:29] crit: Install failure: Test command cannot continue
[00:46:29] info: Attempting to remove apk 'net.dot.Microsoft.Extensions.Configuration.EnvironmentVariables.Tests': 
[00:46:29] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 uninstall net.dot.Microsoft.Extensions.Configuration.EnvironmentVariables.Tests'
[00:46:30] fail: Error: Exit code: 20
                 Standard Output:
                 
                 Standard Error:
                 error: device offline
                 - waiting for device -
                 cmd: Can't find service: package
                 
                 
[00:46:30] info: Attempting to remove apk 'net.dot.Microsoft.Extensions.Configuration.EnvironmentVariables.Tests': 
[00:46:30] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 uninstall net.dot.Microsoft.Extensions.Configuration.EnvironmentVariables.Tests'
[00:46:30] fail: Error: Exit code: 20
                 Standard Output:
                 
                 Standard Error:
                 cmd: Can't find service: package
                 
                 
XHarness exit code: 78 (PACKAGE_INSTALLATION_FAILURE)

Failure 2

Affected tests:

Output 2 (expand)
[00:47:20] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 shell getprop sys.boot_completed'
[00:47:20] dbug: sys.boot_completed = ''
[00:47:30] warn: Did not detect boot completion variable on device; variable used ('sys.boot_completed') may be incorrect or device may be in a bad state
[00:47:30] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 version'
[00:47:30] dbug: Working with Android Debug Bridge version 1.0.41
                 Version 29.0.6-6198805
                 Installed as /datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb
                 
[00:47:30] info: Attempting to remove apk 'net.dot.System.Security.SecureString.Tests': 
[00:47:30] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 uninstall net.dot.System.Security.SecureString.Tests'
[00:47:30] info: APK 'net.dot.System.Security.SecureString.Tests' not on device.
[00:47:30] info: Attempting to install /datadisks/disk1/work/A821097B/w/A6E409D9/e/System.Security.SecureString.Tests.apk: 
[00:47:30] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 install "/datadisks/disk1/work/A821097B/w/A6E409D9/e/System.Security.SecureString.Tests.apk"'
[00:47:30] fail: Error:
                 Exit code: 1
                 Standard Output:
                 Performing Streamed Install
                 
                 Standard Error:
                 adb: failed to install /datadisks/disk1/work/A821097B/w/A6E409D9/e/System.Security.SecureString.Tests.apk: 
                 Exception occurred while executing:
                 java.lang.NullPointerException: Attempt to invoke virtual method 'void android.content.pm.PackageManagerInternal.freeStorage(java.lang.String, long, int)' on a null object reference
                 	at com.android.server.StorageManagerService.allocateBytes(StorageManagerService.java:3263)
                 	at android.os.storage.StorageManager.allocateBytes(StorageManager.java:2099)
                 	at android.os.storage.StorageManager.allocateBytes(StorageManager.java:2156)
                 	at com.android.server.pm.PackageInstallerSession.doWriteInternal(PackageInstallerSession.java:723)
                 	at com.android.server.pm.PackageInstallerSession.write(PackageInstallerSession.java:670)
                 	at android.content.pm.PackageInstaller$Session.write(PackageInstaller.java:951)
                 	at com.android.server.pm.PackageManagerShellCommand.doWriteSplit(PackageManagerShellCommand.java:2732)
                 	at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1072)
                 	at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:169)
                 	at android.os.ShellCommand.exec(ShellCommand.java:104)
                 	at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21729)
                 	at android.os.Binder.shellCommand(Binder.java:881)
                 	at android.os.Binder.onTransact(Binder.java:765)
                 	at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4860)
                 	at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4014)
                 	at android.os.Binder.execTransactInternal(Binder.java:1021)
                 	at android.os.Binder.execTransact(Binder.java:994)
                 
                 
[00:47:30] crit: Install failure: Test command cannot continue
[00:47:30] info: Attempting to remove apk 'net.dot.System.Security.SecureString.Tests': 
[00:47:30] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 uninstall net.dot.System.Security.SecureString.Tests'
[00:47:30] info: APK 'net.dot.System.Security.SecureString.Tests' not on device.
[00:47:30] info: Attempting to remove apk 'net.dot.System.Security.SecureString.Tests': 
[00:47:30] dbug: Executing command: '/datadisks/disk1/work/A821097B/p/microsoft.dotnet.xharness.cli/1.0.0-prerelease.21404.1/runtimes/any/native/adb/linux/adb -s emulator-5554 uninstall net.dot.System.Security.SecureString.Tests'
[00:47:30] info: APK 'net.dot.System.Security.SecureString.Tests' not on device.
XHarness exit code: 78 (PACKAGE_INSTALLATION_FAILURE)
+ exit 78
Author: carlossanlop
Assignees: -
Labels:

arch-x64, blocking-clean-ci, os-android, area-VM-meta-mono, runtime-mono, Known Build Error

Milestone: -

@marek-safar marek-safar removed the untriaged New issue has not been triaged by the area owner label Jul 26, 2023
@marek-safar marek-safar added this to the 6.0.x milestone Jul 26, 2023
@build-analysis build-analysis bot removed this from the 6.0.x milestone Nov 15, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 15, 2023
@akoeplinger akoeplinger added this to the 6.0.x milestone Nov 24, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-x64 area-VM-meta-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 os-android runtime-mono specific to the Mono runtime
Projects
None yet
Development

No branches or pull requests

3 participants