Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Month must be in range [1-12]!

Discussion in '2021.1 Beta' started by Neonlyte, Jan 1, 2021.

  1. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    505
    Issue ID: 1302915

    I got these occasional error message today in the editor every every minute. No stack trace whatsoever. What's going on?

    QQ20201231-231439@2x.png
     
    Last edited: Jan 1, 2021
  2. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    505
    Editor log:
    More Logs
    I left the editor idle for a while, so the context does not seem to be related to the error messages.
     
  3. SecureShellProtocol

    SecureShellProtocol

    Joined:
    Dec 25, 2019
    Posts:
    1
    I'm getting the same error...
    Is it something to do with the new year, because this is getting very annoying(seeing a bunch of errors inside your console)
     
    phobos2077 and Ruchir like this.
  4. johanolofsson

    johanolofsson

    Joined:
    Nov 21, 2018
    Posts:
    94
    I got the same, really annoying. Unfortunately this is hardly the only error that keeps popping up for no good reason. They should really consider adding support for regex filters to disable arbitrary messages in the console.
     
  5. AdamLacko

    AdamLacko

    Joined:
    Oct 10, 2017
    Posts:
    41
    I installed 2021.1.0b1 yesterday and didn't see this error up until this morning (1.1.2021) when it popped up. From which I assume a year-switch-related issue maybe?
     
    Thygrrr and makaka-org like this.
  6. AyushParida

    AyushParida

    Joined:
    Aug 15, 2018
    Posts:
    2
    I also thing the reason for this error is the same. Trying to resolve it but still can't figure it out.
     
  7. MasoInar

    MasoInar

    Joined:
    Feb 20, 2014
    Posts:
    125
    I think that some method that Unity uses, expects month in 1-12 range, but Unity returns months in 0-11 range
     
  8. johanolofsson

    johanolofsson

    Joined:
    Nov 21, 2018
    Posts:
    94
    Yes this indeed seems to be the case. Setting current date to Feb 1st makes the errors stop.
     
  9. Deleted User

    Deleted User

    Guest

    ah... its January! (happy new year) month 0, is this actually "harmful"?
     
  10. johanolofsson

    johanolofsson

    Joined:
    Nov 21, 2018
    Posts:
    94
    It seems to be coming once every min so probably some part of the editor checking for updates or similar. Most likely not harmful and will stop at Feb 1st if not fixed by then.
     
  11. print_helloworld

    print_helloworld

    Joined:
    Nov 14, 2016
    Posts:
    231
    They could've at least clamped it within the min and max acceptable values if they didn't test the month indexing...
     
  12. print_helloworld

    print_helloworld

    Joined:
    Nov 14, 2016
    Posts:
    231
    I submitted a bug ticket, case ID is 1302978
    Edit: Ah I see @Neonlyte also submitted it, accidental duplicate, oops
     
    Last edited: Jan 1, 2021
    richardkettlewell and adamgolden like this.
  13. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,642
    Thanks for the report, folks. A fix is on its way to 2021.1.
     
    karl_jones, fuzzy3d, Ruchir and 7 others like this.
  14. zb2b

    zb2b

    Joined:
    Nov 13, 2016
    Posts:
    1
    Same issue after Jan 1st. Thanks for the report!
     
  15. OttoInteractive

    OttoInteractive

    Joined:
    Jul 29, 2020
    Posts:
    3
    Same Here, The options always open to go to an older version
     
  16. Deleted User

    Deleted User

    Guest

    you can downgrade projects made with a beta ?
     
  17. biswasarnav2180

    biswasarnav2180

    Joined:
    Dec 20, 2020
    Posts:
    4
    i am annoyed with this bug plz fix thos before new year this error is not coming !!
     
  18. biswasarnav2180

    biswasarnav2180

    Joined:
    Dec 20, 2020
    Posts:
    4
    :(fix it its popping continuosly
     
  19. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    505
    QA confirmed the issue, in case anyone's interested. :p
     
    Peter77 and adamgolden like this.
  20. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,574
    adamgolden likes this.
  21. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,516
    Haha reminds me of the new millennium bug back in 2000 !

    I get the same bug too! :D
     
    adamgolden likes this.
  22. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,628
    Off by one bugs are among the hardest things in computer science, OKAY? :D
     
  23. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    Stuff like this really make me wish Unity had some "Always ignore this error" -option. It's not the first time I have wished they had such thing for the console..

    Even if the ignore thing was only valid for that project and engine version, it would make some issues so much easier to tolerate :)

    I think I started to use the collapse option to prevent such errors from flooding the whole log at some point (one can fix errors from available code only).
     
    rmb303, Ruchir and adamgolden like this.
  24. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,516
    I must say, after all these years of using unity, this has to be one of top 5 cuttest.
     
  25. phobos2077

    phobos2077

    Joined:
    Feb 10, 2018
    Posts:
    350
    I just wish that someday maybe Unity will grow up and adopt the policy of testing their product on a bunch of "test stands" (like 20-30 different projects spanning across all major platforms, render pipelines, DOTS, other major packages) - just opening ALL of them and making sure there is no errors on first open/import and subsequent open.

    I forgot when was the last time I opened a project and didn't see any errors/warnings.. (if ever). Users getting used to ignoring your errors is BAD for everyone - eventually important errors are being skipped, games ship with more bugs and players get crappier games, stigmatizing Unity even more...

    (don't know about others but here in RU, Unity is regarded as kinda of a mark for poor quality games, it's ingrained so deeply in minds, almost impossible to convince them that things have changed... until we get some MAJOR successful blockbuster widely associated with Unity, this won't change..)
     
    m0guz likes this.
  26. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,642
    The fix has landed and will ship in beta 2.
     
    chez_dev, Cnfnbcn, rmb303 and 8 others like this.
  27. iichiversii

    iichiversii

    Joined:
    Nov 23, 2011
    Posts:
    139
    And when is that release planned?
     
  28. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,642
    I believe it's scheduled for Wednesday, though as always, it may be held up if QA identify shipstopping issues between now and then.
     
    Kmsxkuse, Cnfnbcn and phobos2077 like this.
  29. Yotopihi

    Yotopihi

    Joined:
    Oct 21, 2020
    Posts:
    1
    Since this is quite annoying, ill just make it 2020 until its fixed haha
     
  30. Kmsxkuse

    Kmsxkuse

    Joined:
    Feb 15, 2019
    Posts:
    304
    superpig likes this.
  31. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,516
    I can confirm that my "cute" bug has now disappeared!
     
    adamgolden and superpig like this.
  32. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    937
    This january feels indeed as 13th month.
     
    Ruchir, Ruslank100 and Lurking-Ninja like this.
  33. biswasarnav2180

    biswasarnav2180

    Joined:
    Dec 20, 2020
    Posts:
    4
    I HAVE THE SAME ERROR :(:(
     
  34. biswasarnav2180

    biswasarnav2180

    Joined:
    Dec 20, 2020
    Posts:
    4
    LOL XD
     
  35. chez_dev

    chez_dev

    Joined:
    Jun 5, 2020
    Posts:
    5
    I've been getting the same error. It hasn't seemed to affect anything, I think the only thing that will be affected is if you try to reach the system set date. I think Unity thinks we're in the 13th month of 2020, which obviously doesn't exist. My worst nightmare is having to go thru another month of this god-forbidden year..