The NetAccess hack hits again

David Faure david at mandrakesoft.com
Mon Apr 29 17:30:42 BST 2002


On Monday 29 April 2002 18:22, Matthias Ettrich wrote:
> On Monday 29 April 2002 18:02, David Faure wrote:
> > Bug: type something in KWord, File/SaveAs, type filename, Ok -> can't type
> > anymore. It turns out that focusWidget() is 0L in the kword mainwindow, and
> > that it never got the FocusIn event.
> >
> > (If your kio is uptodate you'll need to upload to an FTP location to see
> > this, I have changed NetAccess::exists for local files).
> >
> > One can also see an X error. Its backtrace is below.
> > Does anyone know what the X error means? man XCheckIfEvent really didn't
> > help... I tried deleting the file dialog before calling NetAccess (usually
> > it's destroyed afterwards), but that didn't change anything.
> >
> > kword: WARNING: KDE detected X Error: BadMatch (invalid parameter
> > attributes) 8 Major opcode:  42[
> 
> Somewhere there was a call to XSetInputFocus while the window wasn't yet 
> mapped.

Hmm, this window can only be the netaccess modal-widget-hack widget then
(the file dialog, on the other hand, has been destroyed, so that's not the one).

> Is there some threading going on?

Nope.

> David, can you try to reproduce the problem with  -sync ?

Yes. The problem is still there, but the backtrace is much more interesting, and
proves you right about XSetInputFocus...

kword: WARNING: KDE detected X Error: BadMatch (invalid parameter attributes) 8
  Major opcode:  42[
0: /mnt/perso/kde2dev/lib/libkdecore.so.4(kdBacktrace__Fv+0x3d) [0x407340dd]
1: /mnt/perso/kde2dev/lib/libkdecore.so.4 [0x40728a22]
2: /usr/X11R6/lib/libX11.so.6(_XError+0x143) [0x40f6d403]
3: /usr/X11R6/lib/libX11.so.6(_XReply+0x3ed) [0x40f6c03d]
4: /usr/X11R6/lib/libX11.so.6(XSync+0x64) [0x40f67778]
5: /usr/X11R6/lib/libX11.so.6(_XSyncFunction+0x1d) [0x40f678ed]
6: /usr/X11R6/lib/libX11.so.6(XSetInputFocus+0x86) [0x40f6665a]
7: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(x11ClientMessage__12QApplicationP7QWidgetP7_XEventb+0x15e) [0x40a1906e]
8: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(x11ProcessEvent__12QApplicationP7_XEvent+0xa1c) [0x40a19c2c]
9: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(processNextEvent__12QApplicationb+0xe9) [0x40a18999]
10: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(enter_loop__12QApplication+0x81) [0x40a70c71]
11: /mnt/perso/kde2dev/lib/libkio.so.4(enter_loop__Q23KIO9NetAccess+0x69) [0x402d3eb9]
12: /mnt/perso/kde2dev/lib/libkio.so.4(statInternal__Q23KIO9NetAccessRC4KURL+0x67) [0x402d3c57]
13: /mnt/perso/kde2dev/lib/libkio.so.4(exists__Q23KIO9NetAccessRC4KURL+0x34) [0x402d38e4]
14: /mnt/perso/kde2dev/lib/libkofficecore.so.2(saveDocument__12KoMainWindowb+0xce6) [0x4005b556]
15: /mnt/perso/kde2dev/lib/libkofficecore.so.2(slotFileSaveAs__12KoMainWindow+0x24) [0x4005c7b4]
16: /mnt/perso/kde2dev/lib/libkofficecore.so.2(qt_invoke__12KoMainWindowiP8QUObject+0x11d) [0x4005f67d]
17: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(activate_signal__7QObjectP15QConnectionListP8QUObject+0xdb) [0x40ab487b]
18: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(activate_signal__7QObjecti+0xb8) [0x40ab4758]
19: /mnt/perso/kde2dev/lib/libkdeui.so.4(activated__7KAction+0x39) [0x405284b9]
20: /mnt/perso/kde2dev/lib/libkdeui.so.4(slotActivated__7KAction+0x1f) [0x4051e21f]
21: /mnt/perso/kde2dev/lib/libkdeui.so.4(qt_invoke__7KActioniP8QUObject+0x325) [0x40528845]
22: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(activate_signal__7QObjectP15QConnectionListP8QUObject+0xdb) [0x40ab487b]
23: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(signal__7QSignalRC8QVariant+0xe2) [0x40d2cd62]
24: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(activate__7QSignal+0x3e) [0x40acd19e]
25: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(keyPressEvent__10QPopupMenuP9QKeyEvent+0xc51) [0x40b86001]
26: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(event__7QWidgetP6QEvent+0x478) [0x40ae2938]
27: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(internalNotify__12QApplicationP7QObjectP6QEvent+0x26a) [0x40a6f0ca]
28: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(notify__12QApplicationP7QObjectP6QEvent+0x285) [0x40a6e705]
29: /mnt/perso/kde2dev/lib/libkdecore.so.4(notify__12KApplicationP7QObjectP6QEvent+0x2df) [0x40728f7f]
30: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(sendSpontaneousEvent__12QApplicationP7QObjectP6QEvent+0x4e) [0x40d7900e]
31: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(translateKeyEvent__9QETWidgetPC7_XEventb+0xbf1) [0x40a1ec71]
32: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(x11ProcessEvent__12QApplicationP7_XEvent+0xb7e) [0x40a19d8e]
33: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(processNextEvent__12QApplicationb+0xe9) [0x40a18999]
34: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(enter_loop__12QApplication+0x81) [0x40a70c71]
35: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(exec__12QApplication+0x28) [0x40a18898]
36: /mnt/perso/kde2dev/lib/kword.so(main+0xf4) [0x40016eb4]
37: /lib/libc.so.6(__libc_start_main+0x90) [0x410e4280]
38: kword(strcpy+0x31) [0x8048ed1]
]

Err, need a real backtrace with line numbers, maybe?

-- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KDE, Making The Future of Computing Available Today






More information about the kde-core-devel mailing list