Search Issue Tracker
Won't Fix
Votes
70
Found in
2021.3.31f1
2022.3.12f1
2023.1.17f1
2023.2.0b15
2023.3.0a11
6000.0.0b11
Issue ID
UUM-55105
Regression
No
[Android] The Player crashes with a "JNI ERROR (app bug)" error when the global reference table gets overflowed by BillingClientStateListener
Reproduction steps:
1. Open the attached project "ReproProj" with Android Platform
2. Open the “PATHNAME” Scene
3. Install the Android LogCat package
4. Open the Android LogCat package (Window > Analysis > Android LogCat)
5. Open the Build Settings window (File > Build Settings)
6. Change the language of the Android device to Japanese
7. Build and Run on an Android device
8. Close Player
9. Change the language to English
10. Open the Player
11. Observe the Warning message in Android LogCat “Billing service disconnected.”
12. Let Player run for about 15 minutes
Expected result: "Billing service disconnected" occurs once and the Player does not crash and continues to run
Actual result: The error message "Billing service disconnected" keeps occurring and the Player crashes
Reproducible with: 4.9.4 (2023.1.17f1), 4.10.0 (2021.3.31f1, 2022.3.12f1, 2023.1.17f1, 2023.2.0b15, 2023.3.0a11)
Reproducible on:
VLNQA00318, Oneplus OnePlus 7 Pro (GM1913), Android 11, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00332, Samsung Galaxy XCover4 (SM-G390F), Android 9, CPU: Exynos 7 Quad 7570, GPU: Mali-T720
Not reproducible on:
IOS devices (User reported)
VLNQA00231, Huawei HUAWEI Mate 20 Pro (LYA-L29), Android 9, CPU: HiSilicon Kirin 980, GPU: Mali-G76
VLNQA00231, Samsung Galaxy A5(2017) (SM-A520F), Android 8.0.0, CPU: Exynos 7 Octa 7880, GPU: Mali-T830
VLNQA00325, Samsung Galaxy Note10 (SM-N970F), Android 12, CPU: Exynos 9 (9825), GPU: Mali-G76
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Note:
- 2021.3.31f1 did not crash, but "Billing service disconnected" keeps occurring
-
sawada_sg
Apr 16, 2024 01:55
Once the status was "Duplicate" and closed, but after I commented, it change from "Duplicate" to "Active".
Does that mean you'll re-investigate? Thank you.
-
sawada_sg
Apr 16, 2024 00:43
We have confirmed that this issue does not occur with Unity2021.3.37f1 and IAP 4.11.0. Thank you.
I have a question because I need accurate information to report to my boss.
It looks like the link in the answer from Unity is broken. Is the following correct?
https://issuetracker.unity3d.com/issues/android-addressables-player-crashes-with-a-jni-error-error-when-built-on-android
The above issues are Fixed in 2020.3.X, 2021.2.X, 2022.1.X.This issue is Found in
2021.3.31f1, 2022.3.12f1, 2023.1.17f1, 2023.2.0b15, 2023.3.0a11 .It occurred in a newer version than Fixed, so it would be strange to mark it as resolved since it overlaps with the above issue. If the link is wrong, please let me know the correct link.
By the way, the forum below provides information that it has been fixed in IAP 4.11.0.
https://forum.unity.com/threads/seems-global-reference-table-overflow-by-billingclientstatelistener-at-billing-server-disconnected.1485207/Additionally, the release notes for IAP 4.11.0 include the following.
-Fixed AndroidJavaObject not being disposed causing a global reference table overflow in an edge case.Is this fix relevant?
-
stekatsaros
Mar 13, 2024 06:46
I still keep getting this error with around 6% of my user base, for almost 3 months. It would be great if this can be fixed
-
sawada_sg
Mar 13, 2024 02:45
Apple's Privacy Policy is set to go into effect on May 1st.
https://developer.apple.com/news/?id=3d8a9yyh
We are releasing iOS and Android, we need to update to the latest Unity for iOS, but the latest version has this issue which causes problems with Android. (That is why we are currently using 2021.3.26f1).
If this issue is not resolved, we will not be able to make the next release of our app.
We would like you to fix this issue for the next LTS release around April 5th.
This is the date we are considering to build the app with the new Unity, test it, and release it towards the beginning of May. I believe that not only we, but all Mobile Application Developers around the world will be on this timeline.
If this is difficult, can you give us an estimated time of arrival?
We are having a very difficult time with this issue in terms of scheduling our app release.
Thank you in advance. -
sawada_sg
Mar 08, 2024 04:43
Sorry, the previous link was broken.
-
sawada_sg
Mar 08, 2024 04:38
It has been almost 6 months since this bug was registered. When will this bug be fixed?
The forum post that triggered it is below. hw_pete seems to have provided a fix as well.
https://forum.unity.com/threads/seems-global-reference-table-overflow-by-billingclientstatelistener-at-billing-server-disconnected .1485207/We need to upgrade our version of Unity to comply with Apple's Privacy Manifest. However, we cannot upgrade the version of Unity in the Android environment because this bug involving billing is still present.
We would like to avoid having separate versions for iOS and Android.
Best regards.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note:
Fixed with another issue