Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash after adding text area and clicking on the any other tool. #2283

Closed
vanheck opened this issue Jan 19, 2022 · 17 comments
Closed

Crash after adding text area and clicking on the any other tool. #2283

vanheck opened this issue Jan 19, 2022 · 17 comments
Assignees
Labels
Bug It's a bug

Comments

@vanheck
Copy link

vanheck commented Jan 19, 2022

Flameshot Version

$ dnf list installed | grep flameshot
flameshot.x86_64                                   11.0.0-1.fc35                          @updates  

$ flameshot --version
Flameshot v11.0.0 (-)
Compiled with Qt 5.15.2

Installation Type

Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)

Operating System type and version

Fedora 35 + Gnome 41.3 (wayland)

Description

Crash after adding text area and clicking on the any other tool.

Steps to reproduce

  1. flameshot gui
  2. select area to take the screen
  3. Click on the button Add text to your capture (T) - write some text
  4. Click on any other tool to anotate (line, arrow line, rectangle, etc.) - crash

Screenshots or screen recordings

https://youtu.be/X5rv4BtETr8

System Information

$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="35 (Workstation Edition)"
ID=fedora
VERSION_ID=35
VERSION_CODENAME=""
PLATFORM_ID="platform:f35"
PRETTY_NAME="Fedora Linux 35 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:35"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f35/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=35
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=35
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

obrazek

$ uname -a
Linux jvh-machine 5.15.14-200.fc35.x86_64 #1 SMP Tue Jan 11 16:49:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
@vanheck vanheck added the Unconfirmed Bug The bug is not confirmed by anyone else. label Jan 19, 2022
@borgmanJeremy
Copy link
Contributor

Can you post your locale config?

@vanheck
Copy link
Author

vanheck commented Jan 19, 2022

Not sure if its the right command, but here is some locale settings:

$ locale
LANG=cs_CZ.UTF-8
LC_CTYPE="cs_CZ.UTF-8"
LC_NUMERIC="cs_CZ.UTF-8"
LC_TIME="cs_CZ.UTF-8"
LC_COLLATE="cs_CZ.UTF-8"
LC_MONETARY="cs_CZ.UTF-8"
LC_MESSAGES="cs_CZ.UTF-8"
LC_PAPER="cs_CZ.UTF-8"
LC_NAME="cs_CZ.UTF-8"
LC_ADDRESS="cs_CZ.UTF-8"
LC_TELEPHONE="cs_CZ.UTF-8"
LC_MEASUREMENT="cs_CZ.UTF-8"
LC_IDENTIFICATION="cs_CZ.UTF-8"
LC_ALL=

And output of this bug is:

$ flameshot gui
flameshot: info: Screenshot aborted.

@mmahmoudian
Copy link
Member

mmahmoudian commented Jan 19, 2022

I can reproduce this in a clean VM

image

@mmahmoudian mmahmoudian added Bug It's a bug and removed Unconfirmed Bug The bug is not confirmed by anyone else. labels Jan 19, 2022
@borgmanJeremy
Copy link
Contributor

@mmahmoudian did you set any locales? On arch I dont have this issue.

@mmahmoudian
Copy link
Member

@borgmanJeremy yes, because of my keyboard I most definitely have some non en_US locale entries. I can send them to you tomorrow.

@borgmanJeremy
Copy link
Contributor

Ok in a clean fedora vm with en_US.UTF-8 I cannot reproduce it

@mmahmoudian mmahmoudian self-assigned this Jan 19, 2022
@mlcloudsec
Copy link

mlcloudsec commented Jan 20, 2022

I can verify it happens on Pop !OS 21.10 as described using kernel 5.15.11-76051511-generic: Selecting any tool after having selected the text input closes the selection tool.

No errors throw, here the CLI output:

➜  flameshot gui
flameshot: info: Screenshot aborted.

Note, if you "de-select" the text tool before selecting another tool it does not crashes on my system.

@AndreaMarangoni
Copy link
Contributor

AndreaMarangoni commented Jan 21, 2022

@mmahmoudian did you set any locales? On arch I dont have this issue.

Interesting. On my arch, with Uk locale, I had to change this line on filenamehandler.cpp to make it work. (I know I should have reported it)

@AndreaMarangoni
Copy link
Contributor

AndreaMarangoni commented Jan 21, 2022

I can verify it happens on Pop !OS 21.10 as described using kernel 5.15.11-76051511-generic: Selecting any tool after having selected the text input closes the selection tool.

No errors throw, here the CLI output:

➜  flameshot gui
flameshot: info: Screenshot aborted.

Note, if you "de-select" the text tool before selecting another tool it does not crashes on my system.

and basically I came here to report ☝️ .. if you select Text tool and then any other tool it crashes.

@borgmanJeremy
Copy link
Contributor

@AndreaMarangoni can you please make that change a separate PR. I can get that merged into 11.1 on its own if it solves the issue.

@AndreaMarangoni
Copy link
Contributor

@AndreaMarangoni can you please make that change a separate PR. I can get that merged into 11.1 on its own if it solves the issue.

Not sure I understood correctly, but the fix for the locale and the crash after selecting the Text tool are two separate issues.
I can push a PR with the locale fix anytime.

@AndreaMarangoni
Copy link
Contributor

@borgmanJeremy FYI #2304

@Drarig29
Copy link

Drarig29 commented Feb 1, 2022

I confirm that it doesn't crash if you first un-select the text area tool, and select the other tool.

@yutv
Copy link

yutv commented Feb 4, 2022

It works when you initiate UI from the flameshot main menu
image

but doesn't work in case of using a hotkey, see #2353 (comment)

@AndreaMarangoni
Copy link
Contributor

I found and fixed the issue. PR soon.

@AndreaMarangoni
Copy link
Contributor

PR #2369

@borgmanJeremy
Copy link
Contributor

Resolved with #2369

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug It's a bug
Projects
None yet
Development

No branches or pull requests

7 participants