Summary: | Crash on startup, related to Util::Css::warningBorder | ||
---|---|---|---|
Product: | [Applications] trojita | Reporter: | Caspar Schutijser <caspar> |
Component: | Desktop GUI | Assignee: | Trojita default assignee <trojita-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | zmizsei |
Priority: | NOR | ||
Version First Reported In: | git | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | OpenBSD | ||
Latest Commit: | https://commits.kde.org/trojita/4c02000a91f499dcd9caf5a3d77cd6fd2d2734fe | Version Fixed In: | |
Sentry Crash Report: |
Description
Caspar Schutijser
2017-10-30 12:19:16 UTC
Try chaning src/Gui/Util.cpp to const QString Css::warningBorder = QString::fromLatin1("border: 2px solid red; background-color: #E7C575; color: black; padding: 5px; margin: 5px; text-align: center;"); *** Bug 386351 has been marked as a duplicate of this bug. *** (In reply to Thomas Lübking from comment #1) > Try chaning src/Gui/Util.cpp to > const QString Css::warningBorder = QString::fromLatin1("border: 2px solid > red; background-color: #E7C575; color: black; padding: 5px; margin: 5px; > text-align: center;"); Thanks for your suggestion. I changed it but unfortunately it still crashes with a similar back trace. (In reply to Caspar Schutijser from comment #3) > (In reply to Thomas Lübking from comment #1) > > Try chaning src/Gui/Util.cpp to > > const QString Css::warningBorder = QString::fromLatin1("border: 2px solid > > red; background-color: #E7C575; color: black; padding: 5px; margin: 5px; > > text-align: center;"); > > Thanks for your suggestion. I changed it but unfortunately it still crashes > with a similar back trace. jkt pointed me to this: https://isocpp.org/wiki/faq/ctors#static-init-order I'm working on a patch to fix the problem using the "Construct On First Use Idiom". (In reply to Caspar Schutijser from comment #4) > I'm working on a patch to fix the problem using the "Construct On First Use > Idiom". See https://gerrit.vesnicky.cesnet.cz/r/951 Git commit 4c02000a91f499dcd9caf5a3d77cd6fd2d2734fe by Caspar Schutijser. Committed on 30/10/2017 at 14:10. Pushed by gerrit into branch 'master'. Apply "Construct On First Use Idiom" to warningBorder It suffered from the "static initialization order fiasco" [1], as pointed out by Jan, which was accidentally introduced by commit f70690899d2a6c69495d225214a7279ba8c1ff73. First reported by miqlas on IRC. 1: https://isocpp.org/wiki/faq/ctors#static-init-order Related: bug 386351 Change-Id: I559c12e606883068e09072de26bdaac3b1d5d73c M +1 -1 src/Gui/ComposeWidget.cpp M +1 -1 src/Gui/SettingsDialog.cpp M +5 -1 src/Gui/Util.cpp M +1 -3 src/Gui/Util.h https://commits.kde.org/trojita/4c02000a91f499dcd9caf5a3d77cd6fd2d2734fe |