# Package a Patch with Commandlet in MacOS but FFMODFileSystem thread not exit blocks package thread

**URL:** <https://qa.fmod.com/t/package-a-patch-with-commandlet-in-macos-but-ffmodfilesystem-thread-not-exit-blocks-package-thread/20628>\
**Category:** Unreal Engine\
**Tags:** ios, ue4\
**Created:** [September 7, 2023, 12:22pm UTC](https://qa.fmod.com/t/package-a-patch-with-commandlet-in-macos-but-ffmodfilesystem-thread-not-exit-blocks-package-thread/20628 "2023-09-07T12:22:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pigeon55](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pigeon55](https://qa.fmod.com/u/pigeon55)\
**Post date:** [September 7, 2023, 12:22pm UTC](https://qa.fmod.com/t/package-a-patch-with-commandlet-in-macos-but-ffmodfilesystem-thread-not-exit-blocks-package-thread/20628/1 "2023-09-07T12:22:15Z")

</div>

Platform: macos  
Engine: Unreal Engine  
Question:  
I try to Package a Patch for my project with Command but FFMODFileSystem thread run and it blocks my package thread.  
It only happened in mac platform and the problem seems is i dont have authority of write to disk cause the file cannot write and the thread is waiting for this. But I’m not sure.  
The FFMODFileSystem is Static.  
 ![img_v2_6a2c3678-0757-430f-b016-74f9f04de62g](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/5/578a2786e1f781dc264e5d87ab65ea37211c005d.jpeg)  
And FMOD Plungin call StartupModule function when Unreal Engine work.  
Can I change FFMODFileSystem to non-static and make Plungin skip StartupWork when patch?

Or how should I configure patch setting in macos?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [September 8, 2023, 4:43am UTC](https://qa.fmod.com/t/package-a-patch-with-commandlet-in-macos-but-ffmodfilesystem-thread-not-exit-blocks-package-thread/20628/2 "2023-09-08T04:43:22Z")

</div>

Hi,

What version of FMOD and Unreal are you using?

---

<div class="post-metadata">

**Author:** ![pigeon55](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pigeon55](https://qa.fmod.com/u/pigeon55)\
**Post date:** [September 8, 2023, 6:00am UTC](https://qa.fmod.com/t/package-a-patch-with-commandlet-in-macos-but-ffmodfilesystem-thread-not-exit-blocks-package-thread/20628/3 "2023-09-08T06:00:28Z")

</div>

Unreal 4.27  
FMOD 2.02

---

<div class="post-metadata">

**Author:** ![pigeon55](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pigeon55](https://qa.fmod.com/u/pigeon55)\
**Post date:** [September 11, 2023, 7:10am UTC](https://qa.fmod.com/t/package-a-patch-with-commandlet-in-macos-but-ffmodfilesystem-thread-not-exit-blocks-package-thread/20628/4 "2023-09-11T07:10:50Z")

</div>

Thank you.  
My workmate fix this problem.

---

<div class="post-metadata">

**Author:** ![pigeon55](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pigeon55](https://qa.fmod.com/u/pigeon55)\
**Post date:** [September 20, 2023, 8:07am UTC](https://qa.fmod.com/t/package-a-patch-with-commandlet-in-macos-but-ffmodfilesystem-thread-not-exit-blocks-package-thread/20628/5 "2023-09-20T08:07:15Z")

</div>

I’m sorry that i’m here again.  
The problem is not fixed.

Here is somr new messages.  
Mac Studio ,M2 MAX chip，UE4Editor sometimes cannot exit.

 ![img_v2_6fcb0045-6499-4d09-87af-e0bafcd2f21g](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/d/daba460c5bfcc015a90f21dca05de395dd250484.jpeg)  
It will waiting here.

I need some help.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [September 26, 2023, 1:20am UTC](https://qa.fmod.com/t/package-a-patch-with-commandlet-in-macos-but-ffmodfilesystem-thread-not-exit-blocks-package-thread/20628/6 "2023-09-26T01:20:40Z")

</div>

Hi,

Thank you for the extra information.

Would it be possible to get the full commandlet that you are running? This can be [uploaded](https://fmod.com/profile#uploads) to your [profile](https://fmod.com/profile) after you have [registered](https://fmod.com/profile#register) a project with us. Can you confirm the XCode version you are also using? I have found that UE4 is no longer compatible with XCode 14.

---

<div class="post-metadata">

**Author:** ![pigeon55](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pigeon55](https://qa.fmod.com/u/pigeon55)\
**Post date:** [September 26, 2023, 2:16am UTC](https://qa.fmod.com/t/package-a-patch-with-commandlet-in-macos-but-ffmodfilesystem-thread-not-exit-blocks-package-thread/20628/7 "2023-09-26T02:16:42Z")

</div>

XCode Version is 14.3.1

And Commandlet is here [https://github.com/hxhb/HotPatcher/blob/master/HotPatcher/Source/HotPatcherCore/Classes/Commandlets/HotPatcherCommandlet.cpp](https://github.com/hxhb/HotPatcher/blob/master/HotPatcher/Source/HotPatcherCore/Classes/Commandlets/HotPatcherCommandlet.cpp)

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [October 3, 2023, 2:03am UTC](https://qa.fmod.com/t/package-a-patch-with-commandlet-in-macos-but-ffmodfilesystem-thread-not-exit-blocks-package-thread/20628/8 "2023-10-03T02:03:32Z")

</div>

Hi,

Thank you for the repo and for confirming the Xcode version. Unfortunately, I am still unable to reproduce the issue.

Is there any more information that you can provide? Any logs that mention FMOD or where it is failing in Xcode? How did you find out that it was FMOD that was getting stuck? Did you create the Hot Patcher or are you just using it? If the latter, it may help to ask the creator for assistance as they have a better understanding of the commandlet.

Apologies for the delayed response.

---

<div class="post-metadata">

**Author:** ![pigeon55](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pigeon55](https://qa.fmod.com/u/pigeon55)\
**Post date:** [October 8, 2023, 2:48am UTC](https://qa.fmod.com/t/package-a-patch-with-commandlet-in-macos-but-ffmodfilesystem-thread-not-exit-blocks-package-thread/20628/9 "2023-10-08T02:48:25Z")

</div>

Hi,

I’m sorry that I reply so late cause I have holiday last week.It’s a pity that I have no more information about this.We will try to resolve this problem by other method.

Thank you for your reply.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [October 9, 2023, 5:22am UTC](https://qa.fmod.com/t/package-a-patch-with-commandlet-in-macos-but-ffmodfilesystem-thread-not-exit-blocks-package-thread/20628/10 "2023-10-09T05:22:49Z")

</div>

Hi,

Hope you had a lovely holiday 🙂

If you are able to get any more information please pass it on and I will assist where I can.
