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 1259149) Packing sprites causes editor crash always

Discussion in '2020.1 Beta' started by Peter77, Jun 28, 2020.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,650
    Using a Sprite Atlas asset causes the Editor to crash as soon as Unity packs sprites.



    Reproduce
    • Open provided project
    • Right-click "Assets/Atlas1/New Sprite Atlas" asset
    • Choose "Reimport"

    Actual
    The editor crashes.

    Expected
    No crash.
     
  2. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    440
    Is this a b13 regression?
    (Just asking so we can avoid some pain by not upgrading to it.)
     
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,650
    I found out it's caused by having the sprite atlas asset in the folder that's getting packed and using sprite packer v2. Other combinations seem to work.
     
    dannyalgorithmic likes this.
  4. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    440
    Oh, sprite packer v2.
    We don't use it.
    A new experimental feature with no tangible advantage.
     
    dannyalgorithmic likes this.
  5. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,650
  6. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    248
    We'll see about that :p. If it actually caches the results then it should make the enter playmode faster for us. Right now it's over 8 seconds for a project with thousands of atlases.
     
  7. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,650
    Please keep us posted whether it improves the enter playmode time.
     
  8. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    248
    Just updated to 2020.2.0a19. Enter playmode for me went down from 8 to 5, which is already pretty good. Unfortunately the new sprite packer didn't improve things at all. Editor reads every single atlas file before entering playmode, which I was hoping the new packer would not do.
     
    Peter77 likes this.
  9. SevenPointRed

    SevenPointRed

    Joined:
    Feb 3, 2016
    Posts:
    221
    This seems to have popped back in the latest beta.
     
    CaseyHofland likes this.
  10. CaseyHofland

    CaseyHofland

    Joined:
    Mar 18, 2016
    Posts:
    629
    +1, I have this issue on 2022.2.2f1

    Crashes with SpritePacker V1 as well: I literally did nothing to incur this, it was working fine yesterday.