Search Unity

  1. We would like to hear your feedback about Unity and our products. Click here for more information.
    Dismiss Notice

Error Copying assembly from 'Temp/com.unity.multiplayer-hlapi.Runtime.dll' to 'Library/ScriptAssembl

Discussion in '2019.1 Beta' started by Binouze, Apr 16, 2019.

  1. Binouze

    Binouze

    Joined:
    Mar 2, 2017
    Posts:
    61
    Hi,
    On my game project, everytime I compile I have the same error:
    Copying assembly from 'Temp/com.unity.multiplayer-hlapi.Runtime.dll' to 'Library/ScriptAssemblies/com.unity.multiplayer-hlapi.Runtime.dll' failed

    The compile works but I have to restart unity after every compilation.
    This is very annoying when making lots of compilation for testing device specific behaviors.

    I filled a bug report with ID: 1146230
     
  2. bmarinariSparky

    bmarinariSparky

    Joined:
    Jan 5, 2018
    Posts:
    7
    Did you (or anyone) find a workaround for this? I can't build Standalone builds because of this. It seems to randomly succeed on maybe 1/20 attempts. Another engineer has tried to fix this, and he can see the "missing" file in the Temp folder, and then it gets deleted before the error is generated. It is also sometimes Timeline.dll in our case.
     
  3. Binouze

    Binouze

    Joined:
    Mar 2, 2017
    Posts:
    61
    for "fixing" it if I can say fixing ... I just add some random compiler argument, this cause a recompilation and most of time it success ...
     
  4. bmarinariSparky

    bmarinariSparky

    Joined:
    Jan 5, 2018
    Posts:
    7
    Thanks for the reply. I found that in our case this was caused by recompilation of scripts happening when we attempted to make a Standalone Build. This happens when you have "Auto Refresh" disabled. Re-enabling fixed this for us.
     
  5. Binouze

    Binouze

    Joined:
    Mar 2, 2017
    Posts:
    61
    Unfortunately I have Auto Refresh already enabled ;)
     
  6. unity_LzBuY34i8W2htg

    unity_LzBuY34i8W2htg

    Joined:
    Dec 27, 2017
    Posts:
    9
  7. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    496
  8. lukaszunity

    lukaszunity

    Unity Technologies

    Joined:
    Jun 11, 2014
    Posts:
    411
    This is an issue with the "com.unity.multiplayer-hlapi" package that opens the file com.unity.multiplayer-hlapi.Runtime.dll and does not close it properly, so when we try to copy it, the copying fails, because the file is locked.

    This should have been fixed in version 1.0.2 of the package. The workaround would be the remove the package from the manifest. given that you do not use UNet.
     
  9. Tom-Mensink

    Tom-Mensink

    Joined:
    Jul 27, 2017
    Posts:
    8
    Hi Unity, @lukaszunity, this issue is very persistant, in multiple Unity versions. It is becoming more than annoying and takes a lot of development time each day. It has been around for at least a year now and I think it is time you take this seriously. There are so many reports of this issue from many different developers, and it concerns not only this dll as in the tread I post now, but with different dlls every time. You Unity guys always ask the same question like which Unity version, what did you do, etc. but the bottom line is that it is a general issue in all later versions and you are not taking this seriously enough. It is rediculous to request us to exclude folders from virusscanners or something. That alone is a nonsense solution and we did not have this problem in the past when Unity was as stable as a house. So come on guys help us and instead of adding new features that make Unity even more unstable (like the horrific integration of Vuforia in Unity) make it more stable please.
     
    olonge likes this.