secondlife / secondlife/viewer

GLTF Mesh Import: Possible spurious or misleading MAV_BLOCK_MISSING and Internal Server Errors

Open
#4,136 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug gltf_import team:viewer
Dominant language
C++
Stars
299
Forks
146
Avg merge
1d 9h
Merged PRs (30d)
88

Description

Environment

Second Life Project Gltf-mesh-import 7.1.14.15177952847
GLB exported from Blender 4.4.3

Description

Pipework-Top-Right.glb glTF mesh with a single simple (non-textured) coloured material shows a number of "interesting" error messages or mesh uploader behaviour.

On first try Calculate weights & fee it indicates some parts are too small for the physics mesh, though its one single large mesh element. Selecting "Bounding Box" physics fixed that.

On another try of Calculate weights & fee it gave MAV_BLOCK_MISSING which is odd when only a single texture is applied to the whole mesh, as I was trying to use the explanation for that type of error message at

https://community.secondlife.com/forums/topic/88636-specifications-for-sl-compatible-dae-format/#comment-742343

On another upload attempt I got an "Internal Server Error".

Pipework-Top-Right failed to upload: Internal Server Error.
See SecondLife.log for details

But after all that on yet another attempt at Calculate and Upload without changing anything in the uploader it uploaded, though scale of rezzed item is about 50% of what it should be.

So I offer this simple glTF mesh piece as a test article in case others can see any or all these issues to help make the glTF emsh uploader more robust.


SecondLife.log relevant sections:

2025-05-22T08:35:59Z WARNING #Mesh# newview/llmeshrepository.cpp(3207) LLMeshUploadThread::onCompleted : Upload failed. Reason: Internal Server Error (Http_500)
2025-05-22T08:35:59Z WARNING #Mesh# newview/llmeshrepository.cpp(831) log_upload_error : Error in stage: upload, Reason: Internal Server Error (Http_500)
2025-05-22T08:35:59Z WARNING #Mesh# newview/llmeshrepository.cpp(842) log_upload_error : error: {'identifier':'NetworkError','message':'Internal Server Error'}
2025-05-22T08:35:59Z WARNING #Mesh# newview/llmeshrepository.cpp(843) log_upload_error : mesh upload failed, stage 'upload', error '', message 'Internal Server Error', id 'NetworkError'
2025-05-22T08:35:59Z WARNING # newview/lltoastalertpanel.cpp(197) LLToastAlertPanel::LLToastAlertPanel : Alert: Pipework-Top-Right failed to upload: Internal Server Error\n\nSee SecondLife.log for details

2025-05-22T08:41:48Z WARNING #Mesh# newview/llmeshrepository.cpp(3307) LLMeshUploadThread::onCompleted : Fee request failed. Not in expected 'upload' state.
2025-05-22T08:41:48Z WARNING #Mesh# newview/llmeshrepository.cpp(831) log_upload_error : Error in stage: fee, Reason: (Http_200)
2025-05-22T08:41:48Z WARNING #Mesh# newview/llmeshrepository.cpp(842) log_upload_error : error: {'BlockName':'physics_convex','Context':'headerHasBlock','ErrorCode':i7,'MeshIndex':i0,'identifier':'Upload_InvalidAsset','message':'MAV_BLOCK_MISSING'}
2025-05-22T08:41:48Z WARNING #Mesh# newview/llmeshrepository.cpp(843) log_upload_error : mesh upload failed, stage 'fee', error '', message 'MAV_BLOCK_MISSING', id 'Upload_InvalidAsset'
2025-05-22T08:41:48Z WARNING # newview/llfloatermodelpreview.cpp(1876) LLFloaterModelPreview::setModelPhysicsFeeErrorStatus : LLFloaterModelPreview::setModelPhysicsFeeErrorStatus(13107200 : )
2025-05-22T08:41:48Z WARNING # newview/lltoastalertpanel.cpp(197) LLToastAlertPanel::LLToastAlertPanel : Alert: Pipework- failed to upload: MAV_BLOCK_MISSING\n\nSee SecondLife.log for details

Pipework-Top-Right.zip

Image

Reproduction steps
  1. Take Pipework-Top-Right glTF .glb example attached and use mesh uploader to import it to Second Life Beta Grid.
  2. Note whether mesh uploads first time or the issues raised above are observed.
  3. If MAV_BLOCK_MISSING seek explanation as the item has a single applied material.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report with the attached Pipework-Top-Right.glb on the Second Life Beta Grid and review SecondLife.log. Start with newview/llmeshrepository.cpp, especially the logged fee and upload stages, then inspect newview/llfloatermodelpreview.cpp for the physics-fee error status. Done requires identifying the cause of the inconsistent MAV_BLOCK_MISSING, internal-server, and scale behavior and defining a reliable correction.

Written by the indexing model from the issue text.

Assessment

Tech stack
blender, cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.