microg / microg/GmsCore

[com.ubs.swidKXJ.android] FATAL EXCEPTION when casting com.google.android.play.core.review.internal.zzu

Open
#1,916 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
14.6k
Forks
3.2k
Avg merge
12d 11h
Merged PRs (30d)
4

Description

Affected app
Name: UBS & UBS key4
Package id: [com.ubs.swidKXJ.android]

Describe the bug
Application crashes since several months on startup.

Possible workaround is to remove the app and reinstall it... Until it crashed again.

To Reproduce
Steps to reproduce the behavior:

  1. Open the application
  2. Type your credentials
  3. Wait for the home page to load

Expected behavior
No crash.

Screenshots
N/A

Log

04-17 21:47:09.993  2852  2864 I swidKXJ.androi: Method exceeds compiler instruction limit: 16985 in java.util.Map com.ubs.swidKXJ.android.DaggerKXJ_MobileBankingAppAndroidApplication_HiltComponents_SingletonC$ViewModelCImpl.getHiltViewModelMap()
04-17 21:47:10.124  2852  2852 I PlayCore: UID: [10221]  PID: [2852] ReviewService : requestInAppReview (com.ubs.swidKXJ.android)
04-17 21:47:10.129  2852  3375 I PlayCore: UID: [10221]  PID: [2852] ReviewService : Initiate binding to the service.
04-17 21:47:10.132  1516  6709 W ActivityManager: Unable to start service Intent { act=com.google.android.finsky.BIND_IN_APP_REVIEW_SERVICE pkg=com.android.vending } U=0: not found
04-17 21:47:10.132  2852  3375 I PlayCore: UID: [10221]  PID: [2852] ReviewService : Failed to bind to the service.
[...]
04-17 21:47:10.457  2852  2852 E AndroidRuntime: FATAL EXCEPTION: main
04-17 21:47:10.457  2852  2852 E AndroidRuntime: Process: com.ubs.swidKXJ.android, PID: 2852
04-17 21:47:10.457  2852  2852 E AndroidRuntime: java.lang.ClassCastException: com.google.android.play.core.review.internal.zzu cannot be cast to com.google.android.play.core.review.ReviewException
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at com.ubs.swidKXJ.mobilebanking.homescreen.home.HomeViewModel.WiJ(:0)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at com.ubs.swidKXJ.mobilebanking.homescreen.home.HomeViewModel.invokeGooglePlayInAppReviewAPI$lambda-0(Unknown Source:12)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at com.ubs.swidKXJ.mobilebanking.homescreen.home.HomeViewModel.WiJ(:0)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at com.ubs.swidKXJ.mobilebanking.homescreen.home.HomeViewModel.a(Unknown Source:11)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at com.ubs.swidKXJ.mobilebanking.homescreen.home.g.KvJ(:0)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at com.ubs.swidKXJ.mobilebanking.homescreen.home.g.onComplete(Unknown Source:9)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at com.google.android.gms.tasks.zzi.uoc(:0)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at com.google.android.gms.tasks.zzi.run(Unknown Source:6)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:938)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:201)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:288)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:7870)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
04-17 21:47:10.457  2852  2852 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

System
Android Version: [12]
Custom ROM: [/e/OS 1.9.1]

microG
microG Core version: [0.2.27.223616-1]
microG Self-Check results: [All ticked]

Additional context
N/A

Thanks for your support and hard work!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing HomeViewModel.invokeGooglePlayInAppReviewAPI from the crash stack and inspect how the failed Play Core review-service binding is handled. Reproduce on Android 12 with /e/OS and microG, then verify that an unavailable review service does not cause an uncaught ClassCastException or prevent the home page from loading.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.