New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 625398 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jul 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug

Blocking:
issue 490399



Sign in to add a comment

Web Bluetooth / App crashes after click the "PAIR" button

Reported by henry71...@gmail.com, Jul 2 2016

Issue description

Steps to reproduce the problem:
1. Go to cf.physical-web.org
2. Click the Search button
3. Select your eddystone/beacon
4. Click PAIR
5. "Unfortunately, Chromium has stopped"

What is the expected behavior?
Temporary Solution:
 - Install Chromium 51.0.2684.0 (Build Revision: 382014)

What went wrong?
This is what I got from adb logcat:

E/AndroidRuntime(13193): FATAL EXCEPTION: main
E/AndroidRuntime(13193): Process: org.chromium.chrome, PID: 13193
E/AndroidRuntime(13193): java.lang.IllegalArgumentException: Receiver not registered: org.chromium.chrome.browser.BluetoothChooserDialog$1@c6f0bf4
E/AndroidRuntime(13193): 	at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:771)
E/AndroidRuntime(13193): 	at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1687)
E/AndroidRuntime(13193): 	at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:511)
E/AndroidRuntime(13193): 	at org.chromium.chrome.browser.BluetoothChooserDialog.finishDialog(BluetoothChooserDialog.java:159)
E/AndroidRuntime(13193): 	at org.chromium.chrome.browser.BluetoothChooserDialog.onItemSelected(BluetoothChooserDialog.java:168)
E/AndroidRuntime(13193): 	at org.chromium.chrome.browser.ItemChooserDialog$2.onDismiss(ItemChooserDialog.java:389)
E/AndroidRuntime(13193): 	at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1271)
E/AndroidRuntime(13193): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(13193): 	at android.os.Looper.loop(Looper.java:211)
E/AndroidRuntime(13193): 	at android.app.ActivityThread.main(ActivityThread.java:5371)
E/AndroidRuntime(13193): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(13193): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(13193): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:945)
E/AndroidRuntime(13193): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:740)
D/ActivityManager(  784): New dropbox entry: org.chromium.chrome, data_app_crash, 6138f5b0-3ab8-4688-8ff0-58fe12db38de
W/ActivityManager(  784):   Force finishing activity 1 org.chromium.chrome/.browser.ChromeTabbedActivity

*Screenshot: the moment before the app crash.

Crashed report ID: -

How much crashed? Whole browser

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Chrome version:   Channel: n/a
OS Version: 
Flash Version: 

Browser Version : Android Chromium 54.0.2787.0 (Build Revision: 403610)
OS : Android 5.1.1
Model Number : D2302
Build Number : 18.6.A.0.182
 
screenshot_2016-07-02-20-09-14.png
37.6 KB View Download
Owner: animohan@chromium.org
Status: Assigned (was: Unconfirmed)
Owner: ortuno@chromium.org
Status: Started (was: Assigned)
wip: http://crrev.com/2129763002
Components: Blink>Bluetooth
Blocking: 490399
Project Member

Comment 5 by bugdroid1@chromium.org, Jul 7 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d04c4837088288ebe2d6348e29018f754a1f91d7

commit d04c4837088288ebe2d6348e29018f754a1f91d7
Author: ortuno <ortuno@chromium.org>
Date: Thu Jul 07 17:40:59 2016

bluetooth: Only unregister the receiver if dialog hasn't been closed.

Also modifies nativeOnDialogFinished to more closely resemble the
non-test nativeOnDialogFinished function. This change would have
allowed us to catch the problem with the receiver.

BUG= 625398 

Review-Url: https://codereview.chromium.org/2129763002
Cr-Commit-Position: refs/heads/master@{#404170}

[modify] https://crrev.com/d04c4837088288ebe2d6348e29018f754a1f91d7/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java
[modify] https://crrev.com/d04c4837088288ebe2d6348e29018f754a1f91d7/chrome/android/javatests/src/org/chromium/chrome/browser/BluetoothChooserDialogTest.java

Status: Fixed (was: Started)

Comment 7 by ortuno@chromium.org, Jul 19 2016

Labels: Merge-Request-53

Comment 8 by dimu@google.com, Jul 19 2016

Labels: -Merge-Request-53 Merge-Approved-53 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M53 (branch: 2785)
Project Member

Comment 9 by bugdroid1@chromium.org, Jul 19 2016

Labels: -merge-approved-53 merge-merged-2785
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/55f24de21bf238a0bf5715e8d23c1d1e095cb9ea

commit 55f24de21bf238a0bf5715e8d23c1d1e095cb9ea
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Tue Jul 19 21:26:35 2016

bluetooth: Only unregister the receiver if dialog hasn't been closed.

Also modifies nativeOnDialogFinished to more closely resemble the
non-test nativeOnDialogFinished function. This change would have
allowed us to catch the problem with the receiver.

BUG= 625398 

Review-Url: https://codereview.chromium.org/2129763002
Cr-Commit-Position: refs/heads/master@{#404170}
(cherry picked from commit d04c4837088288ebe2d6348e29018f754a1f91d7)

Review URL: https://codereview.chromium.org/2162853004 .

Cr-Commit-Position: refs/branch-heads/2785@{#227}
Cr-Branched-From: 68623971be0cfc492a2cb0427d7f478e7b214c24-refs/heads/master@{#403382}

[modify] https://crrev.com/55f24de21bf238a0bf5715e8d23c1d1e095cb9ea/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java
[modify] https://crrev.com/55f24de21bf238a0bf5715e8d23c1d1e095cb9ea/chrome/android/javatests/src/org/chromium/chrome/browser/BluetoothChooserDialogTest.java

Sign in to add a comment