{ "id": "134432", "key": "TIMOB-17477", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-08-26T21:31:42.000+0000", "created": "2014-08-08T21:45:04.000+0000", "epic": { "id": 134539, "key": "TIMOB-17487", "name": "Android: Support Android-L Functionality", "summary": "Android: Support Android 5.0 Functionality", "color": { "key": "color_7" }, "done": false }, "priority": { "name": "High", "id": "2" }, "labels": [ "android-l" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [ { "id": "39693", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "134431", "key": "TIMOB-17476", "fields": { "summary": "Android-L: KS->ActionBar crashes ", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "39913", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "134431", "key": "TIMOB-17476", "fields": { "summary": "Android-L: KS->ActionBar crashes ", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:45:52.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Build KS with android-L. Go to Phone->Photo Gallery. \r\n1. On emulator, the app crashes with log\r\n{code}\r\nE/art (15583): JNI ERROR (app bug): attempt to pass an instance of java.util.HashMap as argument 1 to void ti.modules.titanium.media.MediaModule.openPhotoGallery(org.appcelerator.kroll.KrollDict)\r\nI/am_on_resume_called(15583): [0,org.appcelerator.titanium.TiActivity]\r\nW/EGL_emulation(15583): eglSurfaceAttrib not implemented\r\nW/CanvasContext(15583): Failed to set EGL_SWAP_BEHAVIOR on surface 0xb8e20740, error=EGL_SUCCESS\r\nD/TiCompositeLayout(15583): (main) [606,238323] org.appcelerator.titanium.view.TiCompositeLayout {0,0,1080,1557}\r\nD/TiCompositeLayout(15583): (main) [1,238324] ti.modules.titanium.ui.widget.TiImageView {30,60,630,660}\r\nD/TiCompositeLayout(15583): (main) [152,238476] org.appcelerator.titanium.view.TiCompositeLayout {0,0,1080,1557}\r\nD/TiCompositeLayout(15583): (main) [1,238477] ti.modules.titanium.ui.widget.TiImageView {30,60,630,660}\r\nF/art (15583): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: bad arguments passed to void ti.modules.titanium.media.MediaModule.openPhotoGallery(org.appcelerator.kroll.KrollDict) (see above for details)\r\nF/art (15583): art/runtime/check_jni.cc:65] from boolean org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(long, java.lang.Object, long, java.lang.String, java.lang.Object, boolean, boolean, int, java.lang.String)\r\nF/art (15583): art/runtime/check_jni.cc:65] \"KrollRuntimeThread\" prio=5 tid=11 Runnable\r\nF/art (15583): art/runtime/check_jni.cc:65] | group=\"main\" sCount=0 dsCount=0 obj=0x7901f0a0 self=0xb8ddae30\r\nF/art (15583): art/runtime/check_jni.cc:65] | sysTid=15623 nice=0 cgrp=default sched=0/0 handle=0xb8c7fa10\r\nF/art (15583): art/runtime/check_jni.cc:65] | state=R schedstat=( 0 0 0 ) utm=404 stm=37 core=0 HZ=100\r\nF/art (15583): art/runtime/check_jni.cc:65] | stack=0xa6c79000-0xa6c7f000 stackSize=1064KB\r\nF/art (15583): art/runtime/check_jni.cc:65] native: #00 pc 00005baf /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+95)\r\nF/art (15583): art/runtime/check_jni.cc:65] native: #01 pc 00002751 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+33)\r\nF/art (15583): 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)\r\nF/art (15583): art/runtime/check_jni.cc:65] native: #03 pc 0038bc10 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream >&) const+272)\r\nF/art (15583): art/runtime/check_jni.cc:65] native: #04 pc 00129a18 /system/lib/libart.so (art::JniAbort(char const*, char const)+952)\r\nF/art (15583): art/runtime/check_jni.cc:65] native: #05 pc 0012aa1c /system/lib/libart.so (art::JniAbortF(char const*, char const, ellipsis)+108)\r\nF/art (15583): art/runtime/check_jni.cc:65] native: #06 pc 0008412b /system/lib/libart.so (art::CheckMethodArguments(art::mirror::ArtMethod*, unsigned int*)+844)\r\nF/art (15583): 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)\r\nF/art (15583): art/runtime/check_jni.cc:65] native: #08 pc 002d11fe /system/lib/libart.so (art::JNI::CallVoidMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+334)\r\nF/art (15583): art/runtime/check_jni.cc:65] native: #09 pc 0013aeff /system/lib/libart.so (art::CheckJNI::CallVoidMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+175)\r\nF/art (15583): art/runtime/check_jni.cc:65] native: #10 pc 0016d8f6 /data/app-lib/com.appcelerator.kitchensink-1/libkroll-v8.so (titanium::MediaModule::openPhotoGallery(v8::Arguments const&)+246)\r\nF/art (15583): art/runtime/check_jni.cc:65] native: #11 pc 00267dd6 /data/app-lib/com.appcelerator.kitchensink-1/libkroll-v8.so (???)\r\nF/art (15583): art/runtime/check_jni.cc:65] at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native method)\r\nF/art (15583): art/runtime/check_jni.cc:65] at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62)\r\nF/art (15583): art/runtime/check_jni.cc:65] at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:884)\r\nF/art (15583): art/runtime/check_jni.cc:65] at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1107)\r\nF/art (15583): art/runtime/check_jni.cc:65] at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:347)\r\nF/art (15583): art/runtime/check_jni.cc:65] at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:99)\r\nF/art (15583): art/runtime/check_jni.cc:65] at ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:409)\r\nF/art (15583): art/runtime/check_jni.cc:65] at android.os.Handler.dispatchMessage(Handler.java:98)\r\nF/art (15583): art/runtime/check_jni.cc:65] at android.os.Looper.loop(Looper.java:135)\r\nF/art (15583): art/runtime/check_jni.cc:65] at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)\r\nF/art (15583): art/runtime/check_jni.cc:65] \r\nI/am_activity_launch_time( 1280): [0,941708455,com.appcelerator.kitchensink/org.appcelerator.titanium.TiActivity,2879,2879]\r\nI/ActivityManager( 1280): Displayed com.appcelerator.kitchensink/org.appcelerator.titanium.TiActivity: +2s879ms\r\nI/sf_frame_dur( 942): [com.appcelerator.kitchensink/org.appcelerator.titanium.TiActivity,1,5,3,0,2,2,1]\r\nD/TiBaseActivity(15583): (main) [834,239311] Activity org.appcelerator.titanium.TiActivity@2ff04d06 onStop\r\nF/libc (15583): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x6e009d in tid 15623 (KrollRuntimeThr)\r\nI/DEBUG ( 940): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\r\nI/DEBUG ( 940): Build fingerprint: 'generic_x86/google_sdk_x86/generic_x86:L/LPV81B/1242878:eng/test-keys'\r\nI/DEBUG ( 940): Revision: '0'\r\nI/DEBUG ( 940): pid: 15583, tid: 15623, name: KrollRuntimeThr >>> com.appcelerator.kitchensink <<<\r\nI/DEBUG ( 940): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6e009d\r\nI/DEBUG ( 940): Abort message: 'art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: bad arguments passed to void ti.modules.titanium.media.MediaModule.openPhotoGallery(org.appcelerator.kroll.KrollDict) (see above for details)'\r\nI/DEBUG ( 940): eax 006e0061 ebx b47b2cf8 ecx a6d801d0 edx e90c383e\r\nI/DEBUG ( 940): esi a6d80310 edi b8f4d410\r\nI/DEBUG ( 940): xcs 00000073 xds 0000007b xes 0000007b xfs 00000057 xss 0000007b\r\nI/DEBUG ( 940): eip b45c2ce7 ebp a6d801b8 esp a6d8010c flags 00200246\r\nI/DEBUG ( 940): \r\nI/DEBUG ( 940): backtrace:\r\nI/DEBUG ( 940): #00 pc 0030fce7 /system/lib/libart.so (art::mirror::ArtMethod::IsProxyMethod()+7)\r\nI/DEBUG ( 940): #01 pc 00327cbf /system/lib/libart.so (art::Monitor::VisitLocks(art::StackVisitor*, void (*)(art::mirror::Object*, void*), void*)+143)\r\nI/DEBUG ( 940): #02 pc 003891a0 /system/lib/libart.so (art::StackDumpVisitor::VisitFrame()+704)\r\nI/DEBUG ( 940): #03 pc 0037d79f /system/lib/libart.so (art::StackVisitor::WalkStack(bool)+159)\r\nI/DEBUG ( 940): #04 pc 0038bca0 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream >&) const+416)\r\nI/DEBUG ( 940): #05 pc 0039767e /system/lib/libart.so (art::ThreadList::DumpLocked(std::__1::basic_ostream >&)+478)\r\nI/DEBUG ( 940): #06 pc 0037272a /system/lib/libart.so (_ZN3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE.isra.124+410)\r\nI/DEBUG ( 940): #07 pc 003729d1 /system/lib/libart.so (art::Runtime::Abort()+129)\r\nI/DEBUG ( 940): #08 pc 00116bbc /system/lib/libart.so (art::LogMessage::~LogMessage()+1644)\r\nI/DEBUG ( 940): #09 pc 00129f1d /system/lib/libart.so (art::JniAbort(char const*, char const*)+2237)\r\nI/DEBUG ( 940): #10 pc 0012aa1c /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+108)\r\nI/DEBUG ( 940): #11 pc 0008412b /system/lib/libart.so (art::CheckMethodArguments(art::mirror::ArtMethod*, unsigned int*)+844)\r\nI/DEBUG ( 940): #12 pc 0036c1fb /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, art::mirror::Object*, _jmethodID*, jvalue*)+1147)\r\nI/DEBUG ( 940): #13 pc 002d11fe /system/lib/libart.so (art::JNI::CallVoidMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+334)\r\nI/DEBUG ( 940): #14 pc 0013aeff /system/lib/libart.so (art::CheckJNI::CallVoidMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+175)\r\nI/DEBUG ( 940): #15 pc 0016d8f6 /data/app-lib/com.appcelerator.kitchensink-1/libkroll-v8.so (titanium::MediaModule::openPhotoGallery(v8::Arguments const&)+246)\r\nI/DEBUG ( 940): #16 pc 00267dd6 /data/app-lib/com.appcelerator.kitchensink-1/libkroll-v8.so\r\nI/DEBUG ( 940): \r\nI/DEBUG ( 940): stack:\r\nI/DEBUG ( 940): a6d800cc a6d80140 [stack:15623]\r\nI/DEBUG ( 940): a6d800d0 a6d8013c [stack:15623]\r\nI/DEBUG ( 940): a6d800d4 b596ee18 /system/lib/libc++.so\r\nI/DEBUG ( 940): a6d800d8 a6d80110 [stack:15623]\r\nI/DEBUG ( 940): a6d800dc b5907a43 /system/lib/libc++.so (std::__1::num_put > >::do_put(std::__1::ostreambuf_iterator >, std::__1::ios_base&, char, long) const+499)\r\nI/DEBUG ( 940): a6d800e0 a6d8018c [stack:15623]\r\nI/DEBUG ( 940): a6d800e4 b8fcf144 [heap]\r\nI/DEBUG ( 940): a6d800e8 a6d80127 [stack:15623]\r\nI/DEBUG ( 940): a6d800ec a6d80127 [stack:15623]\r\nI/DEBUG ( 940): a6d800f0 a6d8012b [stack:15623]\r\nI/DEBUG ( 940): a6d800f4 b8fcf178 [heap]\r\nI/DEBUG ( 940): a6d800f8 00000020 \r\nI/DEBUG ( 940): a6d800fc b7765fc4 /system/lib/libc.so\r\nI/DEBUG ( 940): a6d80100 716542ea /system/framework/x86/boot.oat\r\nI/DEBUG ( 940): a6d80104 a6d8013c [stack:15623]\r\nI/DEBUG ( 940): a6d80108 b8fcf144 [heap]\r\nI/DEBUG ( 940): #00 a6d8010c b45dacc0 /system/lib/libart.so (art::Monitor::VisitLocks(art::StackVisitor*, void (*)(art::mirror::Object*, void*), void*)+144)\r\nI/DEBUG ( 940): #01 a6d80110 b8f4d410 [heap]\r\nI/DEBUG ( 940): a6d80114 00000000 \r\nI/DEBUG ( 940): a6d80118 a6d8012b [stack:15623]\r\nI/DEBUG ( 940): a6d8011c a6d80127 [stack:15623]\r\nI/DEBUG ( 940): a6d80120 00646c25 \r\nI/DEBUG ( 940): a6d80124 316b0000 \r\nI/DEBUG ( 940): a6d80128 b7393033 /system/lib/libGLES_trace.so (android::gltrace::GLTrace_glDeleteFramebuffers(int, unsigned int const*)+435)\r\nI/DEBUG ( 940): a6d8012c b592113b /system/lib/libc++.so (std::__1::locale::use_facet(std::__1::locale::id&) const+11)\r\nI/DEBUG ( 940): a6d80130 b8f01c70 [heap]\r\nI/DEBUG ( 940): a6d80134 00000000 \r\nI/DEBUG ( 940): a6d80138 00000000 \r\nI/DEBUG ( 940): a6d8013c 39303331 \r\nI/DEBUG ( 940): a6d80140 b8fcf140 [heap]\r\nI/DEBUG ( 940): a6d80144 00000001 \r\nI/DEBUG ( 940): a6d80148 a6d801b8 [stack:15623]\r\nI/DEBUG ( 940): a6d8014c b43c3f03 /system/lib/libart.so (std::__1::basic_ostream >& std::__1::operator<< >(std::__1::basic_ostream >&, char const*)+611)\r\nI/DEBUG ( 940): ........ ........\r\nI/DEBUG ( 940): #02 a6d801d0 a6d80310 [stack:15623]\r\nI/DEBUG ( 940): a6d801d4 b463bcc0 /system/lib/libart.so (art::StackDumpVisitor::DumpLockedObject(art::mirror::Object*, void*))\r\nI/DEBUG ( 940): a6d801d8 b8fcf140 [heap]\r\nI/DEBUG ( 940): a6d801dc b4716b48 /system/lib/libart.so (art::x86::X86Context::FillCalleeSaves(art::StackVisitor const&)+168)\r\nI/DEBUG ( 940): a6d801e0 000001e0 \r\nI/DEBUG ( 940): a6d801e4 706ce128 /system/framework/x86/boot.art\r\nI/DEBUG ( 940): a6d801e8 0000051d \r\nI/DEBUG ( 940): a6d801ec 0000051d \r\nI/DEBUG ( 940): a6d801f0 00000041 \r\nI/DEBUG ( 940): a6d801f4 00000028 \r\nI/DEBUG ( 940): a6d801f8 b8e71af0 [heap]\r\nI/DEBUG ( 940): a6d801fc e90c383e \r\nI/DEBUG ( 940): a6d80200 b8da5430 [heap]\r\nI/DEBUG ( 940): a6d80204 b47310c8 /system/lib/libart.so\r\nI/DEBUG ( 940): a6d80208 a6d80230 [stack:15623]\r\nI/DEBUG ( 940): a6d8020c b47b2cf8 /system/lib/libart.so\r\nI/DEBUG ( 940): ........ ........\r\nI/DEBUG ( 940): \r\nI/DEBUG ( 940): memory map around fault addr 006e009d:\r\nI/DEBUG ( 940): (no map below)\r\nI/DEBUG ( 940): (no map for address)\r\nI/DEBUG ( 940): (no map above)\r\nI/am_crash( 1280): [1280,0,com.appcelerator.kitchensink,11058756,Native crash,Segmentation fault,unknown,0]\r\nI/BootReceiver( 1280): Copying /data/tombstones/tombstone_01 to DropBox (SYSTEM_TOMBSTONE)\r\nW/ActivityManager( 1280): Process com.appcelerator.kitchensink has crashed too many times: killing!\r\n{code}\r\n\r\n2. After fixing the above ART runtime issue, on device (when backing out of the test), the app crashes with the following error\r\n{code}\r\n08-21 15:38:20.384: E/TiApplication(10480): (main) [0,199305] Sending event: exception on thread: main msg:java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { (has extras) }} to activity {com.kitchen/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference; Titanium 1.0,N/A,N/A\r\n08-21 15:38:20.384: E/TiApplication(10480): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { (has extras) }} to activity {com.kitchen/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference\r\n08-21 15:38:20.384: E/TiApplication(10480): at android.app.ActivityThread.deliverResults(ActivityThread.java:3426)\r\n08-21 15:38:20.384: E/TiApplication(10480): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3469)\r\n08-21 15:38:20.384: E/TiApplication(10480): at android.app.ActivityThread.access$1300(ActivityThread.java:143)\r\n08-21 15:38:20.384: E/TiApplication(10480): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1305)\r\n08-21 15:38:20.384: E/TiApplication(10480): at android.os.Handler.dispatchMessage(Handler.java:102)\r\n08-21 15:38:20.384: E/TiApplication(10480): at android.os.Looper.loop(Looper.java:135)\r\n08-21 15:38:20.384: E/TiApplication(10480): at android.app.ActivityThread.main(ActivityThread.java:5070)\r\n08-21 15:38:20.384: E/TiApplication(10480): at java.lang.reflect.Method.invoke(Native Method)\r\n08-21 15:38:20.384: E/TiApplication(10480): at java.lang.reflect.Method.invoke(Method.java:372)\r\n08-21 15:38:20.384: E/TiApplication(10480): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)\r\n08-21 15:38:20.384: E/TiApplication(10480): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631)\r\n08-21 15:38:20.384: E/TiApplication(10480): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference\r\n08-21 15:38:20.384: E/TiApplication(10480): at org.appcelerator.titanium.io.TiFileFactory.createTitaniumFile(TiFileFactory.java:56)\r\n08-21 15:38:20.384: E/TiApplication(10480): at ti.modules.titanium.media.MediaModule.createDictForImage(MediaModule.java:823)\r\n08-21 15:38:20.384: E/TiApplication(10480): at ti.modules.titanium.media.MediaModule$1.onResult(MediaModule.java:794)\r\n08-21 15:38:20.384: E/TiApplication(10480): at org.appcelerator.titanium.util.TiActivitySupportHelper$1.onResult(TiActivitySupportHelper.java:58)\r\n08-21 15:38:20.384: E/TiApplication(10480): at org.appcelerator.titanium.util.TiActivitySupportHelper.onActivityResult(TiActivitySupportHelper.java:107)\r\n08-21 15:38:20.384: E/TiApplication(10480): at org.appcelerator.titanium.TiBaseActivity.onActivityResult(TiBaseActivity.java:632)\r\n08-21 15:38:20.384: E/TiApplication(10480): at android.app.Activity.dispatchActivityResult(Activity.java:5922)\r\n08-21 15:38:20.384: E/TiApplication(10480): at android.app.ActivityThread.deliverResults(ActivityThread.java:3422)\r\n08-21 15:38:20.384: E/TiApplication(10480): ... 10 more\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): FATAL EXCEPTION: main\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): Process: com.kitchen, PID: 10480\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { (has extras) }} to activity {com.kitchen/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at android.app.ActivityThread.deliverResults(ActivityThread.java:3426)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3469)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at android.app.ActivityThread.access$1300(ActivityThread.java:143)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1305)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at android.os.Handler.dispatchMessage(Handler.java:102)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at android.os.Looper.loop(Looper.java:135)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at android.app.ActivityThread.main(ActivityThread.java:5070)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at java.lang.reflect.Method.invoke(Native Method)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at java.lang.reflect.Method.invoke(Method.java:372)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at org.appcelerator.titanium.io.TiFileFactory.createTitaniumFile(TiFileFactory.java:56)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at ti.modules.titanium.media.MediaModule.createDictForImage(MediaModule.java:823)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at ti.modules.titanium.media.MediaModule$1.onResult(MediaModule.java:794)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at org.appcelerator.titanium.util.TiActivitySupportHelper$1.onResult(TiActivitySupportHelper.java:58)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at org.appcelerator.titanium.util.TiActivitySupportHelper.onActivityResult(TiActivitySupportHelper.java:107)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at org.appcelerator.titanium.TiBaseActivity.onActivityResult(TiBaseActivity.java:632)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at android.app.Activity.dispatchActivityResult(Activity.java:5922)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): at android.app.ActivityThread.deliverResults(ActivityThread.java:3422)\r\n08-21 15:38:20.460: E/AndroidRuntime(10480): ... 10 more\r\n08-21 15:38:40.965: I/Process(10480): Sending signal. PID: 10480 SIG: 9\r\n{code}", "attachment": [], "flagged": false, "summary": "Android 5.0: KS->Photo Gallery crashes ", "creator": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 175, "state": "closed", "name": "2014 Sprint 17 SDK", "startDate": "2014-08-21T22:07:00.000Z", "endDate": "2014-08-30T00:00:00.000Z", "completeDate": "2014-09-02T19:56:25.517Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "318098", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The crash is only seen on an android L emulator. \r\nTried it on nexus 5 running L preview & did not see any crash.\r\n\r\nCrash did not happen for me even on a android 4.4.4 device with ART enabled\r\n\r\nEnvironment: \r\nAppc Studio : 3.3.0.201407111535 \r\nTi SDK : 3.3.0.GA \r\nMac OSX : 10.8.5 \r\nAlloy : 1.4.1 \r\nCLI - 3.3.0-rc4 \r\nCode Processor: 1.1.1 \r\nNexus 5 - android L preview", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-11T22:39:22.000+0000", "updated": "2014-08-11T22:39:22.000+0000" }, { "id": "320217", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[PR#5973|https://github.com/appcelerator/titanium_mobile/pull/5973] will fix the ART runtime crash.\r\nThe second crash is filed in TIMOB-17565.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-25T21:48:09.000+0000", "updated": "2014-08-27T20:20:39.000+0000" }, { "id": "414915", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate of the ticket that is mentioned above and has since been closed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:45:52.000+0000", "updated": "2017-03-22T20:45:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }