WebView crashes if it finishes constructing before its context
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Oxide |
Fix Released
|
Critical
|
Chris Coulson |
Bug Description
This code causes a crash, because the second WebView completes construction before the WebContext:
import QtQuick 2.0
import QtTest 1.0
import com.canonical.Oxide 0.1
Column {
focus: true
WebView {
id: webview
width: 200
height: 200
context: WebContext {}
}
WebView {
width: 200
height: 200
context: webview.context
}
}
#0 0x00007fffdb6ad7b8 in oxide::
from /home/chr1s/
#1 0x00007fffdb69852f in oxide::
from /home/chr1s/
#2 0x00007fffdf363622 in OxideQQuickWebV
#3 0x00007fffdf363cba in OxideQQuickWebV
#4 0x00007ffff6cfbc2a in QQmlVME::complete (this=this@
#5 0x00007ffff6cf0cc2 in QQmlComponentPr
#6 0x00007ffff6cf0d97 in QQmlComponentPr
#7 0x00007ffff6cf0c20 in QQmlComponent:
#8 0x000000000040283f in main (argc=4, argv=0x7fffffff
oxide:
Related branches
Changed in oxide: | |
status: | Triaged → In Progress |
assignee: | nobody → Chris Coulson (chrisccoulson) |
Changed in oxide: | |
status: | In Progress → Fix Released |
In fact, this crashes too:
import QtQuick 2.0
import QtTest 1.0
import com.canonical.Oxide 0.1
Column {
focus: true
WebContext {
id: context
}
WebView {
id: webview
width: 200
height: 200
context: context
}
WebView {
width: 200
height: 200
context: context
}
}