Bug 496266 - Editor text view leaks out
Summary: Editor text view leaks out
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: UI: general (show other bugs)
Version: 5.6.2
Platform: Other Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-14 14:14 UTC by Game-Editor2
Modified: 2024-11-14 14:16 UTC (History)
0 users

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


Attachments
The bug in action (47.83 KB, image/png)
2024-11-14 14:14 UTC, Game-Editor2
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Game-Editor2 2024-11-14 14:14:31 UTC
Created attachment 175813 [details]
The bug in action

SUMMARY
I've been happily using KDevelop for large projects for quite some time. For the most part (even though I am running the Windows version) it seems pretty stable. Recently, I started noticing a critical issue very frequently.
The source view widget (the text editor) leaks code.

STEPS TO REPRODUCE
1. Work on a big header-guarded source code (2k loc or more)
2. Use code folding, clipboard io, etc...
3. Something provokes UB. At some point, the cached code will become erroneous.

OBSERVED RESULT
At first, the compilation will fail, because the code will break only logically (in memory).
After KDevelop is restarted, you will see that some portion of the code at the bottom is randomly repeated resulting in the same error.

SOFTWARE/OS VERSIONS
Windows: Windows 11

ADDITIONAL INFORMATION
This is a bug that seems dangerous or in the slightest, it disturbs the workflow.
Comment 1 Game-Editor2 2024-11-14 14:16:51 UTC
guarded header file or source file*