Skip to content

#3612 Don't immediately fail download on startup, wait for the region#5184

Merged
akleshchev merged 1 commit intorelease/2026.01from
andreyk/viewer_3612_3
Dec 24, 2025
Merged

#3612 Don't immediately fail download on startup, wait for the region#5184
akleshchev merged 1 commit intorelease/2026.01from
andreyk/viewer_3612_3

Conversation

@akleshchev
Copy link
Copy Markdown
Contributor

After doing some further testing around assets I found out that a lot of assets failed to load on startup because there was no region yet. Hense needing to wait for region to become ready.

It's probably smarter to make asset storage wait with requests in general, but that would require a stronger separation from cache which is functional already and can be loading assets, so I'm pausing individual requests instead, there is a maximum of 12, so there should be no 'bloat' from waiting coros.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses asset loading failures that occur during viewer startup when the region is not yet available. Instead of immediately failing asset download requests when no region is set, the code now waits for the region to become available (with a timeout) during the world initialization phase.

Key changes:

  • Added logic to suspend asset download coroutines until the agent's region becomes available during startup
  • Improved cleanup of signal connections in both the new region-waiting code and existing capabilities-waiting code
  • Added proper timeout handling for region availability

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread indra/newview/llviewerassetstorage.cpp
Comment thread indra/newview/llviewerassetstorage.cpp
Comment thread indra/newview/llviewerassetstorage.cpp Outdated
Comment thread indra/newview/llviewerassetstorage.cpp
It's probably smarter to make asset storage wait with requests in
general, but that would require a stronger separation from cache which
is functional already and can be loading assets, so I'm pausing
individual requests instead, there is a maximum of 12, so there should
be no 'bloat' from waiting coros.
@akleshchev akleshchev force-pushed the andreyk/viewer_3612_3 branch from 5a2265c to b92df3f Compare December 23, 2025 00:45
@akleshchev akleshchev merged commit 793acc7 into release/2026.01 Dec 24, 2025
12 checks passed
@akleshchev akleshchev deleted the andreyk/viewer_3612_3 branch December 24, 2025 11:01
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants