Created attachment 178351 [details] screenshot SUMMARY okular uses more call stack every time I right click page number input (see attachment image) STEPS TO REPRODUCE 1. open okular 2. spam right click page number input OBSERVED RESULT stack usage increases with number of right clicks EXPECTED RESULT stack usage doesn't increase with number of right clicks SOFTWARE/OS VERSIONS KDE Frameworks Version: 6.10.0 Qt Version: 6.8.2
And what's the problem exactly?
Created attachment 179033 [details] run okular in gdb in konsole, focus konsole window (okular was focused), press ctrl+c, type "bt", press enter (In reply to Albert Astals Cid from comment #1) > And what's the problem exactly? I compiled qtbase, kxmlgui, okular with -O0 -ggdb3. I am using kde neon unstable edition with kde x11 session for gdb backtraces.
Created attachment 179034 [details] …, type "c", press enter, focus okular window (konsole was focused), right click page number input twice, focus konsole window (okular was focused), press ctrl+c, type "bt", press enter see how there is more stuff in backtrace after 2 right clicks that's the memory leak!
here are versions of stuff I compiled: qtbase — https://code.qt.io/cgit/qt/qtbase.git/commit/?id=f1136de66638060b8a1ab9bc0cdf1a91dcb5ec01 kxmlgui — https://invent.kde.org/frameworks/kxmlgui/-/commit/96665e1e425346d044d1f8b5ea429bfe0ed466a7 okular — https://invent.kde.org/graphics/okular/-/commit/d8dd45879211f8a550426e060019e8c401b070a4
> that's the memory leak! No, there is no memory leak there. If you want to prove a memory leak, the tools you have to use are valgrind or heaptrack, not gdb or cat
(In reply to Albert Astals Cid from comment #5) > or heaptrack, not gdb or cat memory leak is not in heap memory leak is in stack (functions are called when open context menu on page number input but not return when close context menu)
There can not be a memory leak on the stack unless the stack grows infinitely which is not the case here, I am unconvinced there's a leak.
(In reply to Albert Astals Cid from comment #7) > the stack grows infinitely that will happen if you right click page number input infinity times > I am unconvinced there's a leak. you haven't right clicked page number input enough times (in single session without open file)
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
(In reply to Bug Janitor Service from comment #9) > Please provide the requested information, then set the bug status to > REPORTED. no information asked, setting bug status to REPORTED
fixed in qt 6.9.0