dockx crash after closing libreoffice -calc

Bug #806990 reported by telperion
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
DockbarX
Fix Released
Undecided
Unassigned

Bug Description

mc@debian64:~$ dockx
DockbarX 0.45
DockbarX init
DockbarX reload
Xlib.protocol.request.QueryExtension
Executing: libreoffice -calc
/usr/local/lib/python2.6/dist-packages/dockbarx/iconfactory.py:267: DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
  for row in pb.get_pixels_array():
The program 'dockx' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 1291 error_code 3 request_code 20 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

mc@debian64:~$ dockx --sync
DockbarX 0.45
DockbarX init
DockbarX reload
Xlib.protocol.request.QueryExtension
Executing: libreoffice -calc
/usr/local/lib/python2.6/dist-packages/dockbarx/iconfactory.py:267: DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
  for row in pb.get_pixels_array():
/usr/bin/dockx:651: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
  gtk.main()
Executing: libreoffice -calc
The program 'dockx' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 4198 error_code 3 request_code 20 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Revision history for this message
telperion (nikita-top) wrote :

libreoffice -calc
launcher work, calc start, after closing, dockx crash.

Revision history for this message
telperion (nikita-top) wrote :

LibreOffice 3.3.3

Revision history for this message
telperion (nikita-top) wrote :

Other info:

same crash with Openoffice 3.3.0

No crah with Openoffice 3.2.1

Revision history for this message
telperion (nikita-top) wrote :

No *CRASH* with Openoffice 3.2.1
sorry

Revision history for this message
Matias Särs (msevens) wrote :

Looks like a nasty bug. I tried to fix it in rev 423 by simply adding error catching, but I'm not sure if that works for X Window System errors. Tell me if it works.

Changed in dockbar:
status: New → Fix Committed
Revision history for this message
telperion (nikita-top) wrote :

same whit 423:

mc@debian64:~$ dockx
DockbarX 0.45
DockbarX init
DockbarX reload
Xlib.protocol.request.QueryExtension
Executing: gedit
Gtk-Message: Failed to load module "canberra-gtk-module"
/usr/local/lib/python2.6/dist-packages/dockbarx/iconfactory.py:267: DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
  for row in pb.get_pixels_array():
Executing: libreoffice -calc
The program 'dockx' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 1867 error_code 3 request_code 20 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
mc@debian64:~$

if you serve some other tests, tell me how do, I do it willingly

(google traductor)

Revision history for this message
telperion (nikita-top) wrote :

google *translator* sorry

more test (423):

mc@debian64:~$ LANG=C dockx
DockbarX 0.45
DockbarX init
DockbarX reload
Xlib.protocol.request.QueryExtension
Executing: libreoffice -writer
/usr/local/lib/python2.6/dist-packages/dockbarx/iconfactory.py:267: DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
  for row in pb.get_pixels_array():
/usr/bin/dockx:654: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
  gtk.main()
Executing: libreoffice -writer

*******(close writer -> ok)

Executing: libreoffice -calc

*******(close calc -> crash)

The program 'dockx' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 2462 error_code 3 request_code 20 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

With:
keep open office application (W, C. etc) separated *******uncheck
no crash:

mc@debian64:~$ LANG=C dockx
DockbarX 0.45
DockbarX init
DockbarX reload
Xlib.protocol.request.QueryExtension
/usr/bin/dockx:654: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
  gtk.main()
Executing: libreoffice -calc
/usr/local/lib/python2.6/dist-packages/dockbarx/iconfactory.py:267: DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
  for row in pb.get_pixels_array():
Executing: libreoffice -writer
Executing: libreoffice -calc
Executing: libreoffice -calc
Executing: libreoffice -calc
Executing: /home/mc/firefox-m/firefox -P mine

Revision history for this message
telperion (nikita-top) wrote :

same for math

mc@debian64:~$
mc@debian64:~$ LANG=C dockx
DockbarX 0.45
DockbarX init
DockbarX reload
Xlib.protocol.request.QueryExtension
Executing: libreoffice -math
/usr/local/lib/python2.6/dist-packages/dockbarx/iconfactory.py:267: DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
  for row in pb.get_pixels_array():
The program 'dockx' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 1522 error_code 3 request_code 20 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

pin libreoffice application with
keep open office application (W, C. etc) separated ---->checked
then uncheck and restart dockx,
seems to work temporarily, with some limitations, all Libreoffice apps list under writer icon

mc@debian64:~$ LANG=C dockx
DockbarX 0.45
DockbarX init
DockbarX reload
Xlib.protocol.request.QueryExtension
Executing: libreoffice -calc
/usr/local/lib/python2.6/dist-packages/dockbarx/iconfactory.py:267: DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
  for row in pb.get_pixels_array():
/usr/bin/dockx:654: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
  gtk.main()
Executing: libreoffice -writer
Executing: libreoffice -math
Executing: libreoffice -calc
Executing: libreoffice -writer
Executing: libreoffice -calc
Executing: libreoffice -calc
Executing: libreoffice -math

Revision history for this message
Matias Särs (msevens) wrote :

I found the documentation for catching X Window errors. Try rev 425.

Revision history for this message
Matias Särs (msevens) wrote :

Sorry, no onerror option for get_full_property :(. Sounds like a bug in python-xlib then... What version of ubuntu/other distro are you using?

Rev 427 is a shot in the dark but tell me if it works.

Revision history for this message
telperion (nikita-top) wrote :

427: same crash:

mc@debian64:~$ LANG=C dockx
DockbarX 0.45
DockbarX init
DockbarX reload
Xlib.protocol.request.QueryExtension
Executing: libreoffice -calc
/usr/local/lib/python2.6/dist-packages/dockbarx/iconfactory.py:267: DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
  for row in pb.get_pixels_array():
The program 'dockx' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 1767 error_code 3 request_code 20 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
mc@debian64:~$ LANG=C dockx
DockbarX 0.45
DockbarX init
DockbarX reload
Xlib.protocol.request.QueryExtension
Executing: libreoffice -writer
/usr/local/lib/python2.6/dist-packages/dockbarx/iconfactory.py:267: DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
  for row in pb.get_pixels_array():
/usr/bin/dockx:655: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
  gtk.main()
Executing: libreoffice -calc
The program 'dockx' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 2585 error_code 3 request_code 20 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
mc@debian64:~$

writer is ok, calc after closing crash dockx.

Debian 64 sid

mc@debian64:~$ apt-cache showpkg python-xlib
Package: python-xlib
Versions:
0.14+20091101-1

Only calc and math
libre/openoffice> 3.3 crash the dock
no problem with other programs
or calc and math OOo 3.2

Revision history for this message
Matias Särs (msevens) wrote :

Ok. Found out that I could replicate the bug (why didn't I try that immediately??). That made it a bit easier to find the error. Not only the dock was affected but the awn applet as well. I had looked for the bug in a completely wrong part of the code. After much trial and error I think I found it. Rev 429.

Revision history for this message
telperion (nikita-top) wrote :

The 429 works, no more crashes

thanks

Revision history for this message
Matias Särs (msevens) wrote :

Thanks for reporting and sticking with it. This was kind of a show-stopper bug that I completely had missed.

Matias Särs (msevens)
Changed in dockbar:
status: Fix Committed → Fix Released
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.