Search Unity

Question Black Screen on BlueStacks

Discussion in 'Android' started by xtrecoolx1, Jun 17, 2021.

  1. xtrecoolx1

    xtrecoolx1

    Joined:
    Feb 27, 2019
    Posts:
    5
    It seems like there is a serious problem when you try to run a game built with the default Android build settings on BlueStacks emulator. The opening scene shows a black screen without crashing. On contrary,other emulators such as LDPlayer and Memu work just fine.
    This BlueStacks issue bothers me because there might be real devices out there that have a similar issue and since the scene does not crash you may never know how many real users see a black screen and can't play your game. Keep in mind that a lot of Unity games are working just fine on BlueStacks.

    SOLUTION
    I thought this was specific to my game, but having tried URP and 3D templates without any scripts, I have seen that they all show a black screen.
    After spending several days on this weird issue, I figured out that in build settings the following options may cause instability for BlueStacks:

    1) My blit type was chosen "Auto". I switched it to "Always".
    2) I have specifically chosen to create custom main manifest (AndroidManifest.xml) even though I should not need it.

    My Unity Editor is 2020.3.9f1
    Scripting backend is IL2CPP

    Best
     
    sean244 likes this.
  2. anhnhgtv

    anhnhgtv

    Joined:
    May 7, 2021
    Posts:
    3
    I also have problem with bluestack
     
  3. PHSenki

    PHSenki

    Joined:
    Feb 6, 2018
    Posts:
    13
    I have the same issue. I have even tried a new URP project, it shows a black screen after the unity logo on BlueStacks. I tried checking the "Custom Main Manifest" box and changing blit type to "Always", it still shows me a black screen. =/
     
    andrew210 likes this.
  4. andrew210

    andrew210

    Joined:
    Apr 23, 2014
    Posts:
    241
    I'm also having this issue (with and without URP, in a fresh project and my existing project, with custom / clean manifest). Nothing obvious in adb logcat to shed light on the issue.
     
  5. IAVAR

    IAVAR

    Joined:
    Jan 15, 2017
    Posts:
    7
    Solved: upload_2021-8-24_18-31-44.png
    Disable the Optimized Frame Pacing then play on the Bluestacks without Black Screen
     
    gboni83, soomon, jgranda98 and 27 others like this.
  6. samta

    samta

    Joined:
    Sep 19, 2016
    Posts:
    4
    this reply maybe old but you save my life. Thank you
     
    BlindsidedGames and IAVAR like this.
  7. vuslystyi

    vuslystyi

    Joined:
    Aug 26, 2020
    Posts:
    5
    In my case, enabling Auto Graphics API in Player->Other Settings and setting Color Space to Gamma resolved the issue.
    Screenshot_1160.png
     
  8. vaskonvas

    vaskonvas

    Joined:
    Jan 6, 2021
    Posts:
    1
    You saved me !!!
     
    BlindsidedGames and IAVAR like this.
  9. Zarkend

    Zarkend

    Joined:
    May 11, 2016
    Posts:
    28
    Saved me also, thanks!
     
    IAVAR and BlindsidedGames like this.
  10. punkrooks

    punkrooks

    Joined:
    Apr 15, 2016
    Posts:
    35
    Did'nt saved me, is there a different alternative please ?

    If the game is released in play store marked with Optimized Frame Pacing , and when installed in bluestacks through play store it gives black screen...
    What if the production build was supposed to build with Optimized Frame Pacing.
    I cannot maintain two different builds with this one single change.
     
  11. Ghetaldus

    Ghetaldus

    Joined:
    Jul 15, 2017
    Posts:
    46
    That helped. Thanks!
     
    IAVAR and BlindsidedGames like this.
  12. Haghshenas

    Haghshenas

    Joined:
    Apr 17, 2016
    Posts:
    2
    it worked!!! thanks
     
    BlindsidedGames likes this.
  13. donyayejadid

    donyayejadid

    Joined:
    Nov 24, 2020
    Posts:
    12
    s
    punkrooks, Did you find any solution for this?
    disabling Optimized Frame Pacing would fix bluestack problem but then the game run a little more jittery in android device!
    this looks like a big issue, has anyone else found a solution for it?
     
    Last edited: Jun 15, 2022
  14. BlindsidedGames

    BlindsidedGames

    Joined:
    Aug 24, 2020
    Posts:
    9
    Cheers for the solve
     
    IAVAR likes this.
  15. Kazeon

    Kazeon

    Joined:
    May 22, 2017
    Posts:
    41
    I wonder is this a bluestack only issue or could it be an issue also for some other devices/emulators? Anyway I find it's a real shame that I have to disable that option for now, I'd like to know the solution too.
     
  16. dcb2

    dcb2

    Joined:
    Feb 18, 2022
    Posts:
    2
    Thank you so much dude. You saved me.
     
    IAVAR likes this.
  17. jgranda98

    jgranda98

    Joined:
    Apr 18, 2022
    Posts:
    1
    This save my life :v
     
    IAVAR likes this.
  18. FranklinDasJV

    FranklinDasJV

    Joined:
    Jan 23, 2022
    Posts:
    4
    T
    Thank you so much
     
    IAVAR likes this.
  19. Zlaby

    Zlaby

    Joined:
    Dec 21, 2022
    Posts:
    1
    Thank you very much ! that was the issue with me.
     
    IAVAR likes this.
  20. soomon

    soomon

    Joined:
    Sep 24, 2020
    Posts:
    10
    thank you!!!
     
    IAVAR likes this.
  21. gboni83

    gboni83

    Joined:
    Jul 5, 2021
    Posts:
    2
    Thank you!
     
  22. heltonluizsb

    heltonluizsb

    Joined:
    Dec 20, 2018
    Posts:
    23

    I disabled Optimized Frame Pacing, but the problem is still here
     
  23. IAVAR

    IAVAR

    Joined:
    Jan 15, 2017
    Posts:
    7

    Are you seeing a black screen on Bluestacks?
     
  24. heltonluizsb

    heltonluizsb

    Joined:
    Dec 20, 2018
    Posts:
    23

    Yeah! The game opens, the Unity logo appears, stay some seconds and then it closes. It is a AdMob problem, becouse if I make a new project without AdMob it works...
     
    IAVAR likes this.
  25. ValentinaL

    ValentinaL

    Joined:
    Nov 19, 2023
    Posts:
    1
    Same issue