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.

Bug Black screen (10+ secs) before unity splash logo

Discussion in 'Editor & General Support' started by rbitard, Jun 18, 2022.

  1. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    28
    Hello,

    I'm having a quite long black screen before unity loading screen appears.

    I tried to debug it with adb log cat but I'm not sure what causes this.

    You can see on the log an eleven seconds jump between theses two lines

    2022/05/31 00:00:09.427 32522 32522 Debug Surface lockCanvas
    2022/05/31 00:00:20.954 32522 32549 Error libprocessgroup set_timerslack_ns write failed: Operation not permitted

    Do you know how to fix this? Or what causes this ? How can I tackle the bug ? I tried many things at this point with no success (using old threads on the same problem)

    I added the logcat file in case I missed something else

    Thanks in advance
     

    Attached Files:

  2. qiveal

    qiveal

    Joined:
    Jan 31, 2022
    Posts:
    260
    Unfortunately, I can not help you, but I'm having a similar long loading time on VR. What platform are you developing for? I'm curious.
     
  3. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    28
    Thanks for the reply, I'm on android, on PC there was no loading time (normal it's not loading mediation I guess)
     
    Last edited: Jun 20, 2022
  4. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    28
    I found the culprit, it's a lib I use (Language-Ext) in combination with IL2CPP scripting backend, when using Mono it works fine but when using IL2CPP.

    Do anyone know what can be done? I have a lot of code using Language-Ext which is an awesome lib it would be a shame to remove all of that
     
  5. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    28
    @superpig do you know what I can do on my side to solve that ?
     
  6. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    28
    does stripping code : "high" is dangerous or is it an OK option?
     
  7. qiveal

    qiveal

    Joined:
    Jan 31, 2022
    Posts:
    260
    Weird.
     
    rbitard likes this.
  8. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    28
    Turns out it's not mediation but the scripting backend that result in something different for PC and android for the loading time
     
unityunity