Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug Android crash on Unity 2019.4.26f

Discussion in 'Android' started by widogame, May 28, 2021.

  1. widogame

    widogame

    Joined:
    Jul 20, 2020
    Posts:
    12
    Hi there,
    I got crashes on Android 7.0 & 7.1. My Unity version is 2019.4.26f, I'm not sure if it would be fixed on Unity 2019.4.27f or not.
    Here's stacktrace I got from Android Vital on Google Play Console:
    Code (CSharp):
    1. Caused by java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
    2.       at android.view.ViewGroup.addViewInner(ViewGroup.java:4636)
    3.       at android.view.ViewGroup.addView(ViewGroup.java:4477)
    4.       at android.view.ViewGroup.addView(ViewGroup.java:4417)
    5.       at android.view.ViewGroup.addView(ViewGroup.java:4390)
    6.       at com.unity3d.player.j.a()
    7.       at com.unity3d.player.UnityPlayer$21.surfaceCreated()
    8.       at android.view.SurfaceView.updateWindow(SurfaceView.java:662)
    9.       at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:258)
    10.       at android.view.View.dispatchWindowVisibilityChanged(View.java:11278)
    11.       at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1293)
    12.       at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1293)
    13.       at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1293)
    14.       at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1293)
    15.       at com.android.internal.policy.DecorView.dispatchWindowVisibilityChanged(DecorView.java:454)
    16.       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1875)
    17.       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1567)
    18.       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7282)
    19.       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:930)
    20.       at android.view.Choreographer.doCallbacks(Choreographer.java:705)
    21.       at android.view.Choreographer.doFrame(Choreographer.java:640)
    22.       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:916)
    23.       at android.os.Handler.handleCallback(Handler.java:751)
    24.       at android.os.Handler.dispatchMessage(Handler.java:95)
    25.       at android.os.Looper.loop(Looper.java:154)
    26.       at android.app.ActivityThread.main(ActivityThread.java:6823)
    27.       at java.lang.reflect.Method.invoke(Method.java)
    28.       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1557)
    29.       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)
     
  2. MattherHain

    MattherHain

    Joined:
    Nov 10, 2017
    Posts:
    15
    Same here
     
  3. widogame

    widogame

    Joined:
    Jul 20, 2020
    Posts:
    12
    Anyone got this bug?
     
  4. benke123

    benke123

    Joined:
    Jun 1, 2021
    Posts:
    1
    Hi, we have the same problem after upgrading Unity to 2020.

    Code (CSharp):
    1. 2021-06-01 16:06:13.022 18219-18219/com.blablab E/SurfaceView: Exception configuring surface
    2.     java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
    3.        at android.view.ViewGroup.addViewInner(ViewGroup.java:5038)
    4.        at android.view.ViewGroup.addView(ViewGroup.java:4869)
    5.        at android.view.ViewGroup.addView(ViewGroup.java:4809)
    6.        at android.view.ViewGroup.addView(ViewGroup.java:4782)
    7.        at com.unity3d.player.f.a(Unknown Source:4)
    8.        at com.unity3d.player.UnityPlayer$19.surfaceCreated(Unknown Source:18)
    9.        at android.view.SurfaceView.updateSurface(SurfaceView.java:675)
    10.        at android.view.SurfaceView$2.onPreDraw(SurfaceView.java:143)
    11.        at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:977)
    12.        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2516)
    13.        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1500)
    14.        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7341)
    15.        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1048)
    16.        at android.view.Choreographer.doCallbacks(Choreographer.java:843)
    17.        at android.view.Choreographer.doFrame(Choreographer.java:775)
    18.        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1034)
    19.        at android.os.Handler.handleCallback(Handler.java:873)
    20.        at android.os.Handler.dispatchMessage(Handler.java:99)
    21.        at android.os.Looper.loop(Looper.java:201)
    22.        at android.app.ActivityThread.main(ActivityThread.java:6882)
    23.        at java.lang.reflect.Method.invoke(Native Method)
    24.        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    25.        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

    I traced it to version 2020.3.4, 2020.3.3 works fine. My guess is that it was cause by this fix (seems like it was merged to 2019.4.26 too):
    • Android: Fixed an issue with the black Unity view that occurred after pausing the app when in-app purchase dialog is shown. (1249179)
    It seems like there was some new m_PersistentUnitySurface added to UnityPlayer that listens to
    surfaceCreated/surfaceChanged/surfaceDestroyed callbacks from the holder of the SurfaceView returned by
    CreateGlView. The new class seems to add a view to the UnityPlayer in the surfaceCreated event.
    This works fine the first time but it seems like there are scenarios where the view was already added in a previous surfaceCreated event and that's when the exception is thrown (since the view it's trying to add already have a parent). The only place it seems to remove the view is in checkResumePlayer. So it seems like there is either some missing check for if parent is already set, or a that it's missing to remove the view from UnityPlayer at some point (surfaceDestroyed?)?

    We are integrating Unity in a React-native application where we create a UnityPlayer in our existing activity (the same UnityPlayer instance is used through the app). The UnityPlayer is then added/removed from a view when we want to show/hide it. This seems to trigger the surface to be recreated, which then triggers the exception. In our case it doesn't crash the app, but leads to a black screen which then seems to be fine if you minimize the app and take it back in focus.

    I tried to hack around the issue by extending UnityPlayer and overriding onViewAdded like so:

    public void onViewAdded(View view) {
    super.onViewAdded(view);
    if(view.getClass() != SurfaceView.class) {
    this.removeView(view);
    }
    }

    This seems to work for out case, but really hacky way to get around the issue and I'm not sure if it can have any other consequences (apart from removing splash screen too).

    What's the use of the m_PersistentUnitySurface anyway, any other ideas for how to get around this? Or can this be fixed in a future release? Seems like there are more people that has this issue.
     
  5. MrAlter

    MrAlter

    Joined:
    May 15, 2013
    Posts:
    9
    The same problem after migrate to Unity 2020.3 lts

    Help, please!

    Code (CSharp):
    1. java.lang.IllegalStateException
    2. The specified child already has a parent. You must call removeView() on the child's parent first.
    3.  
    4. java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
    5.     at android.view.ViewGroup.addViewInner(ViewGroup.java:4419)
    6.     at android.view.ViewGroup.addView(ViewGroup.java:4260)
    7.     at android.view.ViewGroup.addView(ViewGroup.java:4200)
    8.     at android.view.ViewGroup.addView(ViewGroup.java:4173)
    9.     at com.unity3d.player.j.a(Unknown Source)
    10.     at com.unity3d.player.UnityPlayer$21.surfaceCreated(Unknown Source)
    11.     at android.view.SurfaceView.updateWindow(SurfaceView.java:634)
    12.     at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:251)
    13.     at android.view.View.dispatchWindowVisibilityChanged(View.java:10375)
    14.     at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
    15.     at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
    16.     at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
    17.     at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
    18.     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1585)
    19.     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1295)
    20.     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6400)
    21.     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:876)
    22.     at android.view.Choreographer.doCallbacks(Choreographer.java:688)
    23.     at android.view.Choreographer.doFrame(Choreographer.java:623)
    24.     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:862)
    25.     at android.os.Handler.handleCallback(Handler.java:754)
    26.     at android.os.Handler.dispatchMessage(Handler.java:95)
    27.     at android.os.Looper.loop(Looper.java:163)
    28.     at android.app.ActivityThread.main(ActivityThread.java:6396)
    29.     at java.lang.reflect.Method.invoke(Native Method)
    30.     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
    31.     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
     
  6. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    Can anyone please report a bug with a project to reproduce the issue for this?
     
  7. MrAlter

    MrAlter

    Joined:
    May 15, 2013
    Posts:
    9
    Dont have device with android 7. =(
    By our logs looks like player saw Ads and after has crash.
     
  8. barkovandrei

    barkovandrei

    Joined:
    Nov 18, 2015
    Posts:
    7
    Same problem on Unity 2020.3.9f1

    Reports from Firebase Crashlytics: Android 7 - 100%

    Code (CSharp):
    1. Caused by java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
    2.       at android.view.ViewGroup.addViewInner(ViewGroup.java:4656)
    3.       at android.view.ViewGroup.addView(ViewGroup.java:4497)
    4.       at android.view.ViewGroup.addView(ViewGroup.java:4437)
    5.       at android.view.ViewGroup.addView(ViewGroup.java:4410)
    6.       at com.unity3d.player.f.a()
    7.       at com.unity3d.player.UnityPlayer$19.surfaceCreated()
    8.       at android.view.SurfaceView.updateWindow(SurfaceView.java:656)
    9.       at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:266)
    10.       at android.view.View.dispatchWindowVisibilityChanged(View.java:11077)
    11.       at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
    12.       at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
    13.       at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
    14.       at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
    15.       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1813)
    16.       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1515)
    17.       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7091)
    18.       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:927)
    19.       at android.view.Choreographer.doCallbacks(Choreographer.java:702)
    20.       at android.view.Choreographer.doFrame(Choreographer.java:638)
    21.       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:913)
    22.       at android.os.Handler.handleCallback(Handler.java:751)
    23.       at android.os.Handler.dispatchMessage(Handler.java:95)
    24.       at android.os.Looper.loop(Looper.java:154)
    25.       at android.app.ActivityThread.main(ActivityThread.java:6682)
    26.       at java.lang.reflect.Method.invoke(Method.java)
    27.       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    28.       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
    Plugins used in projects: Firebase, Admob, Facebook
     
    ngoson107 likes this.
  9. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    Unity Ads or something else?
     
  10. MrAlter

    MrAlter

    Joined:
    May 15, 2013
    Posts:
    9
    We use mediation admob, facebook, unity ads. Don't know who exact.
     
  11. Eldirfar

    Eldirfar

    Joined:
    Feb 9, 2014
    Posts:
    56
    Have the same problem after migrating to 2019.4.26 from 2018.4.
    Any update on this issue?
     
  12. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    We are still looking for a bug report to reproduce the issue.
    I had a look at the Android's SurfaceView implementations on Android 7.x and 8.x and there were some changes that could cause this.
     
  13. karthick_highbrow

    karthick_highbrow

    Joined:
    Jan 15, 2016
    Posts:
    1
    New
    Same problem on Unity 2019.4.28f1

    Reports from Firebase Crashlytics: Android 7 - 100% Recent days so many crashes happened

    using IronSource Mediation - admob,adcolony,facebook and unity
     
    Alanmars0214 and ngoson107 like this.
  14. Eldirfar

    Eldirfar

    Joined:
    Feb 9, 2014
    Posts:
    56
    Similarly, sadly we couldn't reproduce it on our end.
     
  15. barkovandrei

    barkovandrei

    Joined:
    Nov 18, 2015
    Posts:
    7
  16. xuan_celestial

    xuan_celestial

    Joined:
    Jul 17, 2018
    Posts:
    18
    Same Issue here with Unity 2020.3.12f1, also 100% from Android 7 in Firebase Crashlytics.
     
    ngoson107 likes this.
  17. Shefich

    Shefich

    Joined:
    May 23, 2013
    Posts:
    84
    Same issue with Unity 2019.4.28.
    Issue 1: The specified child already has a parent. You must call removeView() on the child's parent first.
    Issue 2: com.unity3d.player.UnityPlayer$21.surfaceDestroyed

    Issues appeared after migration to this version of unity from 2019.4.19.
    Also have various mediation networks in my project and don't know the cause of the crashes.
     
    LinnsTo and ngoson107 like this.
  18. fkilius

    fkilius

    Joined:
    Jan 22, 2019
    Posts:
    11
    We have the same issue using Unity 2021.1.7f1, unity ads, admob and mediation.
    Have you found any workaround?
    This is our error:

    java.lang.Error: FATAL EXCEPTION [main]
    Unity version : 2021.1.7f1
    Device model : samsung SM-G570F
    Device fingerprint: samsung/on5xeltejv/on5xelte:7.0/NRD90M/G570FXXU1BQL2:user/release-keys
    Build Type : Release
    Scripting Backend : IL2CPP
    ABI : armeabi-v7a
    Strip Engine Code : true
    Caused by
    at android.view.ViewGroup.addViewInner (ViewGroup.java:4658)
    at android.view.ViewGroup.addView (ViewGroup.java:4499)
    at android.view.ViewGroup.addView (ViewGroup.java:4439)
    at android.view.ViewGroup.addView (ViewGroup.java:4412)
    at com.unity3d.player.f.a (Unknown Source)
    at com.unity3d.player.UnityPlayer$19.surfaceCreated (Unknown Source)
    at android.view.SurfaceView.updateWindow (SurfaceView.java:656)
    at android.view.SurfaceView.onWindowVisibilityChanged (SurfaceView.java:266)
    at android.view.View.dispatchWindowVisibilityChanged (View.java:11139)
    at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1290)
    at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1290)
    at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1290)
    at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1290)
    at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1842)
    at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1537)
    at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7183)
    at android.view.Choreographer$CallbackRecord.run (Choreographer.java:959)
    at android.view.Choreographer.doCallbacks (Choreographer.java:734)
    at android.view.Choreographer.doFrame (Choreographer.java:670)
    at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:945)
    at android.os.Handler.handleCallback (Handler.java:751)
    at android.os.Handler.dispatchMessage (Handler.java:95)
    at android.os.Looper.loop (Looper.java:154)
    at android.app.ActivityThread.main (ActivityThread.java:6776)
    at java.lang.reflect.Method.invoke (Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1518)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
     
  19. saevioapps

    saevioapps

    Joined:
    Aug 7, 2014
    Posts:
    19
    After upgrading from Unity 2018 to 2019.4.26 we can see a lot of these errors reported for Android 6, 5,1, 5.

    Code (CSharp):
    1. Type
    2. java.lang.Error
    3.  
    4. Show less
    5. expand_less
    6. java.lang.Error: FATAL EXCEPTION [main]
    7. Unity version     : 2019.4.26f1
    8. Device model      : LGE LG-K220
    9. Device fingerprint: lge/mk6p_global_com/mk6p:6.0.1/MXB48T/1904311239303:user/release-keys
    10. Caused by
    11.   at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:3924)
    12.   at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:3942)
    13.   at android.app.ActivityThread.access$1500 (ActivityThread.java:163)
    14.   at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1416)
    15.   at android.os.Handler.dispatchMessage (Handler.java:102)
    16.   at android.os.Looper.loop (Looper.java:148)
    17.   at android.app.ActivityThread.main (ActivityThread.java:5585)
    18.   at java.lang.reflect.Method.invoke (Native Method)
    19.   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:730)
    20.   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:620)
    21. Caused by: java.lang.NullPointerException:
    22.   at com.unity3d.player.UnityPlayer$21.surfaceDestroyed (Unknown Source)
    23.   at android.view.SurfaceView.updateWindow (SurfaceView.java:581)
    24.   at android.view.SurfaceView.onWindowVisibilityChanged (SurfaceView.java:243)
    25.   at android.view.View.dispatchDetachedFromWindow (View.java:14633)
    26.   at android.view.ViewGroup.removeAllViewsInLayout (ViewGroup.java:4834)
    27.   at android.view.ViewGroup.removeAllViews (ViewGroup.java:4780)
    28.   at com.unity3d.player.UnityPlayer.destroy (Unknown Source)
    29.   at com.unity3d.player.UnityPlayerActivity.onDestroy (UnityPlayerActivity.java:69)
    30.   at android.app.Activity.performDestroy (Activity.java:6449)
    31.   at android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1143)
    32.   at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:3911)
    We see this happening for IronSource mediation with Admob, FB and Unity as well as Admob mediation with just Fb (so at least I think it's not the Unity Ads).
    I don't know how to reproduce this.
     
  20. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    tienhagioi likes this.
  21. Zeeppo-Games

    Zeeppo-Games

    Joined:
    May 13, 2015
    Posts:
    62
    Lots and Lots of the same crash here.
    Unity 2020.3.12f1
     
    Last edited: Jul 6, 2021
  22. Archi_16

    Archi_16

    Joined:
    Apr 7, 2017
    Posts:
    77
    Hi all. Have same problem after updating from Unity 2018.4.23 to Unity 2020.4.3.
    Planned to update to 2020.3.12, because it release notes it says that the Applicatio.Quit crash has been fixed. But @Zeeppo-Games said that they have same issue on that version.
    So what to do?

    Crash stacktrace,

    This is my override Acctivity

    Caused by java.lang.RuntimeException: Unable to destroy activity {com.***.***/com.***.***.OverrideUnityActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.unity3d.player.f.a(android.view.SurfaceView)' on a null object reference
    at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5145)
    at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5168)
    at android.app.ActivityThread.access$1700(ActivityThread.java:229)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1880)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:7406)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

    And also the default one

    Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void com.unity3d.player.f.a(android.view.SurfaceView)' on a null object reference
    at com.unity3d.player.UnityPlayer$19.surfaceDestroyed()
    at android.view.SurfaceView.updateWindow(SurfaceView.java:695)
    at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:322)
    at android.view.View.dispatchDetachedFromWindow(View.java:15912)
    at android.view.ViewGroup.removeAllViewsInLayout(ViewGroup.java:5141)
    at android.view.ViewGroup.removeAllViews(ViewGroup.java:5087)
    at com.unity3d.player.UnityPlayer.destroy()
    at com.unity3d.player.UnityPlayerActivity.onDestroy(UnityPlayerActivity.java:68)
    at android.app.Activity.performDestroy(Activity.java:7130)
    at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1171)
    at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5123)
    at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5168)
    at android.app.ActivityThread.access$1700(ActivityThread.java:229)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1880)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:7406)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
     
  23. mcolombo

    mcolombo

    Joined:
    Sep 27, 2017
    Posts:
    14
    Exact same problem and stacktrace as @saevioapps .
    Using Unity 2020.3.4f1.

    Any progress here?
     
  24. sogonen

    sogonen

    Joined:
    Mar 3, 2017
    Posts:
    6
    @

    Hello @florianpenzkofer any idea when 2020.3.x version will be relased to patch this, we had to remove our latest build from rollout as our crashes peaked.
     
  25. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    Most likely 2020.3.15f1
     
  26. ARPAplus

    ARPAplus

    Joined:
    Jun 5, 2015
    Posts:
    32
    We have a lot of games with this sort of crash built with 2019.4.28f1. Any idea which 2019.4 version will get this fix?
     
  27. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    Probably 2019.4.30f1.
    We still didn't get a bug report with repro project for these problems, so if you have one we would still be happy to check it out to make sure that the fix actually works.
     
  28. mcolombo

    mcolombo

    Joined:
    Sep 27, 2017
    Posts:
    14
    Does Unity version 2021.1.15f1 fix this problem?
    Did anyone try it?

    Thanks in advance.
     
    Last edited: Jul 15, 2021
  29. jperryoddgames

    jperryoddgames

    Joined:
    Sep 18, 2017
    Posts:
    45
    Hey @florianpenzkofer, any updates on when these updated versions might be released? Thanks
     
  30. fkilius

    fkilius

    Joined:
    Jan 22, 2019
    Posts:
    11
    Hy, according to this link the issue is resolved in 2021.1.X version, we are using 2021.1.7f1. Is the fix included in our build or should we upgrade to 2021.1.16f1 to get the fix?
    thanks
     
  31. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    Versions that have the fix:
    2019.4.30
    2020.3.15
    2021.1.17
    2021.2.0b4
     
  32. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    2021.1.17 is scheduled for release on August 11.
    2019.4.30 is scheduled for release on September 1, I hope that we can speed this up but can‘t promise.
    The others are out now.
     
    Riovox likes this.
  33. SDudzic

    SDudzic

    Joined:
    Dec 10, 2015
    Posts:
    3
    Can someone confirm if this potential fix is working?
     
  34. slavomirbanas

    slavomirbanas

    Joined:
    Jun 1, 2020
    Posts:
    5
    Hopefully 2019.4.30 rolls out tomorrow
    Can you confirm the release?
     
    Last edited: Aug 31, 2021
  35. yuliyF

    yuliyF

    Joined:
    Nov 15, 2012
    Posts:
    179
    What about 2021.1.25 - ?
     
  36. yuliyF

    yuliyF

    Joined:
    Nov 15, 2012
    Posts:
    179
    2021.1.26 - ?
     
  37. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    Since the fix was already in 2021.1.17 it should also be in 2021.1.26. Does it not work for you?
     
  38. yuliyF

    yuliyF

    Joined:
    Nov 15, 2012
    Posts:
    179
    I have switched to Unity 2020.3.22f and gotch same error. Please looks

    Code (CSharp):
    1. java.lang.RuntimeException:
    2.   at android.app.ActivityThread.handleReceiver (ActivityThread.java:4453)
    3.   at android.app.ActivityThread.access$1600 (ActivityThread.java:301)
    4.   at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2177)
    5.   at android.os.Handler.dispatchMessage (Handler.java:106)
    6.   at android.os.Looper.loop (Looper.java:246)
    7.   at android.app.ActivityThread.main (ActivityThread.java:8633)
    8.   at java.lang.reflect.Method.invoke (Native Method)
    9.   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:602)
    10.   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)
    11. Caused by: java.lang.ClassNotFoundException:
    12.   at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:207)
    13.   at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
    14.   at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
    15.   at android.app.AppComponentFactory.instantiateReceiver (AppComponentFactory.java:110)
    16.   at androidx.core.app.CoreComponentFactory.instantiateReceiver (CoreComponentFactory.java:60)
    17.   at android.app.ActivityThread.handleReceiver (ActivityThread.java:4446)
    1 error on every user,.. but players can get many sessions
     

    Attached Files:

    nhimmisha likes this.
  39. fkilius

    fkilius

    Joined:
    Jan 22, 2019
    Posts:
    11
    Hy, any update for this issue?
    We are using 2021.1.17f1 and still having the same issue:

    java.lang.Error: FATAL EXCEPTION [main]
    Unity version : 2021.1.17f1
    Device model : Xiaomi M2103K19G
    Device fingerprint: Redmi/camellian_eea/camellian:11/RP1A.200720.011/V12.5.1.0.RKSEUVF:user/release-keys
    Build Type : Release
    Scripting Backend : IL2CPP
    ABI : arm64-v8a
    Strip Engine Code : true
    Caused by
    at android.view.ViewGroup.offsetRectBetweenParentAndChild (ViewGroup.java:6415)
    at android.view.ViewGroup.offsetDescendantRectToMyCoords (ViewGroup.java:6341)
    at android.view.ViewRootImpl.scrollToRectOrFocus (ViewRootImpl.java:4701)
    at android.view.ViewRootImpl.draw (ViewRootImpl.java:4232)
    at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:4076)
    at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:3334)
    at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2134)
    at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:8614)
    at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1035)
    at android.view.Choreographer.doCallbacks (Choreographer.java:858)
    at android.view.Choreographer.doFrame (Choreographer.java:789)
    at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1020)
    at android.os.Handler.handleCallback (Handler.java:938)
    at android.os.Handler.dispatchMessage (Handler.java:99)
    at android.os.Looper.loop (Looper.java:236)
    at android.app.ActivityThread.main (ActivityThread.java:8051)
    at java.lang.reflect.Method.invoke (Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:620)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1011)
     
  40. Shefich

    Shefich

    Joined:
    May 23, 2013
    Posts:
    84
    Hello,

    I have too many crashes like this:

    Code (CSharp):
    1. java.lang.Error: FATAL EXCEPTION [main]
    2. Unity version     : 2019.4.34f1
    3. Device model      : Xiaomi M2004J19C
    4.  
    5. Caused by
    6.   at android.view.ViewGroup.offsetRectBetweenParentAndChild (ViewGroup.java:6417)
    7.   at android.view.ViewGroup.offsetDescendantRectToMyCoords (ViewGroup.java:6343)
    8.   at android.view.ViewRootImpl.scrollToRectOrFocus (ViewRootImpl.java:4694)
    9.   at android.view.ViewRootImpl.draw (ViewRootImpl.java:4230)
    10.   at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:4074)
    11.   at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:3329)
    12.   at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2129)
    13.   at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:8603)
    14.   at android.view.Choreographer$CallbackRecord.run (Choreographer.java:975)
    15.   at android.view.Choreographer.doCallbacks (Choreographer.java:799)
    16.   at android.view.Choreographer.doFrame (Choreographer.java:734)
    17.   at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:960)
    18.   at android.os.Handler.handleCallback (Handler.java:938)
    19.   at android.os.Handler.dispatchMessage (Handler.java:99)
    20.   at android.os.Looper.loop (Looper.java:236)
    21.   at android.app.ActivityThread.main (ActivityThread.java:7864)
    22.   at java.lang.reflect.Method.invoke (Native Method)
    23.   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:620)
    24.   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1011)
     
  41. hamzamirza519

    hamzamirza519

    Joined:
    Dec 30, 2017
    Posts:
    4
    It is not fixed in 2019.4.30. Game is still crashing and its now in bad behavior.
     
  42. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    Please provide more details
     
  43. hamzamirza519

    hamzamirza519

    Joined:
    Dec 30, 2017
    Posts:
    4
    The percentage of Android 11 (SDK 30) is 81.3%.


    java.lang.Error: FATAL EXCEPTION [main]
    Unity version : 2019.4.30f1
    Device model : LGE LM-K420
    Device fingerprint: lge/meh15lm_f/meh15lm:11/RKQ1.210420.001/2206900204908:user/release-keys
    Caused by
    at android.view.ViewGroup.offsetRectBetweenParentAndChild (ViewGroup.java:6359)
    at android.view.ViewGroup.offsetDescendantRectToMyCoords (ViewGroup.java:6288)
    at android.view.ViewRootImpl.scrollToRectOrFocus (ViewRootImpl.java:4619)
    at android.view.ViewRootImpl.draw (ViewRootImpl.java:4179)
    at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:4022)
    at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:3293)
    at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2035)
    at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:8585)
    at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1056)
    at android.view.Choreographer.doCallbacks (Choreographer.java:878)
    at android.view.Choreographer.doFrame (Choreographer.java:811)
    at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1041)
    at android.os.Handler.handleCallback (Handler.java:938)
    at android.os.Handler.dispatchMessage (Handler.java:99)
    at android.os.Looper.loop (Looper.java:223)
    at android.app.ActivityThread.main (ActivityThread.java:7888)
    at java.lang.reflect.Method.invoke (Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:592)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:981)
     
    Last edited: Apr 26, 2022
  44. hamzamirza519

    hamzamirza519

    Joined:
    Dec 30, 2017
    Posts:
    4
    Did you find out?
     
  45. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    There isn't really any indication that this is the same problem as the original bug discussed in this thread. The callstack is different.
    Pleaser report a new bug with rep[ro project if you think that this is a Unity problem.
     
  46. user_spartans

    user_spartans

    Joined:
    May 14, 2020
    Posts:
    3
    Can you please help us with this crash, our game is going in bad behaviour, i am facing this crash after shifting from 2019.4.25f1 to 2020.3.25, and one thing more is there any relation of this crash with URP?

    java.lang.Error: FATAL EXCEPTION [main]
    Unity version : 2020.3.25f1
    Device model : TECNO MOBILE LIMITED TECNO KG5
    Device fingerprint: TECNO/KG5-GL/TECNO-KG5:11/RP1A.200720.011/220214V776:user/release-keys
    Build Type : Release
    Scripting Backend : IL2CPP
    ABI : armeabi-v7a
    Strip Engine Code : true
    Caused by
    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 (Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:627)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:997)
     
  47. Shefich

    Shefich

    Joined:
    May 23, 2013
    Posts:
    84
    Unity Version: 2019.4.38f1

    Code (CSharp):
    1. Caused by java.lang.IllegalArgumentException
    2. parameter must be a descendant of this view
    3. android.view.ViewGroup.offsetRectBetweenParentAndChild (ViewGroup.java:6078)
    4. android.view.ViewGroup.offsetDescendantRectToMyCoords (ViewGroup.java:6007)
    5. android.view.ViewRootImpl.scrollToRectOrFocus (ViewRootImpl.java:3621)
    6. android.view.ViewRootImpl.draw (ViewRootImpl.java:3204)
    7. android.view.ViewRootImpl.performDraw (ViewRootImpl.java:3129)
    8. android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2498)
    9. android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1473)
    10. android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7215)
    11. android.view.Choreographer$CallbackRecord.run (Choreographer.java:1004)
    12. android.view.Choreographer.doCallbacks (Choreographer.java:816)
    13. android.view.Choreographer.doFrame (Choreographer.java:751)
    14. android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:990)
    15. android.os.Handler.handleCallback (Handler.java:873)
    16. android.os.Handler.dispatchMessage (Handler.java:99)
    17. android.os.Looper.loop (Looper.java:280)
    18. android.app.ActivityThread.main (ActivityThread.java:6706)
    19. java.lang.reflect.Method.invoke (Method.java)
    20. com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
    21. com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
     
    user_spartans likes this.
  48. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    We will need more information than just a callstack to look into this problem.
     
  49. user_spartans

    user_spartans

    Joined:
    May 14, 2020
    Posts:
    3
  50. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    474
    Ideally a bug report with repro project and steps on how to reproduce.
    If you can’t reproduce it: Share some details of your project. Which devices are affected? Does it depend on specific versions of Android? Are you using any third-party Java plugins? What have you tried to reproduce it?