Skip to content
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

Failure [INSTALL_FAILED_DEXOPT] with OkHttp in Libs directory #1097

Closed
danijelkecman opened this issue Oct 23, 2014 · 4 comments
Closed

Failure [INSTALL_FAILED_DEXOPT] with OkHttp in Libs directory #1097

danijelkecman opened this issue Oct 23, 2014 · 4 comments

Comments

@danijelkecman
Copy link

When I place jar files of OkHttp and Okio versions 2.0.1 and 1.0.1 respectively to the libs directory of my project I get the following message when I try to install a small app to either simulator 2.3.3 or a device 2.3.3:
Uploading file
local path: app/build/outputs/apk/app-debug.apk
remote path: /data/local/tmp/com.identifier.app
Installing com.identifier.app
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.identifier.app"
pkg: /data/local/tmp/com.identifier.app
Failure [INSTALL_FAILED_DEXOPT]

It works with simulator 4.2.2 and device 4.2.2. Has anyone had similar experience?

Thanks,
Dan

@swankjesse
Copy link
Member

I haven't seen this. Do you get any other logs? Perhaps from the device's logcat?

@danijelkecman
Copy link
Author

No, it doesn't even get to the point where something is written to the logcat.

@kenumir
Copy link

kenumir commented Oct 28, 2014

i have the same issue. My install log:

10-28 14:14:10.784: E/PackageManager(170): Package xxxxxxxxxxxxx has mismatched uid: 10094 on disk, 10106 in settings
10-28 14:14:10.784: I/PackageManager(170): Linking native library dir for /data/app/xxxxxxxxxxxxx-1.apk

10-28 14:14:12.185: E/dalvikvm(1927): LinearAlloc exceeded capacity (5242880), last=1092
10-28 14:14:12.185: E/dalvikvm(1927): VM aborting
10-28 14:14:12.285: I/DEBUG(109): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-28 14:14:12.285: I/DEBUG(109): Build fingerprint: 'samsung/GT-I9001/GT-I9001:2.3.6/GINGERBREAD/BVKPC:user/release-keys'
10-28 14:14:12.285: I/DEBUG(109): pid: 1927, tid: 1927 >>> /system/bin/dexopt <<<
10-28 14:14:12.285: I/DEBUG(109): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
10-28 14:14:12.285: I/DEBUG(109): r0 fffffe84 r1 deadd00d r2 00000026 r3 00000000
10-28 14:14:12.285: I/DEBUG(109): r4 aca965a8 r5 004ffccc r6 00500114 r7 0001682c
10-28 14:14:12.285: I/DEBUG(109): r8 00000444 r9 00000000 10 00000015 fp 00051fd8
10-28 14:14:12.285: I/DEBUG(109): ip aca966b4 sp be9d7748 lr afd19249 pc aca3d484 cpsr 20000030
10-28 14:14:12.285: I/DEBUG(109): d0 74726f6261204d69 d1 646564656563786e
10-28 14:14:12.285: I/DEBUG(109): d2 400bb5d04003c267 d3 000000000000000a
10-28 14:14:12.285: I/DEBUG(109): d4 410f2678410f2644 d5 415d79dc410f26ac
10-28 14:14:12.285: I/DEBUG(109): d6 415d7a44415d7a10 d7 415d7be4415d7a78
10-28 14:14:12.285: I/DEBUG(109): d8 0000000000000000 d9 0000000000000000
10-28 14:14:12.285: I/DEBUG(109): d10 0000000000000000 d11 0000000000000000
10-28 14:14:12.285: I/DEBUG(109): d12 0000000000000000 d13 0000000000000000
10-28 14:14:12.285: I/DEBUG(109): d14 0000000000000000 d15 0000000000000000
10-28 14:14:12.285: I/DEBUG(109): d16 0000000000000000 d17 0000000000000000
10-28 14:14:12.285: I/DEBUG(109): d18 0000000000000000 d19 0000000000000000
10-28 14:14:12.285: I/DEBUG(109): d20 0000000000000000 d21 0000000000000000
10-28 14:14:12.285: I/DEBUG(109): d22 0000000000000000 d23 0000000000000000
10-28 14:14:12.285: I/DEBUG(109): d24 0000000000000000 d25 0000000000000000
10-28 14:14:12.285: I/DEBUG(109): d26 0000000000000000 d27 0000000000000000
10-28 14:14:12.285: I/DEBUG(109): d28 0000000000000000 d29 0000000000000000
10-28 14:14:12.285: I/DEBUG(109): d30 0000000000000000 d31 0000000000000000
10-28 14:14:12.285: I/DEBUG(109): scr 00000000
10-28 14:14:12.285: I/DEBUG(109): #00 pc 0003d484 /system/lib/libdvm.so
10-28 14:14:12.285: I/DEBUG(109): #1 pc 00045182 /system/lib/libdvm.so
10-28 14:14:12.285: I/DEBUG(109): #2 pc 0005feac /system/lib/libdvm.so
10-28 14:14:12.285: I/DEBUG(109): #3 pc 000602b4 /system/lib/libdvm.so
10-28 14:14:12.285: I/DEBUG(109): #4 pc 00060a74 /system/lib/libdvm.so
10-28 14:14:12.285: I/DEBUG(109): #5 pc 00060cb6 /system/lib/libdvm.so
10-28 14:14:12.285: I/DEBUG(109): #6 pc 0006052e /system/lib/libdvm.so
10-28 14:14:12.285: I/DEBUG(109): #7 pc 00053210 /system/lib/libdvm.so
10-28 14:14:12.285: I/DEBUG(109): #8 pc 0004f88e /system/lib/libdvm.so
10-28 14:14:12.285: I/DEBUG(109): #9 pc 0005178c /system/lib/libdvm.so
10-28 14:14:12.285: I/DEBUG(109): #10 pc 00051962 /system/lib/libdvm.so
10-28 14:14:12.285: I/DEBUG(109): #11 pc 000530d0 /system/lib/libdvm.so
10-28 14:14:12.285: I/DEBUG(109): #12 pc 00053110 /system/lib/libdvm.so
10-28 14:14:12.295: I/DEBUG(109): #13 pc 0005207e /system/lib/libdvm.so
10-28 14:14:12.295: I/DEBUG(109): #14 pc 00052128 /system/lib/libdvm.so
10-28 14:14:12.295: I/DEBUG(109): #15 pc 00052212 /system/lib/libdvm.so
10-28 14:14:12.295: I/DEBUG(109): #16 pc 000523fc /system/lib/libdvm.so
10-28 14:14:12.295: I/DEBUG(109): #17 pc 00008c46 /system/bin/dexopt
10-28 14:14:12.295: I/DEBUG(109): #18 pc 00008d32 /system/bin/dexopt
10-28 14:14:12.295: I/DEBUG(109): #19 pc 00008dc8 /system/bin/dexopt
10-28 14:14:12.295: I/DEBUG(109): #20 pc 000091ce /system/bin/dexopt
10-28 14:14:12.295: I/DEBUG(109): #21 pc 00014bc2 /system/lib/libc.so
10-28 14:14:12.295: I/DEBUG(109): code around pc:
10-28 14:14:12.295: I/DEBUG(109): aca3d464 447a4479 f7d44c0b 2000e830 e934f7d4
10-28 14:14:12.295: I/DEBUG(109): aca3d474 447c4809 6bdb5823 4798b103 22264902
10-28 14:14:12.295: I/DEBUG(109): aca3d484 f7d4700a bf00e99c deadd00d 00040d30
10-28 14:14:12.295: I/DEBUG(109): aca3d494 00042535 0005912e fffffe84 4b09b40e
10-28 14:14:12.295: I/DEBUG(109): aca3d4a4 4c09b517 aa05447b f852591b 6b5b1b04
10-28 14:14:12.295: I/DEBUG(109): code around lr:
10-28 14:14:12.295: I/DEBUG(109): afd19228 4a0e4b0d e92d447b 589c41f0 26004680
10-28 14:14:12.295: I/DEBUG(109): afd19238 686768a5 f9b5e006 b113300c 47c04628
10-28 14:14:12.295: I/DEBUG(109): afd19248 35544306 37fff117 6824d5f5 d1ef2c00
10-28 14:14:12.295: I/DEBUG(109): afd19258 e8bd4630 bf0081f0 000282f4 ffffff88
10-28 14:14:12.295: I/DEBUG(109): afd19268 b086b570 f602fb01 9004460c a804a901
10-28 14:14:12.295: I/DEBUG(109): stack:
10-28 14:14:12.295: I/DEBUG(109): be9d7708 40038280
10-28 14:14:12.295: I/DEBUG(109): be9d770c 401e58c0
10-28 14:14:12.295: I/DEBUG(109): be9d7710 aca9c140
10-28 14:14:12.295: I/DEBUG(109): be9d7714 aca965a8
10-28 14:14:12.295: I/DEBUG(109): be9d7718 afd4272c
10-28 14:14:12.295: I/DEBUG(109): be9d771c afd426d8
10-28 14:14:12.295: I/DEBUG(109): be9d7720 00000000
10-28 14:14:12.295: I/DEBUG(109): be9d7724 afd19249 /system/lib/libc.so
10-28 14:14:12.295: I/DEBUG(109): be9d7728 0005912e
10-28 14:14:12.295: I/DEBUG(109): be9d772c 004ffccc
10-28 14:14:12.295: I/DEBUG(109): be9d7730 00500114
10-28 14:14:12.295: I/DEBUG(109): be9d7734 0001682c
10-28 14:14:12.295: I/DEBUG(109): be9d7738 00000444
10-28 14:14:12.295: I/DEBUG(109): be9d773c afd18341 /system/lib/libc.so
10-28 14:14:12.295: I/DEBUG(109): be9d7740 df002777
10-28 14:14:12.295: I/DEBUG(109): be9d7744 e3a070ad
10-28 14:14:12.295: I/DEBUG(109): #00 be9d7748 00016828
10-28 14:14:12.295: I/DEBUG(109): be9d774c aca45187 /system/lib/libdvm.so
10-28 14:14:12.295: I/DEBUG(109): #1 be9d7750 00000444
10-28 14:14:12.295: I/DEBUG(109): be9d7754 00000444
10-28 14:14:12.295: I/DEBUG(109): be9d7758 42517f49
10-28 14:14:12.295: I/DEBUG(109): be9d775c 401e58c0
10-28 14:14:12.295: I/DEBUG(109): be9d7760 00051fd8
10-28 14:14:12.295: I/DEBUG(109): be9d7764 41e082c8
10-28 14:14:12.295: I/DEBUG(109): be9d7768 be9d77e0
10-28 14:14:12.295: I/DEBUG(109): be9d776c 00000000
10-28 14:14:12.295: I/DEBUG(109): be9d7770 00000015
10-28 14:14:12.295: I/DEBUG(109): be9d7774 aca5feb1 /system/lib/libdvm.so
10-28 14:14:12.295: I/DEBUG(109): dumpstate /data/log/dumpstate_app_native.txt

10-28 14:14:15.849: W/installd(116): DexInv: --- END '/data/app/xxxxxxxxxxxxx-1.apk' --- status=0x000b, process failed
10-28 14:14:15.849: E/installd(116): dexopt failed on '/data/dalvik-cache/data@app@xxxxxxxxxxxxx-1.apk@classes.dex' res = 11

@JakeWharton
Copy link
Member

The error subtle, but it's here:

LinearAlloc exceeded capacity (5242880), last=1092

It usually has to do with very complex object hierarchies (large libraries like Guava, language runtimes like Scala, etc.). The original issue posted on Android can be read here.

Unfortunately there's nothing for us to do. It's not OkHttp that caused this directly, but the combination of all your code and the libraries in use in your app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants