Bug 409520 - Too much journalctl-noise under Python 3 (none under Python 2)
Summary: Too much journalctl-noise under Python 3 (none under Python 2)
Status: RESOLVED LATER
Alias: None
Product: cantor
Classification: Applications
Component: general (other bugs)
Version First Reported In: 19.04
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Cantor Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-05 10:51 UTC by vialav
Modified: 2019-07-29 21:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vialav 2019-07-05 10:51:29 UTC
SUMMARY
There is certain misbehaviour under python3 as compared to python2

STEPS TO REPRODUCE
1. Compile the latest Cantor source
2. Open `journalctl -f` in separate window
3. Start Cantor and type/execute some cells under python2, everything should be ok
4. Add python3 session and type/execute the same, or switch between those two to see generated noise in the journalctl window:

Jul 05 13:44:21 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:34 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:34 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:34 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:34 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:34 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:34 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:34 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:34 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:34 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:34 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:34 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:34 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: gtk_menu_detach(): menu is not attached
Jul 05 13:44:36 yoga unity-panel-ser[2938]: Unable to replace properties on 0: Error getting properties for ID
Jul 05 13:44:36 yoga hud-service[3472]: void DBusMenuImporter::slotGetLayoutFinished(QDBusPendingCallWatcher*): No menu for id 423
Jul 05 13:44:36 yoga hud-service[3472]: void DBusMenuImporter::slotGetLayoutFinished(QDBusPendingCallWatcher*): No menu for id 387
Jul 05 13:44:36 yoga hud-service[3472]: void DBusMenuImporter::slotGetLayoutFinished(QDBusPendingCallWatcher*): No menu for id 387
Jul 05 13:44:36 yoga hud-service[3472]: void DBusMenuImporter::slotGetLayoutFinished(QDBusPendingCallWatcher*): No menu for id 403
Jul 05 13:44:36 yoga hud-service[3472]: void DBusMenuImporter::slotGetLayoutFinished(QDBusPendingCallWatcher*): No menu for id 403
Jul 05 13:44:36 yoga hud-service[3472]: void DBusMenuImporterPrivate::updateActionProperty(QAction*, const QString&, const QVariant&): Unhandled property update "toggle-type"


OBSERVED RESULT
noise

EXPECTED RESULT
no noise

SOFTWARE/OS VERSIONS
as previously reported

ADDITIONAL INFORMATION
this particular lines were tested
```python
import matplotlib
matplotlib.use("WXAgg")
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0, 10, 0.2)
y = np.sin(x)
fig, ax = plt.subplots()
ax.plot(x, y)
plt.show()
```
Comment 1 Nikita Sirgienko 2019-07-05 11:05:47 UTC
I think, it is specific for your system. Because I have totaly different the journal log and haven't any troubles with Cantor in this meaning.
Also, hud-service is a part of Unity DE, and Cantor even don't know about its existants (because Cantor DE agnostic).
So, I don't think, that this is Cantor bug.
Comment 2 vialav 2019-07-05 11:08:56 UTC
ok, I'll keep an eye on my logs for now...
Comment 3 vialav 2019-07-05 12:19:26 UTC
What I'm seeing is that the window "Variable Manager" is redrawing while switching (by mouse) between two tabs with the python2/python3 opened backends, possibly, causing the log noise when under python3. Can you double-check if it is the case under your environment too? This was actually the unreported case in Bug 409288 when new cell line re-loading a huge 16Mb data every time a new cell was being entered, wasting cpu cycles; it seems to be still the case, that walking over tabs reloads corresponding data sets in them anew, which wouldn't be a prudent use of cpu resources. 

The reason is that hud-service and unity-panel-service (I'm working under Unity) are just servants for Qt-based projects, so they are first to hint at possible abberations; and they are the latest ones from the Ubuntu Eoan distribution. 

I have noticed the Bug 409523 was just fixed and recompiled the sources accordingly. 

Feel free to re-close the bug as needed, I'm fine with the development process.
Comment 4 vialav 2019-07-05 12:25:43 UTC
On the other hand, this specific issue does not relate to the Var Manager, I've just cross-checked it. The log pollutes solely upon switching between the tabs, so I'm chenging the buf component to `general`.
Comment 5 vialav 2019-07-08 11:22:29 UTC
Tebtatively, my KDE installation is missing:
https://phabricator.kde.org/D4088
I may want also to verify, if the following may have any impact
https://phabricator.kde.org/D16327

Changing, it to `NeedsInfo` (from me) for now, as it could happen this to be not a Cantor bug.
Comment 6 vialav 2019-07-10 18:15:28 UTC
Ok, I've installed KDE Plasma, and run Cantor under it. No noise in the log. 

Shall it be "a bug" of running Cantor under Unity (and, possibly, under Gnome)?
Comment 7 Bug Janitor Service 2019-07-25 04:33:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!