-
Notifications
You must be signed in to change notification settings - Fork 40
Notify waiting objects when mesh header retries are exhausted #395
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
Open
Shadowolf7
wants to merge
1
commit into
AlchemyViewer:develop
Choose a base branch
from
Shadowolf7:fix/mesh-header-retry-exhaustion
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+11
−1
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: AlchemyViewer/Alchemy
Length of output: 159
🏁 Script executed:
Repository: AlchemyViewer/Alchemy
Length of output: 50378
🤖 get_repo_knowledge executed:
get_repo_knowledge AlchemyViewer/Alchemy /tmp/coderabbit-repo-knowledge/alchemyviewer-alchemy-ef37bc8e/architecture /tmp/coderabbit-repo-knowledge/alchemyviewer-alchemy-ef37bc8e/conventions /tmp/coderabbit-repo-knowledge/alchemyviewer-alchemy-ef37bc8e/learningsLength of output: 46565
🏁 Script executed:
Repository: AlchemyViewer/Alchemy
Length of output: 50378
🏁 Script executed:
Repository: AlchemyViewer/Alchemy
Length of output: 50377
🌐 Web query:
AlchemyViewer Alchemy indra/newview/llmeshrepository.cpp LLMeshHeaderHandler requestGetByteRange💡 Result:
In the Alchemy Viewer source code, the file indra/newview/llmeshrepository.cpp contains the implementation for managing mesh assets, including the LLMeshHeaderHandler class [1][2]. This class is responsible for handling mesh header data, which often involves making network requests to fetch specific parts of mesh files [3][4]. The method requestGetByteRange is an HTTP-related function, typically associated with the viewer's underlying networking layer (LLCore::HttpRequest or similar) [3][5]. It is used to perform a partial HTTP GET request (a byte-range request) to fetch a specific segment of a file [5]. Within LLMeshHeaderHandler, this functionality is utilized to retrieve only the header portion of a mesh asset rather than downloading the entire file at once [4]. This is an optimization that allows the viewer to parse mesh metadata—such as structure and parameters—before deciding whether to fetch the full mesh data [4]. Because Alchemy Viewer is a fork of the official Linden Lab Second Life viewer, this code structure is inherited from the upstream codebase [6][7]. Similar implementations of LLMeshHeaderHandler and its use of byte-range requests for asset fetching can be found in other viewer projects derived from the official source [3][4]. [6][1][2][5]
Citations:
🏁 Script executed:
Repository: AlchemyViewer/Alchemy
Length of output: 11158
🏁 Script executed:
Repository: AlchemyViewer/Alchemy
Length of output: 5499
🏁 Script executed:
Repository: AlchemyViewer/Alchemy
Length of output: 2990
🏁 Script executed:
Repository: AlchemyViewer/Alchemy
Length of output: 25464
Make failed header submissions the sole owner of retry state.
When
LLCore::HttpRequest::requestGetByteRange()returnsLLCORE_HTTP_HANDLE_INVALID,fetchMeshHeader()leaves the handler out ofmHttpRequestSet. Its destructor requeues a newHeaderRequest, whoseRequestStatsresetsmRetriesto zero. The caller simultaneously enters the exhausted branch and marks every LOD unavailable. Repeated submission failures can therefore bypass the retry limit and generate unbounded header work.Suppress the destructor retry for invalid submissions, or move retry ownership into the submission-failure path.
🤖 Prompt for AI Agents