Project: titanium
Issue TIMOB-17476: Android-L: KS->ActionBar crashes 
Build KS with android-L. Go to Controls->Action Bar. App crashes with log {code} E/art ( 7568): JNI ERROR (app bug): attempt to pass an instance of java.util.HashMap as argument 1 to org.appcelerator.titanium.proxy.MenuItemProxy org.appcelerator.titanium.proxy.MenuProxy.add(org.appcelerator.kroll.KrollDict) F/art ( 7568): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: bad arguments passed to org.appcelerator.titanium.proxy.MenuItemProxy org.appcelerator.titanium.proxy.MenuProxy.add(org.appcelerator.kroll.KrollDict) (see above for details) F/art ( 7568): art/runtime/check_jni.cc:65] from java.lang.Object org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(long, long, java.lang.Object[]) F/art ( 7568): art/runtime/check_jni.cc:65] "KrollRuntimeThread" prio=5 tid=11 Runnable F/art ( 7568): art/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x790350a0 self=0xb8dc95d0 F/art ( 7568): art/runtime/check_jni.cc:65] | sysTid=7603 nice=0 cgrp=default sched=0/0 handle=0xb8dbaf50 F/art ( 7568): art/runtime/check_jni.cc:65] | state=R schedstat=( 0 0 0 ) utm=1171 stm=42 core=0 HZ=100 F/art ( 7568): art/runtime/check_jni.cc:65] | stack=0xa6c79000-0xa6c7f000 stackSize=1064KB F/art ( 7568): art/runtime/check_jni.cc:65] native: #00 pc 00005baf /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+95) F/art ( 7568): art/runtime/check_jni.cc:65] native: #01 pc 00002751 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+33) F/art ( 7568): art/runtime/check_jni.cc:65] native: #02 pc 003ba727 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream >&, int, char const*, art::mirror::ArtMethod*)+135) F/art ( 7568): art/runtime/check_jni.cc:65] native: #03 pc 0038bc10 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream >&) const+272) F/art ( 7568): art/runtime/check_jni.cc:65] native: #04 pc 00129a18 /system/lib/libart.so (art::JniAbort(char const*, char const)+952) F/art ( 7568): art/runtime/check_jni.cc:65] native: #05 pc 0012aa1c /system/lib/libart.so (art::JniAbortF(char const*, char const, ellipsis)+108) F/art ( 7568): art/runtime/check_jni.cc:65] native: #06 pc 0008412b /system/lib/libart.so (art::CheckMethodArguments(art::mirror::ArtMethod*, unsigned int*)+844) F/art ( 7568): art/runtime/check_jni.cc:65] native: #07 pc 0036c1fb /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, art::mirror::Object*, _jmethodID*, jvalue*)+1147) F/art ( 7568): art/runtime/check_jni.cc:65] native: #08 pc 002d4570 /system/lib/libart.so (art::JNI::CallObjectMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+336) F/art ( 7568): art/runtime/check_jni.cc:65] native: #09 pc 0013c8af /system/lib/libart.so (art::CheckJNI::CallObjectMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+175) F/art ( 7568): art/runtime/check_jni.cc:65] native: #10 pc 000c00e4 /data/app-lib/com.appcelerator.kitchensink-1/libkroll-v8.so (titanium::MenuProxy::add(v8::Arguments const&)+244) F/art ( 7568): art/runtime/check_jni.cc:65] native: #11 pc 00267dd6 /data/app-lib/com.appcelerator.kitchensink-1/libkroll-v8.so (???) F/art ( 7568): art/runtime/check_jni.cc:65] at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native method) F/art ( 7568): art/runtime/check_jni.cc:65] at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57) F/art ( 7568): art/runtime/check_jni.cc:65] at org.appcelerator.kroll.runtime.v8.V8Function.handleMessage(V8Function.java:82) F/art ( 7568): art/runtime/check_jni.cc:65] at android.os.Handler.dispatchMessage(Handler.java:98) F/art ( 7568): art/runtime/check_jni.cc:65] at android.os.Looper.loop(Looper.java:135) F/art ( 7568): art/runtime/check_jni.cc:65] at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) F/art ( 7568): art/runtime/check_jni.cc:65] F/art ( 7568): art/runtime/runtime.cc:272] Runtime aborting... F/art ( 7568): art/runtime/runtime.cc:272] Aborting thread: F/art ( 7568): art/runtime/runtime.cc:272] "KrollRuntimeThread" prio=5 tid=11 Native F/art ( 7568): art/runtime/runtime.cc:272] | group="" sCount=0 dsCount=0 obj=0x790350a0 self=0xb8dc95d0 F/art ( 7568): art/runtime/runtime.cc:272] | sysTid=7603 nice=0 cgrp=default sched=0/0 handle=0xb8dbaf50 F/art ( 7568): art/runtime/runtime.cc:272] | state=R schedstat=( 0 0 0 ) utm=1181 stm=53 core=0 HZ=100 F/art ( 7568): art/runtime/runtime.cc:272] | stack=0xa6c79000-0xa6c7f000 stackSize=1064KB F/art ( 7568): art/runtime/runtime.cc:272] native: #00 pc 00005baf /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+95) F/art ( 7568): art/runtime/runtime.cc:272] native: #01 pc 00002751 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+33) F/art ( 7568): art/runtime/runtime.cc:272] native: #02 pc 003ba727 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream >&, int, char const*, art::mirror::ArtMethod*)+135) F/art ( 7568): art/runtime/runtime.cc:272] native: #03 pc 0038bc10 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream >&) const+272) F/art ( 7568): art/runtime/runtime.cc:272] native: #04 pc 00372469 /system/lib/libart.so (_ZN3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE.isra.123+57) F/art ( 7568): art/runtime/runtime.cc:272] native: #05 pc 003727fc /system/lib/libart.so (_ZN3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE.isra.124+620) F/art ( 7568): art/runtime/runtime.cc:272] native: #06 pc 003729d1 /system/lib/libart.so (art::Runtime::Abort(void)+129) F/art ( 7568): art/runtime/runtime.cc:272] native: #07 pc 00116bbc /system/lib/libart.so (art::LogMessage::~LogMessage(void)+1644) F/art ( 7568): art/runtime/runtime.cc:272] native: #08 pc 00129f1d /system/lib/libart.so (art::JniAbort(char const*, char const)+2237) F/art ( 7568): art/runtime/runtime.cc:272] native: #09 pc 0012aa1c /system/lib/libart.so (art::JniAbortF(char const*, char const, ellipsis)+108) F/art ( 7568): art/runtime/runtime.cc:272] native: #10 pc 0008412b /system/lib/libart.so (art::CheckMethodArguments(art::mirror::ArtMethod*, unsigned int*)+844) F/art ( 7568): art/runtime/runtime.cc:272] native: #11 pc 0036c1fb /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, art::mirror::Object*, _jmethodID*, jvalue*)+1147) F/art ( 7568): art/runtime/runtime.cc:272] native: #12 pc 002d4570 /system/lib/libart.so (art::JNI::CallObjectMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+336) F/art ( 7568): art/runtime/runtime.cc:272] native: #13 pc 0013c8af /system/lib/libart.so (art::CheckJNI::CallObjectMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+175) F/art ( 7568): art/runtime/runtime.cc:272] native: #14 pc 000c00e4 /data/app-lib/com.appcelerator.kitchensink-1/libkroll-v8.so (titanium::MenuProxy::add(v8::Arguments const&)+244) F/art ( 7568): art/runtime/runtime.cc:272] native: #15 pc 00267dd6 /data/app-lib/com.appcelerator.kitchensink-1/libkroll-v8.so (???) F/art ( 7568): art/runtime/runtime.cc:272] at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native method) F/art ( 7568): art/runtime/runtime.cc:272] at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57) F/art ( 7568): art/runtime/runtime.cc:272] at org.appcelerator.kroll.runtime.v8.V8Function.handleMessage(V8Function.java:82) F/art ( 7568): art/runtime/runtime.cc:272] at android.os.Handler.dispatchMessage(Handler.java:98) F/art ( 7568): art/runtime/runtime.cc:272] at android.os.Looper.loop(Looper.java:135) F/art ( 7568): art/runtime/runtime.cc:272] at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) F/art ( 7568): art/runtime/runtime.cc:272] Dumping all threads without appropriate locks held: thread list lock mutator lock F/art ( 7568): art/runtime/runtime.cc:272] All threads: F/art ( 7568): art/runtime/runtime.cc:272] DALVIK THREADS (19): F/art ( 7568): art/runtime/runtime.cc:272] "main" prio=5 tid=1 TimedWaiting F/art ( 7568): art/runtime/runtime.cc:272] | group="" sCount=0 dsCount=0 obj=0x74dae350 self=0xb8c79e90 F/art ( 7568): art/runtime/runtime.cc:272] | sysTid=7568 nice=0 cgrp=default sched=0/0 handle=0xb77a72e0 F/art ( 7568): art/runtime/runtime.cc:272] | state=S schedstat=( 0 0 0 ) utm=3129 stm=455 core=0 HZ=100 F/art ( 7568): art/runtime/runtime.cc:272] | stack=0xbf737000-0xbf73d000 stackSize=8MB F/art ( 7568): art/runtime/runtime.cc:272] kernel: futex_wait_queue_me+0xbd/0xd0 F/art ( 7568): art/runtime/runtime.cc:272] kernel: futex_wait+0xba/0x1bc F/art ( 7568): art/runtime/runtime.cc:272] kernel: do_futex+0x90/0x7d8 F/art ( 7568): art/runtime/runtime.cc:272] kernel: sys_futex+0xc0/0xdb F/art ( 7568): art/runtime/runtime.cc:272] kernel: syscall_call+0x7/0xb F/art ( 7568): art/runtime/runtime.cc:272] native: #00 pc 000168d2 /system/lib/libc.so (short+34) F/art ( 7568): art/runtime/runtime.cc:272] native: #01 pc 0001bb87 [stack] (???) F/art ( 7568): art/runtime/runtime.cc:272] at java.lang.Object.wait!(Native method) F/art ( 7568): art/runtime/runtime.cc:272] - waiting on <0x069c270c> (a java.lang.Object) F/art ( 7568): art/runtime/runtime.cc:272] at java.lang.Thread.parkFor(Thread.java:1220) F/art ( 7568): art/runtime/runtime.cc:272] - locked <0x069c270c> (a java.lang.Object) F/art ( 7568): art/runtime/runtime.cc:272] at sun.misc.Unsafe.park(Unsafe.java:299) F/art ( 7568): art/runtime/runtime.cc:272] at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:197) F/art ( 7568): art/runtime/runtime.cc:272] at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1014) F/art ( 7568): art/runtime/runtime.cc:272] at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1304) F/art ( 7568): art/runtime/runtime.cc:272] at java.util.concurrent.Semaphore.tryAcquire(Semaphore.java:380) F/art ( 7568): art/runtime/runtime.cc:272] at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:248) F/art ( 7568): art/runtime/runtime.cc:272] at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:286) F/art ( 7568): art/runtime/runtime.cc:272] at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:186) F/art ( 7568): art/runtime/runtime.cc:272] at org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:46) F/art ( 7568): art/runtime/runtime.cc:272] at org.appcelerator.titanium.util.TiMenuSupport.onCreateOptionsMenu(TiMenuSupport.java:43) F/art ( 7568): art/runtime/runtime.cc:272] at org.appcelerator.titanium.TiBaseActivity.onCreateOptionsMenu(TiBaseActivity.java:812) F/art ( 7568): art/runtime/runtime.cc:272] at android.app.Activity.onCreatePanelMenu(Activity.java:2798) F/art ( 7568): art/runtime/runtime.cc:272] at android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:224) F/art ( 7568): art/runtime/runtime.cc:272] at android.support.v7.app.ActionBarActivity.superOnCreatePanelMenu(ActionBarActivity.java:232) F/art ( 7568): art/runtime/runtime.cc:272] at android.support.v7.app.ActionBarActivityDelegateICS.onCreatePanelMenu(ActionBarActivityDelegateICS.java:146) F/art ( 7568): art/runtime/runtime.cc:272] at android.support.v7.app.ActionBarActivity.onCreatePanelMenu(ActionBarActivity.java:199) F/art ( 7568): art/runtime/runtime.cc:272] at android.support.v7.app.ActionBarActivityDelegateICS$WindowCallbackWrapper.onCreatePanelMenu(ActionBarActivityDelegateICS.java:293) F/art ( 7568): art/runtime/runtime.cc:272] at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:522) F/art ( 7568): art/runtime/runtime.cc:272] at com.android.internal.policy.impl.PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:884) F/art ( 7568): art/runtime/runtime.cc:272] at com.android.internal.policy.impl.PhoneWindow$1.run(PhoneWindow.java:236) F/art ( 7568): art/runtime/runtime.cc:272] at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) F/art ( 7568): art/runtime/runtime.cc:272] at android.view.Choreographer.doCallbacks(Choreographer.java:580) F/art ( 7568): art/runtime/runtime.cc:272] at android.view.Choreographer.doFrame(Choreographer.java:549) F/art ( 7568): art/runtime/runtime.cc:272] at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) F/art ( 7568): art/runtime/runtime.cc:272] at android.os.Handler.handleCallback(Handler.java:738) F/art ( 7568): art/runtime/runtime.cc:272] at android.os.Handler.dispatchMessage(Handler.java:95) F/art ( 7568): art/runtime/runtime.cc:272] at android.os.Looper.loop(Looper.java:135) F/art ( 7568): art/runtime/runtime.cc:272] at android.app.ActivityThread.main(ActivityThread.java:5070) F/art ( 7568): art/runtime/runtime.cc:272] at java.lang.reflect.Method.invoke!(Native method) F/art ( 7568): art/runtime/runtime.cc:272] at java.lang.reflect.Method.invoke(Method.java:372) F/art ( 7568): art/runtime/runtime.cc:272] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836) F/art ( 7568): art/runtime/runtime.cc:272] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631) F/art ( 7568): art/runtime/runtime.cc:272] F/art ( 7568): art/runtime/runtime.cc:272] "Signal Catcher" prio=5 tid=2 WaitingInMainSignalCatcherLoop F/art ( 7568): art/runtime/runtime.cc:272] | group="" sCount=0 dsCount=0 obj=0x78d3f080 self=0xb8c7ed20 F/art ( 7568): art/runtime/runtime.cc:272] | sysTid=7571 nice=0 cgrp=default sched=0/0 handle=0xb8c76580 F/art ( 7568): art/runtime/runtime.cc:272] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100 F/art ( 7568): art/runtime/runtime.cc:272] | stack=0xafb46000-0xafb4c000 stackSize=1016KB F/art ( 7568): art/runtime/runtime.cc:272] kernel: do_sigtimedwait+0xe3/0x15e F/art ( 7568): art/runtime/runtime.cc:272] kernel: sys_rt_sigtimedwait+0x6a/0x9e F/art ( 7568): art/runtime/runtime.cc:272] kernel: syscall_call+0x7/0xb F/art ( 7568): art/runtime/runtime.cc:272] native: #00 pc 0007c8bb /system/lib/libc.so (__rt_sigtimedwait+27) F/art ( 7568): art/runtime/runtime.cc:272] native: #01 pc 00027397 /system/lib/libc.so (short+71) F/art ( 7568): art/runtime/runtime.cc:272] native: #02 pc 00378189 /system/lib/libart.so (art::SignalCatcher::WaitForSignal(art::Thread*, art::SignalSet&)+137) F/art ( 7568): art/runtime/runtime.cc:272] native: #03 pc 00379f02 /system/lib/libart.so (art::SignalCatcher::Run(void*)+306) F/art ( 7568): art/runtime/runtime.cc:272] native: #04 pc 00024578 /system/lib/libc.so (__pthread_start(void*)+56) F/art ( 7568): art/runtime/runtime.cc:272] native: #05 pc 0001ffd9 /system/lib/libc.so (__bionic_clone_entry+25) F/art ( 7568): art/runtime/runtime.cc:272] native: #06 pc 00016749 /system/lib/libc.so (__bionic_clone+73) F/art ( 7568): art/runtime/runtime.cc:272] (no managed stack frames) F/art ( 7568): art/runtime/runtime.cc:272] F/art ( 7568): art/runtime/runtime.cc:272] "JDWP" prio=5 tid=3 WaitingInMainDebuggerLoop F/art ( 7568): art/runtime/runtime.cc:272] | group="" sCount=0 dsCount=0 obj=0x78d4c080 self=0xb8c7df50 F/art ( 7568): art/runtime/runtime.cc:272] | sysTid=7572 nice=0 cgrp=default sched=0/0 handle=0xb8c7f060 F/art ( 7568): art/runtime/runtime.cc:272] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100 F/art ( 7568): art/runtime/runtime.cc:272] | stack=0xafa43000-0xafa49000 stackSize=1016KB F/art ( 7568): art/runtime/runtime.cc:272] kernel: poll_schedule_timeout+0x20/0x3d F/art ( 7568): art/runtime/runtime.cc:272] kernel: do_select+0x4d9/0x505 F/art ( 7568): art/runtime/runtime.cc:272] kernel: core_sys_select+0x27b/0x298 F/art ( 7568): art/runtime/runtime.cc:272] kernel: sys_pselect6+0xd0/0x13b F/art ( 7568): art/runtime/runtime.cc:272] kernel: syscall_call+0x7/0xb F/art ( 7568): art/runtime/runtime.cc:272] native: #00 pc 0007d735 /system/lib/libc.so (__pselect6+37) F/art ( 7568): art/runtime/runtime.cc:272] native: #01 pc 000233e3 /system/lib/libc.so (short+179) F/art ( 7568): art/runtime/runtime.cc:272] native: #02 pc 00428187 /system/lib/libart.so (art::JDWP::JdwpAdbState::ProcessIncoming(void)+551) F/art ( 7568): art/runtime/runtime.cc:272] native: #03 pc 002a196f /system/lib/libart.so (art::JDWP::JdwpState::Run(void)+415) F/art ( 7568): art/runtime/runtime.cc:272] native: #04 pc 002a38c0 /system/lib/libart.so (art::JDWP::StartJdwpThread(void*)+32) F/art ( 7568): art/runtime/runtime.cc:272] native: #05 pc 00024578 /system/lib/libc.so (__pthread_start(void*)+56) F/art ( 7568): art/runtime/runtime.cc:272] native: #06 pc 0001ffd9 /system/lib/libc.so (__bionic_clone_entry+25) F/art ( 7568): art/runtime/runtime.cc:272] native: #07 pc 00016749 /system/lib/libc.so (__bionic_clone+73) F/art ( 7568): art/runtime/runtime.cc:272] (no managed stack frames) F/art ( 7568): art/runtime/runtime.cc:272] F/art ( 7568): art/runtime/runtime.cc:272] "ReferenceQueueDaemon" prio=5 tid=4 Waiting F/art ( 7568): art/runtime/runtime.cc:272] | group="" sCount=0 dsCount=0 obj=0x78d65080 self=0xb8db11d0 F/art ( 7568): art/runtime/runtime.cc:272] | sysTid=7574 nice=0 cgrp=default sched=0/0 handle=0xb8c7e290 F/art ( 7568): art/runtime/runtime.cc:272] | state=S schedstat=( 0 0 0 ) utm=7 stm=4 core=0 HZ=100 F/art ( 7568): art/runtime/runtime.cc:272] | stack=0xaf937000-0xaf93d000 stackSize=1048KB F/art ( 7568): art/runtime/runtime.cc:272] kernel: futex_wait_queue_me+0xbd/0xd0 F/art ( 7568): art/runtime/runtime.cc:272] kernel: futex_wait+0xba/0x1bc F/art ( 7568): art/runtime/runtime.cc:272] kernel: do_futex+0x90/0x7d8 F/art ( 7568): art/runtime/runtime.cc:272] kernel: sys_futex+0xc0/0xdb F/art ( 7568): art/runtime/runtime.cc:272] kernel: syscall_call+0x7/0xb F/art ( 7568): art/runtime/runtime.cc:272] native: #00 pc 000168d0 /system/lib/libc.so (short+32) F/art ( 7568): art/runtime/runtime.cc:272] native: #01 pc 00104987 [stack:7574] (???) F/art ( 7568): art/runtime/runtime.cc:272] at java.lang.Object.wait!(Native method) F/art ( 7568): art/runtime/runtime.cc:272] - waiting on <0x23aa7855> (a java.lang.Class) F/art ( 7568): art/runtime/runtime.cc:272] at java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:133) F/art ( 7568): art/runtime/runtime.cc:272] - locked <0x23aa7855> (a java.lang.Class) F/art ( 7568): art/runtime/runtime.cc:272] at java.lang.Thread.run(Thread.java:818) F/art ( 7568): art/runtime/runtime.cc:272] F/art ( 7568): art/runtime/runtime.cc:272] "FinalizerDaemon" prio=5 tid=5 Waiting F/art ( 7568): art/runtime/runtime.cc:272] | group="" sCount=0 dsCou...
Story points: 3