Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug 2019.3 APIUpdater failes if username contains whitespace

Discussion in '2019.3 Beta' started by ReaktorDave, Nov 29, 2019.

  1. ReaktorDave

    ReaktorDave

    Joined:
    May 8, 2014
    Posts:
    139
    I'm trying to upgrade my project from 2019.2 to 2019.3. However, the APIUpdater drops the following error message four times:
    Unhandled Exception:
    System.IO.DirectoryNotFoundException: Could not find a part of the path "$pathToUnityProject\$LastPartOfUsernameAfterWhitespaceCharacter\AppData\Local\Temp\tmp3f9769a6.tmp".

    Let's say your OS username is "Max Mustermann", making the directory to your %LocalAppData% variable look like this:
    C:\Users\Max Mustermann\AppData\Local

    In my case, the APIUpdater is expecting my LocalAppData temp directory to be in
    D:\Projects\NameOfMyUnityProject\Mustermann\AppData\Local\Temp

    This, of course, is doomed to fail. I think this should definitely fixed before releasing the 2018.3!

    Full error message:
    https://pastebin.com/f8YL3QM3
     
    Last edited: Nov 29, 2019
    meanmonkey likes this.
  2. meanmonkey

    meanmonkey

    Joined:
    Nov 13, 2014
    Posts:
    148
    Can reproduce!
     
  3. ReaktorDave

    ReaktorDave

    Joined:
    May 8, 2014
    Posts:
    139
    Yeah, I could workaround this issue by creating a new user account on my OS with the username "asdf". Upgrading the same project from that account worked. Lol
     
    meanmonkey likes this.
  4. meanmonkey

    meanmonkey

    Joined:
    Nov 13, 2014
    Posts:
    148
    Thx for that, I was thinking about that too ! :D
     
  5. AdrianoVerona_Unity

    AdrianoVerona_Unity

    Unity Technologies

    Joined:
    Apr 11, 2013
    Posts:
    317
    Hi @ReaktorDave

    Can you share your Editor.log when this happens?

    I'll try to reproduce locally also

    Best

    Adriano
     
  6. ReaktorDave

    ReaktorDave

    Joined:
    May 8, 2014
    Posts:
    139
  7. AdrianoVerona_Unity

    AdrianoVerona_Unity

    Unity Technologies

    Joined:
    Apr 11, 2013
    Posts:
    317
    Last edited: Dec 3, 2019
  8. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,454
    This is great, can't wait for the fix as this issue has held up a project I updated recently some scripts are misbehaving, must be a regression as my user directory never changed
     
  9. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,454
  10. AdrianoVerona_Unity

    AdrianoVerona_Unity

    Unity Technologies

    Joined:
    Apr 11, 2013
    Posts:
    317
    Off by one error :).

    It landed in 2020.1.0a17

    Best

    Adriano
     
  11. ReaktorDave

    ReaktorDave

    Joined:
    May 8, 2014
    Posts:
    139
    Thanks for fixing. Will it also be included in the next 2019 releases?
     
  12. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    The fix is going to be in one of the next 2019.3 builds.
     
  13. ReaktorDave

    ReaktorDave

    Joined:
    May 8, 2014
    Posts:
    139