Bug 42097 - Приложение выдает ошибку и закрывается при выполнении действия
Summary: Приложение выдает ошибку и закрывается при выполнении действия
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: kdevelop5 (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-10 18:19 MSK by obidinog@basealt.ru
Modified: 2022-11-07 13:38 MSK (History)
2 users (show)

See Also:


Attachments
log.txt (4.44 KB, text/plain)
2022-03-10 18:19 MSK, obidinog@basealt.ru
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description obidinog@basealt.ru 2022-03-10 18:19:52 MSK
Created attachment 10373 [details]
log.txt

kdevelop 5

Тестовый стенд : kworkstation-x86-64-beta

Шаги для воспроизведения:

1)В панеле инструментов нажать Run --> Run Heaptrack Analysis
2)Закрыть

Ожидаемый результат:

Закрывается открывшееся окно без ошибок.

Результат:

Закрывается приложение с ошибкой
Comment 1 obidinog@basealt.ru 2022-11-07 13:23:43 MSK
Пакет kdevelop5  5.6.1-alt3 проверил на Sisyphus, ошибка воспроизводится
Comment 2 Sergey V Turchin 2022-11-07 13:38:57 MSK
kdevelop-5.6.1/plugins/heaptrack/plugin.cpp:

    // TODO: catch if still no defaultLaunch
    if (!defaultLaunch->type()->launcherForId(QStringLiteral("nativeAppLauncher"))) {
        const QString messageText = i18n("Heaptrack analysis can be started only for native applications.");
        auto* message = new Sublime::Message(messageText, Sublime::Message::Error);
        KDevelop::ICore::self()->uiController()->postMessage(message);
        return;
    }

Падает как раз на if, т.е. типа предусмотрено авторами.
P.S. 5.6.2 уже есть.