Reproduction steps:
1. Click on the Console window
2. Click on the Game view window
3. Enter the Play mode
Expected result: The Play mode is entered, no Console window flickering when clicking on the Console or the Game view windows and Editor doesn't crash while using it
Actual result: The Play mode is not entered, the Console window flickers and the Editor crashes after using it for some time
Reproducible with: 2022.3.4f1, 2022.3.6f1
Reproducible on: macOS 13.4.1 (Silicon)
Not reproducible on: No other environment tested
First few lines of stack trace:
Thread 0x16fa47000 may have been prematurely finalized
#0 0x000001aa370724 in __pthread_kill
Thread 0x16fa47000 may have been prematurely finalized
#1 0xc6058001aa2b5ae8 in abort
Thread 0x16fa47000 may have been prematurely finalized
#2 0xdb660001aa2b4e44 in err
Thread 0x16fa47000 may have been prematurely finalized
#3 0x8c190001c70e13f0 in -[IOGPUMetalDeviceShmem initWithDevice:shmemSize:shmemType:].cold.6
Thread 0x16fa47000 may have been prematurely finalized
#4 0xa03e0001c70cebd8 in -[IOGPUMetalDeviceShmem dealloc]
Note: The Editor will crash some time later while using it