Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-1.5.0-rxjava2 sample app scan doesn't find devices, works fine in release-1.5.0-rxjava1 #399

Closed
kaiaai opened this issue Mar 20, 2018 · 1 comment

Comments

@kaiaai
Copy link
Contributor

kaiaai commented Mar 20, 2018

Disclaimer

Before you will post a new issue to the RxAndroidBle library consider if you are filling a bug/feature request or a general question
about:

  • Usage of RxJava
  • Usage of Bluetooth Low Energy
  • Usage of RxAndroidBle
  • Weird behaviour of the peripheral you are using
  • Other not directly related to a new feature request or a bug

If any of the above points seems to match your use case — consider using Google or creating a question on www.stackoverflow.com with
a tag rxandroidble where it will be easier to access by other people with similar questions. Issues that are not bugs or feature requests
will be closed.

Summary

sample app scan finds no devices in release-1.5.0-rxjava2, but works fine in release-1.5.0-rxjava1

Library version

release-1.5.0-rxjava2

Preconditions

release-1.5.0-rxjava2

Steps to reproduce actual result


1. check out release-1.5.0-rxjava2 from github, build, add runtime permissions code

2. build, launch on Samsung Galaxy S7

3. App starts, click Start Scan - no devices found

Minimum code snippet reproducing the issue

N/A

Logs from the application running with setting RxBleLog.setLogLevel(RxBleLog.VERBOSE)

03-19 20:31:49.450 27845-27845/? W/SELinux: SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=com.polidea.rxandroidble.sample 
03-19 20:31:49.500 27845-27845/com.polidea.rxandroidble.sample W/ResourcesManager: getTopLevelResources: /data/app/com.polidea.rxandroidble.sample-1/base.apk / 1.0 running in com.polidea.rxandroidble.sample rsrc of package com.polidea.rxandroidble.sample
03-19 20:31:49.500 27845-27845/com.polidea.rxandroidble.sample I/InjectionManager: Inside getClassLibPath + mLibMap{0=, 1=}
03-19 20:31:49.510 27845-27845/com.polidea.rxandroidble.sample D/ResourcesManager: For user 0 new overlays fetched Null
03-19 20:31:49.510 27845-27845/com.polidea.rxandroidble.sample I/InjectionManager: Inside getClassLibPath caller 
03-19 20:31:49.580 27845-27845/com.polidea.rxandroidble.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.polidea.rxandroidble.sample-1/split_lib_dependencies_apk.apk --oat-file=/data/dalvik-cache/arm64/data@[email protected]@[email protected]) because non-0 exit status
03-19 20:31:49.790 27845-27845/com.polidea.rxandroidble.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.polidea.rxandroidble.sample-1/split_lib_slice_0_apk.apk --oat-file=/data/dalvik-cache/arm64/data@[email protected]@[email protected]) because non-0 exit status
03-19 20:31:49.840 27845-27845/com.polidea.rxandroidble.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.polidea.rxandroidble.sample-1/split_lib_slice_1_apk.apk --oat-file=/data/dalvik-cache/arm64/data@[email protected]@[email protected]) because non-0 exit status
03-19 20:31:49.890 27845-27845/com.polidea.rxandroidble.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.polidea.rxandroidble.sample-1/split_lib_slice_2_apk.apk --oat-file=/data/dalvik-cache/arm64/data@[email protected]@[email protected]) because non-0 exit status
03-19 20:31:49.940 27845-27845/com.polidea.rxandroidble.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.polidea.rxandroidble.sample-1/split_lib_slice_3_apk.apk --oat-file=/data/dalvik-cache/arm64/data@[email protected]@[email protected]) because non-0 exit status
03-19 20:31:49.980 27845-27845/com.polidea.rxandroidble.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.polidea.rxandroidble.sample-1/split_lib_slice_4_apk.apk --oat-file=/data/dalvik-cache/arm64/data@[email protected]@[email protected]) because non-0 exit status
03-19 20:31:50.030 27845-27845/com.polidea.rxandroidble.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.polidea.rxandroidble.sample-1/split_lib_slice_5_apk.apk --oat-file=/data/dalvik-cache/arm64/data@[email protected]@[email protected]) because non-0 exit status
03-19 20:31:50.070 27845-27845/com.polidea.rxandroidble.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.polidea.rxandroidble.sample-1/split_lib_slice_6_apk.apk --oat-file=/data/dalvik-cache/arm64/data@[email protected]@[email protected]) because non-0 exit status
03-19 20:31:50.120 27845-27845/com.polidea.rxandroidble.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.polidea.rxandroidble.sample-1/split_lib_slice_7_apk.apk --oat-file=/data/dalvik-cache/arm64/data@[email protected]@[email protected]) because non-0 exit status
03-19 20:31:50.170 27845-27845/com.polidea.rxandroidble.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.polidea.rxandroidble.sample-1/split_lib_slice_8_apk.apk --oat-file=/data/dalvik-cache/arm64/data@[email protected]@[email protected]) because non-0 exit status
03-19 20:31:50.210 27845-27845/com.polidea.rxandroidble.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.polidea.rxandroidble.sample-1/split_lib_slice_9_apk.apk --oat-file=/data/dalvik-cache/arm64/data@[email protected]@[email protected]) because non-0 exit status
03-19 20:31:50.220 27845-27845/com.polidea.rxandroidble.sample W/System: ClassLoader referenced unknown path: /data/app/com.polidea.rxandroidble.sample-1/lib/arm64
03-19 20:31:50.220 27845-27845/com.polidea.rxandroidble.sample I/InstantRun: starting instant run server: is main process
03-19 20:31:50.310 27845-27845/com.polidea.rxandroidble.sample D/InjectionManager: InjectionManager
03-19 20:31:50.310 27845-27845/com.polidea.rxandroidble.sample D/InjectionManager: fillFeatureStoreMap com.polidea.rxandroidble.sample
03-19 20:31:50.310 27845-27845/com.polidea.rxandroidble.sample I/InjectionManager: Constructor com.polidea.rxandroidble.sample, Feature store :{}
03-19 20:31:50.310 27845-27845/com.polidea.rxandroidble.sample I/InjectionManager: featureStore :{}
03-19 20:31:50.340 27845-27845/com.polidea.rxandroidble.sample W/ResourcesManager: getTopLevelResources: /data/app/com.polidea.rxandroidble.sample-1/base.apk / 1.0 running in com.polidea.rxandroidble.sample rsrc of package com.polidea.rxandroidble.sample
03-19 20:31:50.350 27845-27845/com.polidea.rxandroidble.sample D/ContextRelationManager: ContextRelationManager() : FEATURE_ENABLED=true
03-19 20:31:50.350 27845-27845/com.polidea.rxandroidble.sample D/RelationGraph: garbageCollect()
03-19 20:31:50.350 27845-27845/com.polidea.rxandroidble.sample W/ResourcesManager: getTopLevelResources: /data/app/com.polidea.rxandroidble.sample-1/base.apk / 1.0 running in com.polidea.rxandroidble.sample rsrc of package com.polidea.rxandroidble.sample
03-19 20:31:50.370 27845-27845/com.polidea.rxandroidble.sample W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
03-19 20:31:50.450 27845-27845/com.polidea.rxandroidble.sample D/TextView: setTypeface with style : 0
03-19 20:31:50.450 27845-27845/com.polidea.rxandroidble.sample D/TextView: setTypeface with style : 0
03-19 20:31:50.460 27845-27845/com.polidea.rxandroidble.sample D/TextView: setTypeface with style : 0
03-19 20:31:50.460 27845-27845/com.polidea.rxandroidble.sample D/TextView: setTypeface with style : 0
03-19 20:31:50.510 27845-27845/com.polidea.rxandroidble.sample D/Activity: performCreate Call Injection manager
03-19 20:31:50.510 27845-27845/com.polidea.rxandroidble.sample I/InjectionManager: dispatchOnViewCreated > Target : com.polidea.rxandroidble2.sample.example1_scanning.ScanActivity isFragment :false
03-19 20:31:50.520 27845-27845/com.polidea.rxandroidble.sample D/SecWifiDisplayUtil: Metadata value : SecSettings2
03-19 20:31:50.520 27845-27845/com.polidea.rxandroidble.sample D/ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{28cada2 I.E...... R.....ID 0,0-0,0}
03-19 20:31:50.530 27845-27909/com.polidea.rxandroidble.sample D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
03-19 20:31:50.550 27845-27909/com.polidea.rxandroidble.sample I/Adreno: QUALCOMM build                   : 21eea6c, Ibe6c945376
                                                                         Build Date                       : 01/16/16
                                                                         OpenGL ES Shader Compiler Version: XE031.06.00.05
                                                                         Local Branch                     : 
                                                                         Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.HB.1.1.1.06.00.01.063.117
                                                                         Remote Branch                    : NONE
                                                                         Reconstruct Branch               : NOTHING
03-19 20:31:50.560 27845-27909/com.polidea.rxandroidble.sample D/libEGL: eglInitialize EGLDisplay = 0x7f72eec188
03-19 20:31:50.560 27845-27909/com.polidea.rxandroidble.sample I/OpenGLRenderer: Initialized EGL, version 1.4
03-19 20:31:50.590 27845-27845/com.polidea.rxandroidble.sample W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
03-19 20:31:50.600 27845-27845/com.polidea.rxandroidble.sample I/InjectionManager: dispatchCreateOptionsMenu :com.polidea.rxandroidble2.sample.example1_scanning.ScanActivity
03-19 20:31:50.600 27845-27845/com.polidea.rxandroidble.sample I/InjectionManager: dispatchPrepareOptionsMenu :com.polidea.rxandroidble2.sample.example1_scanning.ScanActivity
03-19 20:31:50.600 27845-27845/com.polidea.rxandroidble.sample D/ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
03-19 20:31:50.600 27845-27845/com.polidea.rxandroidble.sample W/DisplayListCanvas: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
03-19 20:31:50.600 27845-27909/com.polidea.rxandroidble.sample D/libGLESv1: DTS_GLAPI : DTS is not allowed for Package : com.polidea.rxandroidble.sample
03-19 20:31:50.640 27845-27845/com.polidea.rxandroidble.sample I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@9a63578 time:107642614
03-19 20:34:04.980 27845-27845/com.polidea.rxandroidble.sample D/ViewRootImpl: ViewPostImeInputStage processPointer 0
03-19 20:34:05.100 27845-27845/com.polidea.rxandroidble.sample D/ViewRootImpl: ViewPostImeInputStage processPointer 1
03-19 20:34:05.180 27845-27845/com.polidea.rxandroidble.sample D/RxBle#ClientOperationQueue: QUEUED   ScanOperationApi21(66033313)
03-19 20:34:05.180 27845-27908/com.polidea.rxandroidble.sample D/RxBle#ClientOperationQueue: STARTED  ScanOperationApi21(66033313)
03-19 20:34:05.190 27845-28137/com.polidea.rxandroidble.sample I/RxBle#QueueOperation: Scan operation is requested to start.
03-19 20:34:05.190 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:34:05.190 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:34:05.190 27845-28137/com.polidea.rxandroidble.sample D/BluetoothLeScanner: Start Scan
03-19 20:34:05.190 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:34:05.190 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:34:05.200 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:34:05.200 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:34:05.250 27845-27873/com.polidea.rxandroidble.sample D/BluetoothLeScanner: onClientRegistered() - status=0 clientIf=7
03-19 20:34:05.260 27845-27908/com.polidea.rxandroidble.sample D/RxBle#ClientOperationQueue: FINISHED ScanOperationApi21(66033313) in 80 ms
03-19 20:37:26.040 27845-27845/com.polidea.rxandroidble.sample D/ViewRootImpl: ViewPostImeInputStage processPointer 0
03-19 20:37:26.110 27845-27845/com.polidea.rxandroidble.sample D/ViewRootImpl: ViewPostImeInputStage processPointer 1
03-19 20:37:26.110 27845-28137/com.polidea.rxandroidble.sample I/RxBle#CancellableDisposable: Scan operation is requested to stop.
03-19 20:37:26.110 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:37:26.110 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:37:26.110 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:37:26.110 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:37:26.110 27845-28137/com.polidea.rxandroidble.sample D/BluetoothLeScanner: Stop Scan
03-19 20:37:26.500 27845-27845/com.polidea.rxandroidble.sample D/ViewRootImpl: ViewPostImeInputStage processPointer 0
03-19 20:37:26.570 27845-27845/com.polidea.rxandroidble.sample D/ViewRootImpl: ViewPostImeInputStage processPointer 1
03-19 20:37:26.580 27845-27845/com.polidea.rxandroidble.sample D/RxBle#ClientOperationQueue: QUEUED   ScanOperationApi21(18675020)
03-19 20:37:26.580 27845-27908/com.polidea.rxandroidble.sample D/RxBle#ClientOperationQueue: STARTED  ScanOperationApi21(18675020)
03-19 20:37:26.580 27845-28137/com.polidea.rxandroidble.sample I/RxBle#QueueOperation: Scan operation is requested to start.
03-19 20:37:26.580 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:37:26.580 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:37:26.580 27845-28137/com.polidea.rxandroidble.sample D/BluetoothLeScanner: Start Scan
03-19 20:37:26.580 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:37:26.590 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:37:26.590 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:37:26.590 27845-28137/com.polidea.rxandroidble.sample D/BluetoothAdapter: STATE_ON
03-19 20:37:26.640 27845-27857/com.polidea.rxandroidble.sample D/BluetoothLeScanner: onClientRegistered() - status=0 clientIf=7
03-19 20:37:26.650 27845-27908/com.polidea.rxandroidble.sample D/RxBle#ClientOperationQueue: FINISHED ScanOperationApi21(18675020) in 71 ms

Actual result

Scan finds no devices

Expected result

Scan finds devices

@uKL
Copy link
Collaborator

uKL commented Mar 23, 2018

The ScanActivity has some filters applied by default. Please have a look at the master branch where this filter has been disabled.

@uKL uKL closed this as completed Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants