Search Issue Tracker

Duplicate

Votes

2

Found in [Package]

13.1.2

Issue ID

1383510

Regression

No

[Android] App crashes on some devices when using additional lights in custom URP shader

Package: Scriptable Render Pipeline Universal

-

How to reproduce:
1. Open the attached user's project "URPShaderAdditionalLightIssue-2021.2.zip"
2. Build and Run on Android device

Expected results: The app does not crash
Actual results: The app crashes

Stacktrace from Development build:
Error AndroidRuntime at libunity.GfxDeviceVK::EnsureValidBackbuffer(vk::SwapChain*)(EnsureValidBackbuffer:80)
Error AndroidRuntime at libunity.vk::RenderPassSwitcher::InternalApply(vk::CommandBuffer*)(InternalApply:188)
Error AndroidRuntime at libunity.GfxDeviceVKBase::BeforeDrawCall()(BeforeDrawCall:64)
Error AndroidRuntime at libunity.GfxDeviceVKBase::DrawBuffersInternal(unsigned long long, unsigned long long, unsigned int, unsigned long long const*, unsigned int const*, unsigned long long const*, int, DrawBuffersRange const*, int, VertexDeclaration*, unsigned int, int)(DrawBuffersInternal:100)
Error AndroidRuntime at libunity.GfxDeviceVKBase::DrawBufferRangesPlatform(GfxBuffer*, unsigned int, GfxBuffer* const*, unsigned int const*, int, DrawBuffersRange const*, int, VertexDeclaration*, unsigned int, int)(DrawBufferRangesPlatform:976)

Reproducible with: 12.0.0 (2021.2.0a17), 12.1.2 (2021.2.4f1), 13.1.2 (2022.1.0a16)
Could not test with: 7.7.1 (2019.4.33f1), 10.7.0 (2020.3.23f1), 12.0.0 (2021.2.0a16) (additional lights can't be used)

Reproducible on:
VLNQA00001, Google Pixel 2 (Pixel 2), Android 11, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
VLNQA00225, Qualcomm null (SDM845 for arm64), Android 8.1.0, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630

Not reproducible on:
VLNQA00288, Samsung Galaxy J7 (SM-J730F), Android 8.1.0, CPU: Exynos 7 Octa 7870, GPU: Mali-T830
N/A, Huawei - (NOH-NX9), Android 10, CPU: NOT FOUND, GPU: Mali-G78
VLNQA00316, Samsung Galaxy Note10 (SM-N970F), Android 9, CPU: Exynos 9 Series 9825, GPU: Mali-G76

Comments (1)

  1. FoldCc

    Oct 06, 2022 09:27

    GPU:Adreno (TM) 540 too error

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.