Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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,569
    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:
    421
    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,569
    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:
    421
    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,569
  6. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    245
    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,569
    Please keep us posted whether it improves the enter playmode time.
     
  8. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    245
    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:
    218
    This seems to have popped back in the latest beta.
     
    CaseyHofland likes this.
  10. CaseyHofland

    CaseyHofland

    Joined:
    Mar 18, 2016
    Posts:
    592
    +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.