UNetWeaver Exception

NodeCanvas Forums Support UNetWeaver Exception

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13657
    martindevans
    Participant

    After trying out NodeCanvas in a standalone project earlier this week (which was fine) I tried to import it into my main project today. This project is using ECS with the Unity incremental compiler. The project compiles fine until NodeCanvas is imported and then I get this error every time:

    > UNetWeaver error: Exception :System.IO.IOException: Sharing violation on path Temp\Assembly-CSharp.pdb

    Has anyone seen this before? Any suggestions on how to fix it?

    I’m not using UNet in the project and don’t plan to – so I’d be happy with simply deleting the files in NC which have anything to do with UNet (if that’s a small number of files).

    #13658
    sugoidev
    Participant

    That’s a known issue with the Incremental compiler. It has been going for quite a while now.
    Take a look at this thread: https://forum.unity.com/threads/unity-incremental-c-compiler.523993/
    I made a few comments there with a workaround to disable the weaver by patching its DLL.

    In my project, I delete anything that uses a NetworkBehavior so it won’t trigger the UNet weaver.

    #13659
    sugoidev
    Participant

    Double post, sorry.

    #13660
    martindevans
    Participant

    I think I managed to fix this by deleting all the stuff in the project to do with networking. Weirdly just commenting out the contents and making it derive from MonoBehaviour wasn’t enough – I had to delete the entire file before it was fixed!

    #13669
    Gavalakis
    Keymaster

    Indeed, this is an ECS bug at the moment.
    For your information, in NodeCanvas there is only a single file that uses NetworkBehavior, that being the SyncBlackboard.cs file, thus you might want to delete that as well in case you want to use ECS at it’s current state. SynBlackboard.cs has no other dependenices, so it is fine to simply delete it.

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.