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

No longer able to make VisionOS builds for Unity on macos-latest #10219

Closed
3 of 13 tasks
StephenHodgson opened this issue Jul 11, 2024 · 22 comments
Closed
3 of 13 tasks

No longer able to make VisionOS builds for Unity on macos-latest #10219

StephenHodgson opened this issue Jul 11, 2024 · 22 comments
Assignees
Labels
bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: macOS

Comments

@StephenHodgson
Copy link

StephenHodgson commented Jul 11, 2024

Description

Previously I had been able to make automated builds on macos-latest with arm64 arch, but recent changes seem to have broken this.

I get an error about FMOD trying to initialize but then failing the build after some timeout.
I am able to make automated builds on my self hosted runner with the same tooling as the vanilla GitHub hosted runner.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Current runner version: '2.317.0'
Operating System
  macOS
  14.5
  23F79
Runner Image
  Image: macos-14-arm64
  Version: 20240611.1
  Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20240611.1/images/macos/macos-14-arm64-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20240611.1
Runner Image Provisioner
  2.0.370.1+55cddbb57f254a369b6e7b3b508cebdbee5d24be

Is it regression?

yes

Expected behavior

I can perform automated building with Unity Game Engine and Github Actions Runners for Vision OS platform

Actual behavior

FMOD failed to initialize the output device.: "A call to a standard soundcard driver failed, which could possibly mean a bug in the driver or resources were missing or exhausted. " (57)
Forced to initialize FMOD to to the device driver's system output rate 44100, this may impact performance and/or give inconsistent experiences compared to selected sample rate 48000
FMOD failed to initialize the output device.: "A call to a standard soundcard driver failed, which could possibly mean a bug in the driver or resources were missing or exhausted. " (57)
FMOD initialized on nosound output

Repro steps

See PR RageAgainstThePixel/unity-build#8

  1. Create a new workflow using my Github Action as outlined in my repo readme.
  2. Create a Unity account if needed and set secrets:
  • UNITY_USERNAME
  • UNITY_PASSWORD
  1. Run the following workflow:
name: unity-build-validation

on:
  push:
    branches:
      - 'main'
  pull_request:
    branches:
      - '*'

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      # max-parallel: 2 # Use this if you're activating pro license with matrix
      fail-fast: false
      matrix:
        include:
          - os: ubuntu-latest
            build-target: StandaloneLinux64
          - os: windows-latest
            build-target: StandaloneWindows64
          - os: macos-latest
            build-target: StandaloneOSX

    steps:
      - name: checkout self
        uses: actions/checkout@v4

      - name: checkout test project
        uses: actions/checkout@v4
        with:
          repository: RageAgainstThePixel/com.utilities.buildpipeine
          path: test-project

        # Installs the Unity Editor based on your project version text file
        # sets -> env.UNITY_EDITOR_PATH
        # sets -> env.UNITY_PROJECT_PATH
        # https://github.com/XRTK/unity-setup
      - uses: xrtk/unity-setup@v7
        with:
          build-targets: ${{ matrix.build-target }}
          version-file-path: 'test-project/**/ProjectSettings/ProjectVersion.txt'

        # Activates the installation with the provided credentials
        # https://github.com/XRTK/activate-unity-license
      - uses: xrtk/activate-unity-license@v5
        with:
          # Required
          username: ${{ secrets.UNITY_USERNAME }}
          password: ${{ secrets.UNITY_PASSWORD }}
          # Optional
          license-type: 'Personal' # Chooses license type to use [ Personal, Professional ]
          # serial: ${{ secrets.UNITY_SERIAL }} # Required for pro/plus activations

      - name: Unity Build (${{ matrix.build-target }})
        uses: ./ #RageAgainstThePixel/unity-build
        with:
          build-target: ${{ matrix.build-target }}

      - name: Unity Build No Tests (${{ matrix.build-target }})
        uses: ./ #RageAgainstThePixel/unity-build
        with:
          build-target: ${{ matrix.build-target }}
          test: false

      - name: Unity Build No Artifacts (${{ matrix.build-target }})
        uses: ./ #RageAgainstThePixel/unity-build
        with:
          build-target: ${{ matrix.build-target }}
          publish-artifacts: false
@StephenHodgson StephenHodgson changed the title No longer able to make VisionOS builds for Unity on arm64 machines No longer able to make VisionOS builds for Unity on macos-latest Jul 11, 2024
@StephenHodgson StephenHodgson changed the title No longer able to make VisionOS builds for Unity on macos-latest No longer able to make builds for Unity on any macos runner Jul 12, 2024
@StephenHodgson StephenHodgson changed the title No longer able to make builds for Unity on any macos runner No longer able to make VisionOS builds for Unity on macos-latest Jul 12, 2024
@prasanjitsahoo prasanjitsahoo added investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: macOS labels Jul 12, 2024
@prasanjitsahoo
Copy link
Contributor

HI @StephenHodgson, We are looking in to this issue.

@prasanjitsahoo
Copy link
Contributor

prasanjitsahoo commented Jul 16, 2024

HI @StephenHodgson , We are facing below error when trying to reproduce your pipeline. Do you have any recommendation, how to workaround it.
Screenshot 2024-07-16 at 5 44 10 PM

@StephenHodgson
Copy link
Author

StephenHodgson commented Jul 16, 2024

HI @StephenHodgson , We are facing below error when trying to reproduce your pipeline. Do you have any recommendation, how to workaround it.

Try using the latest 2022.3 LTS version. 2019.4.40 doesn't support arm64 which is required for the VisionOS platform.

In my test in my latest run failure I was using 2021.3.15f1 but didn't expressly install vision os platform.

My previous release run was using macos-latest with arm64 support and passed.

@StephenHodgson
Copy link
Author

@prasanjitsahoo I updated my dev branch to only test for macos and updated the editor to 2022.3 LTS

@prasanjitsahoo
Copy link
Contributor

prasanjitsahoo commented Jul 17, 2024

@prasanjitsahoo I updated my dev branch to only test for macos and updated the editor to 2022.3 LTS

Ok, we will continue to investigate and let you know.

@prasanjitsahoo
Copy link
Contributor

Hi @StephenHodgson , I am getting Unity license Failure when trying to reproduce the issue. Any recommendation how to reproduce it without license. Attaching failure screenshot
Screenshot 2024-07-22 at 4 09 35 PM

@StephenHodgson
Copy link
Author

StephenHodgson commented Jul 22, 2024

Hi @StephenHodgson , I am getting Unity license Failure when trying to reproduce the issue. Any recommendation how to reproduce it without license. Attaching failure screenshot.

Sounds like the secrets are not set correctly?

You don't need a license, but you do need an account with unity.

Set the UNITY_USERNAME and UNITY_PASSWORD

If already set double check your values.

Username should be the email address of your account.

I removed the 2FA requirement to make it easier.

@prasanjitsahoo
Copy link
Contributor

prasanjitsahoo commented Jul 23, 2024

Hi @StephenHodgson , I am getting Unity license Failure when trying to reproduce the issue. Any recommendation how to reproduce it without license. Attaching failure screenshot.

Sounds like the secrets are not set correctly?

You don't need a license, but you do need an account with unity.

Set the UNITY_USERNAME and UNITY_PASSWORD

If already set double check your values.

Username should be the email address of your account.

I removed the 2FA requirement to make it easier.

Yes, I have created an UNITY account. Username and password also set to secrets correctly and after removed 2FA, facing same license failure issue
Screenshot 2024-07-23 at 1 59 51 PM

@StephenHodgson
Copy link
Author

StephenHodgson commented Jul 23, 2024

Yes, I have created an UNITY account. Username and password also set to secrets correctly and after removed 2FA, facing same license failure issue

Still seems like the secret credential itself might still be incorrect.
Can you validate one more time you're using the same email and password to login at id.unity.com?

UNITY_USERNAME: your@email.com

Here are the results of my latest run if you're unable to repro
https://github.com/RageAgainstThePixel/unity-build/actions/runs/9987084631/job/27796644967

@prasanjitsahoo
Copy link
Contributor

prasanjitsahoo commented Jul 23, 2024

HI @StephenHodgson , Thanks for your quick help on the challenges i faced. I can be able to run the pipelines now without the license and repro the issue. Meanwhile pipelines are getting succeeded now. I could see for your pipelines as well getting succeeded https://github.com/RageAgainstThePixel/unity-build/actions/runs/10057461498/job/27798459949. Attaching my screenshots for the same

Screenshot 2024-07-23 at 8 29 25 PM

@StephenHodgson
Copy link
Author

StephenHodgson commented Jul 23, 2024

Yes but 3 hrs on mac-latest seems like quite a long time compared to the mac-13 runner of 18 min

image

There may still be a misconfiguration issue on the runner image 🤔

image

I'm still getting these errors on mac-latest but not mac-13

FMOD failed to initialize the output device.: "A call to a standard soundcard driver failed, which could possibly mean a bug in the driver or resources were missing or exhausted. " (57)
Forced to initialize FMOD to to the device driver's system output rate 44100, this may impact performance and/or give inconsistent experiences compared to selected sample rate 48000
FMOD failed to initialize the output device.: "A call to a standard soundcard driver failed, which could possibly mean a bug in the driver or resources were missing or exhausted. " (57)
FMOD initialized on nosound output

@StephenHodgson
Copy link
Author

@prasanjitsahoo
Copy link
Contributor

Hi @StephenHodgson Please check now, it is getting passed twice for me today after latest deployment done.
Screenshot 2024-07-26 at 9 10 33 PM

@StephenHodgson
Copy link
Author

StephenHodgson commented Jul 26, 2024

Hi @StephenHodgson Please check now, it is getting passed twice for me today after latest deployment done.

I can still see from your screen shot that it's taking well over an hour for each step. Which seems like it is still broken.

The other builds take less than 20 min and macos-latest used to take roughly the same amount of time before it was broken.

See details in #10219 (comment)

@prasanjitsahoo
Copy link
Contributor

Hi @StephenHodgson Please check now, it is getting passed twice for me today after latest deployment done.

I can still see from your screen shot that it's taking well over an hour for each step. Which seems like it is still broken.

The other builds take less than 20 min and macos-latest used to take roughly the same amount of time before it was broken.

See details in #10219 (comment)

Yes, We just observed that for arm based machine taking little longer as compared to intel based machine

@prasanjitsahoo
Copy link
Contributor

Hi @StephenHodgson ,
We are aware of the issue and are working on it.

@StephenHodgson
Copy link
Author

I updated my tests and GitHub actions to make repro easier:

@StephenHodgson
Copy link
Author

Any update on this Audio Driver issue?

@StephenHodgson
Copy link
Author

StephenHodgson commented Sep 13, 2024

In my last test run I'm getting a slightly different error:

Failed to load ASTC compressor library from astcenc-sse42
...
Failed to load ASTC compressor library from astcenc-neon

@erik-bershel
Copy link
Contributor

Hey @StephenHodgson!

May I ask you to try it once with macOS-15 image? 🙇

@StephenHodgson
Copy link
Author

@erik-bershel will do right now :)

@StephenHodgson
Copy link
Author

StephenHodgson commented Sep 27, 2024

@erik-bershel seems to be working in macOS-15 Just running into intermittent issues with licensing, prob due to machine id being the same or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: macOS
Projects
None yet
Development

No branches or pull requests

4 participants