https://bugs.kde.org/show_bug.cgi?id=524724

            Bug ID: 524724
           Summary: Krita (pre-alpha/master build) crashes immediately
                    upon launch due to an assertion failure when accessing
                    an empty std::optional in KoDualColorButton.
    Classification: Applications
           Product: krita
      Version First git master (please specify the git hash!)
       Reported In:
          Platform: CachyOS
                OS: Linux
            Status: REPORTED
          Severity: critical
          Priority: NOR
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
Krita (pre-alpha/master build) crashes immediately upon launch due to an
assertion failure when accessing an empty std::optional in KoDualColorButton.
Testing on a clean configuration (after renaming/removing ~/.config/kritarc and
~/.config/kritadisplayrc) reproduces the exact same crash.

STEPS TO REPRODUCE
1. Launch Krita (pre-alpha / master build) from the terminal or application
launcher.

OBSERVED RESULT
Krita aborts immediately with SIGABRT and prints an assertion error in
std::optional.

EXPECTED RESULT
Krita should launch normally and display the main window.

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux (Arch-based)
Desktop Environment / Window Manager: Hyprland (Wayland)
KDE Plasma Version: N/A
KDE Frameworks Version: N/A
Qt Version: 6.11.2-2.1
Krita Version: krita-git 6.1.0.prealpha.r66589.6b8cd6c-1

ADDITIONAL INFORMATION

Terminal output with my usual kritarc and kritadisplayrc files in place:

Fontconfig warning: ignoring pt_Latn_BR: not a valid region tag
WARNING: failed to set user preferred rendering intent for the surface, intent
" RenderIntent(render_intent_relative_bpc) " is unsupported, falling back to
"perceptual"
qt.gui.imageio: libpng warning: zTXt: truncated
Could not load the resource from the bundle "paintoppresets"
"paintoppresets/rst) Leather.kpp"
"/home/kawwabi/.local/share/krita/Rakurri_Brush_Set_V2.1.bundle"
Fontconfig warning: ignoring pt_Latn_BR: not a valid region tag
kf.config.core: Watching absolute paths is not supported
"/usr/share/color-schemes/KritaDarkOrange.colors"
/usr/include/c++/16/optional:1237: constexpr _Tp*
std::optional<_Tp>::operator->() [with _Tp =
KoDualColorButton::Private::ColorDialogState]: Assertion
'this->_M_is_engaged()' failed.
fish: Tarefa 1, 'krita' encerrada pelo sinal SIGABRT (Abortado)

Terminal output with those files removed:
Fontconfig warning: ignoring pt_Latn_BR: not a valid region tag
WARNING: failed to set user preferred rendering intent for the surface, intent
" RenderIntent(render_intent_relative_bpc) " is unsupported, falling back to
"perceptual"
WARNING: failed to set user preferred rendering intent for the surface, intent
" RenderIntent(render_intent_relative_bpc) " is unsupported, falling back to
"perceptual"
qt.gui.imageio: libpng warning: zTXt: truncated
Could not load the resource from the bundle "paintoppresets"
"paintoppresets/rst) Leather.kpp"
"/home/kawwabi/.local/share/krita/Rakurri_Brush_Set_V2.1.bundle"
Fontconfig warning: ignoring pt_Latn_BR: not a valid region tag
kf.config.core: Watching absolute paths is not supported
"/usr/share/color-schemes/KritaDark.colors"
/usr/include/c++/16/optional:1237: constexpr _Tp*
std::optional<_Tp>::operator->() [with _Tp =
KoDualColorButton::Private::ColorDialogState]: Assertion
'this->_M_is_engaged()' failed.
fish: Tarefa 1, 'krita' encerrada pelo sinal SIGABRT (Abortado)

Hope this meets the submission criteria, it's my first time posting here
though, so sorry if I made any mistakes.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to