-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KDE related log message in Octave's console #29
Comments
But beyond the fact that the kdenlive issue seems to be fixed in a previous version of flatpak (0.11 vs. 1.01), there's IMO an important difference between this issue and that one. In kdenlive the logs are only visible in its How or why are Said that, it might be that this is an issue in Octave itself (perhaps not fixable in the flatpak package). |
|
Thanks for the info about 1. Regarding 2., I have no idea. If you can reproduce it in flatpak (just call uigetfile in Octave's console and see if it's triggered), which I would expect so, then we could also try to see if it happens as well elsewhere, e.g. when usng ubuntu packages (although that would be a different Octave version). |
Actually, there is a very easy way to silence this out: using |
I can confirm that this is not happening in Ubuntu's Octave 4.2.2 |
I don't have any KDE environment available, so I can't help reproduce any KDE-specific interactions like this. But I can report that there is no output from either |
I think it's most likely flatpak related as it doesn't happen either with deb packages (unless this was introduced between 4.2.2 and 4.4.1) |
Not related to issue #6 either. Same behavior in flatpak 0.11.8.3 and 1.0.1 |
This diagnostic message comes from the kio library, see https://github.com/KDE/kio/blob/master/src/kioslave/kioslave.cpp#L82 This is using the I don't know enough about QDebug to know whether this debug feature is enabled at compile-time or run-time. Is there a way we can test this? Is there some option that is being set by Octave, or is it how Octave or the flatpak KDE runtime itself is being built? |
Not sure this is it, but I see this salient difference between metadata for octave and kdenlive: [Application] [Application] So while Octave uses org.kde.Sdk/x86_64/5.11 as sdk and runtime, kde apps seem to use org.kde.Platform/x86_64/5.11 for the runtime |
I see, thank you. Does the following enlighten something? https://community.kde.org/Guidelines_and_HOWTOs/Flatpak#Debugging_portals |
I asked Aleix Pol (@aleixpol) from KDE. He is going to look into it... |
It's also worth noting that Octave installs its own null message handler when the GUI first starts, unless the environment variable So by default, all diagnostics, whether they are errors, warnings, info, or debug, are supposed to be discarded, unless the user opts in. Somehow something is overriding that or undoing that and allowing this qDebug message from kio to appear in your command window output. |
I don't have any particular setting other than default. @Alexander-Wilms, could you please |
Or maybe this kio library is spawning a separate child process to do some work, and that's where the debug output is being printed to the terminal. If that's the case, it makes sense, but doesn't help explain why it's only the flatpak environment that is affected, or why the semicolon suppresses the output. |
Hi octavers, As for your case, you can actually disable it by passing In the long run, it could be interesting if Octave implemented qInstallMessageHandler (http://doc.qt.io/qt-5/qtglobal.html#qInstallMessageHandler) to properly treat Qt output. |
Octave does. Do you have any insight as to why that isn't working in this particular case? |
That does make sense, the msg handler is redirecting the output to the central view and since the dialog is emitting a qDebug then it's being shown. In general it shouldn't be a big problem. We don't do any non-categorised logs in the libraries. That's why I sent the patch to the framework in the first place. Please test the environment variable I suggested to make sure it doesn't regress. |
No, by default Octave's message handler discards all messages (see octave-gui.cc). Only this message is appearing on the terminal view for some reason. Possibly because this is happening in a separate process spawned by the kio library? Only when the environment variable But anyway, if your patch removing the qDebug output completely is merged, then this will be resolved in a future flatpak runtime update. |
@aleixpol, do you know when your commit will be part of the flatpak kde runtime? In any case, I think we can close this issue. Thank you all! |
I frequently see the following warning message in Octave's console:
trying to load "/usr/lib/plugins/kf5/kio/file.so" from "/usr/lib/plugins/kf5/kio/file.so"
This is a very minor thing, but is there a way to silence it?
The text was updated successfully, but these errors were encountered: