Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    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,325
    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,325
    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,325
  6. mahdi_jeddi

    mahdi_jeddi

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

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    226
    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:
    183
    This seems to have popped back in the latest beta.