Skip to content

fix: fix crash on Arch when creating new tab & fix cmake compile error#465

Merged
lzwind merged 1 commit into
linuxdeepin:develop/snipefrom
calsys456:develop/snipe
Mar 30, 2026
Merged

fix: fix crash on Arch when creating new tab & fix cmake compile error#465
lzwind merged 1 commit into
linuxdeepin:develop/snipefrom
calsys456:develop/snipe

Conversation

@calsys456

@calsys456 calsys456 commented Dec 5, 2025

Copy link
Copy Markdown
Contributor
  1. decoder.decodeLine(&_image[loc(0,cursorPos.y())],_usedColumns,_lineProperties[cursorPos.y()]); will raise an error when _lineProperties is empty. Check and early return in this case.

  2. CMake Error at 3rdparty/terminalwidget/CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument value. Or, use the ...
syntax
to tell CMake that the project requires at least but has been
updated
to work with policies introduced by or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

... so we have to increase cmake_minimum_required

After those fix deepin-terminal can be compiled and run on Archlinux without obvious bug.

@deepin-ci-robot

Copy link
Copy Markdown

Hi @calsys456. Thanks for your PR. 😃

@deepin-ci-robot

Copy link
Copy Markdown

Hi @calsys456. Thanks for your PR.

I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

1.
decoder.decodeLine(&_image[loc(0,cursorPos.y())],_usedColumns,_lineProperties[cursorPos.y()]);
will raise an error when _lineProperties is empty. Check and early
return in this case.

2. CMake Error at 3rdparty/terminalwidget/CMakeLists.txt:1
(cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max>
syntax
  to tell CMake that the project requires at least <min> but has been
updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

... so we have to increase cmake_minimum_required

After those fix deepin-terminal can be compiled and run on Archlinux
without obvious bug.
// return the text from the current line
QString lineText;
if (_lineProperties.isEmpty())
return lineText;

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.

Good catch! We should definitely add a bounds check before accessing _lineProperties and _image. Something like:
if (cursorPos.y() < 0 || cursorPos.y() >= _lineProperties.size())
return lineText;

@deepin-bot

deepin-bot Bot commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 6.5.23
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #466

@deepin-bot

deepin-bot Bot commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

TAG Bot

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

@deepin-bot

deepin-bot Bot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 6.5.25
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #476

@deepin-bot

deepin-bot Bot commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 6.5.26
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #479

@deepin-bot

deepin-bot Bot commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 6.5.27
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #486

@deepin-bot

deepin-bot Bot commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 6.5.28
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #488

@deepin-bot

deepin-bot Bot commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 6.5.29
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #500

@felixonmars

Copy link
Copy Markdown
Member

Applied for Arch and verified the fix. Thanks!

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: calsys456, lzwind

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

@lzwind lzwind merged commit 3a6efdc into linuxdeepin:develop/snipe Mar 30, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants