Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › FirebaseDatabase – Vplay 2.5

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18215

    Neto

    Good afternoon,

    today I was super excited to see that v-play 2.5 put support for more complex queries in FirebaseDatabase.

    But then I was worried.
    I did a simple test trying to read a list of IDS, and it gave error in android.

    ** I think it’s some mistake when trying to record locally, it seems like it’s over the limit.

    Here is the list and the code used:

     

    FirebaseDatabase {

    id: firebaseDb

    realtimeValueKeys: [“compsID”]

    onRealtimeValueChanged: if(success) debug(“Real Time Changed ” + JSON.stringify(value))

    onReadCompleted: { if(success) { debug(“Read Complet ” + JSON.stringify(value)) } }

    }

     

    JSON from Firebase
    { “0393933973897862323” : true, “1516850971978” : true, “1516853352094” : true, “1516853442938” : true, “1516853825788” : true, “1516853892737” : true, “1516853910884” : true, “1616850971978” : true, “1616853352094” : true, “1616853442938” : true, “1616853825788” : true, “1616853892737” : true, “1616853910884” : true, “1717850971978” : true, “1717853352094” : true, “1717853442938” : true, “1717853825788” : true, “1717853892737” : true, “1717853910884” : true, “1920850971978” : true, “1920853352094” : true, “1920853442938” : true, “1920853825788” : true, “1920853892737” : true, “1920853910884” : true, “2020850971978” : true, “2020853352094” : true, “2020853442938” : true, “2020853825788” : true, “2020853892737” : true, “2020853910884” : true, “2121850971978” : true, “2121853352094” : true, “2121853442938” : true, “2121853825788” : true, “2121853892737” : true, “2121853910884” : true, “2223850972278” : true, “2223853352394” : true, “2223853442938” : true, “2223853825788” : true, “2223853892737” : true, “2223853910884” : true, “2323850972278” : true, “2323853352394” : true, “2323853442938” : true, “2323853825788” : true, “2323853892737” : true, “2323853910884” : true, “2424850972278” : true, “2424853352394” : true, “2424853442938” : true, “2424853825788” : true, “2424853892737” : true, “2424853910884” : true, “2526850972578” : true, “2526853352694” : true, “2526853442938” : true, “2526853825788” : true, “2526853892737” : true, “2526853910884” : true, “2626850972578” : true, “2626853352694” : true, “2626853442938” : true, “2626853825788” : true, “2626853892737” : true, “2626853910884” : true, “2727850972578” : true, “2727853352694” : true, “2727853442938” : true, “2727853825788” : true, “2727853892737” : true, “2727853910884” : true, “2829850972878” : true, “2829853352994” : true, “2829853442938” : true, “2829853828788” : true, “2829853893037” : true, “2829853910884” : true, “2929850972878” : true, “2929853352994” : true, “2929853442938” : true, “2929853828788” : true, “2929853893037” : true, “2929853910884” : true, “3030850972878” : true, “3030853352994” : true, “3030853442938” : true, “3030853828788” : true, “3030853893037” : true}
    And Got Error:

     

    F art : art/runtime/indirect_reference_table.cc:128] JNI ERROR (app bug): local reference table overflow (max=512)

    F art : art/runtime/indirect_reference_table.cc:128] local reference table dump:

    F art : art/runtime/indirect_reference_table.cc:128] Last 10 entries (of 512):

    F art : art/runtime/indirect_reference_table.cc:128] 511: 0x6f321770 java.lang.Class<java.lang.Boolean>

    F art : art/runtime/indirect_reference_table.cc:128] 510: 0x6f327e30 java.lang.Class<java.lang.Double>

    F art : art/runtime/indirect_reference_table.cc:128] 509: 0x6f328058 java.lang.Class<java.lang.Float>

    F art : art/runtime/indirect_reference_table.cc:128] 508: 0x6f322e00 java.lang.Class<java.lang.Long>

    F art : art/runtime/indirect_reference_table.cc:128] 507: 0x6f3235d8 java.lang.Class<java.lang.Integer>

    F art : art/runtime/indirect_reference_table.cc:128] 506: 0x6f335ce8 java.lang.Class<java.lang.Short>

    F art : art/runtime/indirect_reference_table.cc:128] 505: 0x6f31cbb8 java.lang.Class<java.util.Map>

    F art : art/runtime/indirect_reference_table.cc:128] 504: 0x6f314d58 java.lang.Class<java.lang.Object[]>

    F art : art/runtime/indirect_reference_table.cc:128] 503: 0x6f321770 java.lang.Class<java.lang.Boolean>

    F art : art/runtime/indirect_reference_table.cc:128] 502: 0x6f327e30 java.lang.Class<java.lang.Double>

    F art : art/runtime/indirect_reference_table.cc:128] Summary:

    F art : art/runtime/indirect_reference_table.cc:128] 508 of java.lang.Class (10 unique instances)

    F art : art/runtime/indirect_reference_table.cc:128] 3 of java.lang.String (3 unique instances)

    F art : art/runtime/indirect_reference_table.cc:128] 1 of java.lang.String[] (3 elements)

    F art : art/runtime/indirect_reference_table.cc:128]

    F art : art/runtime/runtime.cc:403] Runtime aborting…

    F art : art/runtime/runtime.cc:403] Aborting thread:

    F art : art/runtime/runtime.cc:403] “main” prio=7 tid=1 Runnable

    F art : art/runtime/runtime.cc:403] | group=”” sCount=0 dsCount=0 obj=0x752c4638 self=0xe4c05400

    F art : art/runtime/runtime.cc:403] | sysTid=17072 nice=-4 cgrp=default sched=0/0 handle=0xe81b3534

    F art : art/runtime/runtime.cc:403] | state=R schedstat=( 2527892707 108646311 864 ) utm=172 stm=80 core=3 HZ=100

    F art : art/runtime/runtime.cc:403] | stack=0xff73d000-0xff73f000 stackSize=8MB

    F art : art/runtime/runtime.cc:403] | held mutexes= “abort lock” “mutator lock”(shared held)

    F art : art/runtime/runtime.cc:403] native: #00 pc 00351399 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128)

    F art : art/runtime/runtime.cc:403] native: #01 pc 003318c5 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+304)

    F art : art/runtime/runtime.cc:403] native: #02 pc 00324889 /system/lib/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+24)

    F art : art/runtime/runtime.cc:403] native: #03 pc 003246d3 /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+362)

    F art : art/runtime/runtime.cc:403] native: #04 pc 0031b523 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+90)

    F art : art/runtime/runtime.cc:403] native: #05 pc 000b4d47 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+866)

    F art : art/runtime/runtime.cc:403] native: #06 pc 001bd02f /system/lib/libart.so (_ZN3art22IndirectReferenceTable3AddEjPNS_6mirror6ObjectE+194)

    F art : art/runtime/runtime.cc:403] native: #07 pc 002662ed /system/lib/libart.so (_ZN3art3JNI17CallObjectMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+456)

    F art : art/runtime/runtime.cc:403] native: #08 pc 000cc119 /system/lib/libart.so (_ZN3art8CheckJNI11CallMethodVEPKcP7_JNIEnvP8_jobjectP7_jclassP10_jmethodIDSt9__va_listNS_9Primitive4TypeENS_10InvokeTypeE+608)

    F art : art/runtime/runtime.cc:403] native: #09 pc 000c191d /system/lib/libart.so (_ZN3art8CheckJNI17CallObjectMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+40)

    F art : art/runtime/runtime.cc:403] native: #10 pc 001590ad /data/app/br.com.ncast.expert.nestlebr-1/lib/arm/libQt5Core.so (_ZNK17QJNIObjectPrivate17callObjectMethodVEPKcS1_St9__va_list+92)

    F art : art/runtime/runtime.cc:403] native: #11 pc 0000c05f /data/app/br.com.ncast.expert.nestlebr-1/lib/arm/libQt5AndroidExtras.so (_ZNK17QAndroidJniObject16callObjectMethodEPKcS1_z+34)

    F art : art/runtime/runtime.cc:403] at net.vplay.plugins.firebase.FirebaseDatabaseItem.readCompleted(Native method)

    F art : art/runtime/runtime.cc:403] at net.vplay.plugins.firebase.FirebaseDatabaseItem.processDataSnapshot(FirebaseDatabaseItem.java:310)

    F art : art/runtime/runtime.cc:403] at net.vplay.plugins.firebase.FirebaseDatabaseItem.access$300(FirebaseDatabaseItem.java:23)

    F art : art/runtime/runtime.cc:403] at net.vplay.plugins.firebase.FirebaseDatabaseItem$1.onDataChange(FirebaseDatabaseItem.java:111)

    #18216

    Christian
    Felgo Team

    Hi Neto!

    Thanks for your report – there actually was a bug in the Android implementation of our firebase plugin.

    We already fixed the bug; the fix will be included in the next update.

    In the meantime, you can still use the firebase plugin as long as the objects you load are not too big – the crash happens when an object has about more than 50 sub-keys or array entries. You can try limiting your queries to obtain less data.

    The crash also does not occur on iOS devices.

    Best,
    Christian

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded