Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.0, Release 6.3.0
    • Fix Version/s: Release 7.0.2
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      2017 Sprint 23 SDK, 2017 Sprint 24 SDK, 2017 Sprint 25 SDK, 2017 Sprint 26 SDK, 2018 Sprint 01 SDK

      Description

      • onTrimMemory can cause an exception when attempting to release memory:

        FATAL EXCEPTION: main
        Process: com.titanium.test, PID: 7535
        java.lang.IllegalStateException: org.appcelerator.titanium.util.TiBlobLruCache.sizeOf() is reporting inconsistent results!
         at android.support.v4.util.LruCache.trimToSize(LruCache.java:168)
         at android.support.v4.util.LruCache.evictAll(LruCache.java:272)
         at org.appcelerator.titanium.TiApplication.onTrimMemory(TiApplication.java:417)
         at android.app.ActivityThread.handleTrimMemory(ActivityThread.java:5369)
         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1800)
         at android.os.Handler.dispatchMessage(Handler.java:105)
         at android.os.Looper.loop(Looper.java:164)
         at android.app.ActivityThread.main(ActivityThread.java:6541)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
        

      TEST CASE

      • Download an image first
      • Run app and select image from Downloads folder
      • Press back to exit app

        Ti.Media.openPhotoGallery({
            success:function(event) {
                var image = event.media.imageAsResized(300, 300);
                console.log('resized image');
            }
        });
        

      NOTE: this is happening on Android 8.0

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                gmathews Gary Mathews
                Reviewer:
                Joshua Quick
                Tester:
                Samir Mohammed
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code