Bug 380280 - Crash when using webengine type in plasma
Summary: Crash when using webengine type in plasma
Status: RESOLVED WORKSFORME
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasmaquick (show other bugs)
Version: 5.34.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-28 16:24 UTC by kinta
Modified: 2020-03-01 04:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
backtrace (43.75 KB, text/plain)
2017-06-12 15:13 UTC, kinta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kinta 2017-05-28 16:24:35 UTC
Adding webengineview type in plasmoid, lead to:
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.

Steps to Reproduce: 
1) Download test plasmoid: 
    git clone https://github.com/aleixq/testBrowser-plasmoid--toTest org.kde.testBrowser
2) Run 
    plasmoidviewer -a org.kde.testBrowser

Actual Results:
Plasmoidviewer crashed.

Expected Results: 
Show WebEngineView in plasmoid. Run 
    qmlscene org.kde.testBrowser/contents/ui/main.qml 
to view the right behavior.

It's related to https://bugs.kde.org/show_bug.cgi?id=371023 .
Comment 1 Marco Martin 2017-06-09 10:44:46 UTC
it's probably a local setup problem, a full backtrace would be needed to know where the crash is happening
Comment 2 kinta 2017-06-12 15:13:18 UTC
Created attachment 106061 [details]
backtrace

I can reproduce running the specified test plasmoid in another pc. I have attached the backtrace. The good news are that this bug is fixed in kde neon with testing repos enabled, which upgrade the qt version to 5.9.
Comment 3 Christoph Feck 2017-06-14 14:27:11 UTC
I remember we had to add patches to Konqueror and KDEPIM applications to not crash with QtWebEngine. It is possible that 'plasmoidviewer' needs a similar patch.

Relevant part of backtrace from comment #2:

Thread 1 (Thread 0x7f2f11ae68c0 (LWP 6677)):
[KCrash Handler]
#6  0x00007f2f0d0776f0 in QOpenGLContext::shareGroup() const () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#7  0x00007f2f0d077719 in QOpenGLContext::areSharing(QOpenGLContext*, QOpenGLContext*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#8  0x00007f2e59f134e8 in QtWebEngineCore::DelegatedFrameNode::DelegatedFrameNode() (this=0x41bdc40) at /workspace/build/src/core/delegated_frame_node.cpp:427
#9  0x00007f2e59f36145 in QtWebEngineCore::RenderWidgetHostViewQt::updatePaintNode(QSGNode*) (this=0x4201020, oldNode=<optimized out>) at /workspace/build/src/core/render_widget_host_view_qt.cpp:749
#10 0x00007f2f0fb78720 in QQuickWindowPrivate::updateDirtyNode(QQuickItem*) (this=this@entry=0x1354210, item=item@entry=0x4232460) at items/qquickwindow.cpp:3121
#11 0x00007f2f0fb78f8b in QQuickWindowPrivate::updateDirtyNodes() (this=this@entry=0x1354210) at items/qquickwindow.cpp:2866
#12 0x00007f2f0fb7a020 in QQuickWindowPrivate::syncSceneGraph() (this=this@entry=0x1354210) at items/qquickwindow.cpp:419
#13 0x00007f2f0fb46978 in QSGGuiThreadRenderLoop::renderWindow(QQuickWindow*) (this=0x132f200, window=0x1152bb0) at scenegraph/qsgrenderloop.cpp:391
#14 0x00007f2f0fb83f67 in QQuickWindow::event(QEvent*) (this=0x1152bb0, e=0x7ffc76a7b900) at items/qquickwindow.cpp:1527
Comment 5 Nate Graham 2020-01-31 19:42:41 UTC
Can you reproduce this in Plasma 5.17 or the upcoming 5.18.0?
Comment 6 Bug Janitor Service 2020-02-15 04:33:15 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2020-03-01 04:33:15 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!