android - ActionBar compat + Spinner gives SIGSEGV 11 -


i have application i've been working on while. uses google's appcompat action bar spinner navigation , working fine last week.

today, recompiled , app crashes without call setnavigationmode(actionbar.navigation_mode_list).

in logcat see sigsegv fault.

i have been able reproduce problem creating new android studio project using actionbar, blank activity action bar spinner navigation , absolutely nothing code generated android studio.

i have tried using following components:
- android studio 0.50.0 under windows 8.1
- android studio 0.5.2 under osx mavericks
- actual android 2.3.4 hardware
- android 2.2 emulator under windows
- android 2.2 emulator under os x.

the problem exists on combinations of compiler / platform.

i have been trying specify specific versions of appcompat in build.gradle. but, same problem regardless if use compile 'com.android.support:appcompat-v7:19.0.1' or compile 'com.android.support:appcompat-v7:19.0.0'

does have clue might going on here?

output logcat , emulator running under windows:

i/dalvikvm(  370): not find method android.content.pm.packagemanager.getactivitylogo, referenced method android.support.v7.internal.widget.actionbarview.<init> w/dalvikvm(  370): vfy: unable resolve virtual method 312: landroid/content/pm/packagemanager;.getactivitylogo (landroid/content/componentname;)landroid/graphics/drawable/drawable; d/dalvikvm(  370): vfy: replacing opcode 0x6e @ 0x008b i/dalvikvm(  370): not find method android.content.pm.applicationinfo.loadlogo, referenced method android.support.v7.internal.widget.actionbarview.<init> w/dalvikvm(  370): vfy: unable resolve virtual method 308: landroid/content/pm/applicationinfo;.loadlogo (landroid/content/pm/packagemanager;)landroid/graphics/drawable/drawable; d/dalvikvm(  370): vfy: replacing opcode 0x6e @ 0x0099 d/dalvikvm(  370): vfy: dead code 0x008e-0092 in landroid/support/v7/internal/widget/actionbarview;.<init> (landroid/content/context;landroid/util/attributeset;)v d/dalvikvm(  370): vfy: dead code 0x009c-00a0 in landroid/support/v7/internal/widget/actionbarview;.<init> (landroid/content/context;landroid/util/attributeset;)v i/debug   (   31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** i/debug   (   31): build fingerprint: 'generic/sdk/generic/:2.2/frf91/43546:eng/test-keys' i/debug   (   31): pid: 370, tid: 370  >>> com.example.actionbartest.app <<< i/debug   (   31): signal 11 (sigsegv), fault addr 00000002 i/debug   (   31):  r0 00000000  r1 00000001  r2 00000001  r3 00000002 i/debug   (   31):  r4 becab8a4  r5 0000aa50  r6 00116400  r7 00138eb0 i/debug   (   31):  r8 becab914  r9 4208b814  10 4208b800  fp 00000000 i/debug   (   31):  ip ad36ec18  sp becab868  lr ad349dbd  pc a81144da  cpsr 20000030 i/debug   (   31):          #00  pc 000144da  /system/lib/libutils.so i/debug   (   31):          #01  pc 00049dba  /system/lib/libandroid_runtime.so i/debug   (   31):          #02  pc 00049f10  /system/lib/libandroid_runtime.so i/debug   (   31):          #03  pc 00013974  /system/lib/libdvm.so i/debug   (   31): i/debug   (   31): code around pc: i/debug   (   31): a81144b8 1c264337 02364016 401c4337 1c3c0a26 i/debug   (   31): a81144c8 602c4334 57042403 dbea42a1 46c0bdf0 i/debug   (   31): a81144d8 56c32302 56412101 230318ca 320856c3 i/debug   (   31): a81144e8 008018d0 46c04770 47706800 23006802 i/debug   (   31): a81144f8 d1012a00 689b6883 47701c18 21016001 i/debug   (   31): i/debug   (   31): code around lr: i/debug   (   31): ad349d9c 9a059903 990947a0 29002400 ac0fd062 i/debug   (   31): ad349dac 20007b22 2a009003 6920d02a ece4f7d2 i/debug   (   31): ad349dbc 23b0682a 00981c01 1c285813 90034798 i/debug   (   31): ad349dcc d1012800 e7b14843 22de6828 58430091 i/debug   (   31): ad349ddc 1c282200 47989903 28009005 4d3ed103 i/debug   (   31): i/debug   (   31): stack: i/debug   (   31):     becab828  0000aa50  [heap] i/debug   (   31):     becab82c  46024df8  /dev/ashmem/mspace/dalvik-heap/2 (deleted) i/debug   (   31):     becab830  420eace8  /dev/ashmem/dalvik-linearalloc (deleted) i/debug   (   31):     becab834  808343a3  /system/lib/libdvm.so i/debug   (   31):     becab838  00000000 i/debug   (   31):     becab83c  8086dd88  /system/lib/libdvm.so i/debug   (   31):     becab840  00000000 i/debug   (   31):     becab844  80886910  /system/lib/libdvm.so i/debug   (   31):     becab848  8082dba5  /system/lib/libdvm.so i/debug   (   31):     becab84c  46024e48  /dev/ashmem/mspace/dalvik-heap/2 (deleted) i/debug   (   31):     becab850  00138eb0  [heap] i/debug   (   31):     becab854  80834309  /system/lib/libdvm.so i/debug   (   31):     becab858  0000aa50  [heap] i/debug   (   31):     becab85c  00116400  [heap] i/debug   (   31):     becab860  df002777 i/debug   (   31):     becab864  e3a070ad i/debug   (   31): #01 becab868  00000000 i/debug   (   31):     becab86c  c0000000 i/debug   (   31):     becab870  becab914  [stack] i/debug   (   31):     becab874  00000000 i/debug   (   31):     becab878  ad36e0a8  /system/lib/libandroid_runtime.so i/debug   (   31):     becab87c  420eace8  /dev/ashmem/dalvik-linearalloc (deleted) i/debug   (   31):     becab880  ad374ce4  /system/lib/libandroid_runtime.so i/debug   (   31):     becab884  00000001 i/debug   (   31):     becab888  00000001 i/debug   (   31):     becab88c  00000001 i/debug   (   31):     becab890  00000000 i/debug   (   31):     becab894  00121ab0  [heap] i/debug   (   31):     becab898  46024dd8  /dev/ashmem/mspace/dalvik-heap/2 (deleted) i/debug   (   31):     becab89c  becab8c8  [stack] i/debug   (   31):     becab8a0  00000000 i/debug   (   31):     becab8a4  ad36dc48  /system/lib/libandroid_runtime.so i/debug   (   31):     becab8a8  00000002 i/debug   (   31):     becab8ac  00116400  [heap] i/debug   (   31):     becab8b0  00000101 i/debug   (   31):     becab8b4  00000000 i/debug   (   31):     becab8b8  00000000 i/debug   (   31):     becab8bc  00000000 i/debug   (   31):     becab8c0  46024df8  /dev/ashmem/mspace/dalvik-heap/2 (deleted) i/debug   (   31):     becab8c4  00116400  [heap] i/debug   (   31):     becab8c8  ad36dd10  /system/lib/libandroid_runtime.so i/debug   (   31):     becab8cc  00000001 i/debug   (   31):     becab8d0  0000aa50  [heap] i/debug   (   31):     becab8d4  80886901  /system/lib/libdvm.so i/debug   (   31):     becab8d8  ad36e0a8  /system/lib/libandroid_runtime.so i/debug   (   31):     becab8dc  00000000 i/debug   (   31):     becab8e0  0000aa50  [heap] i/debug   (   31):     becab8e4  46024dd8  /dev/ashmem/mspace/dalvik-heap/2 (deleted) i/debug   (   31):     becab8e8  4208b820 i/debug   (   31):     becab8ec  ad349f15  /system/lib/libandroid_runtime.so d/zygote  (   33): process 370 terminated signal (11) i/activitymanager(   71): process com.example.actionbartest.app (pid 370) has died. 



==========================================================

output hardware , application compiled on mac:

i/debug   ( 2267): pid: 2314, tid: 2314  >>> com.example.macabtest.app <<< i/debug   ( 2267): signal 11 (sigsegv), code 1 (segv_maperr), fault addr 00000001 i/debug   ( 2267):  r0 00000000  r1 00000007  r2 fffffe84  r3 00000070 i/debug   ( 2267):  r4 0000abd8  r5 40547590  r6 ad376684  r7 00000001 i/debug   ( 2267):  r8 00219ef0  r9 00222178  10 00000001  fp 442ef280 i/debug   ( 2267):  ip ad3774c8  sp beb9f3c8  lr ad3515d5  pc a8115448  cpsr 20000030 i/debug   ( 2267):  d0  0000000000000000  d1  0000000000000000 i/debug   ( 2267):  d2  0000000000000000  d3  0000000000000000 i/debug   ( 2267):  d4  0000000000000000  d5  0000000000000000 i/debug   ( 2267):  d6  0000000000000000  d7  0000000000000000 i/debug   ( 2267):  d8  0000000000000000  d9  0000000000000000 i/debug   ( 2267):  d10 0000000000000000  d11 0000000000000000 i/debug   ( 2267):  d12 0000000000000000  d13 0000000000000000 i/debug   ( 2267):  d14 0000000000000000  d15 0000000000000000 i/debug   ( 2267):  d16 0000000000000000  d17 3ff0000000000000 i/debug   ( 2267):  d18 42eccefa43de3400  d19 3fbc71c71c71c71c i/debug   ( 2267):  d20 4008000000000000  d21 3fd99a27ad32ddf5 i/debug   ( 2267):  d22 3fd24998d6307188  d23 3fcc7288e957b53b i/debug   ( 2267):  d24 3fc74721cad6b0ed  d25 3fc39a09d078c69f i/debug   ( 2267):  d26 0000000000000000  d27 0000000000000000 i/debug   ( 2267):  d28 0000000000000000  d29 0000000000000000 i/debug   ( 2267):  d30 0000000000000000  d31 0000000000000000 i/debug   ( 2267):  scr 60000012 i/debug   ( 2267): i/debug   ( 2267):          #00  pc 00015448  /system/lib/libutils.so i/debug   ( 2267):          #01  lr ad3515d5  /system/lib/libandroid_runtime.so i/debug   ( 2267): i/debug   ( 2267): code around pc: i/debug   ( 2267): a8115428 f4026412 ea44457f ea442405 f841221c i/debug   ( 2267): a8115438 33012023 1003f990 dbea428b bf00bd30 i/debug   ( 2267): a8115448 2001f990 3002f990 f99018d1 f1113003 i/debug   ( 2267): a8115458 18d00208 47700080 47706800 b10b6803 i/debug   ( 2267): a8115468 e0012000 68886881 bf004770 33fff04f i/debug   ( 2267): i/debug   ( 2267): code around lr: i/debug   ( 2267): ad3515b4 f8d24629 465a71a0 46204603 f1ba47b8 i/debug   ( 2267): ad3515c4 d0590f00 7030f89d 980db32f eb28f7d0 i/debug   ( 2267): ad3515d4 68204601 22c0f8d0 47904620 b9104607 i/debug   ( 2267): ad3515e4 4478484c 6821e7b4 22004620 3378f8d1 i/debug   ( 2267): ad3515f4 47984639 b9104682 44784847 980de7a8 i/debug   ( 2267): i/debug   ( 2267): stack: i/debug   ( 2267):     beb9f388  405475e0 i/debug   ( 2267):     beb9f38c  00000000 i/debug   ( 2267):     beb9f390  405475e0 i/debug   ( 2267):     beb9f394  0000ce38 i/debug   ( 2267):     beb9f398  405475e0 i/debug   ( 2267):     beb9f39c  8004c053  /system/lib/libdvm.so i/debug   ( 2267):     beb9f3a0  40547590 i/debug   ( 2267):     beb9f3a4  442ef280 i/debug   ( 2267):     beb9f3a8  405475e0 i/debug   ( 2267):     beb9f3ac  8004bf39  /system/lib/libdvm.so i/debug   ( 2267):     beb9f3b0  0000abd8 i/debug   ( 2267):     beb9f3b4  40547590 i/debug   ( 2267):     beb9f3b8  ad376684 i/debug   ( 2267):     beb9f3bc  8004bf05  /system/lib/libdvm.so i/debug   ( 2267):     beb9f3c0  df002777 i/debug   ( 2267):     beb9f3c4  e3a070ad i/debug   ( 2267): #00 beb9f3c8  00000001 i/debug   ( 2267):     beb9f3cc  00000000 i/debug   ( 2267):     beb9f3d0  beb9f410 i/debug   ( 2267):     beb9f3d4  00000000 i/debug   ( 2267):     beb9f3d8  00000000 i/debug   ( 2267):     beb9f3dc  00000000 i/debug   ( 2267):     beb9f3e0  000f0d88 i/debug   ( 2267):     beb9f3e4  40547570 i/debug   ( 2267):     beb9f3e8  beb9f41c i/debug   ( 2267):     beb9f3ec  ad3760c0 i/debug   ( 2267):     beb9f3f0  00000002 i/debug   ( 2267):     beb9f3f4  00219ef0 i/debug   ( 2267):     beb9f3f8  00221e01 i/debug   ( 2267):     beb9f3fc  00000000 i/debug   ( 2267):     beb9f400  00000000 i/debug   ( 2267):     beb9f404  00000000 i/debug   ( 2267):     beb9f408  40547590 i/debug   ( 2267):     beb9f40c  00219ef0 d/zygote  (   54): process 2314 terminated signal (11) i/activitymanager(  127): process com.example.macabtest.app (pid 2314) has died. 

changing gradle settings solves problem.

not working:

classpath 'com.android.tools.build:gradle:0.9.+' 

working:

classpath 'com.android.tools.build:gradle:0.9.0' 

see https://code.google.com/p/android/issues/detail?id=67376

edit:
commonsware's solution neater works gradle versions:
add android.aaptoptions.useaaptpngcruncher = true build.gradle file,


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -