Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Too Many Root Resets

Discussion in 'Scripting' started by sidestepper, Sep 18, 2012.

  1. sidestepper

    sidestepper

    Joined:
    Oct 2, 2008
    Posts:
    96
    Google searching and Forum searching for this as a unity specific or C# specific problem yield nothing.

    I have a performance tester I've written in Unity(C#) for testing Smartfox Server 2X. This tester works just fine up to 30(As far as I've tested). Doing the same for 1000 clients however crashes Unity.

    Basically, the performance tester creates 1000 instances of a Smartfox Client that emulate user actions on a new thread(So I end up with 1000 threads). The issue comes not from creating the clients, but from when I try to loop through the list and activate each one. Activate calls connect on the Smartfox Client and once connected simply starts sending transform data to emulate itself walking around the world. During this loop - somewhere something seems to crash - and I get a simple popup in the Unity Editor that says "Too many root resets" - Clicking OK closes Unity with a crash.

    Has anyone seen this before? What kind of options do I have? I do need to be able to spawn 1000+ clients for testing. Thank you in advance for any advice on this matter.
     
  2. sidestepper

    sidestepper

    Joined:
    Oct 2, 2008
    Posts:
    96
    Okay, UnityAnswers was withholding information - once I searched for Fatal error in GC I saw exactly my question but because I was logged into the forum I was unable to access the Unity Answers page. I actually had to log out and clear my browser cache, then fully close and reopen the browser to view it. Why is that? Fix it!

    Anyways, from this page: http://forum.unity3d.com/threads/78282-GC-gives-a-fatal-error it seems there is not a fix yet.