Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Il2CPP fatal error C1071: unexpected end of file found in comment

Discussion in 'Windows' started by Bastienre4, Mar 2, 2021.

  1. Bastienre4

    Bastienre4

    Joined:
    Jul 8, 2014
    Posts:
    191
    Hello.

    We've updated from Unity 2020.2.1f1 to the 2020.2.6f1 and our build now fails because of this error:
    "fatal error C1071: unexpected end of file found in comment"
    I tried removing the il2cpp cache in the Library folder but it still fail.
    Mono builds work just fine.

    What can I do?
    Thanks and have a nice day
     
  2. timke

    timke

    Joined:
    Nov 30, 2017
    Posts:
    407
    Does the error give you a file/line reference? Can you post the offending code from the IL2CPP output?
    Also, did you build to a new "clean" output folder?
     
  3. Bastienre4

    Bastienre4

    Joined:
    Jul 8, 2014
    Posts:
    191
    Yes it gave us a file but no line. It seemed to be related to i2 localization (an asset store package).
    I went to check the cpp file and i didn't see any strange stuff. I updated the package version and it seem to be working now. From our VCS I guess the issue was linked to a c# line containing a hardcoded password with some weird characters.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    Can you report a bug on this?
     
    lllisten likes this.
  5. SilverMalibu

    SilverMalibu

    Joined:
    Sep 7, 2014
    Posts:
    5
    I may have encountered the exact same problem, the issue is with the StringObfuscatorPassword variable, in the StringObfucator.cs file of the I2 localization asset package.