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

Android: Accessing Titanium.App.Android.R logs GC errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.5.0
    • Component/s: Android
    • Labels:
    • Environment:
    • Story Points:
      3
    • Sprint:
      2016 Sprint 17 SDK

      Description

      When building an Alloy app with Ti SDK 7.1.1 accessing `Titanium.App.Android.R` causes the logs to trow errors:

      [ERROR] JavaObject: !!! OH NO! We tried to grab a Java Object back out of the reference table, but it must have been GC'd, because it's null! Key: 0
      [ERROR] JavaObject: !!! OH NO! We tried to grab a Java Object back out of the reference table, but it must have been GC'd, because it's null! Key: 0
      

      How to reproduce:

      1. Create new Alloy app
      2. Add the following code below in alloy.js:
      3. Build
      4. See errors in logs.

      Ti.API.info("Hyper Hello");
      Ti.API.info(Titanium.App.Android.R);
      

      Logs:

      [INFO]  Hyper Hello
      [ERROR] JavaObject: !!! OH NO! We tried to grab a Java Object back out of the reference table, but it must have been GC'd, because it's null! Key: 0
      [ERROR] JavaObject: !!! OH NO! We tried to grab a Java Object back out of the reference table, but it must have been GC'd, because it's null! Key: 0
      [INFO]  [object R]
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              dieskim David van de Meer
              Reviewer:
              Yordan Banev
              Tester:
              Samir Mohammed
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code