Nexus5 4.4.4上出现Dex.checkBounds IndexOutOfBoundsException
- Dominant language
- C++
- Stars
- 7k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
用的Nexus5原生系统,版本4.4.4,现在发生了如下错误。
FATAL EXCEPTION: main
Process: com.xx.android:xg_service_v2, PID: 17731
java.lang.RuntimeException: Unable to create application com.Application: java.lang.IndexOutOfBoundsException: index:244, length=2
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4331)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
Caused by: java.lang.IndexOutOfBoundsException: index:244, length=2
at com.android.dex.Dex.checkBounds(Dex.java:161)
at com.android.dex.Dex.annotationDirectoryOffsetFromClassDefIndex(Dex.java:475)
at java.lang.Class.getDexAnnotationDirectoryOffset(Class.java:1743)
at libcore.reflect.AnnotationAccess.getAnnotationSetOffset(AnnotationAccess.java:216)
at libcore.reflect.AnnotationAccess.getMethodAnnotation(AnnotationAccess.java:193)
at libcore.reflect.AnnotationAccess.getDeclaredAnnotation(AnnotationAccess.java:170)
at java.lang.reflect.Method.getAnnotation(Method.java:301)
at com.alipay.euler.andfix.AndFixManager.fixClass(Unknown Source)
at com.alipay.euler.andfix.AndFixManager.fix(Unknown Source)
at com.alipay.euler.andfix.patch.PatchManager.loadPatch(Unknown Source)
at com.Application.onCreate(Unknown Source)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4328)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Android 4.4.4 stack trace around com.android.dex.Dex.checkBounds and the AndFixManager.fixClass/PatchManager.loadPatch calls shown in the report. Reproduce the crash on the reported Nexus 5 environment and determine whether the failure is specific to patch loading or platform reflection; done means documenting the cause and a verified compatible fix or workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100