Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] KDE crashes after a few seconds of starting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
TimeManx
n00b
n00b


Joined: 11 Jul 2011
Posts: 55

PostPosted: Sat Dec 31, 2011 10:15 am    Post subject: [SOLVED] KDE crashes after a few seconds of starting Reply with quote

So I'm using KDE 4.7.95 and Qt 4.8. All was running well until I don't know what happened. I was getting a crash from ark so I was just recompiling the necessary packages (including qt-core) with the -ggdb cflag so that a meaningful backtrace could be produced 8) . But after that some of the KDE applications like ksysguard wouldn't start so just restarted and now after booting KDE just crashes after a few seconds. I just get to see the clock cursor for a couple of seconds. Doing startx or kdm gives me kdeinit4 could not be started, check your KDE installation.

No errors in Xorg.0.log but kdm log says
Code:
KCrash: Application 'kdmgreet' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi directly
KCrash: Application '<unknown>' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
Warning: connect() failed: : Connection refused
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi directly
drkonqi: cannot connect to X server :0
Server terminated successfully (0). Closing log file.

And this is something I found in kdm log which could be from when the problem first arose.
Code:
[mi] EQ overflowing. The server is probably stuck in an infinite loop.

Backtrace:
0: /usr/bin/X (xorg_backtrace+0x26) [0x57e146]
1: /usr/bin/X (mieqEnqueue+0x219) [0x55c419]
2: /usr/bin/X (0x400000+0x48c54) [0x448c54]
3: /usr/bin/X (xf86PostMotionEventP+0x37) [0x48af37]
4: /usr/lib64/xorg/modules/input/evdev_drv.so (0x7f3b89a6d000+0x4b9e) [0x7f3b89a71b9e]
5: /usr/bin/X (0x400000+0x75237) [0x475237]
6: /usr/bin/X (0x400000+0x9d7ce) [0x49d7ce]
7: /lib64/libpthread.so.0 (0x3652800000+0xfcc0) [0x365280fcc0]
8: /lib64/libc.so.6 (ioctl+0x7) [0x36520cff37]
9: /usr/lib64/libdrm.so.2 (drmIoctl+0x28) [0x365a8035c8]
10: /usr/lib64/libdrm_intel.so.1 (drm_intel_gem_bo_map_gtt+0x93) [0x7f3b8ae58423]
11: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f3b8b092000+0x1152f) [0x7f3b8b0a352f]
12: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f3b8b092000+0x13384) [0x7f3b8b0a5384]
13: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f3b8b092000+0x35055) [0x7f3b8b0c7055]
14: /usr/bin/X (miCopyRegion+0x18a) [0x55a3ca]
15: /usr/bin/X (miDoCopy+0x2e3) [0x55a813]
16: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f3b8b092000+0x3608e) [0x7f3b8b0c808e]
17: /usr/bin/X (0x400000+0x10a1d0) [0x50a1d0]
18: /usr/bin/X (0x400000+0x307b4) [0x4307b4]
19: /usr/bin/X (0x400000+0x346e1) [0x4346e1]
20: /usr/bin/X (0x400000+0x22db5) [0x422db5]
21: /lib64/libc.so.6 (__libc_start_main+0xed) [0x365202118d]
22: /usr/bin/X (0x400000+0x2312d) [0x42312d]
Server terminated successfully (0). Closing log file.
klauncher(1164) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!

So I tried recompiling kdelibs and I get the error
Code:
/usr/lib64/qt4/libQtGui.so: undefined reference to `QDataStream::QDataStream(QByteArray*, int)'
collect2: ld returned 1 exit status
make[2]: *** [solid/tests/halbasictest] Error 1
make[1]: *** [solid/tests/CMakeFiles/halbasictest.dir/all] Error 2

And then I tried recompiling qt-gui which also gives the error
Code:
.obj/release-shared/qapplication_x11.o: In function `qt_x11_apply_settings_in_all_apps()':
/var/tmp/portage/x11-libs/qt-gui-4.8.0/work/qt-everywhere-opensource-src-4.8.0/src/gui/kernel/qapplication_x11.cpp:850: undefined reference to `QDataStream::QDataStream(QByteArray*, int)'
.obj/release-shared/qwidget.o: In function `QWidget::saveGeometry() const':
/var/tmp/portage/x11-libs/qt-gui-4.8.0/work/qt-everywhere-opensource-src-4.8.0/src/gui/kernel/qwidget.cpp:7001: undefined reference to `QDataStream::QDataStream(QByteArray*, int)'
.obj/release-shared/qregion.o: In function `QRegion::exec(QByteArray const&, int, QDataStream::ByteOrder)':
/var/tmp/portage/x11-libs/qt-gui-4.8.0/work/qt-everywhere-opensource-src-4.8.0/src/gui/painting/qregion.cpp:312: undefined reference to `QDataStream::QDataStream(QByteArray*, int)'
.obj/release-shared/qmainwindow.o: In function `QMainWindow::saveState(int) const':
/var/tmp/portage/x11-libs/qt-gui-4.8.0/work/qt-everywhere-opensource-src-4.8.0/src/gui/widgets/qmainwindow.cpp:1234: undefined reference to `QDataStream::QDataStream(QByteArray*, int)'
.obj/release-shared/qmainwindow.o: In function `QMainWindow::restoreState(QByteArray const&, int)':
/var/tmp/portage/x11-libs/qt-gui-4.8.0/work/qt-everywhere-opensource-src-4.8.0/src/gui/widgets/qmainwindow.cpp:1261: undefined reference to `QDataStream::QDataStream(QByteArray*, int)'
.obj/release-shared/qsplitter.o:/var/tmp/portage/x11-libs/qt-gui-4.8.0/work/qt-everywhere-opensource-src-4.8.0/src/gui/widgets/qsplitter.cpp:1743: more undefined references to `QDataStream::QDataStream(QByteArray*, int)' follow
collect2: ld returned 1 exit status
make: *** [../../lib/libQtGui.so.4.8.0] Error 1

I have tried recompiling qt-core and then qt-gui but nothing works. :cry:

These are somethings I found in qt-core and qt-gui's emerge log but I don't know if they are related :?:
Code:
ln: failed to create symbolic link `/var/tmp/portage/x11-libs/qt-core-4.8.0-r1/work/qt-everywhere-opensource-src-4.8.0/include/QtCore/qconfig.h': File exists
ln: failed to create symbolic link `/var/tmp/portage/x11-libs/qt-core-4.8.0-r1/work/qt-everywhere-opensource-src-4.8.0/include/Qt/qconfig.h': File exists
Code:
ln: failed to create symbolic link `/var/tmp/portage/x11-libs/qt-gui-4.8.0/work/qt-everywhere-opensource-src-4.8.0/include/QtCore/qconfig.h': File exists
ln: failed to create symbolic link `/var/tmp/portage/x11-libs/qt-gui-4.8.0/work/qt-everywhere-opensource-src-4.8.0/include/Qt/qconfig.h': File exists


Last edited by TimeManx on Sat Dec 31, 2011 11:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4547

PostPosted: Sat Dec 31, 2011 10:28 am    Post subject: Reply with quote

This missing constructor is ifdefd out
Code:
#ifdef QT3_SUPPORT
/*!
    \fn QDataStream::QDataStream(QByteArray *array, int mode)
    \compat

    Constructs a data stream that operates on the given \a array. The
    \a mode specifies how the byte array is to be used, and is
    usually either QIODevice::ReadOnly or QIODevice::WriteOnly.
*/
QDataStream::QDataStream(QByteArray *a, int mode)
{

So enabling qt3support should bring back the needed constructor. Probably thats needed for debugging...
Back to top
View user's profile Send private message
TimeManx
n00b
n00b


Joined: 11 Jul 2011
Posts: 55

PostPosted: Sat Dec 31, 2011 11:11 am    Post subject: Reply with quote

franzf wrote:
So enabling qt3support should bring back the needed constructor. Probably thats needed for debugging...


I do have the qt3support use flag enabled. But in the qt-core log, I see a -no-gui parameter being passed (not by the ebuild) during configure, which is disabling qt3support.
Code:
./configure -prefix /usr -bindir /usr/bin -libdir /usr/lib64/qt4 -docdir /usr/share/doc/qt-4.8.0 -headerdir /usr/include/qt4 -plugindir /usr/lib64/qt4/plugins -importdir /usr/lib64/qt4/imports -datadir /usr/share/qt4 -translationdir /usr/share/qt4/translations -sysconfdir /etc/qt4 -examplesdir /usr/share/qt4/examples -demosdir /usr/share/qt4/demos -opensource -confirm-license -shared -fast -largefile -stl -verbose -platform linux-g++ -nomake examples -nomake demos -L/usr/lib64 -release -no-separate-debug-info -exceptions -no-rpath -no-pch -reduce-relocations -arch x86_64 -glib -iconv -javascript-jit -optimized-qmake -openssl -qt3support -no-accessibility -no-gui -no-script -no-scripttools -no-xmlpatterns -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg -no-cups -no-dbus -no-gtkstyle -no-nas-sound -no-opengl -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lgthread-2.0 -lrt -lglib-2.0 -I/usr/include/freetype2
Warning: -no-gui will disable the qt3support library.

Why is that being passed?
Back to top
View user's profile Send private message
TimeManx
n00b
n00b


Joined: 11 Jul 2011
Posts: 55

PostPosted: Sat Dec 31, 2011 11:20 pm    Post subject: Reply with quote

So turns out I synced qting-edge just at the wrong time & didn't bother to re-sync all this while.
I checked the overlay and found that the ebuild for qt-core had been edited a few times in the last couple of days. So re-syncing the overlay and re-emerging qt-core fixed everything.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum