Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23744

Android: Crash using Ti.Android.R values

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.0
    • Fix Version/s: Release 6.0.0
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      2016 Sprint 16 SDK

      Description

      When accessing Ti.Android.R values in your app, it causes a crash. Something as simple as:

      console.log(Ti.Android.R.anim);
      

      [INFO] :  art: art/runtime/runtime.cc:289]   native: #11 pc 002b913a  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (_JNIEnv::CallObjectMethod(_jobject*, _jmethodID*, ...)+42)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #12 pc 0030c0a7  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (titanium::RProxy::interceptor(v8::Local<v8::String>, v8::PropertyCallbackInfo<v8::Value> const&)+215)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #13 pc 00853563  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (v8::internal::PropertyCallbackArguments::Call(void (*)(v8::Local<v8::Name>, v8::PropertyCallbackInfo<v8::Value> const&), v8::internal::Handle<v8::internal::Name>)+179)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #14 pc 008d3669  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (v8::internal::JSObject::GetPropertyAttributesWithInterceptor(v8::internal::LookupIterator*)+1353)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #15 pc 008f3cf3  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (v8::internal::JSReceiver::GetPropertyAttributes(v8::internal::LookupIterator*)+67)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #16 pc 008f4cef  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (v8::internal::JSReceiver::GetOwnPropertyDescriptor(v8::internal::LookupIterator*, v8::internal::PropertyDescriptor*)+127)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #17 pc 008fdbf6  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (v8::internal::JSReceiver::OrdinaryDefineOwnProperty(v8::internal::LookupIterator*, v8::internal::PropertyDescriptor*, v8::internal::Object::ShouldThrow)+86)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #18 pc 008fdd61  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (v8::internal::JSReceiver::OrdinaryDefineOwnProperty(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSObject>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyDescriptor*, v8::internal::Object::ShouldThrow)+209)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #19 pc 008feab0  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (v8::internal::JSReceiver::DefineOwnProperty(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSReceiver>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyDescriptor*, v8::internal::Object::ShouldThrow)+80)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #20 pc 004d0c12  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (v8::Object::DefineOwnProperty(v8::Local<v8::Context>, v8::Local<v8::Name>, v8::Local<v8::Value>, v8::PropertyAttribute)+402)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #21 pc 002c05d1  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (titanium::Proxy::proxyConstructor(v8::FunctionCallbackInfo<v8::Value> const&)+289)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #22 pc 004e1034  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))+148)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #23 pc 00540994  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (???)
      [INFO] :  art: art/runtime/runtime.cc:289]   native: #24 pc 00540eac  /data/app/com.appcelerator.sample.ti520-1/lib/x86/libkroll-v8.so (???)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                farfromrefuge Martin Guillon (Inactive)
                Reviewer:
                Chee Kiat Ng (Inactive)
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-9994
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code