Skip to content

#6211 Fix environment crashes - #6212

Merged
akleshchev merged 2 commits into
developfrom
andreyk/viewer_6211
Aug 28, 2026
Merged

#6211 Fix environment crashes#6212
akleshchev merged 2 commits into
developfrom
andreyk/viewer_6211

Conversation

@akleshchev

@akleshchev akleshchev commented Aug 27, 2026

Copy link
Copy Markdown
Contributor
  1. Tried to set environment on shutdown
  2. Tried to bind environemnt without shader, shader failed to compile and failed to fallback to lower levels.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 aims to prevent environment-related crashes during shutdown and improve shader fallback behavior when shader compilation/linking fails.

Changes:

  • Pass the application quitting state into closeFloater(...) when asset loading fails in the environment editor floater.
  • Add LLApp::isQuitting() early-return guards in environment asset-load callbacks to avoid applying environments during shutdown.
  • Drain OpenGL errors before retrying shader creation at a lower shader level to improve fallback reliability.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
indra/newview/llfloatereditenvironmentbase.cpp Ensures floater closure respects app quitting state when settings fail to load.
indra/newview/llenvironment.cpp Adds shutdown guards in async environment asset-load callbacks to avoid work during quitting.
indra/llrender/llglslshader.cpp Drains GL errors before retrying shader creation to support fallback to lower shader levels.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread indra/llrender/llglslshader.cpp Outdated
@akleshchev
akleshchev force-pushed the andreyk/viewer_6211 branch from c083023 to 24a5420 Compare August 28, 2026 08:46
When loading environment (sun) shader, user got silent failures on retry
@akleshchev
akleshchev force-pushed the andreyk/viewer_6211 branch from 24a5420 to c634689 Compare August 28, 2026 16:40
@akleshchev
akleshchev merged commit 62033f2 into develop Aug 28, 2026
18 checks passed
@akleshchev
akleshchev deleted the andreyk/viewer_6211 branch August 28, 2026 18:00
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants