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

Crash with exit code 134 on macOS 11.6.x (Big Sur) #50

Open
twyatt opened this issue Jan 10, 2022 · 2 comments
Open

Crash with exit code 134 on macOS 11.6.x (Big Sur) #50

twyatt opened this issue Jan 10, 2022 · 2 comments
Labels

Comments

@twyatt
Copy link
Member

twyatt commented Jan 10, 2022

$ ./gradlew clean runDebugExecutableMacosX64

..

* What went wrong:
Execution failed for task ':app:runDebugExecutableMacosX64'.
> Process 'command 'sensortag/app/build/bin/macosX64/debugExecutable/sensortag.kexe'' finished with non-zero exit value 134
@twyatt
Copy link
Member Author

twyatt commented Jan 10, 2022

Further investigation revealed that the issue was due to the lack of Bluetooth permission.
Sample macOS app should check for Bluetooth permission and request permission as needed.

Determined the issue by opening Console and going to Crash Reports for sensortag.kexe:

Crash dump
Thread 3 Crashed:: Dispatch queue: com.apple.root.default-qos
0   libsystem_kernel.dylib          0x00007fff2064956e __abort_with_payload + 10
1   libsystem_kernel.dylib          0x00007fff2064afbd abort_with_payload_wrapper_internal + 80
2   libsystem_kernel.dylib          0x00007fff2064afef abort_with_payload + 9
3   com.apple.TCC                   0x00007fff24ee2f72 __TCC_CRASHING_DUE_TO_PRIVACY_VIOLATION__ + 163
4   com.apple.TCC                   0x00007fff24ee37a3 __TCCAccessRequest_block_invoke.130 + 498
5   com.apple.TCC                   0x00007fff24ee13c8 __tccd_send_message_block_invoke + 573
6   libxpc.dylib                    0x00007fff203a3a9c _xpc_connection_reply_callout + 36
7   libxpc.dylib                    0x00007fff203a3a24 _xpc_connection_call_reply_async + 69
8   libdispatch.dylib               0x00007fff204b2870 _dispatch_client_callout3 + 8
9   libdispatch.dylib               0x00007fff204cb035 _dispatch_mach_msg_async_reply_invoke + 375
10  libdispatch.dylib               0x00007fff204c251c _dispatch_kevent_worker_thread + 1390
11  libsystem_pthread.dylib         0x00007fff206594a5 _pthread_wqthread + 386
12  libsystem_pthread.dylib         0x00007fff2065842f start_wqthread + 15

@twyatt
Copy link
Member Author

twyatt commented Jan 10, 2022

Workaround is to add terminal app to list of apps that are allowed Bluetooth access in System Preferences > Security & Privacy.

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

No branches or pull requests

1 participant