[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1114815: plasma-mobile: excessive logging about ReferenceError: KCoreAddons is not defined



Package: plasma-mobile
Version: 6.3.6-3
Severity: minor

Dear Maintainer,

On a fresh installation of plasma mobile, plasmashell complains about
KCoreAddons is not defined for every second. 

Installing libkf6coreaddons-dev fixes the problem but I don't think 
the -dev package should be needed for default usage. I also expect
the frequency of logging to be much lower.

>From journalctl:
Sep 10 17:11:09 mobian plasmashell[1531]: qrc:/org/kde/plasma/private/mobileshell/NotificationsUtils.js:57: ReferenceError: KCoreAddons is no
t defined
Sep 10 17:11:10 mobian plasmashell[1531]: qrc:/org/kde/plasma/private/mobileshell/NotificationsUtils.js:57: ReferenceError: KCoreAddons is no
t defined
Sep 10 17:11:11 mobian plasmashell[1531]: qrc:/org/kde/plasma/private/mobileshell/NotificationsUtils.js:57: ReferenceError: KCoreAddons is no
t defined
<more log entries like this...>

The relevant lines in NotificationsUtils.js:

function generateNotificationHeaderAgoText(time, jobState) {
    if (!time || isNaN(time.getTime()) || jobState === NotificationManager.Notifications.JobStateRunning) {
        return "";
    }

    const deltaMinutes = Math.floor((Date.now() - time.getTime()) / 1000 / 60);
    if (deltaMinutes < 1) {
        return i18n("now");
    }

    // Received less than an hour ago, show relative minutes
    if (deltaMinutes < 60) {
        return i18nc("Notification was added minutes ago, keep short", "%1m ago", deltaMinutes);
    }
    // Received less than a day ago, show time, 22 hours so the time isn't as ambiguous between today and yesterday
    if (deltaMinutes < 60 * 22) {
        return Qt.formatTime(time, Qt.locale().timeFormat(QtQml.Locale.ShortFormat).replace(/.ss?/i, ""));
    }

    // Otherwise show relative date (Yesterday, "Last Sunday", or just date if too far in the past)
    return KCoreAddons.Format.formatRelativeDate(time, QtQml.Locale.ShortFormat);
}
 
           ^^^^^^^^^^ KCoreAddons used here


-- System Information:
Debian Release: 13.1
Architecture: arm64 (aarch64)

Kernel: Linux 6.12-sc7280 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages plasma-mobile depends on:
ii  kde-style-breeze                                      4:6.3.5-1
ii  kf6-breeze-icon-theme                                 6.13.0-3
ii  kio6                                                  6.13.0-6
ii  layer-shell-qt                                        6.3.4-1
ii  libc6                                                 2.41-12
ii  libgcc-s1                                             14.2.0-19
ii  libglib2.0-0t64                                       2.84.4-3~deb13u1
ii  libkf6configcore6                                     6.13.0-2
ii  libkf6configgui6                                      6.13.0-2
ii  libkf6configqml6                                      6.13.0-2
ii  libkf6coreaddons6                                     6.13.0-1
ii  libkf6dbusaddons6                                     6.13.0-1
ii  libkf6i18n6                                           6.13.0-1
ii  libkf6jobwidgets6                                     6.13.0-1
ii  libkf6kcmutilscore6                                   6.13.0-2
ii  libkf6kcmutilsquick6                                  6.13.0-2
ii  libkf6kiocore6                                        6.13.0-6
ii  libkf6kiogui6                                         6.13.0-6
ii  libkf6kiowidgets6                                     6.13.0-6
ii  libkf6modemmanagerqt6                                 6.13.0-1
ii  libkf6networkmanagerqt6                               6.13.0-1
ii  libkf6notifications6                                  6.13.0-1
ii  libkf6package6                                        6.13.0-1
ii  libkf6screen8                                         4:6.3.4-1
ii  libkf6screendpms8                                     4:6.3.4-1
ii  libkf6service-bin                                     6.13.0-1
ii  libkf6service6                                        6.13.0-1
ii  libkf6solid6                                          6.13.0-1
ii  libkf6windowsystem6                                   6.13.0-2
ii  libkscreen-bin                                        4:6.3.4-1
ii  libkwaylandclient6                                    4:6.3.4-1
ii  libkwin6                                              4:6.3.6-1
ii  libkworkspace6-6                                      4:6.3.6-2
ii  liblayershellqtinterface6                             6.3.4-1
ii  libplasma6                                            6.3.5-1
ii  libplasmaquick6                                       6.3.5-1
ii  libqcoro6dbus0t64                                     0.12.0-1
ii  libqt6core6t64 [qt6-base-private-abi]                 6.8.2+dfsg-9
ii  libqt6dbus6                                           6.8.2+dfsg-9
ii  libqt6gui6                                            6.8.2+dfsg-9
ii  libqt6network6                                        6.8.2+dfsg-9
ii  libqt6qml6 [qt6-declarative-private-abi]              6.8.2+dfsg-7
ii  libqt6quick6                                          6.8.2+dfsg-7
ii  libqt6sensors6                                        6.8.2-3
ii  libqt6waylandclient6 [qt6-waylandclient-private-abi]  6.8.2-4
ii  libqt6widgets6                                        6.8.2+dfsg-9
ii  libqt6xml6                                            6.8.2+dfsg-9
ii  libstdc++6                                            14.2.0-19
ii  libudev1                                              257.8-1~deb13u1
ii  libwayland-client0                                    1.23.1-3
ii  maliit-keyboard                                       2.3.1-6+b2
ii  milou                                                 4:6.3.5-1
ii  plasma-desktoptheme                                   6.3.5-1
ii  plasma-nano                                           6.3.4-1
ii  plasma-nm                                             4:6.3.4-2
ii  plasma-pa                                             4:6.3.4-1
ii  plasma-settings                                       25.02.0-2
ii  plasma-workspace                                      4:6.3.6-2
ii  powerdevil                                            4:6.3.6-1
ii  qml6-module-org-kde-bluezqt                           6.13.0-1
ii  qml6-module-org-kde-coreaddons                        6.13.0-1
ii  qml6-module-org-kde-kirigami                          6.13.0-2
ii  qml6-module-org-kde-kitemmodels                       6.13.0-1
ii  qml6-module-org-kde-kquickcontrolsaddons              6.13.0-1
ii  qml6-module-org-kde-ksvg                              6.13.0-1
ii  qml6-module-org-kde-layershell                        6.3.4-1
ii  qml6-module-org-kde-plasma-plasma5support             4:6.3.4-1
ii  qml6-module-qt5compat-graphicaleffects                6.8.2-3+b1
ii  qml6-module-qtqml                                     6.8.2+dfsg-7
ii  qml6-module-qtqml-models                              6.8.2+dfsg-7
ii  qml6-module-qtquick                                   6.8.2+dfsg-7
ii  qml6-module-qtquick-controls                          6.8.2+dfsg-7
ii  qml6-module-qtquick-effects                           6.8.2+dfsg-7
ii  qml6-module-qtquick-layouts                           6.8.2+dfsg-7
ii  qml6-module-qtquick-shapes                            6.8.2+dfsg-7
ii  qml6-module-qtquick-window                            6.8.2+dfsg-7
ii  xdg-desktop-portal-kde                                6.3.5-1

Versions of packages plasma-mobile recommends:
ii  bluedevil                    4:6.3.4-2
pn  hfd-service                  <none>
ii  iio-sensor-proxy             3.7-3
ii  plasma-mobile-tweaks         6.3.6-3
pn  plasma-workspace-wallpapers  <none>

plasma-mobile suggests no packages.

-- no debconf information


Reply to: