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

Game Crash With Error Parameter Must Be A Descendant Of This View #2646

Closed
MuhammadWaqasOfficial opened this issue Apr 13, 2023 · 11 comments
Closed
Assignees
Labels
P2 Issue. SDK Sdk engineering issue.

Comments

@MuhammadWaqasOfficial
Copy link

Describe your environment

  • Exception java.lang.Error: FATAL EXCEPTION [main]
  • Unity version : 2020.3.41f1
  • GMA Unity Version : 7.4.1
  • Device model : Xiaomi 220333QAG
  • Device fingerprint: Redmi/fog_global/fog:12/SKQ1.211103.001/V13.0.5.0.SGEMIXM:user/release-keys
  • Build Type : Release
  • Scripting Backend : IL2CPP
  • ABI : arm64-v8a
  • Strip Engine Code : true

Describe the problem

Crash Detail:

Caused by: java.lang.IllegalArgumentException: parameter must be a descendant of this view
at android.view.ViewGroup.offsetRectBetweenParentAndChild (ViewGroup.java:6335)
at android.view.ViewGroup.offsetDescendantRectToMyCoords (ViewGroup.java:6264)
at android.view.ViewRootImpl.scrollToRectOrFocus (ViewRootImpl.java:4984)
at android.view.ViewRootImpl.draw (ViewRootImpl.java:4527)
at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:4370)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:3481)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2272)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:8999)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1160)
at android.view.Choreographer.doCallbacks (Choreographer.java:950)
at android.view.Choreographer.doFrame (Choreographer.java:879)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1142)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:210)
at android.os.Looper.loop (Looper.java:299)
at android.app.ActivityThread.main (ActivityThread.java:8309)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1038)

They said it is resolved in #2353 , but it is still happening in 7.4.1.

@NVentimiglia NVentimiglia self-assigned this Apr 13, 2023
@NVentimiglia NVentimiglia added P2 Issue. SDK Sdk engineering issue. labels Apr 13, 2023
@NVentimiglia
Copy link
Member

Hi @MuhammadWaqasOfficial

Thank you for reaching out. We are working on the issue. Duplicate of

@imdad-codora
Copy link

Hi @MuhammadWaqasOfficial

Thank you for reaching out. We are working on the issue. Duplicate of

following this thread.

@MuhammadWaqasOfficial
Copy link
Author

what should i do now? i mean wait for GMA unity next version like 8.0.1 or GMA Unity 7.4.1 is corrected?
i don't know much about git and how things works on git. That's way i am looking for direction.
Thanks

copybara-service bot pushed a commit that referenced this issue Apr 14, 2023
copybara-service bot pushed a commit that referenced this issue Apr 14, 2023
copybara-service bot pushed a commit that referenced this issue Apr 14, 2023
@pierrenayagam
Copy link

is this resolved? do i need to update Admob SdK?

copybara-service bot pushed a commit that referenced this issue Apr 20, 2023
copybara-service bot pushed a commit that referenced this issue Apr 20, 2023
@gollobo
Copy link

gollobo commented May 2, 2023

They commit the fix for the release of 8.1.0... and they remove it hours before. So we continue without the fix after many months and be the biggest bug of this plugin...
@NVentimiglia Will the fix be added again? It’s starting to get worse with the latest updates as many developers have written and for many Google Play is starting to penalize them. Please do not ignore this error

@MuhammadWaqasOfficial
Copy link
Author

i can also confirm this in my 4 games with 8.1.0. I updated my games with hope that it is fixed in 8.1.0 but still getting same crash.

@MuhammadWaqasOfficial
Copy link
Author

GMA 8.1.0

Exception java.lang.Error: FATAL EXCEPTION [main]
Unity version : 2021.3.23f1
Device model : INFINIX MOBILITY LIMITED Infinix X657B
Device fingerprint: Infinix/X657B-OP-S2/Infinix-X657B:11/RP1A.200720.011/221121V1102:user/release-keys
Build Type : Release
Scripting Backend : IL2CPP
ABI : armeabi-v7a
Strip Engine Code : true

Caused by: java.lang.IllegalArgumentException: parameter must be a descendant of this view
at android.view.ViewGroup.offsetRectBetweenParentAndChild (ViewGroup.java:6372)
at android.view.ViewGroup.offsetDescendantRectToMyCoords (ViewGroup.java:6298)
at android.view.ViewRootImpl.scrollToRectOrFocus (ViewRootImpl.java:4676)
at android.view.ViewRootImpl.draw (ViewRootImpl.java:4225)
at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:4069)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:3328)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2141)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:8568)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1030)
at android.view.Choreographer.doCallbacks (Choreographer.java:840)
at android.view.Choreographer.doFrame (Choreographer.java:772)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1002)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:268)
at android.app.ActivityThread.main (ActivityThread.java:8016)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:627)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:997)

