| Summary: | Segfault QtPrivate::RefCount::ref | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Bart Ribbers <bribbers> | 
| Component: | General | Assignee: | Krita Bugs <krita-bugs-null> | 
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | griffinvalley, halla | 
| Priority: | NOR | ||
| Version First Reported In: | 4.2.9 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/kde/krita/commit/885a44d5aec36863bdde875260c52116d8f8e132 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| 
 
        
          Description
        
        
          Bart Ribbers
        
        
        
        
          2020-04-11 09:41:33 UTC
        
       
    That sure is a strange place to segfault, it's just asking for the first entry in a stringlist: https://invent.kde.org/kde/krita/-/blob/krita/4.2/krita/main.cc#L319 Do you kow what your locales are set to? This cannot be a bug in Krita. It must have something to do with a broken Qt package or another distribution specific bit of brokeness. Maybe starting Krita from the terminal will print out some useful information? Locales: LANG=C.UTF-8 LC_CTYPE=C.UTF-8 LC_NUMERIC=C.UTF-8 LC_TIME=C.UTF-8 LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8 LC_ALL= As for running Krita in terminal giving more useful info, nope... ▶ krita KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = krita path = /usr/bin pid = 29654 KCrash: Arguments: /usr/bin/krita KCrash: Attempting to start /usr/lib/libexec/drkonqi from kdeinit sock_file=/run/user/1000/kdeinit5__0 [1] + 29654 suspended (signal) krita Does it make a difference if you set that to en_US.UTF-8 ? It does indeed, it runs and works fine after that. Seems https://invent.kde.org/kde/krita/-/commit/decff9302904cc0d133025ab92b4022c6a9ea005 broke it when the locale is set to C, as uiLanguages will be empty then. Well, then I was wrong and it is a bug :-). Thanks for checking! Git commit 3349c1dba99da9963eb275ae6ac7cdb8ed0c0e1b by Boudewijn Rempt. Committed on 11/04/2020 at 14:33. Pushed by rempt into branch 'master'. Check whether the uiLanguages list isn't empty Because Qt can crash or assert on list.first() if the list is empty. M +18 -17 krita/main.cc https://invent.kde.org/kde/krita/commit/3349c1dba99da9963eb275ae6ac7cdb8ed0c0e1b Yup, that fixes it, thanks! Git commit 885a44d5aec36863bdde875260c52116d8f8e132 by Boudewijn Rempt. Committed on 14/04/2020 at 08:11. Pushed by rempt into branch 'krita/4.3'. Check whether the uiLanguages list isn't empty Because Qt can crash or assert on list.first() if the list is empty. M +18 -17 krita/main.cc https://invent.kde.org/kde/krita/commit/885a44d5aec36863bdde875260c52116d8f8e132  |