Search Unity

Unity crash : invalid parameter in module UnityPlayer.dll

Discussion in 'Editor & General Support' started by pauline_frey, Jan 21, 2019.

  1. pauline_frey

    pauline_frey

    Joined:
    Aug 6, 2018
    Posts:
    3
    Hi,

    I have a Unity crash when i start my .exe file.
    Did someone already has this kind of error or has a idea to fix it ?
    "UnityPlayer.dll called a function with an invalid parameter in module UnityPlayer.dll"

    I'm quite lost, don't really know where to search.
    This problem occure when I change my exe versoin to 5.4build to 2018.2

    Thanks
     
  2. pauline_frey

    pauline_frey

    Joined:
    Aug 6, 2018
    Posts:
    3
    Still not fix my problem.
    I try to create a empty project on 2018.2 and .3 (it crash), but not in 5.4 Unity version.
    Device prerequisite looks good.

    If someone have a idea, this bug is really weird, I find nothing about it on internet :(
    I attach a zip with my log error and dmp files. (One generate when UnityCrashHandler.exe and the other without it).
     

    Attached Files:

    Last edited: Jan 24, 2019
  3. pauline_frey

    pauline_frey

    Joined:
    Aug 6, 2018
    Posts:
    3
    Capture of the crash stack :
     

    Attached Files:

  4. ElicaIWD

    ElicaIWD

    Joined:
    Sep 12, 2017
    Posts:
    2
    Hello

    We finally found where the problem was coming from, and have a workaround: our builds are committed on a git repository with autocrlf which transforms all XML and config file line endings in ProjectName_Data folder.
    So once we pull the build, we no longer have the original LF endings, but CRLF ones and apparently this makes loading of UnityPlayer.dll crash.
    The new UnityCrashHandler.exe seems to be able to recover from this, but for me it's still a bug.

    In the meantime we created a .gitattributes file which sets the line endings of all files in our Builds folder to LF:
    Code (JavaScript):
    1. /build/** text eol=lf
    Hopefully this will be fixed one day