android-emulator-runner icon indicating copy to clipboard operation
android-emulator-runner copied to clipboard

Running with SD card makes the emulator not start

Open EmmanuelMess opened this issue 3 years ago • 1 comments

See here the working version, and here the broken version.

This is the working script:

  test_emulator:
    timeout-minutes: 30 # Emulator can get stuck
    runs-on: macos-latest
    strategy:
      fail-fast: true
      matrix:
        api-level: [21]#[16, 19, 28]
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: Set up JDK 11
        uses: actions/setup-java@v2
        with:
          distribution: "temurin"
          java-version: 11
          cache: 'gradle'
      - name: Gradle cache
        uses: actions/cache@v2
        with:
          path: |
            ~/.gradle/caches
            ~/.gradle/wrapper
          key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}

      - name: AVD cache
        uses: actions/cache@v2
        id: avd-cache
        with:
          path: |
            ~/.android/avd/*
            ~/.android/adb*
          key: avd-${{ matrix.api-level }}

      - name: create AVD and generate snapshot for caching
        if: steps.avd-cache.outputs.cache-hit != 'true'
        uses: reactivecircus/android-emulator-runner@v2
        with:
          api-level: ${{ matrix.api-level }}
          force-avd-creation: false
          emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
          disable-animations: false
          script: echo "Generated AVD snapshot for caching."

      - name: run tests
        uses: reactivecircus/android-emulator-runner@v2
        with:
          api-level: ${{ matrix.api-level }}
          force-avd-creation: true
          emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
          disable-animations: true
          #sdcard-path-or-size: 50M
          script: |
            adb logcat -c
            adb logcat *:E &
            ./gradlew :app:connectedCheck

EmmanuelMess avatar Jan 31 '22 02:01 EmmanuelMess

It looks like its the Java version the project used mixed with that option.

EmmanuelMess avatar Jan 31 '22 03:01 EmmanuelMess

@EmmanuelMess I can't access the raw logs for those runs anymore. Is this still an issue?

mrk-han avatar Oct 20 '22 15:10 mrk-han

Reran the test to get the log: https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133.

EmmanuelMess avatar Oct 21 '22 01:10 EmmanuelMess

Starting emulator.
[78](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:81)
  /bin/sh -c \/Users/runner/Library/Android/sdk/emulator/emulator -avd test -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none &
[79](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:82)
  INFO    | Android emulator version 32.1.4.0 (build_id 9177313) (CL:N/A)
[80](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:83)
  INFO    | Found systemPath /Users/runner/Library/Android/sdk/system-images/android-23/default/x86_64/
[81](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:84)
  WARNING | encryption is off
[82](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:85)
  WARNING | Running on a system with less than 6 logical cores. Setting number of virtual cores to 1
[83](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:86)
  WARNING | cannot add library /Users/runner/Library/Android/sdk/emulator/qemu/darwin-x86_64/lib64/vulkan/libvulkan.dylib: failed
[84](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:87)
  INFO    | Crashreporting disabled, not reporting crashes.
[85](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:88)
  INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
[86](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:89)
  INFO    | added library /Users/runner/Library/Android/sdk/emulator/lib64/vulkan/libvulkan.dylib
[87](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:90)
  WARNING | /etc/localtime does not point to zoneinfo-compatible timezone name
[88](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:91)
  WARNING | *** No gRPC protection active, consider launching with the -grpc-use-jwt flag.***
[89](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:92)
  INFO    | Started GRPC server at 127.0.0.1:8554, security: Local, auth: none
[90](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:93)
  INFO    | Advertising in: /Users/runner/Library/Caches/TemporaryItems/avd/running/pid_6541.ini
[91](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:94)
  INFO    | Setting display: 0 configuration to: 320x640, dpi: 160x160 
[92](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:95)
  /Users/runner/Library/Android/sdk/platform-tools/adb shell getprop sys.boot_completed
[93](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:96)
  1
[94](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:97)
  Emulator booted.
[95](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:98)
  /Users/runner/Library/Android/sdk/platform-tools/adb shell input keyevent 82
[96](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:99)
  Disabling animations.
[97](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:100)
  /Users/runner/Library/Android/sdk/platform-tools/adb shell settings put global window_animation_scale 0.0
[98](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:101)
  /Users/runner/Library/Android/sdk/platform-tools/adb shell settings put global transition_animation_scale 0.0
[99](https://github.com/TeamAmaze/AmazeFileManager/actions/runs/3293976681/jobs/5431032133#step:7:102)
  /Users/runner/Library/Android/sdk/platform-tools/adb shell settings put global animator_duration_scale 0.0

@EmmanuelMess The emulator is definitely booted. But your tests are failing, and I'm not sure we can help with that. Make sure proper permissions are set up and re-review the logs.

mrk-han avatar Oct 25 '22 16:10 mrk-han