Search Unity

Reports of purple screen flickering

Discussion in 'Android' started by Toastbyte, Jul 22, 2020.

  1. Toastbyte

    Toastbyte

    Joined:
    Sep 1, 2016
    Posts:
    54
    Hello,

    We are receiving an increasing amount of reports that a published game of ours cant be opened because of an issue where the screen appears to be purple and flickering on android.

    We have not been able to recreate the issue on our own devices and dont know how to proceed.
    The only crash that appears on the unity dashboard is the following:

    upload_2020-7-22_13-27-42.png
    upload_2020-7-22_13-28-49.png

    Does the above have to do anything with the purple screen flickering? If not, what could be causing the problem?

    Thank you for your answers in advance.
     
  2. StenCG

    StenCG

    Joined:
    Mar 26, 2015
    Posts:
    66
  3. jawad_ahmad

    jawad_ahmad

    Joined:
    Apr 28, 2017
    Posts:
    35
    @Toastbyte Have you managed to find out what was the cause of the issue you were seeing? I, too, am also seeing the same issue on the game I am currently working on.

    Whilst one of the crashes I am seeing matches what you have posted, the others are slightly different. These are the crashes I am seeing so far:

    On the Samsung Galaxy S10 Note (GPU: Adreno (TM) 640, Android 10)

    0   libunity.so                        0x0000007b18480b60 GfxDeviceVK::EnsureValidBackbuffer() (ExtendedAtomicOps-arm64.h:155)
    1 libunity.so 0x0000007b1848d62c vk::RenderPassSwitcher::InternalApply(vk::CommandBuffer*) (VKRenderPass.cpp:941)
    2 libunity.so 0x0000007b184768b8 GfxDeviceVKBase::EnsureCurrentCommandBuffer(vk::CommandBuffer::Type, bool) (VKRenderPass.h:280)
    3 libunity.so 0x0000007b184727b4 GfxDeviceVK::Clear(GfxClearFlags, ColorRGBAf const&, float, unsigned int) (GfxDeviceVK.cpp:305)
    4 libunity.so 0x0000007b181013a8 GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&) (GfxDeviceWorker.cpp:456)
    5 libunity.so 0x0000007b18109c48 GfxDeviceWorker::RunExt(ThreadedStreamBuffer&) (GfxDeviceWorker.cpp:423)
    6 libunity.so 0x0000007b18101044 GfxDeviceWorker::RunGfxDeviceWorker(void*) (GfxDeviceWorker.cpp:386)
    7 libunity.so 0x0000007b182e7e8c Thread::RunThreadWrapper(void*) (Thread.cpp:78)
    8 libc.so 0x0000007c11dd5f20 <system symbols missing>
    9 libc.so 0x0000007c11d740c8 <system symbols missing>


    And on the Samsung Galaxy S8 and S8+ (GPU: Adreno (TM) 540, Android 9), Motorola Moto G Fast (GPU: Adreno (TM) 610, Android 10), and Samsung Galaxy A50 (GPU: Mali-G72, Android 10).

    0   libunity.so                        0x000000760a28db60 GfxDeviceVK::EnsureValidBackbuffer() (ExtendedAtomicOps-arm64.h:155)
    1 libunity.so 0x000000760a29a62c vk::RenderPassSwitcher::InternalApply(vk::CommandBuffer*) (VKRenderPass.cpp:941)
    2 libunity.so 0x000000760a2873d4 GfxDeviceVKBase::BeforeDrawCall() (VKRenderPass.h:280)
    3 libunity.so 0x000000760a281a44 GfxDeviceVKBase::DrawBuffersInternal(VkBuffer_T*, unsigned long, unsigned int, VkBuffer_T* const*, unsigned int const*, unsigned long const*, int, DrawBuffersRange const*, int, VertexDeclaration*, unsigned int, int) (GfxDeviceVK.cpp:940)
    4 libunity.so 0x000000760a288d08 GfxDeviceVKBase::DrawBufferRangesPlatform(GfxBuffer*, unsigned int, GfxBuffer* const*, unsigned int const*, int, DrawBuffersRange const*, int, VertexDeclaration*, unsigned long, int) (GfxDeviceVK.cpp:2245)
    5 libunity.so 0x000000760a373ed4 SinglePassStereoSupportExt::DrawBuffersStereo(GfxBuffer*, unsigned int, GfxBuffer* const*, unsigned int const*, int, DrawBuffersRange const*, int, VertexDeclaration*, unsigned long) (StereoSupportExt.cpp:512)
    6 libunity.so 0x000000760a2819b4 GfxDeviceVKBase::DrawBuffers(GfxBuffer*, unsigned int, GfxBuffer* const*, unsigned int const*, int, DrawBuffersRange const*, int, VertexDeclaration*) (GfxDeviceVK.cpp:924)
    7 libunity.so 0x000000760a375e0c DynamicVBO::DrawChunk(VertexDeclaration*) (DynamicVBO.cpp:437)
    8 libunity.so 0x0000007609f15bec GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&) (GfxDeviceWorker.cpp:0)
    9 libunity.so 0x0000007609f16c48 GfxDeviceWorker::RunExt(ThreadedStreamBuffer&) (GfxDeviceWorker.cpp:423)
    10 libunity.so 0x0000007609f0e044 GfxDeviceWorker::RunGfxDeviceWorker(void*) (GfxDeviceWorker.cpp:386)
    11 libunity.so 0x000000760a0f4e8c Thread::RunThreadWrapper(void*) (Thread.cpp:78)
    12 libc.so 0x00000076aafd5970 <system symbols missing>
    13 libc.so 0x00000076aaf67f38 <system symbols missing>


    The confusing part about the second call-stack is that we are not using Stereo Rendering, which is what it seems to imply. I am hoping that is a red herring.

    The crashes were from Unity 2019.4.9.

    Worth mentioning the crash frequencies are pretty low though. I'm not sure if it is something that I/we are doing, or whether this is a Unity issue. I am hoping someone from Unity can comment on it though, if you've not resolved it already that is.

    @Stanislawe The issue you linked is different issue, and unrelated to the purple screen issue. The reason why I know this is because I have run into the exact issue that the link describes (I have even commented in it). That issue was definitely fixed.
     
  4. mkislenko

    mkislenko

    Joined:
    Jan 26, 2018
    Posts:
    9
    @jawad_ahmad, did you find fix for issue? We have exactly same error on many devices with unity version 2019.4.20f
     
    Panagopoulos likes this.
  5. jawad_ahmad

    jawad_ahmad

    Joined:
    Apr 28, 2017
    Posts:
    35
    Sadly, no. We're still on 2019.4.13, but we're still getting reports of the issue from our users. As mentioned, I was hoping someone from Unity would chime in..... I still don't think this is an issue on our side.
     
  6. Gnoblar_agency

    Gnoblar_agency

    Joined:
    Sep 20, 2012
    Posts:
    8
    Any updates on this? We are also getting these crash reports in our cloud diagnostics. Using Unity 2019.4.17 and URP
     
    Mishganches likes this.
  7. Mishganches

    Mishganches

    Joined:
    Mar 23, 2014
    Posts:
    31
    I can confirm that we still have lots of reports with this problem. Using Unity 2019.4.17.

    Unity Version
    2019.4.17f1

    Device motorola/motorola one fusion/astro
    OS Version
    Android OS 10 / API-29 (QPLS30.62-41-6/4fc215)
    CPU
    ARM64
    GFX
    Adreno (TM) 616

    Device
    Xiaomi/M2003J15SC/merlinnfc
    OS Version
    Android OS 10 / API-29 (QP1A.190711.020/V12.0.10.0.QJOEUXM)
    CPU
    ARM64
    GFX
    Mali-G52 MC2


    Device
    HUAWEI/FIG-LX1/HWFIG-H
    OS Version
    Android OS 9 / API-28 (HUAWEIFIG-L31/9.1.0.216C432)
    CPU
    ARM64
    GFX
    Mali-T830

    Native StackTrace:

    Thread 0 (crashed)
    0 libunity.so 0x0000007ab70791a8 GfxDeviceVK::EnsureValidBackbuffer() (ExtendedAtomicOps-arm64.h:155)
    1 libunity.so 0x0000007ab7085f88 vk::RenderPassSwitcher::InternalApply(vk::CommandBuffer*) (VKRenderPass.cpp:941)
    2 libunity.so 0x0000007ab706edd0 GfxDeviceVKBase::EnsureCurrentCommandBuffer(vk::CommandBuffer::Type, bool) (VKRenderPass.h:280)
    3 libunity.so 0x0000007ab706aa98 GfxDeviceVK::Clear(GfxClearFlags, ColorRGBAf const&, float, unsigned int) (GfxDeviceVK.cpp:322)
    4 libunity.so 0x0000007ab6cf220c GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&) (GfxDeviceWorker.cpp:456)
    5 libunity.so 0x0000007ab6cfaad0 GfxDeviceWorker::RunExt(ThreadedStreamBuffer&) (GfxDeviceWorker.cpp:423)
    6 libunity.so 0x0000007ab6cf1ea8 GfxDeviceWorker::RunGfxDeviceWorker(void*) (GfxDeviceWorker.cpp:386)
    7 libunity.so 0x0000007ab6eddae8 Thread::RunThreadWrapper(void*) (Thread.cpp:78)
    8 libc.so 0x0000007bbf24205c <system symbols missing>
    9 libc.so 0x0000007bbf1e4af0 <system symbols missing>
     
  8. Mishganches

    Mishganches

    Joined:
    Mar 23, 2014
    Posts:
    31
    I also can confirm that crash still happens for version 2019.4.26.
     
  9. Mishganches

    Mishganches

    Joined:
    Mar 23, 2014
    Posts:
    31
    Any updates on this? We have thousand reports related to this issue.
     
  10. wey

    wey

    Joined:
    Oct 22, 2015
    Posts:
    5
    Occurs in 2019.4.22f1
     
  11. a-dolbilov

    a-dolbilov

    Joined:
    Jun 4, 2013
    Posts:
    17
    The simple fix is just to remove Vulkan from Graphics APIs list (Project Settings->Player->Other Settings).
    According to my tests it has lots of rendering bugs and really bad performance on some devices.
    Unity 2019.4.27f1.
     
    Mishganches likes this.
  12. Mishganches

    Mishganches

    Joined:
    Mar 23, 2014
    Posts:
    31
    Any updates on this?
     
  13. Mishganches

    Mishganches

    Joined:
    Mar 23, 2014
    Posts:
    31
    Any updates on this?
     
  14. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,619
    Is anyone able to reproduce these crashes and could submit a bug-report to Unity, please?

    I see this crash a lot in Cloud Diagnostics as well, but I'm unable to reproduce it. I'm afraid when nobody submits a bug-report, with a project that Unity Technologies can use to reproduce the crash, this issue persists.
     
  15. Floating-dream

    Floating-dream

    Joined:
    Mar 31, 2022
    Posts:
    1
    After we deleted Vulkan, the package was white on the phone, like a white mask.What is the solution?