Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-21905

Privacy violation in macOS when running program

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.8.0, Qt Creator 4.8.1
    • All Other Issues
    • None
    • macOS 10.14, Qt Creator 4.8.1, Qt 5.12.0
    • macOS

    Description

      New macOS 10.14 Mojave added new Info.plist entries such as NSCameraUsageDescription to show some resource usage description. It seems there is some issue with this permissions and running application from Qt Creator. App that uses some resources crashes when it runs from Qt Creator with following traceback:

       

      Thread 4 Crashed:: Dispatch queue: com.apple.root.default-qosThread 4 Crashed:: Dispatch queue: com.apple.root.default-qos0   libsystem_kernel.dylib         0x00007fff5a66301e _abort_with_payload + 101   libsystem_kernel.dylib         0x00007fff5a65e541 abort_with_payload_wrapper_internal + 822   libsystem_kernel.dylib         0x00007fff5a65e573 abort_with_payload + 93   com.apple.TCC                 0x00007fff55249d1c __CRASHING_DUE_TO_PRIVACY_VIOLATION_ + 1734   com.apple.TCC                 0x00007fff55248082 __TCCAccessRequest_block_invoke.91 + 6475   com.apple.TCC                 0x00007fff55247c05 __tccd_send_message_block_invoke + 2426   libxpc.dylib                   0x00007fff5a742989 _xpc_connection_reply_callout + 367   libxpc.dylib                   0x00007fff5a742910 _xpc_connection_call_reply_async + 828   libdispatch.dylib             0x00007fff5a4bde39 _dispatch_client_callout3 + 89   libdispatch.dylib             0x00007fff5a4d43b0 _dispatch_mach_msg_async_reply_invoke + 32210  libdispatch.dylib             0x00007fff5a4cca7c _dispatch_kevent_worker_thread + 139011  libsystem_pthread.dylib       0x00007fff5a6fe615 _pthread_wqthread + 41912  libsystem_pthread.dylib       0x00007fff5a6fe405 start_wqthread + 13

      To reproduce issue under macOS 10.14.0 or higher run from Qt Creator declarative-camera example.

      Interesting that if you debugging project (cmd+Y, not cmd+R) it runs without crash and shows permission dialog. It also works fine if you run it directly from Finder without Qt Creator.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              con Eike Ziller
              tanshihaj tanshihaj
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes