Skip to content

Fix error when an interactive param is also connected#2121

Merged
lgritz merged 3 commits into
AcademySoftwareFoundation:mainfrom
chellmuth:reparam-crash
May 29, 2026
Merged

Fix error when an interactive param is also connected#2121
lgritz merged 3 commits into
AcademySoftwareFoundation:mainfrom
chellmuth:reparam-crash

Conversation

@chellmuth
Copy link
Copy Markdown
Collaborator

When a parameter is interactive and connected, the connection should win. OSL was incorrectly treating the interactive trait as taking precedence, attempting to write into the read-only interactive buffer during shader execution.

Assisted-by: Claude Code / claude-sonnet-4-6

Checklist:

  • I have read the guidelines on contributions and code review procedures.
  • I have read the Policy on AI Coding Assistants
    and if I used AI coding assistants, I have an Assisted-by: TOOL / MODEL
    line in the pull request description above.
  • I have updated the documentation if my PR adds features or changes
    behavior.
  • I am sure that this PR's changes are tested in the testsuite.
  • I have run and passed the testsuite in CI before submitting the
    PR, by pushing the changes to my fork and seeing that the automated CI
    passed there. (Exceptions: If most tests pass and you can't figure out why
    the remaining ones fail, it's ok to submit the PR and ask for help. Or if
    any failures seem entirely unrelated to your change; sometimes things break
    on the GitHub runners.)
  • My code follows the prevailing code style of this project and I
    fixed any problems reported by the clang-format CI test.

chellmuth added 2 commits May 27, 2026 11:09
When a parameter is interactive and connected, the connection should
win. OSL was incorrectly treating the interactive trait as taking
precedence, attempting to write into the read-only interactive buffer
during shader execution.

Signed-off-by: Chris Hellmuth <chellmuth@gmail.com>
Signed-off-by: Chris Hellmuth <chellmuth@gmail.com>
@sfriedmapixar
Copy link
Copy Markdown
Contributor

Looks good, but could you please add the corresponding fix to batched_backenllvm.cpp?

Signed-off-by: Chris Hellmuth <chellmuth@gmail.com>
@chellmuth
Copy link
Copy Markdown
Collaborator Author

Looks good, but could you please add the corresponding fix to batched_backenllvm.cpp?

Sure thing, done!

@lgritz lgritz merged commit 1f8d394 into AcademySoftwareFoundation:main May 29, 2026
27 checks passed
@chellmuth chellmuth deleted the reparam-crash branch May 29, 2026 18:49
lgritz pushed a commit to lgritz/OpenShadingLanguage that referenced this pull request May 29, 2026
…reFoundation#2121)

When a parameter is interactive and connected, the connection should
win. OSL was incorrectly treating the interactive trait as taking
precedence, attempting to write into the read-only interactive buffer
during shader execution.

Fixed both single point and batch modes.

---------

Signed-off-by: Chris Hellmuth <chellmuth@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants