Как исправить этот ANR?
Эта проблема возникает исключительно тогда, когда приложение находится в фоновом состоянии (100%). Большинство затронутых устройств — это модели Oppo (87%), и почти все из них работают под управлением Android 11 (99%).
main (native):tid=1 systid=3629
#00 pc 0x1f10c libdexfile.so (art::DexFile::FindClassDef(art::dex::TypeIndex) const + 28)
#01 pc 0x2ee60 libdexfile.so (art::dex::DexFileVerifier::CheckInterClassDefItem() + 728)
#02 pc 0x304fc libdexfile.so (art::dex::DexFileVerifier::CheckInterSectionIterate(unsigned long, unsigned int, art::DexFile::MapItemType) + 364)
#03 pc 0x3076c libdexfile.so (art::dex::DexFileVerifier::CheckInterSection() + 268)
#04 pc 0x308e8 libdexfile.so (art::dex::DexFileVerifier::Verify() + 192)
#05 pc 0x31100 libdexfile.so (art::dex::Verify(art::DexFile const*, unsigned char const*, unsigned long, char const*, bool, std::__1::basic_string*) + 160)
#06 pc 0x238bc libdexfile.so (art::DexFileLoader::OpenCommon(unsigned char const*, unsigned long, unsigned char const*, unsigned long, std::__1::basic_string const&, unsigned int, art::OatDexFile const*, bool, bool, std::__1::basic_string*, std::__1::unique_ptr, art::DexFileLoader::VerifyResult*) + 308)
#07 pc 0x1ae70 libdexfile.so (art::ArtDexFileLoader::OpenOneDexFileFromZip(art::ZipArchive const&, char const*, std::__1::basic_string const&, bool, bool, std::__1::basic_string*, art::DexFileLoaderErrorCode*) const + 920)
#08 pc 0x1a814 libdexfile.so (art::ArtDexFileLoader::OpenAllDexFilesFromZip(art::ZipArchive const&, std::__1::basic_string const&, bool, bool, std::__1::basic_string*, std::__1::vector*) const + 420)
#09 pc 0x1a508 libdexfile.so (art::ArtDexFileLoader::OpenZip(int, std::__1::basic_string const&, bool, bool, std::__1::basic_string*, std::__1::vector*) const + 248)
#10 pc 0x1a1d4 libdexfile.so (art::ArtDexFileLoader::OpenWithMagic(unsigned int, int, std::__1::basic_string const&, bool, bool, std::__1::basic_string*, std::__1::vector*) const + 284)
#11 pc 0x1a06c libdexfile.so (art::ArtDexFileLoader::Open(char const*, std::__1::basic_string const&, bool, bool, std::__1::basic_string*, std::__1::vector*) const + 164)
#12 pc 0x4f8a3c libart.so (art::OatFileManager::OpenDexFilesFromOat(char const*, _jobject*, _jobjectArray*, art::OatFile const**, std::__1::vector*) + 7628)
#13 pc 0x4a9b28 libart.so (art::DexFile_openDexFileNative(_JNIEnv*, _jclass*, _jstring*, _jstring*, int, _jobject*, _jobjectArray*) + 144)
at dalvik.system.DexFile.openDexFileNative(Native method)
at dalvik.system.DexFile.openDexFile(DexFile.java:379)
at dalvik.system.DexFile.(DexFile.java:112)
at dalvik.system.DexFile.(DexFile.java:85)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:439)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:398)
at dalvik.system.DexPathList.(DexPathList.java:166)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:129)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:104)
at dalvik.system.PathClassLoader.(PathClassLoader.java:74)
at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:87)
at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:116)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:114)
at android.app.ApplicationLoaders.getClassLoaderWithSharedLibraries(ApplicationLoaders.java:60)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:981)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:1038)
at android.app.LoadedApk.getResources(LoadedApk.java:1270)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2766)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2758)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7177)
at android.app.ActivityThread.access$1700(ActivityThread.java:309)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2194)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:264)
at android.app.ActivityThread.main(ActivityThread.java:8315)
at java.lang.reflect.Method.invoke(Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
Подробнее здесь: https://stackoverflow.com/questions/798 ... ndex-const
Art::DexFile::FindClassDef(art::dex::TypeIndex) const ⇐ Android
Форум для тех, кто программирует под Android
-
Anonymous
1764828966
Anonymous
[b]Как исправить этот ANR?[/b]
Эта проблема возникает исключительно тогда, когда приложение находится в [b]фоновом состоянии[/b] (100%). Большинство затронутых устройств — это [b]модели Oppo[/b] (87%), и почти все из них работают под управлением [b]Android 11[/b] (99%).
main (native):tid=1 systid=3629
#00 pc 0x1f10c libdexfile.so (art::DexFile::FindClassDef(art::dex::TypeIndex) const + 28)
#01 pc 0x2ee60 libdexfile.so (art::dex::DexFileVerifier::CheckInterClassDefItem() + 728)
#02 pc 0x304fc libdexfile.so (art::dex::DexFileVerifier::CheckInterSectionIterate(unsigned long, unsigned int, art::DexFile::MapItemType) + 364)
#03 pc 0x3076c libdexfile.so (art::dex::DexFileVerifier::CheckInterSection() + 268)
#04 pc 0x308e8 libdexfile.so (art::dex::DexFileVerifier::Verify() + 192)
#05 pc 0x31100 libdexfile.so (art::dex::Verify(art::DexFile const*, unsigned char const*, unsigned long, char const*, bool, std::__1::basic_string*) + 160)
#06 pc 0x238bc libdexfile.so (art::DexFileLoader::OpenCommon(unsigned char const*, unsigned long, unsigned char const*, unsigned long, std::__1::basic_string const&, unsigned int, art::OatDexFile const*, bool, bool, std::__1::basic_string*, std::__1::unique_ptr, art::DexFileLoader::VerifyResult*) + 308)
#07 pc 0x1ae70 libdexfile.so (art::ArtDexFileLoader::OpenOneDexFileFromZip(art::ZipArchive const&, char const*, std::__1::basic_string const&, bool, bool, std::__1::basic_string*, art::DexFileLoaderErrorCode*) const + 920)
#08 pc 0x1a814 libdexfile.so (art::ArtDexFileLoader::OpenAllDexFilesFromZip(art::ZipArchive const&, std::__1::basic_string const&, bool, bool, std::__1::basic_string*, std::__1::vector*) const + 420)
#09 pc 0x1a508 libdexfile.so (art::ArtDexFileLoader::OpenZip(int, std::__1::basic_string const&, bool, bool, std::__1::basic_string*, std::__1::vector*) const + 248)
#10 pc 0x1a1d4 libdexfile.so (art::ArtDexFileLoader::OpenWithMagic(unsigned int, int, std::__1::basic_string const&, bool, bool, std::__1::basic_string*, std::__1::vector*) const + 284)
#11 pc 0x1a06c libdexfile.so (art::ArtDexFileLoader::Open(char const*, std::__1::basic_string const&, bool, bool, std::__1::basic_string*, std::__1::vector*) const + 164)
#12 pc 0x4f8a3c libart.so (art::OatFileManager::OpenDexFilesFromOat(char const*, _jobject*, _jobjectArray*, art::OatFile const**, std::__1::vector*) + 7628)
#13 pc 0x4a9b28 libart.so (art::DexFile_openDexFileNative(_JNIEnv*, _jclass*, _jstring*, _jstring*, int, _jobject*, _jobjectArray*) + 144)
at dalvik.system.DexFile.openDexFileNative(Native method)
at dalvik.system.DexFile.openDexFile(DexFile.java:379)
at dalvik.system.DexFile.(DexFile.java:112)
at dalvik.system.DexFile.(DexFile.java:85)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:439)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:398)
at dalvik.system.DexPathList.(DexPathList.java:166)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:129)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:104)
at dalvik.system.PathClassLoader.(PathClassLoader.java:74)
at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:87)
at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:116)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:114)
at android.app.ApplicationLoaders.getClassLoaderWithSharedLibraries(ApplicationLoaders.java:60)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:981)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:1038)
at android.app.LoadedApk.getResources(LoadedApk.java:1270)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2766)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2758)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7177)
at android.app.ActivityThread.access$1700(ActivityThread.java:309)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2194)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:264)
at android.app.ActivityThread.main(ActivityThread.java:8315)
at java.lang.reflect.Method.invoke(Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
Подробнее здесь: [url]https://stackoverflow.com/questions/79836740/artdexfilefindclassdefartdextypeindex-const[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия