Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63500

enableForegroundDispatch failed in addition of intent-filters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.9.1
    • Connectivity: NFC
    • Android 7.1.1 + Qt 5.9.1

      (tested also on 5.10)

       

      Compiled from debian stretch 64b using MaintenanceTool version (not debian version)
    • Android

    Description

      Hi,

       

      Using following code:

      https://github.com/qdel/nfc-test

      Qt quick default app + nfc class

       

      And having a intent-filter:

       

      <intent-filter>
       <action android:name="android.nfc.action.NDEF_DISCOVERED"/>
       <category android:name="android.intent.category.DEFAULT"/>
       <data android:mimeType="rhoflat/msg"/>
      </intent-filter>
      

       

       

      I can start app and immediately run an NFC tag.

      I can't read the NFC tag if the app is already running, i receive this error:

       

       

      W libnfc-test.so: (null):0 ((null)): QEGLPlatformContext: eglSwapBuffers failed: 300d
      I Adreno : DequeueBuffer: dequeueBuffer failed
      I Adreno : DequeueBuffer: dequeueBuffer failed
      W libnfc-test.so: (null):0 ((null)): QEGLPlatformContext: eglSwapBuffers failed: 300d
      W libnfc-test.so: (null):0 ((null)): WARNING: QApplication was not created in the main() thread.
      D libnfc-test.so: ../nfc-test2/nfc.cpp:37 (void nfc::startNfc()): Started nfc detection
      W libnfc-test.so: (null):0 ((null)): QObject::startTimer: Timers cannot be started from another thread
      W libnfc-test.so: (null):0 ((null)): QObject::killTimer: Timers cannot be stopped from another thread
      W libnfc-test.so: (null):0 ((null)): QObject::moveToThread: Current thread (0xd83fdb58) is not the object's thread (0xca43ece0).
      W libnfc-test.so: Cannot move to target thread (0xca719940)
      09-28 18:31:16.225 19754 19782 W libnfc-test.so:
      W libnfc-test.so: (null):0 ((null)): QObject::moveToThread: Current thread (0xd83fdb58) is not the object's thread (0xca43ece0).
      W libnfc-test.so: Cannot move to target thread (0xca719940)
      09-28 18:31:16.225 19754 19782 W libnfc-test.so:
      W libnfc-test.so: (null):0 ((null)): Updates can only be scheduled from GUI thread or from QQuickItem::updatePaintNode()
      D AppTracker: App Event: stop
       
      

       

       

      Note that it is Ok when i disable intent-filter. (but the app is not started when the tag is presented)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ablasche Alex Blasche
            qdel Deldycke Quentin
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes