Skip to content
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

fail to launch process sometimes #3

Open
viewrain opened this issue Oct 30, 2012 · 2 comments
Open

fail to launch process sometimes #3

viewrain opened this issue Oct 30, 2012 · 2 comments

Comments

@viewrain
Copy link

Hi, guys:
idevice-app-runner is a great tool for me to invoke my app by command line!

 But I found that it failed to launch the process sometimes. The application was opened, but hanged there and exited later. The system log in console was like this:

Oct 29 19:37:29 USMTV-iPhone4-iOS6 kernel[0] : lockbot[13554] Builtin profile: debugserver (sandbox)
Oct 29 19:37:29 USMTV-iPhone4-iOS6 com.apple.debugserver-189[13569] : Connecting to com.apple.debugserver service...
Oct 29 19:37:29 USMTV-iPhone4-iOS6 com.apple.debugserver-189[13569] : Got a connection, waiting for process information for launching or attaching.
Oct 29 19:37:31 USMTV-iPhone4-iOS6 com.apple.launchd1 : (UIKitApplication:com.google.AzimuthKIF[0x3c55]) Spawned and waiting for the debugger to attach before continuing...
Oct 29 19:37:31 USMTV-iPhone4-iOS6 kernel[0] : launchd[13571] Builtin profile: container (sandbox)
Oct 29 19:37:31 USMTV-iPhone4-iOS6 kernel[0] : launchd[13571] Container: /private/var/mobile/Applications/E926A97F-26A9-4F9D-B486-3FCB863FFEEC (sandbox)
Oct 29 19:37:35 USMTV-iPhone4-iOS6 com.apple.debugserver-189[13569] : error: failed to launch process (null): unknown error.

 After I saw the error, I killed  "idevice-app-runner" command and ran again, it worked again.    

Anyone encountered the same problem before?

Is it possible to add a retry_num flag, so that it will retry to launch the process if it's failed for the first time?

Thanks a lot!
Yu

@crackleware
Copy link
Owner

Hi Yu,

First of all, sorry for late reply. I'm glad that you find the tool useful.

I don't remember having this problem.

As a workaround you could write shell script which starts idevice-app-runner and idevicesyslog in parallel. It then parses idevicesyslog output for error string you noticed. When/if it finds the error message it should restart idevice-app-runner. Messy but it could be acceptable.

If you need help writing this shell script - tell me.

Regards!

@viewrain
Copy link
Author

viewrain commented Jan 1, 2013

2012/12/31 crackleware [email protected]

Hi Yu,

First of all, sorry for late reply. I'm glad that you find the tool useful.

I don't remember having this problem.

As a workaround you could write shell script which starts
idevice-app-runner and idevicesyslog in parallel. It then parses
idevicesyslog output for error string you noticed. When/if it finds the
error message it should restart idevice-app-runner.

That's what I have done :)

Thank you so much for this useful tool and the advice~

Messy but it could be acceptable.

If you need help writing this shell script - tell me.

Regards!


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-11784803.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants