Bug#432493: fluxbox locks up when using skype

2007-07-10 Thread clayton
Package: fluxbox
Version: 1.0~rc3-2
Severity: important


Something new in my environment has exposed a bug in fluxbox. Not only 
the newer versions of fluxbox are broken, but also fluxbox version 
0.9.14 which used to work just fine with skype until a recent apt-get 
upgrade. 

Using latest skype version 1.4.0.74, this is what happens for all 
versions of fluxbox 0.9.14 thru 1.0~rc3-2 that I have tested: starting 
skype and then trying to initiate a chat with another skype user results 
in fluxbox CPU utilization shooting permanently up to 80-90%, and 
fluxbox stops responding to the mouse and keyboard. This is reliably 
100% repeatable. I must log in over the network and kill -9 fluxbox, 
then login again, in order to restore function.

I am using latest skype version: 1.4.0.74
Fluxbox 0.9.14 used to work but is also broken.

Openbox version 3.3 currently works fine with skype.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages fluxbox depends on:
ii  libc6   2.5-9+b1 GNU C Library: Shared libraries
ii  libfontconfig1  2.4.2-1.2generic font configuration library
ii  libgcc1 1:4.2-20070627-1 GCC support library
ii  libice6 1:1.0.3-2X11 Inter-Client Exchange library
ii  libsm6  2:1.0.3-1X11 Session Management library
ii  libstdc++6  4.2-20070627-1   The GNU Standard C++ Library v3
ii  libx11-62:1.0.3-7X11 client-side library
ii  libxext61:1.0.3-2X11 miscellaneous extension librar
ii  libxft2 2.1.12-2 FreeType-based font drawing librar
ii  libxinerama11:1.0.2-1X11 Xinerama extension library
ii  libxpm4 1:3.5.6-3X11 pixmap library
ii  libxrandr2  2:1.2.1-1X11 RandR extension library
ii  libxrender1 1:0.9.2-1X Rendering Extension client libra
ii  menu2.1.34   generates programs menu for all me

fluxbox recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#432493: fluxbox locks up when using skype

2007-07-10 Thread Dmitry E. Oboukhov
This bug has been already fixed in upstream.
Please check if this bug is also contained in the svn 
version ?

svn package uploaded to:
http://uvw.ru/debian/fluxbox/fluxbox-1.0/

usage:

$ mkdir fluxbox
$ cd fluxbox
# apt-get build-dep fluxbox
$ wget 
http://uvw.ru/debian/fluxbox/fluxbox-1.0/fluxbox_1.0~rc3+svn4979-1.diff.gz \
http://uvw.ru/debian/fluxbox/fluxbox-1.0/fluxbox_1.0~rc3+svn4979-1.dsc \
http://uvw.ru/debian/fluxbox/fluxbox-1.0/fluxbox_1.0~rc3+svn4979.orig.tar.gz

$ dpkg-source -x fluxbox_1.0~rc3+svn4979-1.dsc
$ cd fluxbox_1.0~rc3+svn4979
$ fakeroot debian/rules binary
# dpkg -i ../*.deb




signature.asc
Description: Digital signature


Bug#432493: fluxbox locks up when using skype

2007-07-10 Thread Clayton
On Tue, 10 Jul 2007 13:09:50 +0400
Dmitry E. Oboukhov [EMAIL PROTECTED] wrote:

 This bug has been already fixed in upstream.
 Please check if this bug is also contained in the svn 
 version ?
 
 svn package uploaded to:
 http://uvw.ru/debian/fluxbox/fluxbox-1.0/
 
 usage:
 
 $ mkdir fluxbox
 $ cd fluxbox
 # apt-get build-dep fluxbox
 $ wget
 http://uvw.ru/debian/fluxbox/fluxbox-1.0/fluxbox_1.0~rc3+svn4979-1.diff.gz
 \
 http://uvw.ru/debian/fluxbox/fluxbox-1.0/fluxbox_1.0~rc3+svn4979-1.dsc
 \
 http://uvw.ru/debian/fluxbox/fluxbox-1.0/fluxbox_1.0~rc3+svn4979.orig.tar.gz
 
 $ dpkg-source -x fluxbox_1.0~rc3+svn4979-1.dsc
 $ cd fluxbox_1.0~rc3+svn4979
 $ fakeroot debian/rules binary
 # dpkg -i ../*.deb

Yes, it is fixed in this one. I will build and try the other one you
just sent me first thing tomorrow.

Clayton


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#432493: fluxbox locks up when using skype

2007-07-10 Thread Dmitry E. Oboukhov
tags 432493 patch fixed-upstream
thanks

C Yes, it is fixed in this one. I will build and try the other one you
C just sent me first thing tomorrow.

version with patch temporary uploaded to:
http://uvw.ru/debian/fluxbox/fluxbox-1.0/

src package:
http://uvw.ru/debian/fluxbox/fluxbox-1.0/fluxbox_1.0~rc3-3.dsc
http://uvw.ru/debian/fluxbox/fluxbox-1.0/fluxbox_1.0~rc3-3.diff.gz
http://uvw.ru/debian/fluxbox/fluxbox-1.0/fluxbox_1.0~rc3.orig.tar.gz

build instructions are the same

Please check if this bug is also contained in the 1.0~rc3-3
version ?
#! /bin/sh /usr/share/dpatch/dpatch-run
## 60_fix_fluxbox_locks_up_when_using_skype.dpatch by  [EMAIL PROTECTED]
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix: fluxbox locks up when using skype

@DPATCH@

--- fluxbox-1.0~rc3/src/FbTk/FbPixmap.cc
+++ fluxbox-1.0~rc3/src/FbTk/FbPixmap.cc
@@ -109,13 +114,14 @@
 Window root;
 int x, y;
 unsigned int border_width, bpp;
-XGetGeometry(display(),
- pm,
- root,
- x, y,
- m_width, m_height,
- border_width,
- bpp);
+if (!XGetGeometry(display(),
+  pm,
+  root,
+  x, y,
+  m_width, m_height,
+  border_width,
+  bpp))
+return *this;
 
 m_depth = bpp;
 
@@ -161,13 +167,14 @@
 unsigned int border_width, bpp;
 unsigned int new_width, new_height;
 
-XGetGeometry(display(),
- pm,
- root,
- x, y,
- new_width, new_height,
- border_width,
- bpp);
+if (!XGetGeometry(display(),
+  pm,
+  root,
+  x, y,
+  new_width, new_height,
+  border_width,
+  bpp))
+return;
 
 if (depth == 0)
 depth = bpp;
@@ -347,9 +354,10 @@
 return ret;
 }
 
-void FbPixmap::rootwinPropertyNotify(int screen_num, Atom atom) {
+// returns whether or not the background was changed
+bool FbPixmap::rootwinPropertyNotify(int screen_num, Atom atom) {
 if (!FbTk::Transparent::haveRender())
-return;
+return false;
 
 checkAtoms();
 for (int i=0; root_prop_ids[i] != 0; ++i) {
@@ -373,14 +381,16 @@
 }
 XFree(data);
 if (root_pm != None)
-setRootPixmap(screen_num, root_pm);
+return setRootPixmap(screen_num, root_pm);
 }
-break;
+return false;
 }
 }
+return false;
 }
 
-void FbPixmap::setRootPixmap(int screen_num, Pixmap pm) {
+// returns whether or not the background was changed
+bool FbPixmap::setRootPixmap(int screen_num, Pixmap pm) {
 if (!m_root_pixmaps) {
 m_root_pixmaps = new Pixmap[ScreenCount(display())];
 for (int i=0; i  ScreenCount(display()); ++i)
@@ -390,7 +400,9 @@
 if (m_root_pixmaps[screen_num] != pm) {
 m_root_pixmaps[screen_num] = pm;
 FbWindow::updatedAlphaBackground(screen_num);
+return true;
 }
+return false;
 }
 
 Pixmap FbPixmap::getRootPixmap(int screen_num, bool force_update) {
--- fluxbox-1.0~rc3/src/FbTk/FbPixmap.hh
+++ fluxbox-1.0~rc3/src/FbTk/FbPixmap.hh
@@ -70,8 +70,8 @@
 inline unsigned int depth() const { return m_depth; }
 
 static Pixmap getRootPixmap(int screen_num, bool force_update=false);
-static void setRootPixmap(int screen_num, Pixmap pm);
-static void rootwinPropertyNotify(int screen_num, Atom atom);
+static bool setRootPixmap(int screen_num, Pixmap pm);
+static bool rootwinPropertyNotify(int screen_num, Atom atom);
 
 void create(Drawable src,
 unsigned int width, unsigned int height,


signature.asc
Description: Digital signature