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

Android 6/Samsung: Application crash when user accept ACCESS_FINE_LOCATION permission

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Incomplete
    • Affects Version/s: 5.9.1
    • Fix Version/s: None
    • Component/s: Positioning
    • Labels:
      None

      Description

      On Samsung Android 6, Qt application crash (frozen ui) when a user accept ACCESS_FINE_LOCATION permission.

      User has to kill the app.

      Permission is granted.

      Relevant Qt code is in source file

      qtlocation/src/plugins/position/android/src/jnipositioning.cpp

      adb log: an exception is thrown in Samsung code

      21:30:37.619 870 1676 D SLocation: handleMessage got exception 13java.lang.NullPointerException:
       Attempt to invoke virtual method 'void com.samsung.location.b.h.m(int)' on a null object reference
      
      21:30:37.619 315 315 D libEGL : eglInitialize EGLDisplay = 0xbebd1364
      
      21:30:37.619 870 1676 W System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.samsung.location.b.h.m(int)'
        on a null object reference
      
      21:30:37.619 870 1676 W System.err: at com.samsung.location.lib.m.handleMessage(Unknown Source) 
      
      21:30:37.619 870 1676 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
      
      21:30:37.619 870 1676 W System.err: at android.os.Looper.loop(Looper.java:158)
      
      21:30:37.619 870 1676 W System.err: at com.samsung.location.SLocationService.run(Unknown Source)
      
      21:30:37.619 870 1676 W System.err: at java.lang.Thread.run(Thread.java:818)

      Since it works for pure java apps, I suspect something is wrong either in Qt code or for native app.

        Attachments

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

          Activity

            People

            • Assignee:
              ablasche Alex Blasche
              Reporter:
              fabricesalvaire fabrice salvaire
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes