Search Issue Tracker
By Design
Votes
0
Found in
2019.4.32f1
2020.3.22f1
2021.2
2022.1
Issue ID
1386530
Regression
Yes
[Android] Rendering SurfaceTexture into a regular external texture via a native plugin doesn't work since Unity 2020.3.22f1
Reproduction steps:
1. Open the attached user's project "AndroidRepro.zip" in 2020.3.21f1
2. Build and run the project
3. Observe that the test video plays on the quad in the middle of the screen
4. Open the same project in Unity 2020.3.22f1 or newer
5. Build and run the project
Expected result: The test video plays on the quad in the middle of the screen
Actual result: The quad's texture is empty, though the first frame is visible sometimes
Reproduces on: 2019.4.32f1, 2020.3.22f1, 2021.2.7f1, 2022.1.0b2
Does not reproduce on: 2019.4.31f1, 2020.3.21f1
Reproducible with these devices:
VLNQA00091 - Google Pixel 2 XL (Pixel 2 XL), OS: 11.0.0, CPU: Snapdragon 835 MSM8998, GPU: Adreno 540
VLNQA00231 - HUAWEI Mate 20 Pro (LYA-L29), OS: 9.0.0, CPU: HiSilicon Kirin 980, GPU: Mali-G76
VLNQA00413 - samsung Galaxy Note10+ (SM-N975F), OS: 9, CPU: Exynos 9 Series 9825, GPU: Mali-G76
N/A, Samsung Galaxy S9 (SM-G960F), Android 8.0.0, CPU: Exynos 9 Series 9810, GPU: Mali-G72
VLNQA00202 - Samsung Galaxy Note 9 USA (SM-N9600), OS: 9.0.0, CPU: Snapdragon 845 SDM845, GPU: Adreno 630
VLNQA00013 - Galaxy S6 Edge+ (SM-G928F), OS: 7.0.0, CPU: Exynos 7 Octa (7420), GPU: Mali-T760
VLNQA00177 - Xiaomi Mi Note 2 (Mi Note 2), OS: 6.0.1, CPU: Snapdragon 820 MSM8996, GPU: Adreno 530
VLNQA00406 - Galaxy Z Flip3 5G (SM-F711B), OS: 11, CPU: Snapdragon 888, GPU: Adreno 660
Notes:
- The reproduction project uses MediaPlayer, but the bug can be also reproduced using ExoPlayer
- The surface texture seems to be updated normally, according to its timestamps
- There are no errors in the log
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [iOS] Postprocessing errors appear when using RenderGraph and NativeRenderPass
- Can't add a Scene to a Baking Set when it has just been deleted from the Set
- [iOS 17] "Malformed URL" error is thrown when using UnityWebRequest with a URI containing "[]"
- [Android] Player crashes at launch with error when built with custom Editor build
- Bloom effect is different from a standalone platform when a Scene uses HDRI lighting and the effect is used in WebGL
Resolution Note (2022.2.X):
By design: Texture2D.CreateExternalTexture script call specifies the that external texture uses mipmaps, but it does not. Changing Texture2D.CreateExternalTexture mipmaps parameter to "false" fixes the problem.