Bug 515514

Summary: Black rectangle appears when dragging highlighted text
Product: [Applications] kate Reporter: kostadinshishmanov
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 25.12.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Recording which shows the issue

Description kostadinshishmanov 2026-02-04 17:22:30 UTC
Created attachment 189215 [details]
Recording which shows the issue

SUMMARY

Whenever I drag on a highlighted string of text in a file with a lot of stuff in it, a big black rectangle appears, which spans across both of my monitors. The following appears in journalctl:

```
Feb 04 19:01:54 compooter kwin_wayland[2626]: 0x3: GL_INVALID_VALUE in glTexStorage2D(invalid width, height or depth)
Feb 04 19:01:54 compooter kwin_wayland[2626]: 0x3: GL_INVALID_OPERATION in glTexSubImage2D(invalid texture level 0)
Feb 04 19:01:54 compooter kwin_wayland[2626]: 0x3: GL_INVALID_OPERATION in glTexSubImage2D(invalid texture level 0)
```

STEPS TO REPRODUCE
1. Open Kate 
2. Create a new file
3. Put a lot of text into it
4. Highlight a string of text and drag it

OBSERVED RESULT

A big black rectangle appears when dragging the text

EXPECTED RESULT

Text appears as it should - like it does when there is not a lot of stuff in the text file.

SOFTWARE/OS VERSIONS
Operating System: Aurora 43
KDE Plasma Version: 6.5.91
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1
Kernel Version: 6.18.7-200.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 32 GiB of RAM (30.4 GiB usable)
Graphics Processor 1: AMD Radeon RX 6800
Graphics Processor 2: AMD Ryzen 7 7800X3D 8-Core Processor

ADDITIONAL INFORMATION

It happens even if my 2nd monitor which runs off of the iGPU is turned off.