Subsequent closing of windows results in small untitled icons in launcher

Bug #1240006 reported by Bernard Decock
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Invalid
Undecided
Unassigned
unity (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I have an application that creates and destroys a large amount of windows. If a lot of windows have to be closed simultaneously, then a number of "untitled window"-icons remain in the launcher. These icons can't be removed from the launcher until you log off.

Here's a code-snippet underneath which produces this behaviour:

#include <opencv/highgui.h> // includes highGUI definitions

int main(int argc, char *argv[])
{
  const int PlayDelay = 500; // msec
  const char Escape = 27; // ascii-code

   CvSize FrameSize;
   FrameSize.width = 640;
   FrameSize.height = 480;

   IplImage* ImageOI = cvCreateImage(FrameSize,IPL_DEPTH_32F,3);
   cvZero(ImageOI);

    std::vector<std::string> WindowNames;
    const int NumberOfWindows = 30;
    for (int i=0;i<NumberOfWindows;i++)
    {
        std::stringstream NameTestWindow;
        NameTestWindow << "Test";
        NameTestWindow << "-" << i;
        WindowNames.push_back(NameTestWindow.str());
    }

    while (true)
    {
        for (int i=0;i<NumberOfWindows;i++)
        {
            cvShowImage(WindowNames[i].c_str(),ImageOI);
        }

        char c = cvWaitKey(PlayDelay);
        for (int i=0;i<NumberOfWindows;i++)
        {
            cvDestroyWindow(WindowNames[i].c_str());
        }
        if (c == Escape ) break;
    }

    cvReleaseImage(&ImageOI);
    return 0;

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: unity 7.0.0daily13.06.19~13.04-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-31.46-generic 3.8.13.8
Uname: Linux 3.8.0-31-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
Date: Tue Oct 15 11:28:28 2013
InstallationDate: Installed on 2013-06-05 (132 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Bernard Decock (decockbernard) wrote :
Revision history for this message
Andrea Azzarone (azzar1) wrote :

13.04 is no longer supported. Is this still a problem on 12.04/14.04/14.10?

Changed in unity:
status: New → Incomplete
Changed in unity (Ubuntu):
status: New → Incomplete
Revision history for this message
Bernard Decock (decockbernard) wrote :

Ubuntu 14.04. Problem seems to be solved.

Andrea Azzarone (azzar1)
Changed in unity:
status: Incomplete → Invalid
Changed in unity (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.