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 when daemon is not started and disabledTrayIcon=true
#1730
Comments
On Manjaro KDE Xorg with flameshot v0.10.0, I get the same output as you when running Unfortunately at the time of writing this comment, the version of Flameshot in NixOS repository is still 0.9.0 and this might be a bug in that version. |
Thanks for even checking the packaging status for my distro, @mmahmoudian! I'll try to get 0.10.0 installed and see if I can still replicate this crash. |
The crash does not occur on 0.10.0 on my system, so it has probably been fixed somewhere between 0.9.0 and 0.10.0. Funnily enough, the first launch edited my Closing this issue since it's not present in the latest release. Is there an intention to backport bugfixes to 0.9.0? If so, please let me know and I'll reopen the issue to track a bug present in the older version. |
Thanks for trying it out and reporting back. It always feels good the the person who opens an issue shows interest in investigating and solving the problem 🍻 I don't see why backporting should be done as all distros should gradually catch up with the latest version. I don't know how frequently NixOS updates their packages repo, but to my understanding they are not like Debian or Ubuntu that takes years. Also imho backporting is useful when a necessary feature is removed from a software (e.g hardware support), but in case of Flameshot, we have not removed any functionality or OS support, even the QT version is the same. Therefore backporting will just add extra workload to the devs. That said, I'm not a developer in this repo and I just do triage and maintenance of website and documentation. Perhaps @borgmanJeremy can answer you better in this matter. |
That makes sense. The update to 0.10.0 is making its way through nixpkgs already, so that's not my concern. I'm not familiar with flameshot's versioning policy which is why I thought I'd ask just in case, but in hindsight I realized backporting really doesn't make that much sense (I forgot I'm looking at an executable rather than a library). Thanks for your help with this issue! |
My concern is that there could be something buggy within the source code that checks update. If that is the case, the current v0.10.0 would also crash whenever a new version (e.g., v0.11.0) is available on internet. Upgrading only hides the problem, not solves the problem. Of course, it would be best if the issue has already been fixed after v0.9.0. We could wait and see what happens with the next release. |
@hosiet I think this bug is (most likely) related to tray icon configuration rather than checking for updates, could you be thinking of another issue? |
@chuahou I believe I am referencing the correct issue. See https://bugs.debian.org/991320 for detailed analysis on the bug. I will test it first and propose a patch if everything is OK. |
Fix crash when the user has disabledTrayIcon=true, but also with checkForUpdates=true (either explicitly or implicitly). closes: flameshot-org#1721 . closes: flameshot-org#1730 . See also: https://bugs.debian.org/991320 Signed-Off-By: Boyuan Yang <byang@debian.org>
@hosiet I see, very nice! I wasn't aware of the discussion on the Debian bugtracker. |
I'll release a 10.1 fix this weekend. Thanks! |
Flameshot version
Describe the bug
When
ps aux | grep flameshot
), such as afterkillall flameshot
, anddisabledTrayIcon=true
running
flameshot
crashes.flameshot config
andflameshot gui
similarly crash but without anything printed to the terminal.If the flameshot daemon is running (e.g. by running a
flameshot
command withdisabledTrayIcon=false
, anddisabledTrayIcon
is later set totrue
, new invocations offlameshot gui
andflameshot config
no longer crash.To Reproduce
killall flameshot
).disabledTrayIcon=true
in~/.config/flameshot/flameshot.ini
.flameshot
command.The configuration used to produce this bug (generated by first run of flameshot, with
disabledTrayIcon
modified, is shown here.Configuration flameshot.ini
Expected behavior
The daemon starts without crashing.
System Information
NixOS 21.05 i3
Regarding FAQs: A system tray and notification daemon are both available, and have been used by flameshot with no problem prior to this. In fact, flameshot still works now when the steps above are not taken.
The text was updated successfully, but these errors were encountered: