Crash in WebviewThumbnailer::~WebviewThumbnailer() with Qt 5.2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webbrowser-app |
Fix Released
|
Critical
|
Olivier Tilloy | ||
webbrowser-app (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I’m seeing this crash fairly regularly (although it’s not 100% reliably reproducible) since the update to Qt 5.2 (it was not occurring before). Running on x86-64 desktop.
Steps to reproduce:
- launch the browser app
- open the activity view, click on the new tab button
- type in any URL and validate, wait for the new page to finish loading
- open the activity view again
- long press on any of the two open tabs to switch to tabs closing mode
- click the last open tab: the crash happens there
Here’s the backtrace I’m getting when run in gdb:
#0 QOpenGLContext:
#1 0x00007ffff73eda28 in value<QOpenGLFu
this=
at ../../include/
#2 qt_gl_functions (context=
#3 0x00007ffff73f854f in (anonymous namespace)
p2=
#4 0x00007ffff73f89f2 in qopenglfResolve
at opengl/
#5 0x00007ffff6c6d856 in glDeleteBuffers (buffers=
at /usr/include/
#6 qsg_wipeBuffer (funcs=<optimized out>, buffer=
#7 QSGBatchRendere
at scenegraph/
#8 0x00007ffff6c71f33 in QSGBatchRendere
at scenegraph/
#9 0x00007ffff6c72279 in QSGBatchRendere
at scenegraph/
#10 0x000000000043d86e in WebviewThumbnai
#11 0x000000000043b657 in QQmlPrivate:
#12 0x000000000043b6b0 in QQmlPrivate:
#13 0x00007ffff79c3c9c in QObjectPrivate:
#14 0x00007ffff79ca632 in QObject::~QObject (this=<optimized out>, __in_chrg=
#15 0x00007fffd044b6d6 in ?? ()
from /usr/lib/
#16 0x00007ffff79c4278 in QObject::event (this=this@
#17 0x00007ffff6cc0ae3 in QQuickItem::event (this=0x256b120, ev=0x28703f0) at items/qquickite
#18 0x00007ffff395bc2c in QApplicationPri
receiver=
#19 0x00007ffff3960df6 in QApplication:
at kernel/
#20 0x00007ffff799bc2d in QCoreApplicatio
event=
#21 0x00007ffff799de07 in sendEvent (event=0x28703f0, receiver=<optimized out>)
at ../../include/
#22 QCoreApplicatio
data=0x6660d0) at kernel/
#23 0x00007ffff799e433 in QCoreApplicatio
event_
#24 0x00007ffff79e8cd3 in postEventSource
#25 0x00007ffff1b81e04 in g_main_
#26 0x00007ffff1b82048 in ?? () from /lib/x86_
#27 0x00007ffff1b820ec in g_main_
#28 0x00007ffff79e898c in QEventDispatche
at kernel/
#29 0x00007ffff799a96b in QEventLoop::exec (this=this@
at kernel/
#30 0x00007ffff79a10e1 in QCoreApplicatio
#31 0x0000000000442811 in BrowserApplicat
#32 0x0000000000435570 in main ()
Related branches
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Ubuntu Phablet Team: Pending requested
-
Diff: 88 lines (+12/-20)2 files modifiedsrc/app/webbrowser/webview-thumbnailer.cpp (+12/-17)
src/app/webbrowser/webview-thumbnailer.h (+0/-3)
Changed in webbrowser-app: | |
assignee: | nobody → Olivier Tilloy (osomon) |
importance: | Undecided → Critical |
Changed in webbrowser-app: | |
status: | Triaged → In Progress |
Changed in webbrowser-app: | |
status: | In Progress → Fix Released |
I can reproduce with revision 460 of lp:webbrowser-app, which means that this regression is not a consequence of one of the recent changes in the app itself, but rather a consequence of the switch to Qt 5.2.
Note that this doesn’t necessarily mean that the bug is in Qt itself either: the thumbnailer uses private headers, so it may very well be that the code is incorrectly using Qt (as far as I can tell there has been changes in this code between Qt 5.0 and Qt 5.2).