llpreviewscript: fix LLMutex assert crash when LSL compile fails#350
llpreviewscript: fix LLMutex assert crash when LSL compile fails#350Quinn-Elara wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughLSL upload completion and failure handlers now defer floater lookup, compile callbacks, and compile-result sending to the main coroutine. Failed uploads return ChangesLSL upload callback dispatch
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant UploadFiber
participant LLAppViewer
participant LLPreviewLSL
UploadFiber->>LLAppViewer: postToMainCoro(upload result handling)
LLAppViewer->>LLPreviewLSL: find floater and invoke compile callback
LLPreviewLSL->>LLPreviewLSL: sendCompileResults
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
LLPreviewLSL::finishedLSLUpload and failedLSLUpload were being called directly on the upload coprocedure fiber, causing a crash when the downstream UI path (callbackLSLCompileFailed -> selectFirstError -> reflow -> LLMutex::lock) asserted LLCoros::on_main_coro(). Wrap both callbacks in postToMainCoro(), matching the fix already applied to LLLiveLSLEditor::finishLSLUpload.
90ea0f5 to
ee00968
Compare
Description
LLPreviewLSL::finishedLSLUpload and failedLSLUpload were being called directly on the upload coprocedure fiber, causing a crash when the downstream UI path (callbackLSLCompileFailed -> selectFirstError -> reflow -> LLMutex::lock) asserted LLCoros::on_main_coro(). Wrap both callbacks in postToMainCoro(), matching the fix already applied to LLLiveLSLEditor::finishLSLUpload.
Fixes a CTD when using the built-in script editor.
Related Issues
Issue Link:
Checklist
Please ensure the following before requesting review:
Additional Notes