Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug 2020.2 IL2CPP build no longer calls Application.quitting callbacks

Discussion in 'Windows' started by einWikinger, Feb 12, 2021.

  1. einWikinger

    einWikinger

    Joined:
    Jul 30, 2013
    Posts:
    97
    I've ran into an issue after upgrading a project from 2019.4 to 2020.2. We're using the Application.quitting event to clean up background threads and it's no longer working properly. The application will enter a deadlock when it should exit, as the background threads wait for a signal that is never set because the Application.quitting callback is never called.

    I've already submitted a repro case as #1314210
    It happens on 2020.2.2f1 and 2020.2.3f1
    Does not happen on 2019.4.20f1
    Does not happen when using the Mono backend
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    Thanks for reporting this issue, we will investigate it!
     
    einWikinger likes this.