u1db-qt-example-5.qml crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
U1DB Qt/ QML |
Fix Committed
|
Critical
|
Kevin Wright |
Bug Description
Looking at http://
If I uncomment line 76, then when running the example in qmlscene I get a segmentation fault, with the following backtrace:
#0 0x00007fffd73e6850 in U1db::Index:
#1 0x00007fffd73e9eb0 in U1db::Query:
#2 0x00007fffd73ea4fb in U1db::Query:
#3 0x00007fffd73eafea in U1db::Query:
#4 0x00007ffff750bea0 in QQmlVME:
from /usr/lib/
#5 0x00007ffff751092b in QQmlVME:
#6 0x00007ffff74fff06 in QQmlComponentPr
#7 0x00007ffff74fde54 in QQmlComponent:
#8 0x0000000000403e16 in ?? ()
#9 0x00007ffff56d3ea5 in __libc_start_main () from /lib/x86_
#10 0x000000000040629d in ?? ()
Related branches
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
- Kevin Wright: Approve
-
Diff: 35 lines (+14/-0)2 files modifiedquery.cpp (+3/-0)
tests/tst_database.qml (+11/-0)
Changed in u1db-qt: | |
status: | In Progress → Fix Committed |
summary: |
- u1db-qt-example-5.qml doesn’t demonstrate anything useful + u1db-qt-example-5.qml crashes |
The U1db.Query property "query" does not yet work as it is under development (which is why it is commented out in the example). This will be at least a few more days before the Query capabilities are working properly.
What the example demonstrates is more the functionality of the U1db.Index element, such as how to find records based on fields and sub-fields. Once Query has the "query" property working properly then exact match and wildcard searches will be possible, in addition to working together with the Index element.
It does not necessarily return the entire database, depending on the strucure of the documents in the database. If there is very little data then it might appear so, but if the structure of the data is more complex, and there is more data it is much more obvious that not the entire database is being returned.