-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Exception: 'Couldn't posix_spawn: error 7' #92
Comments
Hello. Unfortunately this error description doesn't help at all. Could you provide an example project where I can reproduce the error? |
Closing this due to inactivity. Will reopen if more information for investigating is provided. |
Same issue here - after compiling the XIBs:
|
I've reopened the issue, but could you please provide some context like:
Also maybe you could try to reproduce this with an example and send me the project? |
Just ran into the same issue trying this out on our project.
This is Xcode 10.2, macOS 10.14.5, and bartycrouch 4.0.0 (freshly installed from Homebrew). |
I decided to play with it a bit more, and try fiddling with the settings (once I found the collapsed section in the README that describes them). After changing the value of Should I expect that verbose mode lists all of the source files that are processed? Or does it only list strings files that, after doing the code scan, it has determined need to change? The only output is one of our dozen or so strings files, and none of the code. Also: it's not at all clear to me what the difference between |
It's actually recommended somewhere in the README to set all Regarding the Regarding the difference between
Sometimes those paths may differ, e.g. if you have a |
It definitely seems that if the default options cause the tool to crash, then the tip is really more like a requirement, and updating things accordingly would be a good idea. 😉 |
@sixten If it was crashing for everybody you would be right, but it isn't. It only happens in specific cases, I can't say how many % of users are affected, but 3 reporters doesn't sound like many people are affected, therefore I don't see how this is an issue with the default options. It's more like a bug we should fix as soon as possible. But to do that, I need to be able to reproduce it. So it would be great if you could send me a project setup where this is failing, then I can fix it. |
I have the same issue. |
I have the same issue |
Okay, seems like this affects many people. I will have a look into this shortly then, but I can't promise I'll find the issue without an example project setup where this definitely happens. I'll do my best. |
Exception has to do with ARG_MAX. If your path exceeds ARG_MAX you will get this exception. |
Hi, I had the same error. Just adding this as it might help narrow the problem down. Removing my Cocoapods 'Pods' directory fixed this, so obviously it was choking on something in there. Unfortunately didn't have time to investigate further. I'm not using Bartycrouch in anger just yet, was just testing if it could be useful for my project. Would be super handy to have this work without having to specify a set of more particular paths. |
There is a limit in the length(in bytes) for the arguments in every process spawned. This typically around 250KB. If the argument list is larger the system can not spawn the process. The problem can be solved since extractLocStrings supports passing the argument list in a plist file(-f flag, check the help) instead. So we can put all the files in a plist and pass that in the argument list.
I have opened a PR that fixes the issue. I dynamically detect the max arg value and use the argument plist method as fallback with the default method being that is currently used. |
I was able to come up with a temporary workaround by ignoring the variables provided from the Xcode by running bartycrouch via if which bartycrouch > /dev/null; then
BTCRCH=`which bartycrouch`
env -i $BTCRCH update -x
env -i $BTCRCH lint -x
else
echo "warning: BartyCrouch not installed, download it from https://github.com/Flinesoft/BartyCrouch"
fi
|
I have the same issue ...Do you have a fix for this ? |
Hey everyone, I just released version 4.1.1 of BartyCrouch which attempts to fix this issue. Please try it out and report any issues you might run into. Should be available soon on Homebrew, or if you can't wait, just install it with Mint: Thanks to @csknns who did the hard work here! |
Hi,
bartycrouch code -p "$HOME/Dev/Projects/Project1" -l "$HOME/Dev/Projects/Project1/"
2018-03-20 20:43:16.367 bartycrouch[90434:6107769] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Couldn't posix_spawn: error 7'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff3fa27fcb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff666cac76 objc_exception_throw + 48
2 CoreFoundation 0x00007fff3fab99ed +[NSException raise:format:] + 205
3 Foundation 0x00007fff41c5eaf0 -[NSConcreteTask launchWithDictionary:error:] + 4486
4 bartycrouch 0x0000000103a1dce7 bartycrouch + 257255
5 bartycrouch 0x0000000103a32221 bartycrouch + 340513
6 bartycrouch 0x0000000103a31831 bartycrouch + 337969
7 bartycrouch 0x0000000103a1f53d bartycrouch + 263485
8 bartycrouch 0x0000000103a20d67 bartycrouch + 269671
9 bartycrouch 0x0000000103a24e29 bartycrouch + 286249
10 bartycrouch 0x00000001039e148a bartycrouch + 9354
11 bartycrouch 0x00000001039e11f9 bartycrouch + 8697
12 libdyld.dylib 0x00007fff672ba115 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
The text was updated successfully, but these errors were encountered: