Search Issue Tracker

Active

Votes

0

Found in [Package]

2.1.0

Issue ID

BAR-394

Regression

No

[Android] The single local work group size required by the "Resize" compute shader exceeds the amount allowed on lower-end devices

Package: Barracuda

-

How to reproduce:
1. Open the “ReproProjectSentis.zip“ project
2. Open the “Test“ scene
3. Build for Android and install the app on a device
4. Open the CMD/Terminal and clear the logcat (“adb logcat -c“)
5. Start the logcat (“adb logcat > [filename].txt“)
6. Open the app and wait for a bit
7. Stop the logcat and open the [filename].txt file

Expected result: Error “ Compute shader (Resize): Kernel ([NUM]) size exceeds device limits.“ not logged
Actual result: Error “ Compute shader (Resize): Kernel ([NUM]) size exceeds device limits.“ logged

Reproducible with: 2.0.0, 2.1.0, 2.1.1 (2022.3.60f1), 2.1.2 (2022.3.60f1, 6000.0.45f1, 6000.1.0b13, 6000.2.0a8)

Reproducible environment: macOS 15.3.1  (M4 Max), Windows 10 (Reporters)
Not reproducible environment: No other environment tested

Reproducible with these devices:
VLNQA00270, Samsung Galaxy S10e (SM-G970F), Android 12, CPU: Exynos 9 (9820), GPU: Mali-G76
VLNQA00511, Samsung Galaxy S8 (SM-G950F), Android 9, CPU: Exynos 9 Octa 8895, GPU: Mali-G71

Not reproducible with these devices:
VLNQA00518, Google Pixel 4 (Pixel 4), Android 13, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00107, Huawei Nexus 6P (Nexus 6P), Android 8.1.0, CPU: Snapdragon 810 MSM8994, GPU: Adreno (TM) 430
VLNQA00335, Samsung Galaxy S20+ 5G (SM-G986B), Android 10, CPU: Exynos 990, GPU: Mali-G77
VLNQA00626, iPhone 16 (MYE73QN/A), CPU: Apple A18 Pro, GPU: Apple designed, OS: 18.3.1
VLNQA00600,  iPad Pro (9.7 inch, WiFi), CPU: Apple A9X, GPU: Apple designed, OS: 14.8

Workaround:
1. Copy the Sentis package from “[project directory]/Library/PackageCache” folder to the “[project directory]/Package” folder
2. Open the “[project directory]/Packages/com.unity.sentis@<version>/Runtime/Core/Resources/Sentis/ComputeShaders/Resize.compute”
3. Make a change in the line 187 from “[numthreads(8, 8, 8)]“ to "[numthreads(8, 8, 2)]"

Notes:
- More information in the comments
- Not reproducible in the Editor and Standalone

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.