Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. We are looking for feedback on the naming of a new user research platform that we are working on.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Bug (Case 1249421) Graphics.CopyTexture with compressed texture causes editor crash

Discussion in '2020.2 Beta' started by Peter77, May 21, 2020.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,316
    Since @Aras provided me with a build where the new Texture3D Inspector works on my PC (thank you), I started to look into what other Texture3D related issues were fixed, to lift some restrictions in my Texture3D Atlas Import Pipeline.

    Graphics.CopyTexture did not work with Texture3D in earlier Unity versions, but has been fixed now. So I'm using it now rather than SetPixels as before.

    However, CopyTexture seems to work with uncompressed textures only. Using compressed texture formats cause an editor crash.



    Code (CSharp):
    1. Assertion failed on expression: '!IsCompressedFormat(format)'
    2. UnityEngine.StackTraceUtility:ExtractStackTrace () (at C:/code/unity-main-repo-long/Trunk/Runtime/Export/Scripting/StackTrace.cs:37)
    3. UnityEngine.Graphics:CopyTexture (UnityEngine.Texture,int,UnityEngine.Texture,int) (at C:/code/unity-main-repo-long/Trunk/Runtime/Export/Graphics/Graphics.cs:267)
    4.  
    5.  
    6. Received signal SIGSEGV
    7. Stack trace:
    8. 0x00007ff67a9ab051 (Unity)
    9. 0x00007ff67a9a84c0 (Unity)
    10. 0x00007ff67a9a82b3 (Unity)
    11. 0x00007ff67cbb0f65 (Unity)
    12. 0x000001d74076e87b (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Graphics:CopyTexture_Slice_AllMips (UnityEngine.Texture,int,UnityEngine.Texture,int)
    13. 0x000001d74076e7cb (Mono JIT Code) [Graphics.cs:268] UnityEngine.Graphics:CopyTexture (UnityEngine.Texture,int,UnityEngine.Texture,int)
     
    Last edited: May 22, 2020
    Prodigga likes this.
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,316
    LeonhardP likes this.
unityunity