Hello,
We’re on Unity 5.4.0f3 and are using Perforce for source control and have recently discovered UnityYAMLMerge to our delight! Which has been working really well until just now when we got the following error when trying to resolve conflicts on a .unity scene file. When attempting to resolve the file an error pops up with the following message:
Expected key to point to yaml mapping: m_TexEnvs
Any ideas/suggestions?
Many thanks.
Hi Danny!
Would it be possible to open a bug and add your files so we could investigate that issue? That would be really helpful. Also if you can provide the issue # I could track this down directly.
thanks!
Hi Thierry,
Sure thing happy to. Can you let me know where I should go to log the bug please? I’ve not done this before.
Thanks!
Hi Danny,
You can log a bug from right inside Unity editor (Help->Report A Bug). For the problem you describe it will be most helpful if you can attach the scene files you are trying to merge (the base, left and right files)
Thanks!
Bug reported: https://fogbugz.unity3d.com/default.asp?823535_cgmja32qpgrvd432
Let me know if you need anything else to help track it down
Hi Danny,
Unfortunately looks like there is an issue with the handling of Materials which is blocking the merge operation on your scene file. Specifically the “[CameraRig]-GoLems” object. Are you setting the material yourself or is this generated by a plugin? A possible work around would be to move that object into a prefab. That way other parts of your scene can be merged.
Regards,
Khris
Hey Khris,
Thanks for the response.
That object is just the standard camera rig that comes with the SteamVR plugin. We have made some modifications to it though in that it contains additional gameobjects and things.
It’s also already a prefab actually.
However, like I mentioned before we have been merging scenes containing this prefab previously (when we were on the Beta) without issues and as far as I know there haven’t been any changes to this prefab recently.
Could you go into any more detail into what the actual issue with the material is and which material on which gameobject it is that’s blocking the merge?
Also when you say “other parts of your scene can be merged” could you elaborate on that? Is there any way we could do partial merges and just revert conflicts on things we don’t care about?
In this case there shouldn’t be any changes that we have made in any object under the CameraRig-GoLems hierarchy so we could safely ignore any conflicts there tbh (ignore, as in accept whichever version, target or source).
But as far as I know you can’t really do any kind of selective merging can you? Not with UnityYAMLMerge at least? It either works and it does everything in the background or it doesn’t and it quits out like in this case.
But yeah like I say the whole thing is quite weird as there shouldn’t be any changes at all to anything under CameraRig-Golems (that is literally just the camera and the edits in the attached file were just some level design work on both sides). So it’s weird that there’s even a conflict there…
Hi Danny,
Looking at the scene file you attached (case_823535-Level2_-_Blocks_and_Deflection.unity) I see only one Material that is actually “in” the scene file which is attached to the MeshRenderer for the “[CameraRig]-GoLems” object. Thats the one which is causing the entire scene merge to fail. There is nothing wrong with the material. Its just the fact that its embedded in the scene file that is leading to the fail. I’m not too familiar with SteamVR so I’ll try to find someone who knows more and get back to you.
Also yes unfortunately there is no selective merging at the moment. Its all or none.
Hey Khris,
That’s super handy info actually. So based on that information it looks like the material you’re referring to is the steamvr camera’s playspace / chaperone bounds which gets created dynamically.
Like I said we have made alternations to that prefab so I wanted to see if it was something we did that was causing the issue.
So I went ahead and created a small test project with just the SteamVR plugin in it and created a test level and myself and one of my team made some changes and then tried to merge the file.
Sure enough we got the exact same error. So it doesn’t seem to be something we’ve done. Any users using SteamVR and UnityYAMLMerge will be hit by this issue. And once again I want to point out that we were merging scenes with this prefab in without issues on the beta versions and before switching to Unity 5.4.03f (maybe that helps you track down the issue?)
I went ahead and opened a new bug and included both the entire test project as well as the conflicting scene file.
https://fogbugz.unity3d.com/default.asp?824116_4ifn9kc70i3kp37m
Let me know if this helps and if you need us to do anymore testing.
This really slows down our workflow so as you can see I am super keen to get a quick resolution and back to us being able to work in parallel.
Thanks for your help!
Got it! Thanks for the added info. I’ll make a note to send bug to triage. Please use the new bug to track progress.
Hi! I’m getting the same error when trying to merge scenes. We are not using SteamVR, although we are using many plugins from the Asset Store. Here are the two scene files that I’m attempting to merge (unfortunately, I don’t have the base file for the 3 way merge): https://drive.google.com/open?id=0B1UxfQeDIMdSVGtucUZVM2JmWnM
The error I’m getting is the same as above:
“Expected key to point to yaml mapping: m_TexEnvs”
Hi! I took a look at your files and it appears to be the same issue that Danny ran into. I’ll try to get a fix out as soon as I can. Thanks for your patience while we work on this.
I have the same error “Expected key to point to yaml mapping: m_TexEnvs” while merging scene. I wanted to subscribe the issue by RSS, but it seems RSS link is not valid. I tried some readers and they don’t want to accept it.
I’ll up vote this one too. We’ve hit this several times, always in the scene with the steam vr camera rig, always running 5.4f3
Also having this issue and not using steam VR.
Nothing yet? I’m doing manual merges and losing tons of work every time. Two people can’t touch the same scene…
@lucasmontec Are you getting the “Expected key to point to yaml mapping: m_TexEnvs” error? There have been fixes going into 5.5 beta. If you have example files for the merge errors you are seeing would be great if you can log a bug (include base, left, right files in the bug report please)
Unity 5.5 is up now. My team is updating. We will test it out. Thanks!
Sorry for the HUGE delay on this answer! It is working now. It is a bit weird the way merges occur… and we have little control over conflict resolution… but it at least doesn’t crash.
@lucasmontec Glad to hear its working for you. Feel free to PM me if you want to share more info on the weirdness you’re seeing in your merges.