Version: (using KDE KDE 3.1.1) Installed from: Gentoo Packages Hi, this crases kspread 1.2.1 for me: open a new kspread instance, and then make the following dcop calls ( of course change the numbers according to your system: sh-2.05b$ dcop kwin kicker konsole-1845 konsole-2438 kded kpf kmix knotify kalarmd konqueror-2564 kcookiejar korgac klauncher kmail kdesktop klipper ksmserver kspread-2586 konsole-2484 klaptopdaemon sh-2.05b$ dcop kspread-2586 qt 0x81b6280 Application Document-0 Document/Map/unnamed KoApplicationIface (default) MainApplication-Interface View-0 kspread-mainwindow#1 ksycoca sh-2.05b$ dcop kspread-2586 0x81b6280 QCStringList interfaces() QCStringList functions() bool isDefault() QString text() void setText(QString text) void setValue(int value) ... QString goUpDiagonalStyle() void setIndent(double indent) double getIndent() void setDontPrintText(bool _b) bool getDontprintText() sh-2.05b$ dcop kspread-2586 0x81b6280 text call failed sh-2.05b$ (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...[New Thread 16384 (LWP 2586)] (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...0x41124659 in wait4 () from /lib/libc.so.6 #0 0x41124659 in wait4 () from /lib/libc.so.6 #1 0x411a1214 in __DTOR_END__ () from /lib/libc.so.6 #2 0x40f18aa3 in waitpid () from /lib/libpthread.so.0 #3 0x40641e9d in KCrash::defaultCrashHandler(int) () from /usr/kde/3.1/lib/libkdecore.so.4 #4 <signal handler called> #5 0x41a6d01f in KSpreadCluster::lookup(int, int) const () from /usr/lib/kde3/libkspreadpart.so #6 0x419c6194 in KSpreadSheet::cellAt(int, int, bool) () from /usr/lib/kde3/libkspreadpart.so #7 0x41a64494 in KSpreadCellIface::text() const () from /usr/lib/kde3/libkspreadpart.so #8 0x41a9b1c2 in KSpreadCellIface::process(QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&) () from /usr/lib/kde3/libkspreadpart.so #9 0x41aa0832 in virtual thunk to KSpreadCellIface::process(QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&) () from /usr/lib/kde3/libkspreadpart.so #10 0x406f0e1d in DCOPClient::receive(QCString const&, QCString const&, QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&) () from /usr/kde/3.1/lib/libDCOP.so.4 #11 0x406ea5bd in DCOPProcessInternal(DCOPClientPrivate*, int, unsigned long, QMemArray<char> const&, bool) () from /usr/kde/3.1/lib/libDCOP.so.4 #12 0x406e9f9b in DCOPProcessMessage(_IceConn*, void*, int, unsigned long, int, IceReplyWaitInfo*, int*) () from /usr/kde/3.1/lib/libDCOP.so.4 #13 0x406fa277 in KDE_IceProcessMessages () from /usr/kde/3.1/lib/libDCOP.so.4 #14 0x406f1f6b in DCOPClient::processSocketData(int) () from /usr/kde/3.1/lib/libDCOP.so.4 #15 0x406f3365 in DCOPClient::qt_invoke(int, QUObject*) () from /usr/kde/3.1/lib/libDCOP.so.4 #16 0x409c71a9 in QObject::activate_signal(QConnectionList*, QUObject*) () from /usr/qt/3/lib/libqt-mt.so.3 #17 0x409c7285 in QObject::activate_signal(int, int) () from /usr/qt/3/lib/libqt-mt.so.3 #18 0x40ca8042 in QSocketNotifier::activated(int) () from /usr/qt/3/lib/libqt-mt.so.3 #19 0x409e36b0 in QSocketNotifier::event(QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3 #20 0x40969466 in QApplication::internalNotify(QObject*, QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3 #21 0x40968a26 in QApplication::notify(QObject*, QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3 #22 0x405c64e9 in KApplication::notify(QObject*, QEvent*) () from /usr/kde/3.1/lib/libkdecore.so.4 #23 0x40944d68 in QEventLoop::activateSocketNotifiers() () from /usr/qt/3/lib/libqt-mt.so.3 #24 0x40922677 in QEventLoop::processEvents(unsigned) () from /usr/qt/3/lib/libqt-mt.so.3 #25 0x4097d0b6 in QEventLoop::enterLoop() () from /usr/qt/3/lib/libqt-mt.so.3 #26 0x4097cf58 in QEventLoop::exec() () from /usr/qt/3/lib/libqt-mt.so.3 #27 0x409696b1 in QApplication::exec() () from /usr/qt/3/lib/libqt-mt.so.3 #28 0x4070a1de in main () from /usr/lib/kspread.so #29 0x0804cb71 in strcpy () #30 0x0804d849 in strcpy () #31 0x0804dd1c in strcpy () #32 0x0804ea2a in strcpy () #33 0x4108bdc4 in __libc_start_main () from /lib/libc.so.6 hope this helps, Holger
doing setText lala also crashes...
Of course this helps. As I haven't used DCOP yet, I cannot say much atm how to solve. But what I can see is that it crashes in the function lookup, which is called from cellAT( int, int ). I assume this is because the cell itself hasn't been defined yet. So can you check wether it works if you first define the cell with setCell( *table, &point )? Of course we need to fix the bug so that it at least doesn't crash.
Subject: Re: dcop text call on empty cell crashes kspread hi, i only wanted to give someone, who wanted to port some windows app to kspread, an introduction to dcop scripting of kspread, and noticed, that it doesn
*** This bug has been marked as a duplicate of 54541 ***