kf5 doesn't work

Hi there and thx if you read and possibly answer my question.

I wasn’t very happy to know that kde5 was packaged on opensuse 13.1 so that it supersedes the current kde4 installation.

So I compiled it with kdesrc-build and installed in /opt/kde5. But when I try to run **/opt/kde5/bin/startkde **from a mere shell or via a Xnest session, kded5 or kcmshell5 still use the kde4 path for their shared objects(/usr) instead of /opt/kde5.

Of course I set correct paths, export PATH=/opt/kde5/bin:$PATH , added a path file in /etc/ld.so.conf.d, changed KDEHOME, KDEDIR and KDEDIRS, used LD_LIBRARY_PATH. Nada de nada :frowning:

Any idea ?

AFAIK it’s the same on every other distribution as well that provides KF5 packages.
The libraries should be co-installable, but the applications (including plasma-desktop) are not.

So I compiled it with kdesrc-build and installed in /opt/kde5. But when I try to run **/opt/kde5/bin/startkde **from a mere shell or via a Xnest session, kded5 or kcmshell5 still use the kde4 path for their shared objects(/usr) instead of /opt/kde5.

Of course I set correct paths, export PATH=/opt/kde5/bin:$PATH , added a path file in /etc/ld.so.conf.d, changed KDEHOME, KDEDIR and KDEDIRS, used LD_LIBRARY_PATH. Nada de nada :frowning:

Any idea ?

Have a look at openSUSE’s kf5 script that was used when the KF5/Plasma next packages were still co-installable with KDE4 because they used /opt/kf5 as prefix:
https://build.opensuse.org/package/view_file/KDE:Unstable:Frameworks/kf5-session/kf5-64.sh?expand=1

export KF5=/opt/kf5
export QTDIR=/usr/lib64/qt5
export XDG_DATA_DIRS=$KF5/share:$XDG_DATA_DIRS
export XDG_CONFIG_DIRS=$KF5/etc/xdg:$KF5/share/kde5/config:$XDG_CONFIG_DIRS
export PATH=$KF5/bin:$QTDIR/bin:$KF5:$PATH
export LIBEXEC_PATH=/usr/lib64/libexec/kf5:/usr/lib64/libexec:$KF5/lib64/libexec/kf5:$KF5/lib64/libexec
export LD_LIBRARY_PATH=$KF5/lib64
export QT_PLUGIN_PATH=$KF5/lib64/qt5/plugins:$KF5/lib64/qt5/plugins/kf5:$QTDIR/plugins
export QML2_IMPORT_PATH=$KF5/lib64/qt5/qml:$QTDIR/qml
#export XDG_DATA_HOME=$HOME/.kf5
#export XDG_CONFIG_HOME=$HOME/.kf5
#export XDG_CACHE_HOME=$HOME/.kf5
export KDE_COLOR_DEBUG=1
export QTEST_COLORED=1

Do the same (with the correct paths of course) and it should work.

Thank you for the help, but it doesn’t work. plasmashell crashes. I’ve both tried the script form Xnest and from a specific kdm session.

Here is the log file. It has been shorten so that I can send it out
:Notice first that the line *libGL error: dlopen /usr/lib64/dri/updates/r600_dri.so failed (/usr/lib64/dri/updates/r600_dri.so: Ne peut ouvrir le fichier d’objet partagé: Aucun fichier ou dossier de ce type) *has nothing to do with my problem. It works with kde4
Also notice that startkde complains about e.g.

Error:  file:///opt/kde5/share/plasma/shells/org.kde.plasma.desktop/contents/loader.qml:23:1: module"org.kde.plasma.platformcomponents" is not installed import org.kde.plasma.platformcomponents 2.0 as Platform

However, this file is really present and readable.

.

startkde: Starting up...
kdeinit5: preparing to launch 'libkdeinit5_klauncher'
kdeinit5: Launched KLauncher, pid = 13184, result = 0
Qt: Session management error: networkIdsList argument is NULL
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QXcbConnection: XCB error: 3 (BadWindow), sequence: 170, resource id: 33554439, major code: 20 (GetProperty), minor code: 0
kdeinit5: opened connection to :0
kdeinit5: preparing to launch 'libkdeinit5_kded5'
kdeinit5: Launched KDED, pid = 13186 result = 0
kdeinit5: preparing to launch 'libkdeinit5_kcminit_startup'
"Theme tree: (Oxygen)"
kdeinit5: Launched 'kcminit_startup', pid = 13187 result = 0
Qt: Session management error: networkIdsList argument is NULL
Can't use FAM (fam daemon not running?)
Available methods:  ("Stat", "INotify", "QFileSystemWatcher") preferred= INotify
kdeinit5: Got EXT_EXEC '/opt/kde5/bin/kbuildsycoca5' from launcher.
kdeinit5: preparing to launch '/opt/kde5/bin/kbuildsycoca5'
KXMessages used on non-X11 platform! This is an application bug.
KXMessages used on non-X11 platform! This is an application bug.
kbuildsycoca5 running...
"Theme tree: (Oxygen)"
Trying to open ksycoca from "/home/cg/.cache/ksycoca5"
checking file timestamps
Trying to open ksycoca from "/home/cg/.cache/ksycoca5"
kdeinit5: Got SETENV 'KDE_MULTIHEAD=false' from launcher.
kdeinit5: PID 13187 terminated.
QXcbConnection: XCB error: 3 (BadWindow), sequence: 170, resource id: 33554439, major code: 20 (GetProperty), minor code: 0
kdeinit5: Got KWRAPPER 'ksmserver' from wrapper.
kdeinit5: preparing to launch 'libkdeinit5_ksmserver'
KXMessages used on non-X11 platform! This is an application bug.
timestamps check ok
Emitting notifyDatabaseChanged ()
KXMessages used on non-X11 platform! This is an application bug.
kdeinit5: PID 13191 terminated.
Trying to open ksycoca from "/home/cg/.cache/ksycoca5"

Successfully loaded module "networkmanagement"
Successfully loaded module "powerdevil"
Fetched layout groups from X server:     layouts: ("ch")     variants: ("fr")
Parsing xkb rules from "/usr/share/X11/xkb/rules/evdev.xml"
xkbConfigRegistry version "1.1"
Qt: Session management error: networkIdsList argument is NULL
"Trying to convert empty KLocalizedString to QString."
"Trying to convert empty KLocalizedString to QString."
"Trying to convert empty KLocalizedString to QString."
Parsing xkb rules from "/usr/share/X11/xkb/rules/evdev.extras.xml"
Merged from extra rules: 36 layouts, 0 models, 0 option groups
Configuring Lock Action
Fetched layout groups from X server:     layouts: ("ch")     variants: ("fr")
Registered for new device events from XInput, class 81
qCoreApp QApplication(0x7fffd0a36ed0)
Successfully loaded module "keyboard"
XSync seems available and ready
XSync Inited
Supported, init completed
Successfully loaded module "statusnotifierwatcher"
Successfully loaded module "bluedevil"
Successfully loaded module "kded_ksysguard"
Added Dir "/opt/kde5/share/kconf_update" for "" "KDirWatch-2"]
Trying to open ksycoca from "/home/cg/.cache/ksycoca5"
kdeinit5: Got EXEC_NEW '/opt/kde5/lib64/libexec/kf5/kconf_update' from launcher.
kdeinit5: preparing to launch '/opt/kde5/lib64/libexec/kf5/kconf_update'
kdeinit5: PID 13198 terminated.
QXcbConnection: XCB error: 3 (BadWindow), sequence: 170, resource id: 33554439, major code: 20 (GetProperty), minor code: 0
"Theme tree: (Oxygen)"
QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.7'
No outputs have backlight property
detected kglobalaccel restarting, re-registering all shortcut keys
QObject::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath) in /home/cg/kdesrc/frameworks/solid/src/solid/devices/backends/upower/upowermanager.cpp:72
QObject::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath) in /home/cg/kdesrc/frameworks/solid/src/solid/devices/backends/upower/upowermanager.cpp:74
XSync seems available and ready
XSync Inited
Supported, init completed
kded5: The profile  "AC" tried to activate "HandleButtonEvents" a non existent action. This is usually due to an installation problem or to a configuration problem. or simlpy the action is not supported
kded5: The profile  "AC" tried to activate "DimDisplay" a non existent action. This is usually due to an installation problem or to a configuration problem. or simlpy the action is not supported
Created alarm 29360129
"/run/user/1000/KSMserver"
kdeinit5: Got SETENV 'SESSION_MANAGER=local/alpha.uhara.net:@/tmp/.ICE-unix/13193,unix/alpha.uhara.net:/tmp/.ICE-unix/13193' from launcher.
kdeinit5: Got EXEC_NEW '/opt/kde5/bin/baloo_file' from launcher.
kdeinit5: preparing to launch '/opt/kde5/bin/baloo_file'
QXcbConnection: XCB error: 3 (BadWindow), sequence: 170, resource id: 33554439, major code: 20 (GetProperty), minor code: 0
kdeinit5: Got EXEC_NEW '/opt/kde5/bin/krunner' from launcher.
kdeinit5: preparing to launch '/opt/kde5/bin/krunner'
"Theme tree: (Oxygen)"
QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.7'
detected kglobalaccel restarting, re-registering all shortcut keys
Session path: "/org/freedesktop/login1/session/_39"
QXcbConnection: XCB error: 3 (BadWindow), sequence: 170, resource id: 33554439, major code: 20 (GetProperty), minor code: 0
kdeinit5: Got EXEC_NEW '/opt/kde5/bin/plasmashell' from launcher.
kdeinit5: preparing to launch '/opt/kde5/bin/plasmashell'
libGL error: dlopen /usr/lib64/dri/updates/r600_dri.so failed (/usr/lib64/dri/updates/r600_dri.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)
"Theme tree: (Oxygen)"
Extensions: shape: 0x "11"  composite: 0x "4"  render: 0x "b"  fixes: 0x "50"  randr: 0x "14"  sync: 0x "31"  damage: 0x  "11" 

org.kde.kactivities.lib.core: Should we start the daemon?
org.kde.kactivities.lib.core: Starting the activity manager daemon
Trying to load decoration plugin "Oxygen"
Can't use FAM (fam daemon not running?)
Available methods:  ("Stat", "INotify", "QFileSystemWatcher") preferred= INotify
Added File "/home/cg/.config/plasmarc" NotExisting for "" "KDirWatch-1"]
Added Dir "/home/cg/.config" for "/home/cg/.config/plasmarc" ""]
QXcbConnection: XCB error: 3 (BadWindow), sequence: 170, resource id: 33554439, major code: 20 (GetProperty), minor code: 0
"Theme tree: (Oxygen)"
"Theme tree: (Oxygen)"
Can't use FAM (fam daemon not running?)
Available methods:  ("Stat", "INotify", "QFileSystemWatcher") preferred= INotify
Added File "/home/cg/.config/baloofilerc" for "" "KDirWatch-1"]
"/home/cg"
"/home/cg"

Successfully opened connection to inotify: 18
XSync seems available and ready
XSync Inited
Supported, init completed
QMetaProperty::read: Unable to handle unregistered datatype 'QQmlListProperty<QObject>' for property 'QQuickWindow::data'
Added File "/opt/kde5/share/plasma/desktoptheme/default/metadata.desktop" for "" "KDirWatch-1"]
Normal
"Theme tree: (Oxygen)"
Doing initialization
kdeinit5: Got EXEC_NEW '/opt/kde5/bin/kaccess' from launcher.
kdeinit5: preparing to launch '/opt/kde5/bin/kaccess'
org.kde.kactivities.activities: Starting the KDE Activity Manager daemon QDateTime("2014-07-11 15:23:26.250 CEST Qt::LocalTime")
"file:///home/cg/" 
 "Error loading QML file.
File not found
"
Created alarm 41943041
QXcbConnection: XCB error: 3 (BadWindow), sequence: 170, resource id: 33554439, major code: 20 (GetProperty), minor code: 0
Added File "General" NotExisting for "" "KDirWatch-1"]
Added Dir "General/.." NotExisting for "General" ""]
Added Dir ".." for "General/.." ""]
QXcbConnection: XCB error: 3 (BadWindow), sequence: 170, resource id: 33554439, major code: 20 (GetProperty), minor code: 0
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
unnamed app: Xlib XKB extension major= 1  minor= 0
screens:  1 desktops:  1
Done.
libGL error: dlopen /usr/lib64/dri/updates/r600_dri.so failed (/usr/lib64/dri/updates/r600_dri.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)
User timestamp, ASN: 4294967295
User timestamp, final: 'ID: 4194338 ;WMCLASS: "xterm" : "xterm" ;Caption: "cg@alpha.uhara.net:~" ' : 4294967295
Activation: No client active, allowing
kdeinit5: Got SETENV 'GTK_RC_FILES=/etc/gtk/gtkrc:/home/cg/.gtkrc:/home/cg/.config/gtkrc' from launcher.
kdeinit5: Got SETENV 'GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/cg/.gtkrc-2.0:/home/cg/.config/gtkrc-2.0' from launcher.
screens:  1 desktops:  1
Done.
screens:  1 desktops:  1
Done.
kdeinit5: Got EXEC_NEW '/opt/kde5/bin/kwrited' from launcher.
kdeinit5: preparing to launch '/opt/kde5/bin/kwrited'
kdeinit5: Got EXEC_NEW '/usr/bin/start-pulseaudio-kde' from launcher.
kdeinit5: preparing to launch '/usr/bin/start-pulseaudio-kde'
Added File "/home/cg/.config/kdeglobals" for "" "KDirWatch-3"]
Successfully loaded module "kded_platformstatus"
Application::crashHandler() called with signal 6; recent crashes: 1
kdeinit5: Got EXEC_NEW '/usr/bin/start-pulseaudio-x11' from launcher.
kdeinit5: preparing to launch '/usr/bin/start-pulseaudio-x11'
kdeinit5: Got EXEC_NEW '/usr/bin/synaptikscfg' from launcher.
kdeinit5: preparing to launch '/usr/bin/synaptikscfg'
kdeinit5: Got EXEC_NEW '/opt/kde5/bin/klipper' from launcher.
kdeinit5: preparing to launch '/opt/kde5/bin/klipper'
N: [pulseaudio] main.c: User-configured server at {a101a70076324be7995d68b67cb57aa7}unix:/run/user/1000/pulse/native, which appears to be local. Probing deeper.
screens:  1 desktops:  1
Done.
Compositing is not possible
Trying to open ksycoca from "/home/cg/.cache/ksycoca5"
Échec : Échec lors de l'initialisation du module
kdeinit5: PID 13233 terminated.
QXcbConnection: XCB error: 3 (BadWindow), sequence: 170, resource id: 33554439, major code: 20 (GetProperty), minor code: 0
N: [pulseaudio] main.c: User-configured server at {a101a70076324be7995d68b67cb57aa7}unix:/run/user/1000/pulse/native, which appears to be local. Probing deeper.
"Theme tree: (Oxygen)"
org.kde.kactivities.application:    OK   ] loaded:   "kactivitymanagerd_plugin_activitytemplates.so"
org.kde.kactivities.application:    OK   ] loaded:   "kactivitymanagerd_plugin_slc.so"
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Aucun fichier ou dossier de ce type
org.kde.kactivities.application:    OK   ] loaded:   "kactivitymanagerd_plugin_sqlite.so"
Service started, version: 6.2.0
Successfully loaded module "solidautoeject"
Successfully loaded module "remotedirnotify"
Successfully loaded module "networkstatus"
Added File "/etc/timezone" NotExisting for "" "KDirWatch-4"]
Added Dir "/etc" for "/etc/timezone" ""]
Added File "/etc/localtime" for "" "KDirWatch-4"]
Added Dir "/usr/share/zoneinfo" for "" "KDirWatch-5"]
Successfully loaded module "ktimezoned"
Successfully loaded module "freespacenotifier"
Successfully loaded module "khotkeys"
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1244, resource id: 27262985, major code: 18 (ChangeProperty), minor code: 0
QObject::connect: No such signal QAction::globalShortcutChanged(QKeySequence)
QObject::connect:  (sender name:   '{d03619b6-9b3c-48cc-9d9c-a2aadb485550}')
QObject::connect: No such signal QAction::globalShortcutChanged(QKeySequence)
QObject::connect:  (sender name:   '{d03619b6-9b3c-48cc-9d9c-a2aadb485550}')
QObject::connect: No such signal QAction::globalShortcutChanged(QKeySequence)
QObject::connect:  (sender name:   '{557c867c-86c5-48f2-8217-78f91e17257c}')
usage: synaptikscfg -h] --version] {init,load,save} ...
synaptikscfg: error: no touchpad found
kdeinit5: PID 13234 terminated.
kdeinit5: PID 13236 terminated.
"Theme tree: (Oxygen)"
service is "org.kde.StatusNotifierItem-13238-1"
unnamed app: X server XKB extension major= 1  minor= 0
"Theme tree: (Oxygen)"
kdeinit5: PID 13220 terminated.
"Theme tree: (Oxygen)"
Registering a client interface to the KStatusNotifierWatcher
libGL error: dlopen /usr/lib64/dri/updates/r600_dri.so failed (/usr/lib64/dri/updates/r600_dri.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)
Failed to load history resource. Clipboard history cannot be read. :  History file does not exist
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasmashell path = /usr/local/opt/kde5/bin pid = 13206
KCrash: Arguments: /usr/local/opt/kde5/bin/plasmashell --shut-up 
KCrash: Attempting to start /opt/kde5/lib64/libexec/drkonqi from kdeinit
kdeinit5: Got EXEC_NEW '/opt/kde5/lib64/libexec/drkonqi' from wrapper.
kdeinit5: preparing to launch '/opt/kde5/lib64/libexec/drkonqi'
found lsb_release
Using /proc to determine executable path
Executable is: "/usr/local/opt/kde5/bin/plasmashell"
Executable exists: true
Enabling drkonqi crash catching
...

I know. That’s just debug output. /usr/lib64/dri/updates/ is searched before /usr/lib64/dri/, but that’s normally empty. It can be used to override the system’s drivers with updated versions.

Error: file:///opt/kde5/share/plasma/shells/org.kde.plasma.desktop/contents/loader.qml:23:1: module"org.kde.plasma.platformcomponents" is not installed import org.kde.plasma.platformcomponents 2.0 as Platform
However, this file is really present and readable.

Try to run "kbuildsycoca5 --noincremental (after you set those environment variables.

What I find strange in your output (haven’t looked at everything in detail yet):

Using /proc to determine executable path
Executable is: "/usr/local/opt/kde5/bin/plasmashell"
Executable exists: true
Enabling drkonqi crash catching
...

You installed KF5 to /opt/kde5, but plasmashell is in /usr/local/opt/kde5/bin/.
Apparently something went wrong there (wrong options?), or you have some stuff left in /usr/local from an earlier try or something like that.

I did as suggested, but plasmashell crashes again. ¿¿¿ Qué pasó ??? :\

p.s. /opt is a link to /usr/local/opt on my computer. No enough place on /

Here is the drkonqi’s output for one plasmashell crash:

Application: plasmashell (plasmashell), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f71ed7e2880 (LWP 18072))]

Thread 3 (Thread 0x7f71d8443700 (LWP 18075)):
#0  0x00007f71e432fb3d in poll () from /lib64/libc.so.6
#1  0x00007f71e951a32a in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f71e951be1f in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f71d9005af9 in ?? () from /usr/local/opt/Qt5.3.0/5.3/gcc_64/plugins/platforms/libqxcb.so
#4  0x00007f71e4ebf124 in ?? () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#5  0x00007f71e3dd30db in start_thread () from /lib64/libpthread.so.0
#6  0x00007f71e433890d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f71cf5ef700 (LWP 18087)):
#0  0x00007f71e024bff7 in ?? () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f71e024c289 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f71e020bcb9 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f71e020c523 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f71e020c70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f71e514b4a3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#6  0x00007f71e50eefeb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#7  0x00007f71e4eb946a in QThread::exec() () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#8  0x00007f71e4ebf124 in ?? () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#9  0x00007f71e3dd30db in start_thread () from /lib64/libpthread.so.0
#10 0x00007f71e433890d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f71ed7e2880 (LWP 18072)):
[KCrash Handler]
#6  0x00007f71e4286849 in raise () from /lib64/libc.so.6
#7  0x00007f71e4287cd8 in abort () from /lib64/libc.so.6
#8  0x00007f71e4eae8be in QMessageLogger::fatal(char const*, ...) const () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#9  0x000000000049831c in ShellManager::updateShell() ()
#10 0x0000000000497edf in ShellManager::loadHandlers() ()
#11 0x00000000004ba1d4 in ?? ()
#12 0x00007f71e51247c6 in QObject::event(QEvent*) () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#13 0x00007f71e5dbe764 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Widgets.so.5
#14 0x00007f71e5dc1de6 in QApplication::notify(QObject*, QEvent*) () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Widgets.so.5
#15 0x00007f71e50f0dd4 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#16 0x00007f71e50f3958 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#17 0x00007f71e514b013 in ?? () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#18 0x00007f71e020c316 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#19 0x00007f71e020c668 in ?? () from /usr/lib64/libglib-2.0.so.0
#20 0x00007f71e020c70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#21 0x00007f71e514b444 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#22 0x00007f71e50eefeb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#23 0x00007f71e50f3eb5 in QCoreApplication::exec() () from /opt/Qt5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
#24 0x0000000000467d97 in main ()

if it can help

Well, it seems to abort in libQt5Core.

Apparently you use Qt5 5.3.0, that’s quite old already.
Try to update to the latest 5.3.1. Packages are available in the KDE:QT5 repo.
http://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_13.1/

You could also try to run “plasmashell” inside your KDE4 session. Does it work then?
I still have plasma-desktop5 from June 8th installed (in /opt/kf5), and running plasmashell works fine here (after setting up the environment variables as posted earlier).
If I run it inside KDE4, it sits on top of KDE4’s plasma-desktop and hides it…
Maybe you get some interesting message in the terminal then?

Which file?

I have this in /usr/lib64/qt5/qml/org/kde/plasma/platformcomponents:

wolfi@linux-lf90:~> ls /usr/lib64/qt5/qml/org/kde/plasma/platformcomponents
libplatformcomponentsplugin.so  qmldir
wolfi@linux-lf90:~>

And that directory (/usr/lib64/qt5/qml/ in my case, it might deviate for you) must be part of the QML2_IMPORT_PATH, as posted earlier:

export QML2_IMPORT_PATH=$KF5/lib64/qt5/qml:$QTDIR/qml

What I want to say is: add that directory that contains org/kde/plasma/platformcomponents to the QML2_IMPORT_PATH variable.

Ok, upgrade to 5.3.1 done, but no progress. Same crash in ShellManager::updateShell(), apparently.
As to QML2_IMPORT_PATH, it’s ok. I did as you suggest in my script, but same thing.

Patience is the virtue of the strong :wink:

Ok, I tried to rename /usr/lib64/qt5/qml/org/kde/plasma/platformcomponents/ now here, and I get exactly the same crash as you.

So the crash definitely seems to be related to it not being able to import “org.kde.plasma.platformcomponents”.

I´d say you should check again whether you have a directory org/kde/plasma/platformcomponents/ in a path specified with $QML2_IMPORT_PATH, and that contains a libplatformcomponentsplugin.so.

I have no experience with kdesrc-build, but did you use that for installing the Frameworks as well?
You need the Plasma framework installed.
It should be possible to install the Frameworks via the openSUSE packages (repo KDE:Frameworks5 or KDE:Unstable:Frameworks), that specific component is in the package plasma-framework, and then only compile the actual programs like plasmashell.
But I guess you should also install libqt5 from the packages then.

PS: that directory (org/kde/plasma/platformcomponents/) must also contain a file called “qmldir” with the following content:

module org.kde.plasma.platformcomponents
plugin platformcomponentsplugin

So create that manually if it doesn’t exist, I’d say.

ok, added export QML2_IMPORT_PATH=$KF5/lib64/qt5/qml:$QTDIR/qml:$KF5/lib64/qml/org/kde/plasma/platformcomponents, contains the qmldir file with the wanted declarations, but no way. Same crash as before

The first one looks ok, the last one is incorrect and unnecessary, you should remove that again.

Is $KF5 set to the correct directory (/opt/kde5/ in your case), and does /opt/kde5/lib64/qt5/qml/org/kde/plasma/platformcomponents/ exist and contain those two files?
You do set those variables in the shell where you try to run plasmashell, right?

If the necessary files are there, org.kde.plasma.platformcomponents should be able to be imported.

ok, meanwhile I recompiled everything with qt 5.3.1. Unfortunately it doesn’t work either, but I got a different behavior:
plasmashell doesn’t crash anymore but is stuck somewhere in an endless loop.

see http://pastebin.com/8p2JhGQC

Hm, I don’t see anything obvious in there, except maybe kwin itself or the desktop effects.

Have you tried with a fresh account, maybe some configuration file is causing this?

I would suggest to try to run certain components in a different session (KDE4 f.e. but not necessarily) as already suggested (you have to set those environment variables of course), that might point to the problem.
F.e. “plasmashell” or “kwin_x11 --replace”.

Maybe kactivities5 is at fault, try to rename the executable for a test, it should be called kactivitymanagerd5.

As I also indicated already, it might prove worthwhile to install the frameworks from the openSUSE packages and only compile the things that are not co-installable yourself, like plasma-desktop5 and kde-baseapps5.
“cmake” should tell you which frameworks you need to install.

Other than that I can only suggest to ask in the KDE forums as well, if you compile everything yourself this is not really distribution-specific any more.
You might reach the developers there, if there’s a problem in the build process they might even want to fix it… :wink:
http://forum.kde.org/

Tried a fresh account, but same behavior.
Thank you anyway for your precious help. Will contact kde folks, but I’m pretty sure that I’m not the only guy with this issue.

Ah, btw, can be a related problem, but digikam for kde4 crashes whereas it never did that before. I suspect it’s due to an external library

Here is the corresponding fragment of the drkonqi’s output:

Thread 1 (Thread 0x7f6dd222f900 (LWP 14968)):
#0  0x00007f6dc98090af in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f6dcd35db66 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f6dcd350b52 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007f6dcd351ef5 in QThreadPool::~QThreadPool() () from /usr/lib64/libQtCore.so.4
#4  0x00007f6dcd351f29 in QThreadPool::~QThreadPool() () from /usr/lib64/libQtCore.so.4
#5  0x00007f6dcd3525b5 in ?? () from /usr/lib64/libQtCore.so.4
#6  0x00007f6dcb8073d9 in __run_exit_handlers () from /lib64/libc.so.6
#7  0x00007f6dcb807425 in exit () from /lib64/libc.so.6
#8  0x00007f6dcc5e4298 in ?? () from /usr/lib64/libQtGui.so.4
#9  0x00007f6dcdec21a0 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib64/libkdeui.so.5
#10 0x00007f6dc9da644e in _XIOError () from /usr/lib64/libX11.so.6
#11 0x00007f6dc9da45c5 in _XReply () from /usr/lib64/libX11.so.6
#12 0x00007f6dc9d9ff0d in XSync () from /usr/lib64/libX11.so.6
#13 0x00007f6dcc76b935 in QRasterWindowSurface::syncX() () from /usr/lib64/libQtGui.so.4
#14 0x00007f6dcc76bc15 in QRasterWindowSurface::beginPaint(QRegion const&) () from /usr/lib64/libQtGui.so.4
#15 0x00007f6dcc785459 in ?? () from /usr/lib64/libQtGui.so.4
#16 0x00007f6dcc5bc790 in QWidgetPrivate::syncBackingStore() () from /usr/lib64/libQtGui.so.4
#17 0x00007f6dcc5cc762 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#18 0x00007f6dcc9bc1e2 in QSplashScreen::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#19 0x00007f6dcc57d8ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#20 0x00007f6dcc583e70 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#21 0x00007f6dcdec35ea in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#22 0x00007f6dcd45d0ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#23 0x00007f6dcd4600ff in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQtCore.so.4
#24 0x00007f6dcd48a493 in ?? () from /usr/lib64/libQtCore.so.4
#25 0x00007f6dc377a316 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#26 0x00007f6dc377a668 in ?? () from /usr/lib64/libglib-2.0.so.0
#27 0x00007f6dc377a70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#28 0x00007f6dcd489d55 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#29 0x00007f6dcc61a936 in ?? () from /usr/lib64/libQtGui.so.4
#30 0x00007f6dcd4605df in QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#31 0x00007f6dcf588a73 in Digikam::SplashScreen::message(QString const&) () from /usr/lib64/libdigikamcore.so.3
#32 0x000000000052e08d in ?? ()
#33 0x000000000052e9a1 in ?? ()
#34 0x0000000000589cec in ?? ()
#35 0x00000000005a17b4 in ?? ()
#36 0x000000000049aefa in ?? ()
#37 0x00007f6dcb7f0be5 in __libc_start_main () from /lib64/libc.so.6
#38 0x000000000049d821 in _start ()

Well, especially in this case it would be good that the KDE developers themselves would be informed about the issue… :wink:

Ah, btw, can be a related problem, but digikam for kde4 crashes whereas it never did that before. I suspect it’s due to an external library

Better open a new thread about this.

But digikam works fine here, I have the version from [noparse]KDE:Extra[/noparse].
Which one do you have installed?

Maybe your problem is caused by some wrong environment variables now?
But even if I set them the way I posted, digikam still works fine when started from the same shell.

FYI, I created Plasma5 packages now that are co-installable with KDE4, without having to uninstall kdebase4-workspace.

See here for more information: http://forums.opensuse.org/showthread.php/499607-KDE5?p=2654365#post2654365

They work fine here, trying those could show whether the problem lies in your build, or Plasma5 has general problems on your system.