Crash when deleting nodes or removing connections.

FlowCanvas Forums Support Crash when deleting nodes or removing connections.

Tagged: , , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2505
    ozeki
    Participant

    Hi!

    I noticed that in versions of Unity 2018.x and 2019.x, the editor will crash pretty often when deleting a node or a connection from a node. I can’t get this to reproduce 100% of the times but the error message I have in my Editor.log seems to say something about threads which would explain the difficulty to reproduce overall.

    I think this happens most often when I am working in a Prefab (or Nested Prefab) view but I am not sure. I think this also happens when working on a graph at runtime directly in the scene hierarchy as well

    This happens in both Unity for Windows and for Mac in my experience.

    Here is what the last line in my Editor.log says:

    And here is what is shown in the Unity Bug Report window:

    ~/Library/Logs/Unity/upm.log

    Here is the content of my UPM manifest:

    Let me know if you need more. Will try to import the plugin in an empty project too now to see if it might be related to one of the packages or some code in my existing project.

    Cheers,
    Oz

    #2506
    ozeki
    Participant

    I can’t seem to be able to make it crash in a brand new project. I’m wondering if this might be in conflict with something in my project. The project I have is pretty big (6-7GB) with lots of different stuff in it. I don’t think I could share the entire project as it contains proprietary stuff.

    Is there a way I could help you identify what the issue is here?

    #2507
    Gavalakis
    Keymaster

    Hello there,

    Hmm. It must be something in your project since that is the first time I’ve ever been reported that. It is very hard to tell what it could be however without knowing what your project contains and what might be affecting this behaviour. Do you have any 3rd party asset (or custom code) that might be affecting prefabs in any way? If you have any leads to what might be causing this I would be glad to help.

    Let me know.

    Thanks 🙂

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

    #2509
    ozeki
    Participant

    Hey,

    Thank you, I’m creating a parallel project and moving suspicious plugins or custom code one by one to see if I can reproduce this. Hopefully I can find the issue at hand but this is going to be quite a challenge I think. I will try to attach my Visual Studio/Rider to the Unity Editor process to see if I can capture an exception before it crashes too.

    Stay safe out there you all.

    Oz

    #2511
    ozeki
    Participant

    Hey,

    So I have taken a deeper look at this and I still can’t figure out why it is crashing sometimes but I did discovered something very strange. Whenever a FlowController component exists within the same GameObject as an UnityEngine.UI.Image component within a Nested Prefab setup (!thats the important part!), the graph starts behaving extremely strangely very reminiscent of the problems I would see before it would eventually crash.

    I have made a example project as well as a video show the problem. Hopefully it can point to what is going on. I also went through the code with the debugger and noticed that there is a peculiar bug that happens when in this configuration when trying to add or delete nodes and node connections (which is usually where the crash occurs).

    Specifically, in the NodeCanvas.Framework.Graph.AssignNodeID() method of the  ParadoxNotion\Assets\ParadoxNotion\CanvasCore\Framework\Runtime\Graphs\Graph.cs : class at line 458, sometimes the value of lastID will be larger than the contents of the parsed Node[] list for some reason. I’m not sure if this is related or a separate issue.

    In context:

    I recommend you take a look at the video first and then you can get in touch with me and I can send you the demo project I have if you want to take a look at it on your side (I don’t want to distribute your plugin by linking the demo project publicly). I am also on the Discord channel, if it is any easier we can talk over there.

    Here is the screen capture video that illustrates the glitch:
    https://youtu.be/PPiRTGWTtts

    #2512
    Gavalakis
    Keymaster

    Hey,

    Thanks for the further information.

    Something looks strange indeed. I would love to get a hold on the demo project you’ve made please. I’ve send you a PM in discord.

    Thanks.

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

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