Reproduction steps:
1. Open the attached project: "webcamtexturecrash.zip"
2. Open Scenes/SampleScene
3. Enter Play mode
Expected result: Project continues working
Actual result: Project crashes
Reproducible with: 2019.4.37f1, 2020.3.35f1, 2021.3.3f1, 2022.1.1f1, 2022.2.0a13
Reproducible with: macOS 12.2 (Intel)
Stack trace:
Thread 0x700009a81000 may have been prematurely finalized
#0 0x007ff818291dfe in __abort_with_payload
Thread 0x700009a81000 may have been prematurely finalized
#1 0x007ff8182938c5 in __darwin_check_fd_set_overflow.cold.1
Thread 0x700009a81000 may have been prematurely finalized
#2 0x007ff81d2335c2 in _TCC_CRASHING_DUE_TO_PRIVACY_VIOLATION_
Thread 0x700009a81000 may have been prematurely finalized
#3 0x007ff81d233d2b in __TCCAccessRequest_block_invoke.142
Thread 0x700009a81000 may have been prematurely finalized
#4 0x007ff81d231825 in __tccd_send_message_block_invoke
Thread 0x700009a81000 may have been prematurely finalized
#5 0x007ff817ff16d5 in _xpc_connection_reply_callout