The NetAccess hack hits again

David Faure david at mandrakesoft.com
Mon Apr 29 17:02:31 BST 2002


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[
0: /mnt/perso/kde2dev/lib/libkdecore.so.4(kdBacktrace__Fv+0x3d) [0x407350dd]
1: /mnt/perso/kde2dev/lib/libkdecore.so.4 [0x40729a22]
2: /usr/X11R6/lib/libX11.so.6(_XError+0x143) [0x40f6e403]
3: /usr/X11R6/lib/libX11.so.6(_XEventsQueued+0x4b2) [0x40f6be12]
4: /usr/X11R6/lib/libX11.so.6(XCheckIfEvent+0x113) [0x40f4c2e7]
5: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(translatePaintEvent__9QETWidgetPC7_XEvent+0xff) [0x40a2004f]
6: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(x11ProcessEvent__12QApplicationP7_XEvent+0xb94) [0x40a1ada4]
7: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(processNextEvent__12QApplicationb+0xe9) [0x40a19999]
8: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(enter_loop__12QApplication+0x81) [0x40a71c71]
9: /mnt/perso/kde2dev/lib/libkio.so.4(enter_loop__Q23KIO9NetAccess+0x55) [0x402d3ee5]
10: /mnt/perso/kde2dev/lib/libkio.so.4(statInternal__Q23KIO9NetAccessRC4KURL+0x67) [0x402d3c97]
11: /mnt/perso/kde2dev/lib/libkio.so.4(exists__Q23KIO9NetAccessRC4KURL+0x34) [0x402d3924]
12: /mnt/perso/kde2dev/lib/libkofficecore.so.2(saveDocument__12KoMainWindowb+0xce6) [0x4005b556]
13: /mnt/perso/kde2dev/lib/libkofficecore.so.2(slotFileSaveAs__12KoMainWindow+0x24) [0x4005c7b4]
14: /mnt/perso/kde2dev/lib/libkofficecore.so.2(qt_invoke__12KoMainWindowiP8QUObject+0x11d) [0x4005f67d]
15: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(activate_signal__7QObjectP15QConnectionListP8QUObject+0xdb) [0x40ab587b]
16: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(activate_signal__7QObjecti+0xb8) [0x40ab5758]
17: /mnt/perso/kde2dev/lib/libkdeui.so.4(activated__7KAction+0x39) [0x405294b9]
18: /mnt/perso/kde2dev/lib/libkdeui.so.4(slotActivated__7KAction+0x1f) [0x4051f21f]
19: /mnt/perso/kde2dev/lib/libkdeui.so.4(qt_invoke__7KActioniP8QUObject+0x325) [0x40529845]
20: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(activate_signal__7QObjectP15QConnectionListP8QUObject+0xdb) [0x40ab587b]
21: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(signal__7QSignalRC8QVariant+0xe2) [0x40d2ddf2]
22: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(activate__7QSignal+0x3e) [0x40ace19e]
23: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(keyPressEvent__10QPopupMenuP9QKeyEvent+0xc51) [0x40b86ff1]
24: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(event__7QWidgetP6QEvent+0x478) [0x40ae3938]
25: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(internalNotify__12QApplicationP7QObjectP6QEvent+0x26a) [0x40a700ca]
26: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(notify__12QApplicationP7QObjectP6QEvent+0x285) [0x40a6f705]
27: /mnt/perso/kde2dev/lib/libkdecore.so.4(notify__12KApplicationP7QObjectP6QEvent+0x2df) [0x40729f7f]
28: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(sendSpontaneousEvent__12QApplicationP7QObjectP6QEvent+0x4e) [0x40d7a09e]
29: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(translateKeyEvent__9QETWidgetPC7_XEventb+0xbf1) [0x40a1fc71]
30: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(x11ProcessEvent__12QApplicationP7_XEvent+0xb7e) [0x40a1ad8e]
31: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(processNextEvent__12QApplicationb+0xe9) [0x40a19999]
32: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(enter_loop__12QApplication+0x81) [0x40a71c71]
33: /mnt/devel/kde/kdecvs/qt-copy/lib/libqt-mt.so.3(exec__12QApplication+0x28) [0x40a19898]
34: /mnt/perso/kde2dev/lib/kword.so(main+0xf4) [0x40016eb4]
35: /lib/libc.so.6(__libc_start_main+0x90) [0x410e5280]
36: kword(strcpy+0x31) [0x8048ed1]
]

I'm not 100% sure the X error is the real problem...
I also tried setFocusPolicy(NoFocus) on the modal-widget-hack, no change.

-- 
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