Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on saving an asset in Asset Editor ~~if it is not an intersection~~ #1313

Closed
krzychu124 opened this issue Jan 25, 2022 · 8 comments · Fixed by #1505
Closed

Exception on saving an asset in Asset Editor ~~if it is not an intersection~~ #1313

krzychu124 opened this issue Jan 25, 2022 · 8 comments · Fixed by #1505
Assignees
Labels
Asset Editor Issue related to TM:PE support in content editors BUG Defect detected
Milestone

Comments

@krzychu124
Copy link
Member

krzychu124 commented Jan 25, 2022

Fixed in TM:PE 11.6.5.2

Describe the problem

The user reported issue that creating parking spot asset in the Asset Editor fails to save

System.NullReferenceException: Object reference not set to an instance of an object
at TrafficManager.State.Asset.AssetData.GetPathsNetworkIDs (.BuildingInfo prefab) [0x00000] in <filename unknown>:0
at TrafficManager.State.Asset.AssetData.GetAssetData (.BuildingInfo prefab) [0x00000] in <filename unknown>:0
at TrafficManager.Lifecycle.AssetDataExtension.OnAssetSavedImpl...

Steps to reproduce (not confirmed yet)

  1. Open Asset Editor
  2. Try creating asset of different type than intersection
  3. Check log for errors after asset save
@krzychu124 krzychu124 added BUG Defect detected Asset Editor Issue related to TM:PE support in content editors labels Jan 25, 2022
@krzychu124 krzychu124 added this to the 11.6.4-hotfix-1 milestone Jan 25, 2022
@krzychu124 krzychu124 self-assigned this Jan 25, 2022
@originalfoo originalfoo pinned this issue Jan 25, 2022
@kianzarrin
Copy link
Collaborator

Intersection is BuildinfInfo as is the case with buildings/Parks (and parkings)

@kianzarrin kianzarrin changed the title Exception on saving an asset in Asset Editor if it is not an intersection Exception on saving an asset in Asset Editor ~~if it is not an intersection~~ Jan 25, 2022
@originalfoo originalfoo removed this from the 11.6.4-hotfix-1 milestone Jan 26, 2022
@krzychu124 krzychu124 added the irreproducible Unable to reproduce problem label Jan 26, 2022
@originalfoo
Copy link
Member

@kianzarrin
Copy link
Collaborator

If I can reproduce it I can fix it.

@krzychu124
Copy link
Member Author

@kianzarrin in the Asset editor try creating building, select anything as a base but add at least one sub-building e.g. plop it with FindIt then save the asset.

@kianzarrin
Copy link
Collaborator

Oh so no networks

@kianzarrin
Copy link
Collaborator

@krzychu124 are you working on this?
if not can you please assign it to me?

@krzychu124
Copy link
Member Author

@kianzarrin I could investigate and try to fix it, but if you have more time go on, you can take it 😄

@krzychu124 krzychu124 removed their assignment Apr 2, 2022
@kianzarrin kianzarrin self-assigned this Apr 2, 2022
@kianzarrin
Copy link
Collaborator

my guess is if there are zero segments then we should not serialize anything. that would fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Asset Editor Issue related to TM:PE support in content editors BUG Defect detected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants