Skip to content

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

Description

@carlossanlop

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

BuildDefinitionTestPull Request
1043374dotnet/runtimeSystem.Composition.Tests.WorkItemExecution
1042581dotnet/runtimeSystem.Net.Mail.Unit.Tests.WorkItemExecution#115590
1042506dotnet/runtimeSystem.Xml.Linq.Events.Tests.WorkItemExecution#115408
1042391dotnet/runtimeSystem.Collections.NonGeneric.Tests.WorkItemExecution
1041735dotnet/runtimeSystem.Xml.XmlSerializer.ReflectionOnly.Tests.WorkItemExecution
1039623dotnet/runtimeSystem.Xml.Linq.TreeManipulation.Tests.WorkItemExecution
1036170dotnet/runtimeSystem.Linq.Expressions.Tests.WorkItemExecution
1032176dotnet/runtimeSystem.Runtime.Numerics.Tests.WorkItemExecution
1027363dotnet/runtimeSystem.Text.Json.Tests.WorkItemExecution
1025194dotnet/runtimeExceptions_UnwindFpBleedTest.WorkItemExecution#114633
1024414dotnet/runtimeJIT_Regression.WorkItemExecution#114633
1023237dotnet/runtimeMicrosoft.Extensions.Configuration.Functional.Tests.WorkItemExecution

Summary

24-Hour Hit Count7-Day Hit Count1-Month Count
3612

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions