Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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:
    6,650
    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:
    6,650
    LeonhardP likes this.