@billyhct
Copy link

billyhct commented May 8, 2023

Hi @MuhammadWaqasOfficial

Thank you for reaching out. We are working on the issue. Duplicate of

We experienced similar issue in latest v8.1.0 and there is a report that someone fixed it by:

This crash has been completely resolved after calling 'AdView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS)'. ( See the attached screenshot )
Because the log contains only ViewGroup and ViewRootImpl, it is not easy to find out that this crash occurs by AdView ( actually by WebView ).

Refer from: https://groups.google.com/g/google-admob-ads-sdk/c/EsLEaoRjyNM
I am trying to figure out it how to get it done within Unity but it seems quite complicated to modify the jar/dll.
Please help to fix it in next release or at least public the access of AdView in Unity plugin so that we can configure ourselves.

Thank you very much!

copybara-service bot pushed a commit that referenced this issue May 10, 2023
copybara-service bot pushed a commit that referenced this issue May 10, 2023
copybara-service bot pushed a commit that referenced this issue May 10, 2023
@MuhammadWaqasOfficial
Copy link
Author

want to update about this crash.
I update my game with 8.2.0 (2 days ago) and so far didn't see any this "Parameter Must Be A Descendant Of This View" crash. On both play console and firebase crashlytics.
Will share more info here after upgrading my games with 8.2.0.
Thanks

@fedekilius
Copy link

Hi all, I'm using the plugin 8.4.1 but still getting the error:

Exception java.lang.Error: FATAL EXCEPTION [main]
Unity version : 2021.3.10f1
Device model : ZTE ZTE A7040
Device fingerprint: ZTE/EEA_P606F01/P606F01:11/RP1A.201005.001/20230807.195210:user/release-keys
Build Type : Release
Scripting Backend : IL2CPP
ABI : arm64-v8a
Strip Engine Code : true

Caused by: java.lang.IllegalArgumentException: parameter must be a descendant of this view
at android.view.ViewGroup.offsetRectBetweenParentAndChild (ViewGroup.java:6370)
at android.view.ViewGroup.offsetDescendantRectToMyCoords (ViewGroup.java:6289)
at android.view.ViewRootImpl.scrollToRectOrFocus (ViewRootImpl.java:4542)
at android.view.ViewRootImpl.draw (ViewRootImpl.java:4108)
at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:3952)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:3213)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2024)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:8321)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1048)
at android.view.Choreographer.doCallbacks (Choreographer.java:858)
at android.view.Choreographer.doFrame (Choreographer.java:793)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1033)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:257)
at android.app.ActivityThread.main (ActivityThread.java:8390)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:603)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)

@tritruonglihuhugames
Copy link

tritruonglihuhugames commented Oct 11, 2023

Hi all, I'm using the plugin 8.4.1 but still getting the error:

Exception java.lang.Error: FATAL EXCEPTION [main] Unity version : 2021.3.10f1 Device model : ZTE ZTE A7040 Device fingerprint: ZTE/EEA_P606F01/P606F01:11/RP1A.201005.001/20230807.195210:user/release-keys Build Type : Release Scripting Backend : IL2CPP ABI : arm64-v8a Strip Engine Code : true

Caused by: java.lang.IllegalArgumentException: parameter must be a descendant of this view at android.view.ViewGroup.offsetRectBetweenParentAndChild (ViewGroup.java:6370) at android.view.ViewGroup.offsetDescendantRectToMyCoords (ViewGroup.java:6289) at android.view.ViewRootImpl.scrollToRectOrFocus (ViewRootImpl.java:4542) at android.view.ViewRootImpl.draw (ViewRootImpl.java:4108) at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:3952) at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:3213) at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2024) at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:8321) at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1048) at android.view.Choreographer.doCallbacks (Choreographer.java:858) at android.view.Choreographer.doFrame (Choreographer.java:793) at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1033) at android.os.Handler.handleCallback (Handler.java:938) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loop (Looper.java:257) at android.app.ActivityThread.main (ActivityThread.java:8390) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:603) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)

Try to use External Dependency Manager for Unity v1.2.176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Issue. SDK Sdk engineering issue.
Projects
None yet
Development

No branches or pull requests

8 participants