Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-7792

Android 6.0 - No images are being downloaded by TiDownloadManager

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Release 4.3.1
    • Fix Version/s: None
    • Component/s: Android, SDK
    • Labels:
      None
    • Environment:

      SDK: 5.2.0.v20151016172827
      Studio: 4.3.1.201509302304
      CLI: 5.0.3
      Device: Android 6.0, LG Nexus 5

      Description

      After updating my device to Android 6.0 weird stuff happens. Visually, the UI is broken on every scrollview (the item height is huge) and no images (all supposed to be downloaded) are shown. The Studio won't give me any errors after starting the app... but I think this last behaviour has already been reported.

      But I can see the logs through `adb logcat`

      This is what I see when the app is starting (only showing what I think is relevant):

      10-18 18:48:06.597 20998 20998 I TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
      10-18 18:48:06.597 20998 20998 I TiApplication: (main) [0,0] Analytics have been disabled
      10-18 18:48:06.598 20998 20998 W TiTempFileHelper: (main) [1,1] The external temp directory doesn't exist, skipping cleanup
      10-18 18:48:06.779 20998 21046 W TiApplication: (KrollRuntimeThread) [6,182] Registering module with name already in use.
      10-18 18:48:06.898 20998 20998 I TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.myApp.MyAppActivity@457ea25
      10-18 18:48:09.513 20998 20998 W TiUIScrollView: (main) [2615,2615] Scroll direction could not be determined based on the provided view properties. Default VERTICAL scroll direction being used. Use the 'scrollType' property to explicitly set the scrolling direction.
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: (pool-3-thread-1) [275,2890] Exception downloading http://myServer.com/someFile.png
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.myApp/cache/_tmp/remote-cache/728710c6374d55247d52f210cdd1f6eafb14b8f2.hdr: open failed: ENOENT (No such file or directory)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at libcore.io.IoBridge.open(IoBridge.java:452)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at java.io.FileOutputStream.<init>(FileOutputStream.java:87)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at java.io.FileOutputStream.<init>(FileOutputStream.java:72)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at java.io.FileWriter.<init>(FileWriter.java:42)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at org.appcelerator.titanium.util.TiResponseCache.put(TiResponseCache.java:472)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at com.android.okhttp.internal.huc.CacheAdapter.put(CacheAdapter.java:57)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at com.android.okhttp.internal.http.HttpEngine.maybeCache(HttpEngine.java:554)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:826)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:439)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:384)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:231)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at java.net.URL.openStream(URL.java:470)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at org.appcelerator.titanium.util.TiDownloadManager$DownloadJob.run(TiDownloadManager.java:135)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at java.lang.Thread.run(Thread.java:818)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at libcore.io.Posix.open(Native Method)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	at libcore.io.IoBridge.open(IoBridge.java:438)
      10-18 18:48:09.788 20998 21219 E TiDownloadManager: 	... 15 more
      10-18 18:48:09.909   782   807 I ActivityManager: Displayed com.myApp/org.appcelerator.titanium.TiActivity: +493ms
      

      I would like to add that the other day the same happened but I removed and re-installed Appcelerator and it somehow was fixed. I've tried that several times today already.

      Other users have reported the same, on the community forum, and pointing to the TiDownloadManager.

        Attachments

          Activity

            People

            • Assignee:
              kkolipaka Kondal Kolipaka (Inactive)
              Reporter:
              abdielou Abdiel Aviles
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: