Bug 367956 - KDevelop only runs as root
Summary: KDevelop only runs as root
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 5.0.0
Platform: Neon Linux
: NOR grave
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL: http://gfycat.com/WeepyCheeryHarrier
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-29 13:28 UTC by Keith Hammond
Modified: 2016-08-29 19:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.0.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Hammond 2016-08-29 13:28:09 UTC
When launching KDevelop from the launcher or from the terminal without root privilege I get an unresponsive window that doesn't re-paint (or at least visibly).

Reproducible: Always

Steps to Reproduce:
1. `sudo apt install kdevelop`
2. `kdevelop`

Actual Results:  
KDevelop shows correctly but no interaction is possible. When trying to quit with the window manager controls it will be unrespossive and eventually will get a request to terminate the application.

Expected Results:  
KDevelop should open normally.

I am running KDE Neon User Edition w/ oibaf ppa and kernel 4.7
Comment 1 Keith Hammond 2016-08-29 13:33:49 UTC
lsb_release -a

returns:

Distributor ID: neon
Description:    KDE neon User Edition 5.7
Release:        16.04
Codename:       xenial
Comment 2 Keith Hammond 2016-08-29 14:46:37 UTC
After running for a few seconds I get output like this every time:

kdevplatform.serialization: version-hint not found, seems to be an old version
kdevplatform.serialization: "The data-repository at /home/keith/.cache/kdevduchain/kdevelop-{ad9bd08c-a120-4ab6-aadd-474642f4cc1b} has to be cleared."
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
QPainter::begin: Paint device returned engine == 0, type: 2
qrc:/qml/area_code.qml:38:13: QML Image: Failed to get image from provider: image://icon/kdevelop
QPainter::begin: Paint device returned engine == 0, type: 2
qrc:/qml/area_code.qml:38:13: QML Image: Failed to get image from provider: image://icon/kdevelop
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::save: Painter not active
QPainter::translate: Painter not active
QPainter::scale: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::pen: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::brush: Painter not active
QPainter::setBrush: Painter not active
QPainter::pen: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::worldTransform: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::opacity: Painter not active
QPainter::brush: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::setOpacity: Painter not active
QPainter::setPen: Painter not active
QPainter::setOpacity: Painter not active
QPainter::setBrush: Painter not active
QPainter::setBrush: Painter not active
QPainter::setOpacity: Painter not active
QPainter::setBrush: Painter not active
QPainter::setPen: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::brush: Painter not active
QPainter::setBrush: Painter not active
QPainter::opacity: Painter not active
QPainter::brush: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::setOpacity: Painter not active
QPainter::drawPath: Painter not active
QPainter::setPen: Painter not active
QPainter::setOpacity: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawPath: Painter not active
QPainter::setBrush: Painter not active
QPainter::setOpacity: Painter not active
QPainter::setBrush: Painter not active
QPainter::setPen: Painter not active
QPainter::brush: Painter not active
QPainter::setBrush: Painter not active
QPainter::opacity: Painter not active
QPainter::setOpacity: Painter not active
QPainter::opacity: Painter not active
QPainter::brush: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::setOpacity: Painter not active
QPainter::drawPath: Painter not active
QPainter::setPen: Painter not active
QPainter::setOpacity: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawPath: Painter not active
QPainter::setBrush: Painter not active
QPainter::setOpacity: Painter not active
QPainter::setBrush: Painter not active
QPainter::setOpacity: Painter not active
QPainter::pen: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::brush: Painter not active
QPainter::setBrush: Painter not active
QPainter::opacity: Painter not active
QPainter::setOpacity: Painter not active
Comment 3 Kevin Funk 2016-08-29 17:49:22 UTC
Please try to run KDevelop with:
  KDEV_DISABLE_WELCOMEPAGE=1 kdevelop

Please report back if that works for you.

Looks related to this: https://phabricator.kde.org/D2581
Comment 4 Keith Hammond 2016-08-29 18:35:01 UTC
That fixes it. Thanks for the quick fix.
Comment 5 Kevin Funk 2016-08-29 19:43:14 UTC
This is just a work-around, this will be fixed in 5.0.1