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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[Fixed] Android Crash - overflow of global references for android.view.MotionEvent

Discussion in 'Android' started by silva_raptor, Jun 19, 2022.

  1. Revolter

    Revolter

    Joined:
    Mar 15, 2014
    Posts:
    216
    Bro, do you even read? It was mentioned a little bit above
    upload_2022-8-10_14-22-54.png
     
  2. linnikoles88

    linnikoles88

    Joined:
    Dec 25, 2018
    Posts:
    2
    Sorry I missed it, I only read about version 2021.3.8f1. But version 2020.3.38f1 is still not available
     
    Revolter likes this.
  3. Shefich

    Shefich

    Joined:
    May 23, 2013
    Posts:
    107
    can you specify the release date of 2020.3.38?
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,678
    I think it's August 17.
     
    Shefich likes this.
  5. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
    Any update on this release?

    We're desperately awaiting this fix.
     
    MMilZal likes this.
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,678
    Last edited: Aug 18, 2022
    larku likes this.
  7. bfox

    bfox

    Joined:
    Jun 30, 2014
    Posts:
    21
  8. bfox

    bfox

    Joined:
    Jun 30, 2014
    Posts:
    21
  9. akiyamaexe

    akiyamaexe

    Joined:
    Mar 3, 2020
    Posts:
    12
    It also happens on 2022.1.13f.1

    When will the fixes be reflected in the 2022.x version?
     
    unity_awUpacKcgHt1UA likes this.
  10. Sailendu

    Sailendu

    Joined:
    Jul 23, 2009
    Posts:
    250
    @Tomas1856 Is the issue related to legacy input system mentioned in the quoted post also fixed in the new versions (2020.3.38f1 and 2021.3.8f1)?
     
  11. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,678
    Yes it's fixed, it was affecting both input systems.
     
    Sailendu likes this.
  12. vividream

    vividream

    Joined:
    Nov 1, 2016
    Posts:
    7
    2020.3.38f1 is have this question.
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    pid: 0, tid: 9626 >>> linkdesks.pop.bubblegames.bubbleshooter <<<

    backtrace:
    #00 pc 0x000000000004e178 /apex/com.android.runtime/lib64/bionic/libc.so (abort+168)
    #01 pc 0x00000000005527c4 /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+2260)
    #02 pc 0x0000000000013990 /system/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+76)
    #03 pc 0x0000000000012fb4 /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+320)
    #04 pc 0x0000000000384138 /apex/com.android.art/lib64/libart.so (art::JavaVMExt::AddGlobalRef(art::Thread*, art::ObjPtr<art::mirror::Object>)+268)
    #05 pc 0x0000000000396748 /apex/com.android.art/lib64/libart.so (art::JNI<false>::NewGlobalRef(_JNIEnv*, _jobject*)+632)
    #06 pc 0x0000000002252e60 /data/app/~~kSgxSk5VYb-xDy7fiVIAEg==/com.google.android.webview-nyKgbWGv65X__X4RqIrESw==/base.apk!libmonochrome.so
     
  13. vividream

    vividream

    Joined:
    Nov 1, 2016
    Posts:
    7
  14. vividream

    vividream

    Joined:
    Nov 1, 2016
    Posts:
    7
  15. minilong

    minilong

    Joined:
    Dec 3, 2013
    Posts:
    4
    version 2022.2.14f1c1 and version 2022.2.6f1c1 is still not available upload_2023-7-10_10-41-19.png upload_2023-7-10_10-41-58.png upload_2023-7-10_10-43-32.png
     
  16. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,652
    Looks like your project creates a lot of AndroidJavaObject instances and does not dispose of them timely and exhaust the reference table. Especially it lists that you have a lot of doule arrays retrieved from Java, even though it's the same actual array most of the time.
     
  17. minilong

    minilong

    Joined:
    Dec 3, 2013
    Posts:
    4
    Sorry, my bad. It turns out that using an old version of AVPro was the cause after troubleshooting.