Bug 368078 - Problem with many windows of Sierra Charts (Windows/wine)
Summary: Problem with many windows of Sierra Charts (Windows/wine)
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.7.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL: https://dl.dropboxusercontent.com/u/1...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-01 01:24 UTC by David Brooke
Modified: 2022-03-01 04:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Brooke 2016-09-01 01:24:39 UTC
Trying to use a wine program with multiple windows causes issues with the task manager:
1. The grouping function doesn't work for the wine program but does work correctly for other programs. 
2. The panel cannot be accessed when the visibility - auto hide is enabled and when >16 windows are open.
3. The issues only occur when using plasma 5.7 series (currently 5.7.0 - 5.7.4). There were no issues with KDE4 or < 5.7 plasma series.
4. The issues occur when using either task manager or icons-only task manager.
5. The panel visibility - auto hide issue is corrected when the task manager or icons-only task manager is removed from the panel.
6. Neither the task manager or icons-only task manager widget can be installed after the wine program with >16 windows is started prior.
7. The task manager issues occur using Gentoo and Arch.

Reproducible: Always

Steps to Reproduce:
Two computers have been used for evaluation (See below). Computer-3770 originally showed the issue and Computer-4790K was used for additional testing.

Test1
Currently Plasma 5.7.0 through 5.7.4 has an issue with Sierra Chart running under Wine 1.9.16 for C3770-P2.

After opening Sierra Chart the following issues occur:
(There are two steps to opening Sierra Chart:)
1. Starting Sierra Chart
2. Opening of trading chart windows

1. The hidden panel isn't available on the wine workspace.
2. After executing expose....the other workspace's show a copy of the wine workspace's panel area.
3. Desktop icons weren't accessible originally (plasma 5.7.0) but are accessible after 6 - 10 seconds in later versions of plasma 5.7.1 through 5.7.4.
4. The panel (hidden or visible) is non-accessible until after 6 - 10 seconds, on non-wine workspaces (If the following workspaces are accessed in this order: wine workspace then any other workspace).


Test2
Currently Plasma 5.7.3 and 5.7.4 has an issue with Sierra Chart running under Wine 1.9.16 for C4790K-P1, C4790K-P2 and C4790-P1.

After opening Sierra Chart the following issue occurs:
(There are two steps to opening Sierra Chart:)
1. Starting Sierra Chart
2. Opening of trading chart windows

1. The hidden panel is slow to fully show on first try.
2. The grouping function of the task manager doesn't work for the wine program but works for the non-wine programs.
3. The above issues occur during the use of Gentoo or Arch linux.

****************************************************************************************************************************************

Computer-3770 
CPU - CI7-3770
Video - HD4000
Memory - 8GB

Partition1 or C3770-P1
Gentoo AMD64 Stable
Plasma 5.6.5
Frameworks 5.25
KDE Apps 16.08.0
QT5 - version 5.6.1
xf86-video-intel 2.99.917-r2

Partition2 or C3770-P2
Gentoo AMD64 Stable
Plasma 5.7.4
Frameworks 5.25
KDE Apps 16.08.0
QT5 - version 5.6.1
xf86-video-intel 2.99.917-r2

###########################

Computer-4790K
CPU - CI7-4790K
Video - HD4600
Memory - 8GB

Partition1 or C4790K-P1
Arch
Plasma 5.7.3
Frameworks 5.25
KDE Apps 16.04.3
QT5 - version 5.7.0
xf86-video-intel 2.99.917+697+g12c14de

Partition2 or C4790K-P2
Gentoo AMD64 Stable
Plasma 5.7.4
Frameworks 5.25
KDE Apps 16.08.0
QT5 - version 5.6.1
xf86-video-intel 2.99.917-r2

###########################

Computer-4790
CPU - CI7-4790
Video - Nvidia GTX-950
Memory - 8GB

Partition1 or C4790-P1
Gentoo AMD64 Stable
Plasma 5.7.4
Frameworks 5.25
KDE Apps 16.08.0
QT5 - version 5.6.1
nvidia-drivers 361.28
Comment 1 David Brooke 2016-09-01 01:26:03 UTC
Videos:
Works as expected (C3770-P1)
https://dl.dropboxusercontent.com/u/17574275/TMWPlasma5.6.5.mp4
Doesn't work as expected (C3770-P2, C4790K-P1, C4790K-P2 and C4790-P1)
https://dl.dropboxusercontent.com/u/17574275/TMWPlasma5.7.3.mp4
https://dl.dropboxusercontent.com/u/17574275/TMWPlasma5.7.3-arch.mp4
Comment 2 David Brooke 2016-09-10 03:07:28 UTC
I have tested using notepad instead of Sierra Chart. The only issue that I can see, is that the grouping function fails or doesn't work with any video intel or nvidia.
Comment 3 David Brooke 2016-09-10 03:10:56 UTC
I have tested the "window list" alternative to the "task manager".  The panel hide functions as expected also the "window list" alternative does not have a grouping function.
Comment 4 Eike Hein 2016-09-11 06:01:19 UTC
Grouping "wine notepad" works OK on my Plasma 5.7.x ...
Comment 5 David Brooke 2016-09-15 03:18:52 UTC
9/14/16 Update

Plasma-Task Manager and Wine issues
I have simplified the issue of grouping not working for wine programs:
1. The issue is reproducible by:
A. Opening 2 or more windows of notepad while the grouping function is always enforced.
B. Opening 9 windows of notepad while grouping is only enforced when the task manager is full.
Either of the above two options will show that grouping does not work for wine programs but does work for others (dolphin, konsole, etc...).

Three computers have been used for evaluation (See below). Computer-3770 originally showed the issue then Computer-4790K and Computer-4790 were used for additional testing.
Partition1 or C3770-P1 is the only setup that works correctly. All others fail.

Test1
Currently Plasma 5.7.0 through 5.7.5 has an issue with Sierra Chart running under Wine 1.9.18 for C3770-P2.
Results are the same as before.

Test2
Currently Plasma 5.7.3 and 5.7.5 has an issue with Sierra Chart running under Wine 1.9.18 for C4790K-P1, C4790K-P2 and C4790-P1. C4790K-P1 with KDE Neon uses wine 1.6.2.
Results are the same as before.

****************************************************************************************************************************************

Computer-3770 
CPU - CI7-3770
Video - HD4000
Memory - 8GB

Partition1 or C3770-P1
Gentoo AMD64 Stable
Plasma 5.6.5
Frameworks 5.26
KDE Apps 16.08.1
QT5 - version 5.6.1
xf86-video-intel 2.99.917-r2

Partition2 or C3770-P2
Gentoo AMD64 Stable
Plasma 5.7.5
Frameworks 5.26
KDE Apps 16.08.1
QT5 - version 5.6.1
xf86-video-intel 2.99.917-r2

###########################

Computer-4790K
CPU - CI7-4790K
Video - HD4600
Memory - 8GB

Partition1 or C4790K-P1
Arch
Plasma 5.7.4
Frameworks 5.26
KDE Apps 16.08.1
QT5 - version 5.7.0
xf86-video-intel 2.99.917+697+g12c14de

Partition1 or C4790K-P1
KDE Neon
Plasma 5.7.5
Frameworks 5.26
KDE Apps 16.08.0
QT5 - version 5.7.0
xserver-xorg-video-intel 2:2.99.917+git20160325-1ubuntu1.1

Partition2 or C4790K-P2
Gentoo AMD64 Stable
Plasma 5.7.5
Frameworks 5.26
KDE Apps 16.08.1
QT5 - version 5.6.1
xf86-video-intel 2.99.917-r2

###########################

Computer-4790
CPU - CI7-4790
Video - Nvidia GTX-950
Memory - 8GB

Partition1 or C4790-P1
Gentoo AMD64 Stable
Plasma 5.7.5
Frameworks 5.26
KDE Apps 16.08.1
QT5 - version 5.6.1
nvidia-drivers 361.28
Comment 6 David Brooke 2016-09-15 03:21:25 UTC
To date:
I have installed three different distro's:
Gentoo
Arch
KDE Neon
All reproduce the same issue with the Task Manager's grouping function and wine programs.
Please let me know if other info is needed.
Thanks
Comment 7 David Brooke 2016-09-16 17:03:22 UTC
Tested plasma 5.7.95 and the results are the same. Refer to the first "Doesn't work as expected" video.

Partition2 or C3770-P2
Gentoo AMD64 Stable
Plasma 5.7.95
Frameworks 5.26
KDE Apps 16.08.1
QT5 - version 5.6.1
xf86-video-intel 2.99.917-r2
Comment 8 Eike Hein 2016-09-16 19:03:16 UTC
I can reproduce something now - will take a closer look soon.
Comment 9 Eike Hein 2016-09-17 13:40:11 UTC
Apparently newer versions of wine changed behavior somewhat. Notepad now has a WM_CLASS of "notepad.exe, notepad.exe". We of course can't map this to a .desktop file nor an executable URL, so we don't have working app ids or a working launcher URL and nothing to group by. Tricky, but I have an idea.
Comment 10 Eike Hein 2016-09-17 13:59:00 UTC
Patch: https://phabricator.kde.org/D2804
Comment 11 David Brooke 2016-09-18 14:34:54 UTC
I have tested the patch on three computers (see below) and the grouping function works with notepad and Sierra Chart programs.
1. I opened 40 windows of notepad without issue.
2. Sierra Chart has a limit to the number of windows that can be opened before a "freezing" issue occurs which I will explain further in the next post. The limited number of windows is less than the current ability of Plasma 5.6 of which an upper limit has not been tested.

Partition2 or C3770-P2
Gentoo AMD64 Stable
Plasma 5.7.95
Frameworks 5.26
KDE Apps 16.08.1
QT5 - version 5.6.1
xf86-video-intel 2.99.917-r2

Partition2 or C4790K-P2
Gentoo AMD64 Stable
Plasma 5.7.95
Frameworks 5.26
KDE Apps 16.08.1
QT5 - version 5.6.1
xf86-video-intel 2.99.917-r2

Partition1 or C4790-P1
Gentoo AMD64 Stable
Plasma 5.7.5
Frameworks 5.26
KDE Apps 16.08.1
QT5 - version 5.6.1
nvidia-drivers 361.28
Comment 12 David Brooke 2016-09-18 14:53:52 UTC
https://dl.dropboxusercontent.com/u/17574275/TMWP-Patch-C3770-P2.mp4

The video shows Sierra Chart being used on C3770-P2. Everything seems to be working:
1. The panel can hide/unhide
2. The group popup
3. Grouping function
Once more Sierra Chart windows are added, the panel and group popup start to malfunction. The panel and group popup seem to freeze, being non-accessible. The malfunction can be corrected by:
1. Switching to another virtual desktop
2. Moving the mouse over the panel area then back to the desktop

The following post I will layout wine and Sierra Chart installation and setup for testing.
Comment 13 David Brooke 2016-09-18 14:55:42 UTC
Sierra Charts and Wine installation

Programs used: 
Gentoo amd64 
Wine version 1.9.18 
Winetricks version 20160724 
Sierra Charts 32 bit version 1460
 
Url's for reference 
http://www.sierrachart.com/index.php?page=doc/setup.php
http://www.sierrachart.com/index.php?page=doc/helpdetails56.html 
 
1. Setup before Wine installation.
A. Add to /etc/portage/package.accept_keywords:
app-emulation/wine ~amd64 
app-emulation/winetricks ~amd64
   
B. Add to /etc/portage/package.use (only if staging is being used)
app-emulation/wine staging
   
2. Install Wine and Winetricks: 
sudo emerge -av wine winetricks
   
3. Setup Wine:
A.winecfg
or 
Applications>Wine>Configure Wine
or
WINEARCH=win32 winecfg (32 bit wine install on 64 bit OS)

B. Enable CSMT (only if staging is being used)
 
4. Install required programs:
winetricks vcrun2010 corefonts

5. Download and install:
A. http://www.sierrachart.com/index.php?page=doc/setup.php > Download Sierra Chart 1460 (September 6, 2016) Now
B. wine SierraChartFileDownloader.exe
or copy an existing install to ~/.wine/drive_c/SierraChart

6. Create an account for the free trial (limited to 2 weeks)
A. http://www.sierrachart.com/index.php?page=doc/setup.php > Step 2
I don't believe that Step 3 is necessary. If it is, please let me know.

7. Start Sierra Charts:
wine "c:/SierraChart/SierraChart.exe"
or
Application menu
Comment 14 Eike Hein 2016-09-19 07:51:46 UTC
Git commit 5e30fc609e7692129f444e4455d5b9300bfc23ff by Eike Hein.
Committed on 19/09/2016 at 07:51.
Pushed by hein into branch 'Plasma/5.8'.

Add an ultimate fallback to WM_CLASS Class for AbstractTasksModel::AppId in XWindowsTasksModel.

Summary:
This makes grouping work for apps we can't find on the system and
can't produce a launcher URL for, such as wine clients. Any better
app will use our superior codepath, the wonky ones like wine then
get left to making sure their WM_CLASS Class makes sense as per the
ICCCM spec.

Of course this doesn't work for XWayland clients on Wayland though.

Also nixes an obsolete FIXME and adds a small check to avoid
producing launcher URLs that are only the window icon pixmap
query element.

Reviewers: #plasma, davidedmundson, broulik

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D2804

M  +10   -1    libtaskmanager/taskgroupingproxymodel.cpp
M  +19   -1    libtaskmanager/xwindowtasksmodel.cpp

http://commits.kde.org/plasma-workspace/5e30fc609e7692129f444e4455d5b9300bfc23ff
Comment 15 David Brooke 2016-10-04 14:08:37 UTC
I'm confused and need additional direction.
The bug has been labeled "Resolved" but the main issue remains open. One small part of the puzzle  has been solved but the main issue has not been addressed. I have provided addition data to help resolve the main issue, is additional data required? Please let me know how to proceed.
Comment 16 Eike Hein 2016-10-04 15:26:52 UTC
I'm confused as well. Your problem was grouping, right? That's fixed. If not, please don't create monster tickets that combined multiple bugs into one.
Comment 17 David Brooke 2016-10-05 19:24:18 UTC
(In reply to Eike Hein from comment #16)
> I'm confused as well. Your problem was grouping, right? That's fixed. If
> not, please don't create monster tickets that combined multiple bugs into
> one.

I try to report  all relevant data for the issue so that the best attempt with the least amount of effort may be accomplished by the person resolving the issue. Along with the data,  I supplied several videos to further fully inform.
In doing the above, if I have created "multiple bugs" I apologize.
I believe that if you just review the supplied videos...there really would be any confusion.
See comments 1 and 12 for the videos of the main issue.
Comment 18 Eike Hein 2016-10-06 02:13:18 UTC
I'm sorry, I'm just lost in all of this data right now. To make progress, can we try to do this:

a) Please get ahold of the latest stable release of Plasma, which contains the fixes made so far, i.e. Plasma 5.8 - if you can't install this easily, you can download KDE Neon User Edition with 5.8 and install wine and Sierra there. From your above comments I currently don't know whether you've re-tested with the new code, and because the fixes fundamentally change how the Task Manager identifies wine client windows, it might well affect any of your wine-related issues. I.e. I don't know if your assessment that "a small piece of the puzzle was addressed" is based on testing or not.

b) Using Plasma 5.8, please try to reproduce your problem(s) and see if they remain

c) We need to make sure we're on the same page as far as terminology goes. By "group popup", do you refer to the vertical list of task buttons that appears when clicking a group button on the panel, or do you mean the horizontal list of window thumbnails that appears as a tooltip when hovering the group button? Freezes related to window thumbnails may actually be out of the purview of the Task Manager, as they can be e.g. graphics driver related, so to sort this out I need to understand what you mean precisely.

I did try to take a look at the video in comment 12, but it was very long and I wasn't sure what the problem was. It would help to supply e.g. time indices inside a video where things go wrong. But again, it would be best to start over on the current code (Plasma 5.8).

Thank you for going to the trouble to describe how to obtain Sierra Charts for testing purposes, I'll do that if we can't get ahead with the above approach.
Comment 19 David Brooke 2016-10-08 01:59:27 UTC
Per your request I have provided the following information to better clarify the main issue.

I have created three short videos:
Expected correct condition (which shows the group popup):
https://dl.dropboxusercontent.com/u/17574275/group-popup.mp4
Error condition - hidden panel (C3770-P2):
https://dl.dropboxusercontent.com/u/17574275/TMWP-5.8-neon-C3770-P2-1.mp4
Error condition - group popup (C4790K-P1):
https://dl.dropboxusercontent.com/u/17574275/TMWP-5.8-neon-C4790K-P1-1.mp4


Error conditions:
The hidden panel cannot be accessed or if it can, the wine program (Sierra Chart) task button does not have a group popup showing the available windows. In either instance a transparent outline of the panel or the group popup is displayed and other windows cannot be brought into focus while in this error condition.
Error correction:
Switching to another virtual desktop and moving the mouse over then away from the panel seems to correct the problem condition.

You can decide whether to conquer both error conditions or separate them into two different bugs. I lean toward that both originate from the same issue but manifest slightly different results.

Note:
Both test computers are very similar but the video capability difference stands out to me as a possible key element.

Computer-3770 
CPU - CI7-3770
Video - HD4000
Memory - 8GB
Partition2 or C3770-P2
KDE Neon 5.8
Plasma 5.8.0
Frameworks 5.26
KDE Apps 16.08.1
QT5 - version 5.7
xf86-video-intel 2.99.917*

Computer-4790K
CPU - CI7-4790K
Video - HD4600
Memory - 8GB
Partition1 or C4790K-P1
KDE Neon 5.8
Plasma 5.8.0
Frameworks 5.26
KDE Apps 16.08.1
QT5 - version 5.7
xf86-video-intel 2.99.917*
Comment 20 Eike Hein 2016-10-09 09:54:11 UTC
Thanks, I see the problems now. Unfortunately I can't reason about what's broken from them though, seems I will have to make/find the time to install this app.
Comment 21 David Brooke 2017-01-28 02:59:14 UTC
Hello
I'm inquiring about a possible update to the issue?
Also currently I'm using a work-around:
1. I have disabled the task manager in the panel.
2. I reduced the horizontal size of the KDE panel down to 10% of the screen width.
3. I have added Tint2 panel to handle the tasks / programs.
4. I have sized the Tint2 panel to 90% of the screen width.
5. Basically I have the KDE panel on the bottom left and the Tint2 panel on the bottom right.

This setup works as expected when accessing the wine program from the Tint2 panel, like it did previously in KDE plasma <=5.6.5 and KDE4.
Comment 22 David Brooke 2017-02-22 00:33:39 UTC
More addition info...
I have tried Mate and Xfce with the wine setup and they both perform as expected when using KDE plasma <=5.6.5 and KDE4.
Comment 23 Alexander Mentyu 2018-02-28 11:43:41 UTC
Dropbox links aren't working

after starting multiple instances of Notepad - group named 'Wine' is created in the Panel - underneath it's icon there is a plus sign

after starting multiple instances of Notepad++ - group named 'Wine' is created in the Panel - there is no plus sign underneath it's icon

if some other wine app is started (i tried Foobar2000) - it also goes into the 'Wine' group

if in this group app windows are minimized - they all display icon from the first app that formed the group - e.g. if you start two instances of Notepad++ - 'Wine' group with Notepad++'s icon will appear - then if you start and minimize Foobar2000 - it will go into 'Wine' group and Notepad++'s icon will be displayed for Foorbar2000 app in the preview list after hovering over this 'Wine' group

multiple separated bugs can be created on these issues - if needed - not sure what is better

Plasma: 5.12.2
Apps: 17.12.2
Frameworks: 5.43.0
Qt: 5.10.1
Kernel: 4.14.20-2-MANJARO
OS: Netrunner Rolling
Comment 24 Eike Hein 2018-03-01 20:59:41 UTC
Please make sure you're using a wine version new enough to contain this patch: https://bugs.winehq.org/show_bug.cgi?id=32699#c16

We worked with wine last year to make this better there.
Comment 25 galder 2022-01-30 15:40:37 UTC
Looks like an old issue. Setting it to needs more info.
Please if this is not an issue any more let us know.
Bugs placed into NEEDSINFO status will receive a reminder if the ticket:

    Is at least 15 days old
    Has not received any comment within 15 days

If a bug remains in NEEDSINFO for another 15 days with no comment, it will be closed as RESOLVED > WORKSFORME.
Comment 26 Bug Janitor Service 2022-02-14 04:36:18 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 27 Bug Janitor Service 2022-03-01 04:36:32 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!