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

Browser crash when a publisher is tipped #20696

Closed
srirambv opened this issue Jan 26, 2022 · 2 comments · Fixed by brave/brave-core#12004
Closed

Browser crash when a publisher is tipped #20696

srirambv opened this issue Jan 26, 2022 · 2 comments · Fixed by brave/brave-core#12004
Assignees
Labels
bug crash feature/rewards OS/Android Fixes related to Android browser functionality priority/P1 A very extremely bad problem. We might push a hotfix for it. QA Pass - Android ARM QA Pass - Android Tab QA/Yes regression release-notes/exclude

Comments

@srirambv
Copy link
Contributor

Description

Browser crash when a publisher is tipped

Steps to reproduce

  1. Enable staging rewards
  2. Claim Grant
  3. Tip a verified publisher, browser crash

Actual result

Android.Crash.on.Tip.mp4

Expected result

No crash

Issue reproduces how often

Easy

Version/Channel Information:

  • Can you reproduce this issue with the current Play Store version? NA
  • Can you reproduce this issue with the current Play Store Beta version? NA
  • Can you reproduce this issue with the current Play Store Nightly version? Yes

Device details

  • Install type (ARM, x86): ARM
  • Device type (Phone, Tablet, Phablet): Phone
  • Android version:11

Brave version

1.36.66

Website problems only

  • Does the issue resolve itself when disabling Brave Shields? NA
  • Does the issue resolve itself when disabling Brave Rewards? NA
  • Is the issue reproducible on the latest version of Chrome? NA

Additional information

Crash Report https://share.backtrace.io/api/share/0PXJAmQLeMFcs7S8LtqAu3

@samartnik
Copy link
Contributor

Crash srack:

 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference
        at android.app.ActivityThread.deliverResults(ActivityThread.java:4710)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:4752)
        at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1993)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7266)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference
        at org.chromium.chrome.browser.app.BraveActivity.onActivityResult(BraveActivity.java:1125)
        at android.app.Activity.dispatchActivityResult(Activity.java:7809)
        at android.app.ActivityThread.deliverResults(ActivityThread.java:4703)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:4752) 
        at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49) 
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1993) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:216) 
        at android.app.ActivityThread.main(ActivityThread.java:7266) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975) 

@srirambv
Copy link
Contributor Author

Verification passed on Oppo Reno 5 with Android 11 running 1.35.96 x64 build

  • Verified no crash when sending a one time tip to a publisher
  • Verified no crash when setting a recurring tip to a publisher
20696-Mobile.mp4

Verification passed on Samsung Tab A with Android 10 running 1.35.96 x64 build

  • Verified no crash when sending a one time tip to a publisher
  • Verified no crash when setting a recurring tip to a publisher
20696-Tab.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug crash feature/rewards OS/Android Fixes related to Android browser functionality priority/P1 A very extremely bad problem. We might push a hotfix for it. QA Pass - Android ARM QA Pass - Android Tab QA/Yes regression release-notes/exclude
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants