Bug 418116 - Started from command line. MANY warning/error messages! Sloppy coding?
Summary: Started from command line. MANY warning/error messages! Sloppy coding?
Status: RESOLVED DUPLICATE of bug 445044
Alias: None
Product: krusader
Classification: Applications
Component: synchronize (show other bugs)
Version: 2.7.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-23 23:18 UTC by Peter C. Trenholme
Modified: 2021-11-20 18:33 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter C. Trenholme 2020-02-23 23:18:57 UTC
SUMMARY I've been running krusader to synchronize two (fairly large) directories for more that two weeks now. So I looked at the terminal instance from which I started it, and discovered several thousand warning messages. None of these massages are, of course, visible if the app is started from a menu, but their presence suggests the the coders did not think that wasting resources producing discarded messages was worth the time fixing the sloppy code.

In any case, I fear that what should have been less that half a day of reading a reconciling the directories has now gone on for three weeks, and counting.

See bellow for the top of the message list. The QPainter warnings - as far as I could see - are repeated from there to the end of the current terminal output.


STEPS TO REPRODUCE: See above

OBSERVED RESULT: See below


EXPECTED RESULT: No errors or warnings

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Current Fedora 31. (Or current as-of 3 weeks ago)
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
1) Sample terminal output: (See comment below)
$ krusader
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
10:56:17.264-warning default unknown@0 # QWidget::insertAction: Attempt to insert null action
10:56:17.272-warning default unknown@0 # QWidget::insertAction: Attempt to insert null action
10:56:17.308-warning default unknown@0 # Trying to convert empty KLocalizedString to QString.
20:19:24.139-warning qt.qpa.xcb unknown@0 # QXcbConnection: XCB error: 3 (BadWindow), sequence: 59389, resource id: 25947199, major code: 40 (TranslateCoords), minor code: 0
13:15:01.431-warning default unknown@0 # UdevQt: unhandled device action "bind"
13:15:16.116-warning default unknown@0 # UdevQt: unhandled device action "bind"
14:05:19.207-warning default unknown@0 # UdevQt: unhandled device action "unbind"
14:05:47.947-warning default unknown@0 # UdevQt: unhandled device action "unbind"
#################### Added comment
### Notice the large time gap here. I suspect that this is where the processing
    slowed down to about 10 seconds/file
############################
21:53:01.574-warning default unknown@0 # QPainter::begin: Paint device returned engine == 0, type: 2
21:53:01.574-warning default unknown@0 # QPainter::translate: Painter not active
21:53:01.591-warning default unknown@0 # QPainter::save: Painter not active
21:53:01.591-warning default unknown@0 # QPainter::restore: Unbalanced save/restore
21:53:01.591-warning default unknown@0 # QPainter::brushOrigin: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::save: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::save: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::setRenderHint: Painter must be active to set rendering hints
21:53:01.606-warning default unknown@0 # QPainter::translate: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::setBrush: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::setPen: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::restore: Unbalanced save/restore
21:53:01.606-warning default unknown@0 # QPainter::setRenderHint: Painter must be active to set rendering hints
21:53:01.606-warning default unknown@0 # QPainter::translate: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::setPen: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::restore: Unbalanced save/restore
21:53:01.606-warning default unknown@0 # QPainter::save: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::setRenderHint: Painter must be active to set rendering hints
21:53:01.606-warning default unknown@0 # QPainter::translate: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::setPen: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::restore: Unbalanced save/restore
21:53:01.606-warning default unknown@0 # QPainter::save: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::setRenderHint: Painter must be active to set rendering hints
21:53:01.606-warning default unknown@0 # QPainter::translate: Painter not active
21:53:01.606-warning default unknown@0 # QPainter::setPen: Painter not active
21:53:01.607-warning default unknown@0 # QPainter::restore: Unbalanced save/restore
21:53:01.607-warning default unknown@0 # QPainter::save: Painter not active
21:53:01.607-warning default unknown@0 # QPainter::setRenderHint: Painter must be active to set rendering hints
21:53:01.607-warning default unknown@0 # QPainter::translate: Painter not active
21:53:01.607-warning default unknown@0 # QPainter::setPen: Painter not active
21:53:01.607-warning default unknown@0 # QPainter::restore: Unbalanced save/restore

2) I may have installed Fedora updates since I started krusader, so the current installed versions may not reflect what the hard-links placed by krusader might be using.
Comment 1 Toni Asensi Esteve 2021-11-20 18:33:41 UTC
*** This bug has been marked as a duplicate of bug 445044 ***