Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2020.3.X, 2021.1.X
Votes
4
Found in
2020.2.0a8
2020.3
2021.1
2021.2
Issue ID
1308740
Regression
Yes
Error is thrown when using the progress bar API along with Texture compression
When we use the function EditorUtility.CompressTexture inside a code that displays a progress bar, the progress bar doesn't show up and there is an error message in the Console Window.
How to reproduce:
1. Open the attached project "case_1308740-Project"
2. Click on the "Tests/Compress Texture Test" menu
3. Observe the Console Window
Expected result: Progress bar is shown and no errors are thrown
Actual result: Progress bar is not shown and "Trying to access current progress scope, but the scope stack is empty" error is thrown
Reproducible with: 2020.2.0a8, 2020.3.0f1, 2021.1.0b11, 2021.2.0a8
Not reproducible with: 2018.4.32f1, 2019.4.22f1, 2020.2.0a7
Note: In some versions, the progress bar is shown briefly
Comments (4)
-
JasonBooth
Mar 18, 2021 23:10
The problem with Texture2D.Compress() is that it only works for DXT textures and is of lower quality.
-
hacomagi
Mar 13, 2021 15:34
Freak is it the EditorUtility.Compress() that is triggering this bug? I am just wondering if my experience in Microsplat is related to this bug.
-
FreakForFreedom
Jan 30, 2021 19:30
Temporary workaround: Replacing with Texture2D.Compress() worked so far.
-
FreakForFreedom
Jan 30, 2021 19:09
Can confirm for 2020.2.2f1, found no solution to this yet :(
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note (fix version 2021.1):
Fixed in Unity 2021.1.1f1
Resolution Note (fix version 2020.3):
Fixed in Unity 2020.3.3f1