CLI run of FMod Studio not loading project while mac is locked

Hey there, am doing bank builds via CLI with the following command:

/Applications/FMOD Studio.app/Contents/MacOS/fmodstudio' -build FMod/<PROJECTNAME>.fspro and if the machine is locked (which it normally is while running jenkins) the project doesn’t complete loading.
I have a FMOD studio log (which I can’t yet attach), and there is a large time gap between the following lines:

- 2025-05-06 20:17:56 [Total Load FMod/<PROJECTNAME>.fspro 0x0000000142e7ffa0]: Time started
- 2025-05-06 20:31:20 [Opening FMod/<PROJECTNAME>.fspro 0x0000000142e7ffa0]: Time started
- 2025-05-06 20:31:20 [Create mappers]: Time started

(the project is extremely small, and the timestamps match up exactly with when I ran a remote desktop session and logged in)

In addition the jenkins logs for the bank build is as follows:

[2025-05-06T10:31:25.385Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:25.385Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:25.385Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:25.385Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:25.385Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:25.385Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:26.303Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:26.303Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:26.303Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:26.303Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:26.303Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:28.189Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:28.189Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:30.077Z] /opt/teamcity-agent/work/32de17c14a8f30d0/fsbank_api/src/fsbank_file_disk.cpp(26) : FSBank error (7) : An operating system based file error was encountered.
[2025-05-06T10:31:30.077Z] [ERR] ~Global                                  : assertion: 'gSystemInitCount == 0' failed
[2025-05-06T10:31:30.077Z] 
[2025-05-06T10:31:30.077Z] Loading project "FMod/K<PROJECTNAME>.fspro"...
[2025-05-06T10:31:30.077Z] Successfully opened project.
[2025-05-06T10:31:30.077Z] Building project "FMod/<PROJECTNAME>.fspro"...
[2025-05-06T10:31:30.077Z] Build Status: Gathering file stats...
[2025-05-06T10:31:30.077Z] Build Status: Preparing to build for Desktop...
[2025-05-06T10:31:30.078Z] Build Status: Checking dependencies for "Mother Tree - General"...
[2025-05-06T10:31:30.078Z] Build Status: Loading "<SCENE NAME> - General" objects...
[2025-05-06T10:31:30.078Z] Build Status: Building "<SCENE NAME> - General" for Desktop...
[2025-05-06T10:31:30.078Z] Build Status: Checking dependencies for "<SCENE NAME> - Music"...
[2025-05-06T10:31:30.078Z] Build Status: Loading "<SCENE NAME> - Music" objects...
[2025-05-06T10:31:30.078Z] Build Status: Building "<SCENE NAME> - Music" for Desktop...
[2025-05-06T10:31:30.078Z] Build Status: Checking dependencies for "Shared"...
[2025-05-06T10:31:30.078Z] Build Status: Loading "Shared" objects...
[2025-05-06T10:31:30.078Z] Build Status: Building "Shared" for Desktop...
[2025-05-06T10:31:30.078Z] Build Status: Preparing to build for WebGL...
[2025-05-06T10:31:30.078Z] Build Status: Checking dependencies for "<SCENE NAME> - General"...
[2025-05-06T10:31:30.078Z] Build Status: Loading "<SCENE NAME> - General" objects...
[2025-05-06T10:31:30.078Z] Build Status: Building "<SCENE NAME> - General" for WebGL...
[2025-05-06T10:31:30.078Z] Build Status: Checking dependencies for "Mother Tree - Music"...
[2025-05-06T10:31:30.078Z] Build Status: Loading "<SCENE NAME> - Music" objects...
[2025-05-06T10:31:30.078Z] Build Status: Building "<SCENE NAME> - Music" for WebGL...
[2025-05-06T10:31:30.078Z] Build Status: Checking dependencies for "Shared"...
[2025-05-06T10:31:30.078Z] Build Status: Loading "Shared" objects...
[2025-05-06T10:31:30.078Z] Build Status: Building "Shared" for WebGL...
[2025-05-06T10:31:30.078Z] Build completed successfully.
[Pipeline] }```

While I could check in the built banks and avoid this step, i'd rather not have derived files in the repo if I can avoid it!
1 Like

Hi,

Thank you for the information and the logs.

Using 2.02.29 and this build step:

echo "Build Studio Project"
'/Applications/FMOD Studio 2.02.25.app/Contents/MacOS/fmodstudio' -build '/Users/admin/Library/Application Support/FMOD Studio/2.02.25/Examples/Examples.fspro'
echo "Finished Building"

I was not able to reproduce the issue.

Could I please grab your FMOD versions and your build step?

I’m using fmod studio 2.03.07 build 150747 (macos)

So: it’s a problem with command line builds in general taking a long time.
In both cases i have removed the .cache, .user, .recycle and Build folders prior to building.

Using the GUI takes ~1 Minute from opening until build complete (see below)
GUIBuild.txt (55.8 KB)

Using the CLI the build takes 40 minutes to complete
CLIBuild.txt (40.1 KB)

(both of these were done on the same system)

1 Like

Thank you for the information.

I have been able to reproduce the issue, I will pass it onto our development team to investigate further. Unfortunately I don’t have a workaround at this time.

Thank you for bringing this to our attention.

At least you can repro it! A solid repro is half the battle! :smiley:

1 Like

ooof.. I just had this building for ~12 hours and it never finished - so in some cases it’s not just slow, it never finishes. I’ve attached the log

2025-05-07-18-04-48_log.txt (10.0 KB)

1 Like

Thank you for the logs, I will add them to the task!