Sensors: continue without global illumination when the engine has no VCT (backport #4199) #4204
All Vouch review confidence checks passed
Residual risk 0.10 = Change Risk (0.19) × (1 − Review Confidence (0.48)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.19 · 14 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.350
Diff Size
diff_size
0.162
Real PR Conversation Timeline
2 items
Approved
Approved these changes.
ahcorde
mergify[bot]
🦟 Bug fix
Summary
The Sensors system crashes the server when a world enables VCT global illumination and the server render engine is not ogre2.
SensorsPrivate::WaitForInitcallsscene->CreateGlobalIlluminationVct()and uses the result without checking it.Ogre2Sceneimplements it.BaseScenelogs "GlobalIlluminationVct not supported by: <engine>" and returns null for every other engine.<global_illumination type="vct">in the Sensors plugin, together with another engine, segfaults in the rendering thread.With this PR the system prints one warning that names the engine, turns global illumination off and continues. Nothing changes on ogre2.
To reproduce: run a world with VCT enabled on a server render engine other than ogre2, for example
ogre. It gets the same null pointer fromBaseScene, so I expect the same crash there.Tests:
INTEGRATION_camera_sensor_global_illumination(so VCT is still on with ogre2),INTEGRATION_sensors_system,INTEGRATION_camera_sensor_background,INTEGRATION_reset_sensors,INTEGRATION_sensors_system_update_rate. I did not run the rest of the suite locally.Backport Policy
- [x] Jetty
- [x] Ionic
- [x] Harmonic
- [ ] Fortress
The same unchecked call is in
gz-sim10,gz-sim9andgz-sim8. I have not built those branches with the change.Checklist
codecheckpassed (See contributing)Assisted-by: Claude Opus 5.5
Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-byandGenerated-bymessages.🤖 Generated with Claude Code
https://claude.ai/code/session_01ME1hnMnA45pNAYU7LAASSV
<hr>This is an automatic backport of pull request #4199 done by Mergify.