Bug 356489 - Black field
Summary: Black field
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kxmlgui
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.35.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL: http://pasteboard.co/2MknlgXz.png
Keywords:
: 381206 381750 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-12-10 23:02 UTC by Enrico Bonato
Modified: 2017-09-29 19:24 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
black screen fix (439 bytes, patch)
2017-08-02 00:08 UTC, Texstar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico Bonato 2015-12-10 23:02:00 UTC
Game field is black, regardless of theme used
Game sounds are present, so it should work

Reproducible: Always

Steps to Reproduce:
1. Open knetwalk
Comment 1 Frederik Schwarzer 2015-12-11 07:40:28 UTC
Hi,

I cannot reproduce this here on versin 3.3.0. Can you state your version and operating system, please?
Comment 2 Christoph Feck 2015-12-11 11:40:56 UTC
Missing path variable for QML files?
Comment 3 Enrico Bonato 2015-12-11 15:42:11 UTC
(In reply to Frederik Schwarzer from comment #1)
> Hi,
> 
> I cannot reproduce this here on versin 3.3.0. Can you state your version and
> operating system, please?

Version is 3.3.0, sorry for the missing info. OS is Gentoo Linux, kernel 4.3.0 64 bit 

(In reply to Christoph Feck from comment #2)
> Missing path variable for QML files?

How can I check that? Which variable are you referring to?
Comment 4 Christoph Feck 2015-12-11 16:37:35 UTC
QML2_IMPORT_PATH needs to have both Qt5 as well as KF5 paths for QML files. The exact contents depends on the location of these, which you should ask in a forum of your distribution.

On my system it is:
> set | grep QML
QML2_IMPORT_PATH=/local/qt5/qml:/local/kf5/lib/qml
Comment 5 Texstar 2017-06-12 23:01:20 UTC
The black screen is back in 17.04.2

Qt5 5.9.0
Desktop 5.10.1
Frameworks 5.35.0
Applications 17.04.2

export KF5=/usr
export QTDIR=$KF5/lib64/qt5
export PATH=$KF5/bin:$QTDIR/bin:$KF5/share/kf5:/usr/libexec:$PATH
export QT_PLUGIN_PATH=$KF5/lib64/qt5/plugins

export QML2_IMPORT_PATH=$KF5/lib64/qt5/qml
export QML_IMPORT_PATH=$QML2_IMPORT_PATH
Comment 6 Albert Astals Cid 2017-06-12 23:10:34 UTC
most likely packaging bug.

Any debug output on the command line if run from a terminal?

Attach strace output?
Comment 7 Texstar 2017-06-12 23:34:31 UTC
It repeats...

QQuickWidget cannot be used as a native child widget. Consider setting Qt::AA_DontCreateNativeWidgetSiblings
Comment 8 Texstar 2017-06-12 23:51:19 UTC
I'm not sure if this is correct but I fixed it by patching in 

qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings, true);

into the mainwindow.cpp
Comment 9 Albert Astals Cid 2017-06-12 23:52:14 UTC
Which qt?
Comment 10 Texstar 2017-06-13 00:05:32 UTC
Qt5 5.9.0
Comment 12 Albert Astals Cid 2017-06-14 20:48:07 UTC
*** Bug 381206 has been marked as a duplicate of this bug. ***
Comment 13 Albert Astals Cid 2017-06-28 23:23:50 UTC
*** Bug 381750 has been marked as a duplicate of this bug. ***
Comment 14 Yaakov Selkowitz 2017-08-01 23:30:30 UTC
I'm seeing this too with Qt 5.6.2 and Frameworks 5.35.0.  The patch to kxmlgui in comment 11 does not fix it for me.
Comment 15 Texstar 2017-08-02 00:08:45 UTC
Created attachment 107024 [details]
black screen fix

This patch works for me.
Comment 16 Yaakov Selkowitz 2017-08-02 00:37:12 UTC
(In reply to Texstar from comment #15)
> Created attachment 107024 [details]
> black screen fix
> 
> This patch works for me.

Works for me, thanks.
Comment 17 Ronald Buckman 2017-09-13 22:33:52 UTC
I'm now seeing the black game field if qt5ct is used outside of Plasma to set the Appearance --> Style to either Breeze or Oxygen.  I am using Applications 17.08.1, Frameworks 5.38.0, Plasma 5.10.5, Alien's unofficial KDE Slackware packages on Slackware 14.2.
Comment 18 Ronald Buckman 2017-09-13 22:34:26 UTC
I'm now seeing the black game field if qt5ct is used outside of Plasma to set the Appearance --> Style to either Breeze or Oxygen.  I am using Applications 17.08.1, Frameworks 5.38.0, Plasma 5.10.5, Alien's unofficial KDE Slackware packages on Slackware 14.2.