# FMOD continues P4 authentication spam

**URL:** <https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147>\
**Category:** FMOD Studio\
**Created:** [October 1, 2024, 5:00pm UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147 "2024-10-01T17:00:34Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathan.hutchins](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@nathan.hutchins](https://qa.fmod.com/u/nathan.hutchins)\
**Post date:** [October 1, 2024, 5:00pm UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/1 "2024-10-01T17:00:34Z")

</div>

There is something in FMOD that seems to continuously use a P4 command which ends up spawning 1000s of authentication tabs…

We have Perforce connected to FMOD as our source control. Perforce authenticates with Okta. So when FMOD attempts to use Perforce while Perforce’s ticket auth has expired, it will open a new Okta auth chrome tab every 10 seconds or so on loop… forever. The only way to stop it is to try to authenticate within the ten second window or force close FMOD.

Is there a way to have FMOD only attempt to authenticate ONCE and wait for a response?

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [October 9, 2024, 1:53am UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/2 "2024-10-09T01:53:06Z")

</div>

Hi, apologies for the delayed response.

Could I get a few things from you?

- Your FMOD Studio version number
- If you’re using 2.02, which Perforce integration you’re using (i.e. standard vs legacy integration)
- A log from Window → Console → Logging with “Show verbose logging” enabled where the spam issue occurs

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [October 16, 2024, 2:31am UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/3 "2024-10-16T02:31:49Z")

</div>

Just following up on this - were you able to resolve the authentication spam issue? If not, could I get you to provide me with the information I noted in my previous reply?

---

<div class="post-metadata">

**Author:** ![nathan.hutchins](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@nathan.hutchins](https://qa.fmod.com/u/nathan.hutchins)\
**Post date:** [October 18, 2024, 4:21pm UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/4 "2024-10-18T16:21:18Z")

</div>

Hi Leah, apologies for the delay, I’ve been out of office for the week. No it’s still not fixed besides the work around of closing the app then authenticating. Let me get that information for your asap!

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [October 21, 2024, 6:08am UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/5 "2024-10-21T06:08:11Z")

</div>

No problem, thanks in advance!

---

<div class="post-metadata">

**Author:** ![nathan.hutchins](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@nathan.hutchins](https://qa.fmod.com/u/nathan.hutchins)\
**Post date:** [October 29, 2024, 12:01am UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/6 "2024-10-29T00:01:25Z")

</div>

- FMOD 2.02.22.
- Perforce integration is standard.
- Latest verbose logging during the error.

(I’ve asked the user to try and copy paste all the text to see if there is more context. But this is all I have from them for now)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/82f270d45f0c15b21f9e55c23c06a0390485de9d.png)

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [October 29, 2024, 5:11am UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/7 "2024-10-29T05:11:06Z")

</div>

Thanks for the additional information!

The log snippet unfortunately doesn’t reveal anything, so the full log from the user would be great. Besides copying the entire log, the user should be able to retrieve the full log from the relevant directory depending on their platform:

- Windows: `%HOMEPATH%\AppData\Local\FMOD Studio\Logs`
- Mac: `~/Library/Application Support/FMOD Studio`
- Linux: `~home/FMOD Studio/Logs`

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [November 7, 2024, 2:08am UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/8 "2024-11-07T02:08:23Z")

</div>

Following up on this again - were you able to get the full log from the user, or otherwise resolve the issue?

---

<div class="post-metadata">

**Author:** ![nathan.hutchins](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@nathan.hutchins](https://qa.fmod.com/u/nathan.hutchins)\
**Post date:** [November 7, 2024, 6:28pm UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/9 "2024-11-07T18:28:14Z")

</div>

Hey Leah, for some reason the FMOD Studio folder doesn’t exist in our Application Support directory path. Do you know anywhere else it could be? I’ve been digging around and can’t seem to find it.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [November 12, 2024, 5:18am UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/10 "2024-11-12T05:18:42Z")

</div>

Apologies for the delayed response!

Its likely that you’re looking at the root `/Library/Application Support/` directory instead of the `~` home directory one, which should be located at `/Users/YOUR_USERNAME_HERE/Library/Application Support/`. Take a look there instead and see whether the “FMOD Studio” directory is present.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [November 21, 2024, 3:37am UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/11 "2024-11-21T03:37:03Z")

</div>

Following up on this again - did you manage to locate the correct Application Support path? You can also get the user to copy the entire log directly from the Console in Studio, if that’d be easier.

---

<div class="post-metadata">

**Author:** ![nathan.hutchins](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@nathan.hutchins](https://qa.fmod.com/u/nathan.hutchins)\
**Post date:** [November 21, 2024, 5:14pm UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/12 "2024-11-21T17:14:17Z")

</div>

Hi! The user I was able to get the user to open the proper location with “open ~/Library/Application\ Support/FMOD\ Studio”. Thanks!  
They are going to collect proper logs the next time the issues happens. I will post them asap. Thank you!

---

<div class="post-metadata">

**Author:** ![nathan.hutchins](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@nathan.hutchins](https://qa.fmod.com/u/nathan.hutchins)\
**Post date:** [November 21, 2024, 8:57pm UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/13 "2024-11-21T20:57:51Z")

</div>

I can’t upload to the forum due to my account being new. But here a link to the logs: [Removed by Admin]

Thanks again!

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [November 22, 2024, 4:16am UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/14 "2024-11-22T04:16:02Z")

</div>

Thanks for uploading the log. Unfortunately, it hasn’t revealed any additional info, so I’ve taken the liberty of removing the link in case it contains any confidential info.

That said, I’ve done some digging into the standard Perforce integration, and can see that a regular command, likely “p4 login -s”, is occuring, which is probably what is triggering extra authentication when the existing ticket auth has expired.

The standard Perforce integration’s code, which contains the bulk of the logic around p4 calls, can be found in your FMOD Studio install directory at `./scripts/Perforce.sc.js`. As a start, I’d recommend modifying line 138 to increase the `-vnet.maxwait` time, and see whether that provides a simple workaround.

Otherwise, the script makes use of the same Scripting API as Studio’s regular scripts and console, and is also entirely customizable, meaning that you can add `console.log()` calls to help track down where the issue is occurring and implement a fix.

If the simple workaround isn’t enough, please let me know, and I’d be happy to see what else can be done.

---

<div class="post-metadata">

**Author:** ![nathan.hutchins](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@nathan.hutchins](https://qa.fmod.com/u/nathan.hutchins)\
**Post date:** [November 22, 2024, 5:57pm UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/15 "2024-11-22T17:57:47Z")

</div>

Thank you for removing that and providing additional info!! Extending the wait time seems like a good start. I will do that for the user asap and let you know if we have any luck. Thanks!

---

<div class="post-metadata">

**Author:** ![nathan.hutchins](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@nathan.hutchins](https://qa.fmod.com/u/nathan.hutchins)\
**Post date:** [November 27, 2024, 12:22am UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/16 "2024-11-27T00:22:29Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/c/c993fdf07f55c6b6cfb0d3795b063b3c67437d6f.jpeg)  
For some reason the Scripts directory is empty. I’ve looked around and can’t seem to find the Perforce.sc.js file anywhere.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [November 27, 2024, 3:58am UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/17 "2024-11-27T03:58:13Z")

</div>

Apologies - on Mac, you’ll need to right click on the FMOD Studio application, select “Show Package Contents”, and find the script in there:

 ![macScripts](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/862cf82478be0e582aacfde902a4b78bc6cea9f7.png)

---

<div class="post-metadata">

**Author:** ![nathan.hutchins](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@nathan.hutchins](https://qa.fmod.com/u/nathan.hutchins)\
**Post date:** [December 5, 2024, 5:11pm UTC](https://qa.fmod.com/t/fmod-continues-p4-authentication-spam/22147/18 "2024-12-05T17:11:37Z")

</div>

![fmod_tabs](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/a/adf94b5b163783e59f914f252c875e3ec28606e1.jpeg)

Still no luck unfortunately. We bumped the 10 up to 60 and if FMOD is left open in the background this will keep happening. I’m going to see if I can remove the timeout on P4’s end. Though it would be nice if there was another solution. Please let me know if you have any other ideas. I appreciate your help.
