Sandbox console messages

  • Hello,
    I'm trying to migrate an existing application to sandboxing (on Lion).

    It is just a regular document-based app, doesn't do anything wild.

    I've enabled user selected file access (read/write).

    Sometimes I get this message in the console:
    5/21/12 3:28:35.002 AM sandboxd: ([7221]) MyAppName(7221) deny iokit-open AppleGraphicsPolicyClient

    With trace:
    OS Version:      Mac OS X 10.7.3 (11D50b)
    Report Version:  7

    Backtrace:
    0  libsystem_kernel.dylib        0x00007fff8ef9d67a mach_msg_trap + 10
    1  libsystem_kernel.dylib        0x00007fff8ef9cd71 mach_msg + 73
    2  IOKit                          0x00007fff9128f923 io_service_open_extended + 241
    3  IOKit                          0x00007fff9124a5d8 IOServiceOpen + 45
    4  OpenGL                        0x00007fff8d5be95b
    5  OpenGL                        0x00007fff8d5bdbfe
    6  libsystem_c.dylib              0x00007fff88934e06 pthread_once + 86
    7  OpenGL                        0x00007fff8d5b6ab4 CGLSetOption + 24
    8  AppKit                        0x00007fff89eb8501 createPixelFormat + 37
    9  AppKit                        0x00007fff89eb84aa -[NSOpenGLPixelFormat initWithAttributes:] + 70

    Also, I keep getting these errors in the console when the app tries to autosave:

    5/21/12 11:29:42.000 AM sandboxd: ([710]) MyAppName(710) deny file-write-data /Users/me/Library/Autosave Information/Unsaved MyAppName Document 3.myappextension

    I also get messages like these, they seem to be triggered by my app from time to time:
    5/21/12 4:06:58.187 AM com.apple.XType.FontHelper: FontHelper:  message received. (<dictionary: 0x106724d10> { count = 2, contents "restricted" => <bool: 0x7fff784e69e0>: true
    "query" => <string: 0x106726d00> { length = 113, contents = "com_apple_ats_name_postscript == "OriyaSangamMN-Bold" && kMDItemContentTypeTree != com.adobe.postscript-lwfn-font" }
    })
    5/21/12 4:06:58.187 AM com.apple.XType.FontHelper: AutoActivation:  scopes (
      "/Library/Application Support/Apple/Fonts"
    )

    The app itself appears to be working fine (even the autosave...), but these console messages are making me nervous.
    What am I supposed to do about this? Is it OK to submit an app that generated these messages for App Store Review?

    Thanks,
    Peter
  • Hi Peter,
    Can you log these as bugs (bugreporter.apple.com); it sounds like they are bugs in the system which you may not have control over. Please be sure to include steps to reproduce, backtraces, and ideally sample code that reproduces it. Thanks!

    corbin

    On May 21, 2012, at 8:41 AM, Peter Krajčík <peterk...> wrote:

    > Hello,
    > I'm trying to migrate an existing application to sandboxing (on Lion).
    >
    > It is just a regular document-based app, doesn't do anything wild.
    >
    > I've enabled user selected file access (read/write).
    >
    > Sometimes I get this message in the console:
    > 5/21/12 3:28:35.002 AM sandboxd: ([7221]) MyAppName(7221) deny iokit-open AppleGraphicsPolicyClient
    >
    > With trace:
    > OS Version:      Mac OS X 10.7.3 (11D50b)
    > Report Version:  7
    >
    > Backtrace:
    > 0  libsystem_kernel.dylib        0x00007fff8ef9d67a mach_msg_trap + 10
    > 1  libsystem_kernel.dylib        0x00007fff8ef9cd71 mach_msg + 73
    > 2  IOKit                          0x00007fff9128f923 io_service_open_extended + 241
    > 3  IOKit                          0x00007fff9124a5d8 IOServiceOpen + 45
    > 4  OpenGL                        0x00007fff8d5be95b
    > 5  OpenGL                        0x00007fff8d5bdbfe
    > 6  libsystem_c.dylib              0x00007fff88934e06 pthread_once + 86
    > 7  OpenGL                        0x00007fff8d5b6ab4 CGLSetOption + 24
    > 8  AppKit                        0x00007fff89eb8501 createPixelFormat + 37
    > 9  AppKit                        0x00007fff89eb84aa -[NSOpenGLPixelFormat initWithAttributes:] + 70
    >
    >
    > Also, I keep getting these errors in the console when the app tries to autosave:
    >
    > 5/21/12 11:29:42.000 AM sandboxd: ([710]) MyAppName(710) deny file-write-data /Users/me/Library/Autosave Information/Unsaved MyAppName Document 3.myappextension
    >
    >
    >
    > I also get messages like these, they seem to be triggered by my app from time to time:
    > 5/21/12 4:06:58.187 AM com.apple.XType.FontHelper: FontHelper:  message received. (<dictionary: 0x106724d10> { count = 2, contents =
    > "restricted" => <bool: 0x7fff784e69e0>: true
    > "query" => <string: 0x106726d00> { length = 113, contents = "com_apple_ats_name_postscript == "OriyaSangamMN-Bold" && kMDItemContentTypeTree != com.adobe.postscript-lwfn-font" }
    > })
    > 5/21/12 4:06:58.187 AM com.apple.XType.FontHelper: AutoActivation:  scopes (
    > "/Library/Application Support/Apple/Fonts"
    > )
    >
    > The app itself appears to be working fine (even the autosave...), but these console messages are making me nervous.
    > What am I supposed to do about this? Is it OK to submit an app that generated these messages for App Store Review?
    >
    > Thanks,
    > Peter
  • On May 21, 2012, at 9:41 AM, Peter Krajčík wrote:

    > Hello,
    > I'm trying to migrate an existing application to sandboxing (on Lion).
    >
    > It is just a regular document-based app, doesn't do anything wild.
    >
    > I've enabled user selected file access (read/write).
    >
    > Sometimes I get this message in the console:
    > 5/21/12 3:28:35.002 AM sandboxd: ([7221]) MyAppName(7221) deny iokit-open AppleGraphicsPolicyClient

    If you have a dual-GPU Mac, then certain OpenGL pixel formats used by classes that use OpenGL, such as NSOpenGLView, IKImageBrowserView, and CALayer, will attempt to engage the discrete GPU using IOKit when they are setting up. If they're not successful, then you'll most likely see a lot of "invalid pixel format" log messages and drawing glitches. You might want to check to make sure your usage of any of those classes isn't causing drawing glitches to occur.

    I'm not sure how to tell any of those classes not to use the discrete GPU, and I'd also like to know how to do that. Does anyone know, and if so, then how does one do it?

    > What am I supposed to do about this? Is it OK to submit an app that generated these messages for App Store Review?

    It's always okay to submit an app. Whether it will be accepted or rejected depends on whether or not it complies with the review guidelines, which are posted on ADC.

    Nick Zitzmann
    <http://www.chronosnet.com/>
previous month may 2012 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today