SupportClass StopBackgroundCalls aborts thread causing ThreadAbortException

I currently get ThreadAbortExceptions and after some investigation it seems to be caused by an unhandled exception in:
public static bool StopBackgroundCalls(byte id)
    {
      if (SupportClass.threadList == null || (int) id > SupportClass.threadList.Count || SupportClass.threadList[(int) id] == null)
        return false;
      SupportClass.threadList[(int) id].Abort();
      return true;
    }
PUN v2.12

Any ideas on this please?

Comments

  • Does not occur in unity editor but can be found in UWP build
  • JohnTubeJohnTube mod
    edited June 7
    Hi @wassx,

    Thank you for your report!

    Is this the same report as in here?

    What Unity version do you use?
    What is the scripting backend (IL2CPP or mono?) or mono/.Net version?
    Is this 100% reproducible? could you reproduce with our demos in a clean fresh empty project with just PUN2 imported?
  • Hi @wassx,

    There are issues cropping up in Unity 2019 and we would not be surprised if this is fixed since the original release.
    Please update Unity and try to repro.

    release history of 2019.1.1:

    IL2CPP: Fixed an intermittent crash when a managed exception occurs on a back ground thread while the process is shutting down.


    release history of 2019.1.2:
    Services: Fix crash in signal handler on Android IL2CPP ARM64
  • Hi @JohnTube
    Thanks for the hint!
    Sry was busy the last days:
    I used unity 2018.3.14f1 and IL2CPP. Had no time to create a minimum test example to reproduce, maybe I get the chance in a few days.
    I'll try to update.
    Thank you!
Sign In or Register to comment.