-
-
Notifications
You must be signed in to change notification settings - Fork 764
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
App Crash #1180
Comments
Please help us reproduce the issue then I'm sure we can do something about it. The stack trace does not mention the library. |
This didn't happen during development, so I don't have steps to reproduce it. The stack trace is from the crashlytics dashboard, and the numbers are increasing drastically. Please help if there is something to resolve this. |
@PierfrancescoSoffritti Can you help with this issue? |
There's not enough information here for me to help unfortunately. This might not even be related to the library. |
The crash happens here too. For reproduce the bug with this library play Youtube videos and after that immediately change to other Youtube playback. Make change playback several time as much as the crash happens. this bug might happens because of memory leaks and lack of perfect garbage collection with Youtube PID and reinitiate onDestroy etc by this library. To fix the memory leaks there are some free software tools to help you found the reason. Please let me know if you have other questions and concerns. |
@pooya-mohammadhossein I am using Youtube video library in recyclerview. Is there any way to handle this crash? |
I found this app implemented with flutter, and the effect is pretty good |
I think this is a WebView issue. For reference, see https://issuetracker.google.com/issues/385775371 |
Bug Report
Description of the Bug
I have added the YouTube player in the recycler view and added it as a LifecyclerObserver with the parent Fragment. There are few crashes recorded on the Firebase crashlytics dashboard.
Caused by java.lang.IllegalStateException
Cannot get profile for destroyed WebView.
Environment details
Android Version: Android 10 to Android 14
Tested devices:
Youtube Player Library Version: 12.1.1
Sharing the stack trace here
Crashlytics - Stack trace
Application: com.leanagri.leannutri
Platform: android
Version: 3.3.91.3 (300913)
Issue: 15a835215996d5bc0741a445810d23b2
Session: 6730BF47010E000164A5F977EB85CAA0_DNE_8_v2
Date: Sun Nov 10 2024 20:16:08 GMT+0530 (India Standard Time)
Fatal Exception: org.chromium.base.JniAndroid$UncaughtExceptionException: Native stack trace:
#00 pc 0x00000000040eccf3 /data/app/~~maZGs5TMA5dMjtY0piL3Jg==/com.google.android.trichromelibrary_672308633-NUAtATIFhZ8eNjYyagJUIQ==/base.apk (offset 0x8dc000)
#1 pc 0x0000000002b5902b /data/app/~~maZGs5TMA5dMjtY0piL3Jg==/com.google.android.trichromelibrary_672308633-NUAtATIFhZ8eNjYyagJUIQ==/base.apk (offset 0x8dc000)
#2 pc 0x0000000003f7e83f /data/app/~~maZGs5TMA5dMjtY0piL3Jg==/com.google.android.trichromelibrary_672308633-NUAtATIFhZ8eNjYyagJUIQ==/base.apk (offset 0x8dc000)
#3 pc 0x0000000002c4cfeb /data/app/~~maZGs5TMA5dMjtY0piL3Jg==/com.google.android.trichromelibrary_672308633-NUAtATIFhZ8eNjYyagJUIQ==/base.apk (offset 0x8dc000)
#4 pc 0x000000000690d4fb /data/app/~~maZGs5TMA5dMjtY0piL3Jg==/com.google.android.trichromelibrary_672308633-NUAtATIFhZ8eNjYyagJUIQ==/base.apk (offset 0x8dc000)
#5 pc 0x0000000003fb901b /data/app/~~maZGs5TMA5dMjtY0piL3Jg==/com.google.android.trichromelibrary_672308633-NUAtATIFhZ8eNjYyagJUIQ==/base.apk (offset 0x8dc000)
#6 pc 0x0000000006927d7f /data/app/~~maZGs5TMA5dMjtY0piL3Jg==/com.google.android.trichromelibrary_672308633-NUAtATIFhZ8eNjYyagJUIQ==/base.apk (offset 0x8dc000)
#7 pc 0x0000000000009e8f /system/lib64/libutils.so
#8 pc 0x000000000000992f /system/lib64/libutils.so
#9 pc 0x00000000000ab1df /system/lib64/libandroid_runtime.so
Caused by java.lang.IllegalStateException: Cannot get profile for destroyed WebView.
at WV.c8.c(chromium-TrichromeWebViewGoogle6432.aab-stable-672308633:522)
at WV.XY.w(chromium-TrichromeWebViewGoogle6432.aab-stable-672308633:59)
at WV.TK.S(chromium-TrichromeWebViewGoogle6432.aab-stable-672308633:29)
at WV.dg.a(chromium-TrichromeWebViewGoogle6432.aab-stable-672308633:38)
at WV.cg.a(chromium-TrichromeWebViewGoogle6432.aab-stable-672308633:12)
at org.chromium.mojo.system.impl.WatcherImpl.onHandleReady(chromium-TrichromeWebViewGoogle6432.aab-stable-672308633:3)
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next(MessageQueue.java:339)
at android.os.Looper.loopOnce(Looper.java:176)
at android.os.Looper.loop(Looper.java:328)
at android.app.ActivityThread.main(ActivityThread.java:9244)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:594)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
The text was updated successfully, but these errors were encountered: