Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Crash in the Location module using macOS Catalina 10.15.6



  • Hello,

    I have a problem with the Location module using macOS Catalina 10.15.6 and XCode 11.6 and Qt 5.15.0.
    The program doesn't crash on my Hackintosh (I don't have a Mac) but Apple connect services tell me that the program crashes on their machine with this log :

    ``
    Thread 2 Crashed:: Dispatch queue: com.apple.CoreLocation.0x7fc0be744150
    0 libsystem_kernel.dylib 0x00007fff6d84333a __pthread_kill + 10
    1 libsystem_pthread.dylib 0x00007fff6d8ffe60 pthread_kill + 430
    2 libsystem_c.dylib 0x00007fff6d7ca808 abort + 120
    3 com.apple.corelocation 0x00007fff3460e273 0x7fff34606000 + 33395
    4 com.apple.locationsupport 0x00007fff58e5f83c 0x7fff58e50000 + 63548
    5 com.apple.locationsupport 0x00007fff58e5f79b 0x7fff58e50000 + 63387
    6 com.apple.locationsupport 0x00007fff58e5316c CLConnection::handleMessage(std::__1::shared_ptr<CLConnectionMessage>) + 156
    7 com.apple.locationsupport 0x00007fff58e5b321 0x7fff58e50000 + 45857
    8 com.apple.locationsupport 0x00007fff58e5c4eb 0x7fff58e50000 + 50411
    9 libxpc.dylib 0x00007fff6d94022c _xpc_connection_call_event_handler + 56
    10 libxpc.dylib 0x00007fff6d93f13b _xpc_connection_mach_event + 934
    11 libdispatch.dylib 0x00007fff6d6a26f8 _dispatch_client_callout4 + 9
    12 libdispatch.dylib 0x00007fff6d6b7bc9 _dispatch_mach_msg_invoke + 435
    13 libdispatch.dylib 0x00007fff6d6a7af6 _dispatch_lane_serial_drain + 263
    14 libdispatch.dylib 0x00007fff6d6b871c _dispatch_mach_invoke + 481
    15 libdispatch.dylib 0x00007fff6d6a7af6 _dispatch_lane_serial_drain + 263
    16 libdispatch.dylib 0x00007fff6d6a85d6 _dispatch_lane_invoke + 363
    17 libdispatch.dylib 0x00007fff6d6b1c09 _dispatch_workloop_worker_thread + 596
    18 libsystem_pthread.dylib 0x00007fff6d8fca3d _pthread_wqthread + 290
    19 libsystem_pthread.dylib 0x00007fff6d8fbb77 start_wqthread + 15

    
    I didn't have any problems with High Sierra and XCode 9...
    
    Any ideas? Thanks!


  • Thank you @SGaist!

    Yes, indeed! It was necessary to define the variable NSLocationUsageDescription (which is essential to request the user's aurorization) in the plist file of the application!

    Thank you!


  • Lifetime Qt Champion

    Hi,

    Just a wild guess: did you request the permission to use the location data ?



  • Thank you @SGaist!

    Yes, indeed! It was necessary to define the variable NSLocationUsageDescription (which is essential to request the user's aurorization) in the plist file of the application!

    Thank you!


Log in to reply