Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    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:
    5,607
    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:
    392
    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:
    5,607
    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.
     
  4. Hyp-X

    Hyp-X

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

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,607
  6. mahdi_jeddi

    mahdi_jeddi

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

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    150
    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.
unityunity