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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Screenmanager Resolution changing after system crash

Discussion in 'Windows' started by andersonbs, Sep 5, 2022.

  1. andersonbs

    andersonbs

    Joined:
    Sep 5, 2022
    Posts:
    2
    I am developing an sample app for a embarked computer running at a kiosk.
    When battery fails the system shuts down abruptly and when the app is re-initiated, its width resolution is changed to 1:1 format. This change can be seen in Registry.

    Screenmanager Resolution Width_h182942802 
    changes to 1280 to 800

    edit: Width also jumps to 800 when a new monitor is added/removed while app is running.

    To fix it, final user has to open Registry and setup a value manually, which is not ideal.

    Coming from similar posts, this solution did not work for me. I don't clearly understand why resolution is changing from the compiled built version, or why it persists to return to a wrong value.

    Current building settings for resolution:
    screen.png
     
    Last edited: Sep 6, 2022
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,516
    Which Unity version is this on?
     
  3. andersonbs

    andersonbs

    Joined:
    Sep 5, 2022
    Posts:
    2
    2012.3.7f1

    Just adding to the issue, eventhough I am expecting the app to restore or use default resolution as a permanent state, at every crash, secondary screen change (turns on/off), also if the screen rotates (it is windows os listerning to orientation events), the app will jump to 800 width screen. And by quiting the app at this point, Screenmanager will add a new variable overriding default resolution.
     
    Last edited: Sep 16, 2022
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,516
    Can you upgrade to Unity 2021.3.9f1 and see if it fixes it? We had a known bug that caused the game sometimes misdetect resolution at startup.