Skip to content

fix: StyledBehindWindowBlur crash in render thread - #469

Merged
18202781743 merged 1 commit into
linuxdeepin:masterfrom
18202781743:master
Mar 4, 2025
Merged

fix: StyledBehindWindowBlur crash in render thread#469
18202781743 merged 1 commit into
linuxdeepin:masterfrom
18202781743:master

Conversation

@18202781743

@18202781743 18202781743 commented Feb 27, 2025

Copy link
Copy Markdown
Contributor

as title.

pms: TASK-368399

Summary by Sourcery

Bug Fixes:

  • Fixes a crash in the render thread that could occur when the blur behind item is destroyed by a Loader by checking if the window is valid before rendering.

@18202781743
18202781743 requested review from BLumia and mhduiy February 27, 2025 12:36
deepin-ci-robot added a commit to linuxdeepin/dtk6declarative that referenced this pull request Feb 27, 2025
Synchronize source files from linuxdeepin/dtkdeclarative.

Source-pull-request: linuxdeepin/dtkdeclarative#469

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @18202781743 - I've reviewed your changes - here's some feedback:

Overall Comments:

  • It might be good to add a comment explaining why m_item->window() might be null.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

mhduiy
mhduiy previously approved these changes Feb 27, 2025
@deepin-bot

deepin-bot Bot commented Feb 27, 2025

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 5.7.11
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #470

@18202781743

Copy link
Copy Markdown
Contributor Author

/forcemerge

@deepin-bot

deepin-bot Bot commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

This pr force merged! (status: unknown)

@deepin-ci-robot

Copy link
Copy Markdown
Contributor

deepin pr auto review

关键摘要:

  • render函数中增加了对m_item->window()的检查,这是一个好的做法,可以防止在m_item无效时调用window()方法导致的崩溃。

是否建议立即修改:

  • 否,当前提交的修改是合理的,没有发现需要立即修改的问题。但是,建议进行进一步的代码审查以确保没有其他潜在的问题。

deepin-ci-robot added a commit to linuxdeepin/dtk6declarative that referenced this pull request Mar 4, 2025
Synchronize source files from linuxdeepin/dtkdeclarative.

Source-pull-request: linuxdeepin/dtkdeclarative#469
@deepin-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, BLumia

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@18202781743
18202781743 merged commit e54ec0e into linuxdeepin:master Mar 4, 2025
18202781743 pushed a commit to linuxdeepin/dtk6declarative that referenced this pull request Mar 4, 2025
Synchronize source files from linuxdeepin/dtkdeclarative.

Source-pull-request: linuxdeepin/dtkdeclarative#469
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