Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Black screen Android LWRP project ...

Discussion in 'Graphics Experimental Previews' started by Davood_Kharmanzar, Aug 15, 2019.

  1. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    hello,
    i tried to build an LWRP project for android by using default LWRP sample ...
    but got black screen on running it on android!?
    i'm using Unity 2018.4.6f1 + IL2CPP + for android 7.1.1 config...
    howto fix that?
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,988
    Which device?

    Try submitting a bug report.

    Then try disabling stuff in player settings. Disabling Vulkan, GPU skinning etc and see if that helps.
     
  3. Ahmadhp

    Ahmadhp

    Joined:
    May 31, 2013
    Posts:
    33
    Try OpenGLES graphic API ... I experienced the same thing on Vulkan,
     
  4. Ehredt

    Ehredt

    Joined:
    Jun 20, 2018
    Posts:
    79
    I had the same issue with the LWRP on an Android device in 2019 (I forget which version exactly, I'd have to look it up) and unfortunately wasn't able to get enough information from the user to resolve the issue on their device, so I don't have any suggestions but consider me another data point about black screen with LWRP.
     
  5. sulaiman_softbs

    sulaiman_softbs

    Joined:
    Nov 19, 2018
    Posts:
    2
    Well i found a solution. in your LWRP scriptable object under Advance settings. You should disable SRP batching.
     

    Attached Files:

  6. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    and what about URP on 2019.3.x??
     
    insoluzioni likes this.
  7. sulaiman_softbs

    sulaiman_softbs

    Joined:
    Nov 19, 2018
    Posts:
    2
    Well i haven't used 2019.3 yet. I am not sure about it :)
     
  8. hridpath

    hridpath

    Joined:
    Jan 28, 2017
    Posts:
    16
    I am not getting the camera view showing using the latest ARFoundation and ARCore with 2019.3.04b
    Is there a workaround?
     
  9. Wortex17

    Wortex17

    Joined:
    May 19, 2013
    Posts:
    5
    We too have the same problem in 2019.2, though I am still in the process of pinpointing which exact setting it is.
    With a completely "fresh" created LWRP asset it works fine, with our LWRP asset we migrated from 2018.3 it doesn't (did not try disabling the SRP Batching yet, I am currently going through all options step by step)

    We also noticed that:
    * This does not happen if we build from the editor, only if we build on CI / with batchmode
    * If there is "oevrlay" ui rendered, it will be randomly "smeared" across the screen instead of producing the blakc screen

    Do the rest of you have the problem even with building from the editor?
     
  10. Zarkend

    Zarkend

    Joined:
    May 11, 2016
    Posts:
    28
    Yes, It's happening building from the editor.
    Unity 2019.2.13f1
     
  11. TheChosenBlob

    TheChosenBlob

    Joined:
    Feb 26, 2015
    Posts:
    6
    It's an old thread, but I had a hard time finding the solution so posting it here in case it helps anyone.
    TL;DR:
    Vulkan and URP don't seem to play well together on some Android devices.

    We started getting that infamous black screen when we upgraded to Unity 2019.4.8f1. As the OP states, even in this Unity version, building the URP sample project results in a black screen on Android.
    Disabling Vulkan in Player Settings > Graphic APIs resolves the issue.
     
    shaochun and Deleted User like this.
  12. Hakohn

    Hakohn

    Joined:
    Nov 2, 2018
    Posts:
    4
    Thanks man, that solved the issue!
     
  13. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,988
    It's more that Vulkan support has been progressively worse ever since it was first introduced. For Android, they might as well remove it now, it's unreliable.