← Back to team overview

dx-packages team mailing list archive

[Bug 1240006] [NEW] Subsequent closing of windows results in small untitled icons in launcher

 

Public bug reported:

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)

** Affects: unity (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug raring

** Attachment added: "UntitledWindowsInLauncher.jpg"
   https://bugs.launchpad.net/bugs/1240006/+attachment/3878449/+files/UntitledWindowsInLauncher.jpg

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1240006

Title:
  Subsequent closing of windows results in small untitled icons in
  launcher

Status in “unity” package in Ubuntu:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1240006/+subscriptions


Follow ups

References