From cbd226fffa61342a5d586f031eab89f47547e025 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Fri, 28 May 2021 11:44:53 +0300 Subject: [PATCH] CI: explicitly use -gpu swiftshader_indirect with Android emulator Force the emulator to use software acceleration to avoid a crash. Change-Id: I1e73b8bc6485b0854cf83f5d9faa5d5f872a90df Reviewed-by: Volker Hilsheimer --- util/android/android_emulator_launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/android/android_emulator_launcher.sh b/util/android/android_emulator_launcher.sh index 4862a2c0aa..867c6a1338 100755 --- a/util/android/android_emulator_launcher.sh +++ b/util/android/android_emulator_launcher.sh @@ -41,7 +41,7 @@ RESULT=0 for counter in `seq 1 ${EMULATOR_MAX_RETRIES}`; do $ADB_EXEC start-server echo "Starting emulator, try ${counter}/${EMULATOR_MAX_RETRIES}" - $EMULATOR_EXEC $EMULATOR_NAME -no-audio -partition-size 4096 -cores 4 -memory 3500 -no-snapshot-load -no-snapshot-save &>/dev/null & + $EMULATOR_EXEC $EMULATOR_NAME -gpu swiftshader_indirect -no-audio -partition-size 4096 -cores 4 -memory 3500 -no-snapshot-load -no-snapshot-save &>/dev/null & emulator_pid=$! # Give emulator time to start