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. Dismiss Notice

Bug Setting up 6 worker threads for Enlighten. Crash!!!

Discussion in 'Universal Render Pipeline' started by SniperED007, Jun 15, 2022.

  1. SniperED007

    SniperED007

    Joined:
    Sep 29, 2013
    Posts:
    341
    Unity 2021.3.4f1 (URP)

    On a Standalone build when I close the game it crashes... and this is what is shows in the crash log:

    Code (CSharp):
    1. Setting up 6 worker threads for Enlighten.
    2. Crash!!!
    Yet I don't have Enlighten enabled:
    upload_2022-6-15_22-24-33.png
     
  2. sebascore

    sebascore

    Joined:
    Apr 27, 2022
    Posts:
    19
    yes we are wondering this too
     
  3. peterbay

    peterbay

    Unity Technologies

    Joined:
    Nov 2, 2017
    Posts:
    100
    That's definitely not great. Can you report a bug for this?
     
  4. sebascore

    sebascore

    Joined:
    Apr 27, 2022
    Posts:
    19
    sorry a precisation:

    the game doesn't crash for us. It takes a LONG time to close, but I am not sure if it's because of this. We are only wondering why we see this at the end of each log:

     
  5. Murakle

    Murakle

    Joined:
    Nov 12, 2019
    Posts:
    1
    I was facing a problem when I was trying to close game window (window stopped responding). My game was sending some gRPC requests, therefore there were some grpc channels open.
    Adding
    _channel.ShutdownAsync();
    in
    OnApplicationQuit()
    fixed it. If u facing similar problem try closing some resources manually
     
  6. GoldFireStudios

    GoldFireStudios

    Joined:
    Nov 21, 2018
    Posts:
    154
    Did anyone find a solution for this? We're running into the same issue only on Mac with 2021.3.18.
     
  7. artfail

    artfail

    Joined:
    Apr 18, 2017
    Posts:
    34
    Having the same issue. My ios app crashes whenever I exit. Im using Unity 2022.2.18
    I cant submit a bug report because my bug reporter always crashes when I hit submit.
    If I check the output in xcode.

    -> applicationWillResignActive()
    -> applicationDidEnterBackground()
    -> applicationWillTerminate()
    Quitting...
    (this is a debug line in OnApplicationQuit()
    Setting up 1 worker threads for Enlighten.
    [CRASH]

    Xcode breaks at this line:

    #include <UnityFramework/UnityFramework.h>
    UnityFramework* UnityFrameworkLoad()
    {
    NSString* bundlePath = nil;
    bundlePath = [[NSBundle mainBundle] bundlePath];
    bundlePath = [bundlePath stringByAppendingString: @"/Frameworks/UnityFramework.framework"];
    NSBundle* bundle = [NSBundle bundleWithPath: bundlePath];
    if ([bundle isLoaded] == false) [bundle load];
    UnityFramework* ufw = [bundle.principalClass getInstance];
    if (![ufw appController])
    {
    // unity is not initialized
    [ufw setExecuteHeader: &_mh_execute_header];
    }
    return ufw;
    }

    int main(int argc, char* argv[])
    {
    @autoreleasepool
    {
    id ufw = UnityFrameworkLoad();
    [ufw runUIApplicationMainWithArgc: argc argv: argv]; <-----
    return 0;
    }

    }
     
    FlightFight likes this.
  8. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,396
    If it crashes even with a blank project, you can try to file a report via unity hub as well :)
     
  9. artfail

    artfail

    Joined:
    Apr 18, 2017
    Posts:
    34
    I just found this thread as well... https://forum.unity.com/threads/ios-crashes-on-app-exit-unity-2019-3-10f1.890734/ It seems like a unity bug that is happening to a few people. The thing is I am not using enlighten at all as far as I can tell. I have lighting disabled including things like global illumination everywhere I can find. All my shaders are unlit. I tried switching to URP so I could "turn off lighting even more" and its still the exact same error.
     
  10. DomeCreator

    DomeCreator

    Joined:
    Mar 5, 2020
    Posts:
    28
    Does something was find to get more info on that issue, I have the same problem.
    I build for Windows and linux, work on windows each time, work on linux on one computer but not the second one.
    Using for computer working :
    - Quadro RTX 5000
    - I7- 10th gen
    - NVIDIA driver 515.48.07

    For the one is not working :
    - RTX 3070
    - I7- 10th gen
    - NVIDIA driver 515.48.07

    Both on linux arch, I don't have any clue.
     
  11. DomeCreator

    DomeCreator

    Joined:
    Mar 5, 2020
    Posts:
    28
    Ok I figured out that the last line of debug isn't the one that make crash.
    On my side it was coming from a configuration file path !

    Still I don't understand why I have enlighten treads launching when I shutdown the app ?