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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

addressables is deleting my groupschemas and assetgroups

Discussion in 'Addressables' started by sophiepeithos, Nov 5, 2019.

  1. sophiepeithos

    sophiepeithos

    Joined:
    Sep 10, 2014
    Posts:
    59
    since 1.x, i randomly(may be when import assets or enter/exit play mode) find all my all my groupschemas is deleted from my hard drive, also removed from assetgroups, also assetgroups removed from addressableassetsettings
    what i do with adderssables in fast mode is i have two assetgroups: "built in data" and "default local group", three groupschemas: "bundledasset" and "contentupdate" and "playerdata". when i click the play button, i will fill "default local group"'s m_EntryMap with my assets, whe exit play mode i will clear m_EntryMap
     
  2. netdevo

    netdevo

    Joined:
    Sep 8, 2014
    Posts:
    4
    Similar thing is happening to me in "Packed Play Mode"

    Running Unity2019.3.0b6
     
  3. sophiepeithos

    sophiepeithos

    Joined:
    Sep 10, 2014
    Posts:
    59
  4. sophiepeithos

    sophiepeithos

    Joined:
    Sep 10, 2014
    Posts:
    59
  5. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    736
    Hey @sophiepeithos apologies for the late response, I just got back from a trip. This sounds pretty bad, we'll look into it and get it resolved as quick as we can.
     
  6. calc1fer

    calc1fer

    Joined:
    Oct 5, 2019
    Posts:
    62
    same situation happened.
    but i couldn't specify any cause and trigger :eek:
    I hope there would be something announcment on this thread if anything figured out.
     
  7. Jribs

    Jribs

    Joined:
    Jun 10, 2014
    Posts:
    154
    This is also happening to me as well. Super bad bug.

    The group no longer shows up in the group list, but its schema file still exists and all assets that were part of that group are no longer addressables.

    I'll try to keep an eye out for when it actually removes it.

    It always deletes the top group on my list, which also happens to be marked as "Default" not sure which is the important bit on that.

    Update: So I found out when its deleting the group.

    My project has 2 components, a VR build and a non VR build, so I switch between virtualRealitySupported being true and false often.

    Whenever I turn it off, it deletes the group at the top of my list.

    Edit: I realize the OP is probably having a different issue than me.
     
    Last edited: Nov 25, 2019
  8. iamarugin

    iamarugin

    Joined:
    Dec 17, 2014
    Posts:
    863
    Sometimes groups disappear when I delete some assets from the project.
     
  9. iamarugin

    iamarugin

    Joined:
    Dec 17, 2014
    Posts:
    863
    Today this happened again, when I pulled latest changes from the git remote, when editor was opened. When I focused editor all addressable data just gone.
     
  10. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    736
    We have a fix in the works (for a release in the next couple of weeks) that should hopefully solve this issue.
     
  11. iamarugin

    iamarugin

    Joined:
    Dec 17, 2014
    Posts:
    863
    Great, thanks!
     
  12. creepteks

    creepteks

    Joined:
    Jun 2, 2017
    Posts:
    19
    @DavidUnity3d
    Would you please update us on the state of the bugfix?? Or tell us why this happens. I have no idea why this happens, but it happens mostly when pulling from the remote repo.
    the assets for addressable groups still exist in the project as shown below. But there is no way to reimport them in order to bring back the configuration of addressable assets. when they are gone from the addressables window, they are totally gone
    addressables.png
     
  13. creepteks

    creepteks

    Joined:
    Jun 2, 2017
    Posts:
    19
    I tried to fix the problem manually. For us, the issue emerged after syncing the project using git remote repos. For example, if I add a prefab to the addressable and push the changes, the one who pulls the project would encounter with an empty list of addresses. But if copy my Asset/AddressableAssetsData/ folder to the other synced project manually, the problem gets fixed.
    I guess this issue comes from the fact that any changes in metafiles cannot be reflected in the synced project and addressable system just decide to forget about previous contents and remove them altogether.
     
  14. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    736
    @mahdad_baghani If you're able to, try updating to Addressables 1.5.0 and let me know if you're still having the issue. 1.5.0 should have just gone public I think.

    A couple things of note in 1.5.0: We no longer clean up null groups in Addressables automatically. There appeared to be an issue on asset importing where we detect all the Addressable groups as being null so we remove them, when if we had just left it alone it would have been fine.

    Also we've added the ability to drag and drop Addressable groups into the Groups window to add them. So, as a temporary workaround, if all your group assets are correct on disk you should be able to drag them into the Groups window and re-add them.

    We had issues reproducing this type of behavior under some of the circumstances reported. I say that to say when we fixed this there was only one method actually reproduced the behavior for us. So if you still have issues on 1.5.0 you may be hitting the issue from a completely different angle. Let me know if you're having problems.
     
  15. Jribs

    Jribs

    Joined:
    Jun 10, 2014
    Posts:
    154
    @DavidUnity3d tested out my method with 1.5.0 and it is still deleting my groups.

    I actually need to resolve this pretty quick so other developers on my team dont end up deleting a bunch of groups that they shouldnt.

    Could you maybe point me in the direction of the script that handles deleting groups? I kind of just want to completely disable any method of deleting groups for now since the groups I have setup are unlikely to change anytime soon.
     
    chanon81 and sa-miki like this.
  16. creepteks

    creepteks

    Joined:
    Jun 2, 2017
    Posts:
    19
    How should I get Addressables 1.5.0? it's not showing in package manager. I am using unity 2019.3.0f3 and "preview packages" are enabled in package manager.
     
  17. chanon81

    chanon81

    Joined:
    Oct 6, 2015
    Posts:
    168
  18. chanon81

    chanon81

    Joined:
    Oct 6, 2015
    Posts:
    168
    I've also been getting this bug for a long time. At this point our team members know what to do when it happens ... just discard any changes related to Addressables that they didn't do themselves using version control.

    At this point I hope the Addressable devs focus on:
    1. Fixing all the bugs
    2. Documentation
     
  19. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    736
  20. creepteks

    creepteks

    Joined:
    Jun 2, 2017
    Posts:
    19
    @DavidUnity3d @chanon81 Thank you, guys. This solution solved my problem. We no longer lose our addressables groups and schemas when we attempt to sync our project using git.
     
    davidla_unity likes this.