On May 12, 2013, at 6:47 PM, Ken Thomases wrote:
> On May 12, 2013, at 8:08 PM, Seth Willits wrote:
>
>> The user running my main application has parental controls enabled. The user
>> is allowed to run the main application, and can, but the helper task that is
>> bundled inside the main applic
On May 12, 2013, at 8:08 PM, Seth Willits wrote:
> The user running my main application has parental controls enabled. The user
> is allowed to run the main application, and can, but the helper task that is
> bundled inside the main application's bundle is not allowed to run. When the
> *task*
Update: I *finally* got a bead on this.
The user running my main application has parental controls enabled. The user is
allowed to run the main application, and can, but the helper task that is
bundled inside the main application's bundle is not allowed to run. When the
*task* launches, *it*
On Feb 6, 2013, at 10:29 PM, Chris Hanson wrote:
> On Feb 4, 2013, at 11:26 AM, Seth Willits wrote:
>
>> Looking around the open source code for exec(), it appears EINVAL (22) can
>> be returned if the task was exec()'d when not called from a vfork()'d
>> process, with the comment /* If we're
On 2/4/13 8:26 PM, Seth Willits wrote:
[snip]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.Foundation0x978142d8
___NEW_PROCESS_COULD_NOT_BE_EXECD___ + 7
1 com.apple.Foundation0x976d2e16 -[NSConcreteTask
launchWithDictionary:] + 4698
2
On Feb 4, 2013, at 11:26 AM, Seth Willits wrote:
> Looking around the open source code for exec(), it appears EINVAL (22) can be
> returned if the task was exec()'d when not called from a vfork()'d process,
> with the comment /* If we're not in vfork, don't permit a mutithreaded task
> to exec
On Feb 5, 2013, at 10:39 AM, Seth Willits wrote:
>> Does your crash log show multiple threads? I would expect that the crash log
>> shows only one thread because NSTask called fork() already.
>
> Hmm. Yes, there's only one thread. I didn't notice that. That explains the
> crash (of the forked
> Does your crash log show multiple threads? I would expect that the crash log
> shows only one thread because NSTask called fork() already.
Hmm. Yes, there's only one thread. I didn't notice that. That explains the
crash (of the forked process) "instead of an exception," like you mentioned.
>
On Feb 4, 2013, at 11:26 AM, Seth Willits wrote:
> Exception Type: EXC_BREAKPOINT (SIGTRAP)
> Exception Codes: 0x0002, 0x
>
> *** NSTask: Task create for path
> '/Applications/App.app/Contents/Resources/mytask' failed: 22, "Invalid
> argument". Terminating temporary
In my app I have to launch background processes (bundled within my app's
Resources folder) to do some things, and I launch them with NSTask. Every now
and then I get a crash report which shows NSTask throws some fatal exception
which is not caught by a wrapping @try block.
For example:
@tr
10 matches
Mail list logo