API documentation: LSOpenURLsWithRole()

user277465 picture user277465 · Mar 17, 2012 · Viewed 23.5k times · Source

Recently, starting Preview on a list of gif images produced the error :-

LSOpenURLsWithRole() failed with error -600 for the file /Users/uki/repos/gif-fuzzing/test/234.gif.

However on opening 234.gif the error could not be reproduced. This error keeps repeating at random intervals of time. I've been searching around for Apple Developer Documentation on what LSOpenURLsWithRole actually does, but I could not find any(which is weird).

  1. Could anyone point me to where the API docs of this function would be?
  2. Has anyone had a similar error before?

Answer

Fox picture Fox · Oct 14, 2013

fbernardo's link provides a good starting point... In this case, it's a more generic error as explained here: https://web.archive.org/web/20191128225313/http://office.mvps.org/error/number.html#error-600

An inability to send a 'launch' event to the mach port sounds like a runtime kernel level issue... in my case, it was a zombie of a process I'd killed form the terminal holding on to certain resources, which only a reboot could solve.