[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2024-05-23 Thread Konrad Materka
https://bugs.kde.org/show_bug.cgi?id=425271

Konrad Materka  changed:

   What|Removed |Added

   Version Fixed In||6.1

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2024-05-23 Thread Konrad Materka
https://bugs.kde.org/show_bug.cgi?id=425271

Konrad Materka  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Latest Commit||https://invent.kde.org/plas
   ||ma/plasma-workspace/-/commi
   ||t/efecf88d2d77d8f4cd94edb3a
   ||83d10deb16a1e92
 Resolution|--- |FIXED

--- Comment #56 from Konrad Materka  ---
Git commit efecf88d2d77d8f4cd94edb3a83d10deb16a1e92 by Konrad Materka.
Committed on 23/05/2024 at 12:34.
Pushed by kmaterka into branch 'master'.

xembedsniproxy: Fix high CPU usage when 0,0 is off-screen

Reverts 69786a1ff94718daf4de2d814037e70df079ec97, which is no longer needed
after 50bbe56bb08f9b265ad56510e2adc37db66f4d2d

Initial workaround for Bug 357443 tries to detect and fix window stacking
issues (for example after compositor restart). Unfortunately, it causes
infinite loop when (0,0) position (were windows are originally positioned) is
off-screen (this can happen in some less commonmulti-screen setups).
Proper fix was added in !4324, so that faulty workaround is no longer needed.

M  +0-9xembed-sni-proxy/fdoselectionmanager.cpp
M  +1-14   xembed-sni-proxy/sniproxy.cpp
M  +0-2xembed-sni-proxy/sniproxy.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/efecf88d2d77d8f4cd94edb3a83d10deb16a1e92

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2024-05-23 Thread postix
https://bugs.kde.org/show_bug.cgi?id=425271

postix  changed:

   What|Removed |Added

 CC||pos...@posteo.eu

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2024-05-23 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=425271

Bug Janitor Service  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED

--- Comment #55 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4345

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2024-05-19 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=425271

not_a_...@tutanota.com changed:

   What|Removed |Added

 CC||not_a_...@tutanota.com

--- Comment #54 from not_a_...@tutanota.com ---
Hi, any chance this bug gets fixed? Still happens with Plasma 6.0.4

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2023-11-26 Thread Marian Kyral
https://bugs.kde.org/show_bug.cgi?id=425271

Marian Kyral  changed:

   What|Removed |Added

 CC||mky...@email.cz

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2023-05-20 Thread Jim
https://bugs.kde.org/show_bug.cgi?id=425271

Jim  changed:

   What|Removed |Added

 CC||hardlo...@gmx.de

--- Comment #53 from Jim  ---
This is probably caused by the fix to
https://bugs.kde.org/show_bug.cgi?id=357443.

There's this bit in fdoselectionmanager.cpp

> else if (responseType == XCB_VISIBILITY_NOTIFY) {
>   const auto event = reinterpret_cast *>(ev);
>// it's possible that something showed our container window, we have 
> to hide it
>// workaround for BUG 357443: when KWin is restarted, container window 
> is shown on top
>if (event->state == XCB_VISIBILITY_UNOBSCURED) {
>for (auto sniProxy : m_proxies.values()) {
>sniProxy->hideContainerWindow(event->window);
>}
>}
>}

Where does the XCB_VISIBILITY_UNOBSCURED event originate? Is it a bug that a
window is reported as unobscured if it's located on an offscreen position? Or
is it the responsibility of the client to check if the window is unobscured and
on-screen?

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2023-01-28 Thread Matt
https://bugs.kde.org/show_bug.cgi?id=425271

--- Comment #52 from Matt  ---
So glad I stumbled upon this. I was seeing log spam and plasmashell freeze up
when I went full screen in mpv. aligning the borders of the monitors makes
things go away, as suggested. Very frustrating these needs to be done for my
workspace, though

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2023-01-28 Thread Matt
https://bugs.kde.org/show_bug.cgi?id=425271

Matt  changed:

   What|Removed |Added

 CC||mattmarcu...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2022-12-12 Thread Florian Schrön
https://bugs.kde.org/show_bug.cgi?id=425271

Florian Schrön  changed:

   What|Removed |Added

 CC||florian+...@itzoo.de

--- Comment #51 from Florian Schrön  ---
(In reply to Marcin Kasperski from comment #50)
> It is amazing. With this setup (smaller monitor on the left, vertically
> centered) my ~/.xsession-errors is spammed with huge volume of „Container
> window visible, stack below”:
> 
> https://pasteboard.co/FoXmuIxWfCuD.png
> 
> Moving left screen  slightly up (so tops are aligned), puff, problem gone:
> 
> https://pasteboard.co/SNQYJxFRSZMd.png
> 
> It happens immediately, Apply in Display settings window and it stops/starts.

same here with vertical monitor setup (up / down).
When aligning both to the left edge, the error is instantly gone.

With center alignment applied, the ~/.xsession-errors is flooded with
"Container window visible, stack below".
in the 15 seconds until automatic config rollback after reply i got 118966
error lines. 

> $ tail -fn0 .xsession-errors  | ts > /tmp/.xsession-errors.ts# while the 
> 15 seconds of center aligned setup
> $ grep -c "Container window visible, stack below" /tmp/.xsession-errors.ts
> 118966

Packages (@Linux Mint 21):
> plasma-workspace 4:5.24.7-0ubuntu0.1 from ubuntu/jammy-updates (contains 
> xembedsniproxy)
> plasma-desktop 4:5.24.7-0ubuntu0.1 from ubuntu/jammy-updates

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2022-09-01 Thread Marcin Kasperski
https://bugs.kde.org/show_bug.cgi?id=425271

Marcin Kasperski  changed:

   What|Removed |Added

 CC||marcin.kasper...@softax.com
   ||.pl

--- Comment #50 from Marcin Kasperski  ---
It is amazing. With this setup (smaller monitor on the left, vertically
centered) my ~/.xsession-errors is spammed with huge volume of „Container
window visible, stack below”:

https://pasteboard.co/FoXmuIxWfCuD.png

Moving left screen  slightly up (so tops are aligned), puff, problem gone:

https://pasteboard.co/SNQYJxFRSZMd.png

It happens immediately, Apply in Display settings window and it stops/starts.

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2022-08-17 Thread David Edmundson
https://bugs.kde.org/show_bug.cgi?id=425271

David Edmundson  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|REPORTED|CONFIRMED

--- Comment #49 from David Edmundson  ---
So basically it's "bad" if there's no screen at 0,0 in global space. 

Thanks. That should be enough to help trigger this locally.

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2022-08-17 Thread Urmet Saar
https://bugs.kde.org/show_bug.cgi?id=425271

Urmet Saar  changed:

   What|Removed |Added

 CC||urmet.s...@gmail.com

--- Comment #48 from Urmet Saar  ---
The screen layout discovery is great, I have extra portrait monitor that has
top edge higher. I usually do a quick "killall xembedsniproxy" right after
logging in, but forgot today, so it was running for about 8 hours. Session log
has over 10 **million** lines of "Container window visible, stack below"

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 425271] XembedSNIProxy causes "high" cpu usage with certain screen arrangements

2022-07-27 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=425271

Nate Graham  changed:

   What|Removed |Added

Summary|XembedSNIProxy causes   |XembedSNIProxy causes
   |"high" cpu usage|"high" cpu usage with
   ||certain screen arrangements

-- 
You are receiving this mail because:
You are watching all bug changes.