Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug 2021.3.x LTS macOS resizing Player crashes game

Discussion in 'Universal Render Pipeline' started by Jiaquarium, Jun 19, 2023.

  1. Jiaquarium

    Jiaquarium

    Joined:
    Mar 22, 2020
    Posts:
    40
    On macOS builds if Project Settings/Resizable Window is set true, if you grab a corner of the player window and begin stress-testing by resizing it smaller and larger continuously for a few seconds (without letting go of the initial mouse click that grabbed the corner of the player), the app will eventually freeze and crash.

    I've tested this extensively with a bare template URP 3D project on several 2021.3 LTSs (2021.3.1, 2021.3.5, and 2021.3.27).

    Is there a fix/workaround to this (other than disabling resizable window)?

    I've filed this bug as report IN-44200.

    Here is the Player.log once the app freezes (truncated since the logs repeat just with different sizes and I've replaced my name with "username"):

    Code (CSharp):
    1. Mono path[0] = '/Users/username/NightLoops/Versions/MAC/Test Original2021.3.27f.app/Contents/Resources/Data/Managed'
    2. Mono config path = '/Users/username/NightLoops/Versions/MAC/Test Original2021.3.27f.app/Contents/MonoBleedingEdge/etc'
    3. Initialize engine version: 2021.3.27f1 (ca3ffb99bcc6)
    4. [Subsystems] Discovering subsystems at path /Users/username/NightLoops/Versions/MAC/Test Original2021.3.27f.app/Contents/Resources/Data/UnitySubsystems
    5. GfxDevice: creating device client; threaded=1; jobified=0
    6. preferred device: Apple M1 Pro (high power)
    7. Metal devices available: 1
    8. 0: Apple M1 Pro (high power)
    9. Using device Apple M1 Pro (high power)
    10. Initializing Metal device caps: Apple M1 Pro
    11. Begin MonoManager ReloadAssembly
    12. - Completed reload, in  0.051 seconds
    13. Metal RecreateSurface[0x103e24270]: surface size 3024x1890
    14. UnloadTime: 0.677083 ms
    15. Metal RecreateSurface[0x103e24270]: surface size 3024x1832
    16. Metal RecreateSurface[0x103e24270]: surface size 2632x1628
    17. Metal RecreateSurface[0x103e24270]: surface size 2514x1552
    18. Metal RecreateSurface[0x103e24270]: surface size 2300x1430
    19. Metal RecreateSurface[0x103e24270]: surface size 1654x1026
     
  2. xtytyx

    xtytyx

    Joined:
    Dec 29, 2017
    Posts:
    24
    im having this same issue. but I dont have resize window enabled, but i have this exact same bug behaviour any time
    1. enable disable vsync
    2. change resolution via settings menu
    3. randomly as im walking around in the game

    all with the same symptoms as you posted
     
  3. Jiaquarium

    Jiaquarium

    Joined:
    Mar 22, 2020
    Posts:
    40
    It sounds like your issue is dealing with the Editor not the Player though.

    Unity responded to my request with "Won't Fix." Bummer.
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,977
    Yup, it feels like they are hardening up on what they accept as valid bugs, I also got won’t fixes in a row.
     
  5. xtytyx

    xtytyx

    Joined:
    Dec 29, 2017
    Posts:
    24
    no for me, it is an in game like settings menu when built as standalone using il2cpp on release mode. (escape key -> video settings -> change resolution / vsync / fullscreen)
    inside the standalone build when i run it on a mac, whenever i do any of those things i get all the same symptoms as you.

    rip