Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
5.9.1
-
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.