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

Fixes crash when full refreshing AssetProcessor #17869

Merged

Conversation

nick-l-o3de
Copy link
Contributor

What does this PR do?

Fixes crash when full refreshing AssetProcessor
Also fixes a crash when deleting elements out of the file system
Also fixes a crash when clicking on thumbnails while they are generating.

How was this PR tested?

All three of the cases above were easy to repro 100%

  1. Click the Rescan All button in AP -> crash
  2. Duplicate any folder in the asset tree using Windows Explorer or Linux or whatever. Then delete it. Crash
  3. Click in AB on "Editor" -> "Icons" -> Crash.

Please describe any testing performed.
Testing all three of the above cases to ensure no crash anymore.
Testing duplicating/adding new script canvas assets to ensure they appear.
Deleting assets and ensuring they disappear
Clicking around in the AB while icons are generating
Doing the same in "list view" / search result mode.

Also fixes a crash when deleting elements out of the file system
Also fixes a crash when clicking on thumbnails while they are generating.

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
@nick-l-o3de nick-l-o3de requested review from a team as code owners May 2, 2024 20:36
@nick-l-o3de nick-l-o3de requested review from lemonade-dm, jjjoness and a team and removed request for a team May 2, 2024 20:36
…AssetBrowserComponent.cpp

Co-authored-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com>
Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
@nick-l-o3de nick-l-o3de merged commit c8f30b1 into o3de:point-release/23103 May 3, 2024
3 checks passed
nick-l-o3de added a commit to nick-l-o3de/o3de that referenced this pull request May 3, 2024
* Fixes crash when full refreshing AssetProcessor
Also fixes a crash when deleting elements out of the file system
Also fixes a crash when clicking on thumbnails while they are generating.

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>

* Update Code/Framework/AzToolsFramework/AzToolsFramework/AssetBrowser/AssetBrowserComponent.cpp

Co-authored-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com>
Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>

---------

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
Co-authored-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com>
nick-l-o3de added a commit that referenced this pull request May 14, 2024
* Fixes crash when full refreshing AssetProcessor
Also fixes a crash when deleting elements out of the file system
Also fixes a crash when clicking on thumbnails while they are generating.

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
Co-authored-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com>
nick-l-o3de added a commit to nick-l-o3de/o3de that referenced this pull request May 16, 2024
)

* Fixes crash when full refreshing AssetProcessor
Also fixes a crash when deleting elements out of the file system
Also fixes a crash when clicking on thumbnails while they are generating.

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
Co-authored-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com>
Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
nick-l-o3de added a commit to nick-l-o3de/o3de that referenced this pull request May 19, 2024
)

* Fixes crash when full refreshing AssetProcessor
Also fixes a crash when deleting elements out of the file system
Also fixes a crash when clicking on thumbnails while they are generating.

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
Co-authored-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com>
Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
nick-l-o3de added a commit that referenced this pull request May 19, 2024
… into dev in time (#17927)

* Cherrypick pr fixes from pointrelease to development (#17839)

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>

* Fixes a flaky test and possible actual crash (#17826) (#17838)

Cherry-pick of PR #17826 to development branch from
point release commit 458541f

It turns out that previewing a FBX or other scene
in the asset browser causes the scene to be loaded
and instantiated (ie, prefab processor runs) in an
async thread.  But that thread sets the name of the container Entity
and causes the entity system to send entity name changes from that
async thread, even though the entity is temp and inactive.

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>

* Fixes crash when full refreshing AssetProcessor (#17869) (#17874)

* Fixes crash when full refreshing AssetProcessor
Also fixes a crash when deleting elements out of the file system
Also fixes a crash when clicking on thumbnails while they are generating.

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
Co-authored-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com>
Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>

---------

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
Co-authored-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants