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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

The weirdest bug/issue in Unity you've ever encountered.

Discussion in 'General Discussion' started by Master-Frog, Jul 1, 2015.

  1. Master-Frog

    Master-Frog

    Joined:
    Jun 22, 2015
    Posts:
    2,302
    Anyone?
     
    Meltdown likes this.
  2. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,796
    Anything to do with porting games to Window Store and Windows Phone 8 when those platforms were in the early days :rolleyes:
     
  3. N1warhead

    N1warhead

    Joined:
    Mar 12, 2014
    Posts:
    3,884
    When I'm fighting a bug that isn't even a bug, when some how got ticked on instead of off, (one of them why does it work when it shouldn't moments) lol.
     
  4. Marble

    Marble

    Joined:
    Aug 29, 2005
    Posts:
    1,266
    I had one of these recently. I couldn't figure out why I couldn't get a script to send email from networks outside my own. It was the weirdest thing: it sent fine when running in the Editor, and it sent fine when built to any standalone on my other machines, but it just didn't work for any of the game's users.

    I was tearing my hair out trying to find out if there was some sort of spam protection (SPF?) on my SMTP server refusing to authenticate unrecognized IPs. And user logs were reporting that the HELO my game was sending was not a proper FQDN. I tried some really hacky reflection tricks I saw that would let me set the HELO manually, but it turns out that mono 2.0 implemented their SmtpClient class in a different way than vanilla .NET, in a way that made it impossible to do... without upgrading to mono.NET 4+. Doh. As you can see, I was deep down a rabbit hole.

    So it turns out that I just had to switch my .NET equivalency from 2.0 subset to the full 2.0. One tick box. Why? Because apparently the security API that I was using to authenticate with the SMTP server was not in the subset API. Instead of throwing an error or even crashing, Unity just ignored the line where I set my mail credentials and I guess that's why the SMTP server was failing to authenticate.

    I still don't know why those standalones worked on my network. Perhaps there was some sort of whitelist server side. Either way, it sure was a wild goose chase.
     
    Master-Frog likes this.
  5. Not_Sure

    Not_Sure

    Joined:
    Dec 13, 2011
    Posts:
    3,541
    I placed a new object with and wrote a quick script, the screen flickered, then all of a sudden my character controller started to accelerate uncontrollably all over the scene.

    The object and script made no reference to the controller what so ever.

    I combed and combed the code to figure it out and disabled every component one by one, but had no luck.

    Then, for whatever reason, I moved my controller out of its parent and POOF! it worked again.

    There is absolutely no code connecting the parent to the controller that should have done this.
     
  6. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    I spent ages tracking down a 'bug' that ended up being my virus checker blocking access to the .dll compiled by my script editor. But only sometimes.
     
    CptDustmite and Master-Frog like this.
  7. Master-Frog

    Master-Frog

    Joined:
    Jun 22, 2015
    Posts:
    2,302
    This qualifies as a ghost story to me.
     
  8. Not_Sure

    Not_Sure

    Joined:
    Dec 13, 2011
    Posts:
    3,541
    Well, everyone I showed it to did started to have their faces show up as blurs in photos then died five days later.
     
    Master-Frog and Kiwasi like this.
  9. Not_Sure

    Not_Sure

    Joined:
    Dec 13, 2011
    Posts:
    3,541
  10. Aurore

    Aurore

    Director of Real-Time Learning Unity Technologies

    Joined:
    Aug 1, 2012
    Posts:
    3,106
    My mouse....and ONLY my mouse would hang the editor on startup every time without fail. Took me ages to pinpoint what was causing it, many devs scratching their heads over my shoulder when they wouldn't believe my repro.

    It's fixed now.
     
    Meltdown likes this.
  11. darkhog

    darkhog

    Joined:
    Dec 4, 2012
    Posts:
    2,218
    What was the issue on the odd chance I'd stumble upon this bug with my mouse?
     
  12. Aurore

    Aurore

    Director of Real-Time Learning Unity Technologies

    Joined:
    Aug 1, 2012
    Posts:
    3,106
    It was something to do with the input system in Unity going haywire with a specific logitech mouse, only on Mac though. It was an issue in 4.something (I can't remember) and was fixed as soon as they found the issue, so there shouldn't be a problem now. We tried a bunch of mice though, and no one else had or even had heard of this problem so it was super rare. The editor would eventually get going after about 10 minutes of thinking.
     
  13. drewradley

    drewradley

    Joined:
    Sep 22, 2010
    Posts:
    3,063
    I have an issue with mono sometimes pasting gibberish. I know it's not what I have on the clip board because I paste it into a note and it comes out fine,
     
  14. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,793
    My weirdest bugs were when using MonoDevelop. Like it would not read code that was there. I tried it again last month and after about ten hours I had something going on that shouldn't have..spent two hours commenting out and putting code back in..The code was 100% correct and then Unity crashed. I reopened it and used Unitron and the toolset worked just fine.
     
  15. darkhog

    darkhog

    Joined:
    Dec 4, 2012
    Posts:
    2,218
    Yeah, sometimes when trying to post some code into Answers or forums it spews bunch of chinese characters. Have to go through notepad as well. Minor nuisance though.
     
  16. drewradley

    drewradley

    Joined:
    Sep 22, 2010
    Posts:
    3,063
    Going through note pad doesn't fix it. I just paste it in there to save it while I restart mono. Have to do this every couple of hours.
     
  17. darkhog

    darkhog

    Joined:
    Dec 4, 2012
    Posts:
    2,218
    No, you're supposed to paste into notepad and then copy again from that notepad window. Then paste where you really want to paste it.
     
  18. drewradley

    drewradley

    Joined:
    Sep 22, 2010
    Posts:
    3,063
    Yeah, I know. Still pastes gibberish. I actually had it type gibberish a couple of times. Once it typed out about half a word and the typed the rest of it backwards. So it was like "backsdraw"
     
  19. darkhog

    darkhog

    Joined:
    Dec 4, 2012
    Posts:
    2,218
    Weird. Then we seem to have similar, but ultimately different issues.
     
  20. Master-Frog

    Master-Frog

    Joined:
    Jun 22, 2015
    Posts:
    2,302
    That's a feature you guys. You can't paste in Mono. Also Mono will rewrite script names inside Unity based on the currently open tab in Mono... regardless of what it is in the file system. Closing and opening a tab on a renamed script fixes it. So much weirdness.
     
  21. Xoduz

    Xoduz

    Joined:
    Apr 6, 2013
    Posts:
    135
    Twice this year I have encountered an issue where, during import of assets freshly downloaded from the Asset Store, hundreds of useless windows will open on my desktop... one for every process/service/dll that is running on my computer at the time o_O Haven't been able to reproduce it reliably, though.

    (Windows 7 64-bit, Unity 5.X versions)
     
  22. darkhog

    darkhog

    Joined:
    Dec 4, 2012
    Posts:
    2,218
    Weird. Try scanning computer for viruses. It may not be Unity's fault at all, however it is possible it's because of some weird interaction with other process running in the background such as aforementioned virus.
     
  23. Xoduz

    Xoduz

    Joined:
    Apr 6, 2013
    Posts:
    135
    The PC has been thoroughly checked. No other applications running at the time (except possibly Chrome) with a bare minimum of processes (I routinely check for rogue processes), all windows updates installed, uBlock and Ghostery extensions for browser, have ran all kinds of anti-virus checks, Malwarebytes scans, etc. with no results ^^ Couple of months between each time it happened :p
     
  24. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,384
    This is a known issue, theres some info floating around about it. Can't remember if it was sorted out or not.
     
  25. Stonewood1612

    Stonewood1612

    Joined:
    Sep 15, 2014
    Posts:
    32
    I had a strange encounter once with a navmesh agent / rigidbody issue on all enemies in the scene that were heading towards the player... all the sudden they all started spinning crazily at once, and sliding on the ground in one direction... as if some huge amount of wind 'pushed' them. Some even flew fast enough that they bounced off walls in a hilarious way. Then after a handful of seconds they all resumed traveling normally like nothing happened.

    I have not encountered this issue anymore since Unity 5, but I have a feeling it is not fixed. I basically fixed the issue myself by setting the rigidbodies to kinematic as a workaround.
     
  26. Batman_831

    Batman_831

    Joined:
    Oct 17, 2014
    Posts:
    106
    Once when i installed Unity 5 after formatting my PC, it kept on crashing on startup. I spent days finding solution on internet but none helped. In the end, it was just that I needed to run Unity 5 in the administrator mode. Still strange, because now I can start unity 5 without the "run as administrator" mode also.