java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.zipwire.test/cache/_tmp/remote-cache/5b7624468b64d5e3153101a30a50891c94dace39.hdr: open failed: ENOENT (No such file or directory)

Appcelerator JIRA | Jan Ruehling | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Android 6 doesn't load images from a remote url, while Android 5 works fine. All of the following 4 are not shown on Android 6. {code:javascript} var win = Ti.UI.createWindow(); var view = Ti.UI.createScrollView({ scrollType: 'vertical', layout: 'vertical' }); view.add(Ti.UI.createLabel({ text: 'Remote HTTPS from AppC' })); view.add(Ti.UI.createImageView({ image: 'https://www.appcelerator.com/wp-content/themes/appc-rwd/assets/media/images/logo.png' })); view.add(Ti.UI.createLabel({ text: 'Remote HTTP from AppC' })); view.add(Ti.UI.createImageView({ image: 'http://www.appcelerator.com/wp-content/themes/appc-rwd/assets/media/images/logo.png' })); view.add(Ti.UI.createLabel({ text: 'Remote HTTPS from CloudFront' })); view.add(Ti.UI.createImageView({ image: 'https://cfimagesstaging.zipwire.com/56325c2e7dec0.jpg' })); view.add(Ti.UI.createLabel({ text: 'Remote HTTP from CloudFront' })); view.add(Ti.UI.createImageView({ image: 'http://cfimagesstaging.zipwire.com/56325c2e7dec0.jpg' })); win.add(view); win.open(); {code} adb logcat shows a failing TiDownloader request: {noformat} 11-05 16:26:13.015 23434 23480 E TiDownloadManager: (pool-2-thread-1) [100607,100607] Exception downloading https://cfimagesstaging.zipwire.com/56325c2e7dec0.jpg 11-05 16:26:13.015 23434 23480 E TiDownloadManager: java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.zipwire.test/cache/_tmp/remote-cache/5b7624468b64d5e3153101a30a50891c94dace39.hdr: open failed: ENOENT (No such file or directory) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at libcore.io.IoBridge.open(IoBridge.java:452) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.io.FileOutputStream.<init>(FileOutputStream.java:87) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.io.FileOutputStream.<init>(FileOutputStream.java:72) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.io.FileWriter.<init>(FileWriter.java:42) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at org.appcelerator.titanium.util.TiResponseCache.put(TiResponseCache.java:472) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.huc.CacheAdapter.put(CacheAdapter.java:57) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.http.HttpEngine.maybeCache(HttpEngine.java:554) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:826) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:439) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:384) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:231) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.net.URL.openStream(URL.java:470) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at org.appcelerator.titanium.util.TiDownloadManager$DownloadJob.run(TiDownloadManager.java:135) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.lang.Thread.run(Thread.java:818) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at libcore.io.Posix.open(Native Method) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at libcore.io.IoBridge.open(IoBridge.java:438) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: ... 17 more {noformat} I searched and found this Java issue: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4620571 It seems like Java can't handle a protocol redirect. I am just checking if we do this for images.

    Appcelerator JIRA | 1 year ago | Jan Ruehling
    java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.zipwire.test/cache/_tmp/remote-cache/5b7624468b64d5e3153101a30a50891c94dace39.hdr: open failed: ENOENT (No such file or directory)
  2. 0

    Android 6 doesn't load images from a remote url, while Android 5 works fine. All of the following 4 are not shown on Android 6. {code:javascript} var win = Ti.UI.createWindow(); var view = Ti.UI.createScrollView({ scrollType: 'vertical', layout: 'vertical' }); view.add(Ti.UI.createLabel({ text: 'Remote HTTPS from AppC' })); view.add(Ti.UI.createImageView({ image: 'https://www.appcelerator.com/wp-content/themes/appc-rwd/assets/media/images/logo.png' })); view.add(Ti.UI.createLabel({ text: 'Remote HTTP from AppC' })); view.add(Ti.UI.createImageView({ image: 'http://www.appcelerator.com/wp-content/themes/appc-rwd/assets/media/images/logo.png' })); view.add(Ti.UI.createLabel({ text: 'Remote HTTPS from CloudFront' })); view.add(Ti.UI.createImageView({ image: 'https://cfimagesstaging.zipwire.com/56325c2e7dec0.jpg' })); view.add(Ti.UI.createLabel({ text: 'Remote HTTP from CloudFront' })); view.add(Ti.UI.createImageView({ image: 'http://cfimagesstaging.zipwire.com/56325c2e7dec0.jpg' })); win.add(view); win.open(); {code} adb logcat shows a failing TiDownloader request: {noformat} 11-05 16:26:13.015 23434 23480 E TiDownloadManager: (pool-2-thread-1) [100607,100607] Exception downloading https://cfimagesstaging.zipwire.com/56325c2e7dec0.jpg 11-05 16:26:13.015 23434 23480 E TiDownloadManager: java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.zipwire.test/cache/_tmp/remote-cache/5b7624468b64d5e3153101a30a50891c94dace39.hdr: open failed: ENOENT (No such file or directory) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at libcore.io.IoBridge.open(IoBridge.java:452) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.io.FileOutputStream.<init>(FileOutputStream.java:87) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.io.FileOutputStream.<init>(FileOutputStream.java:72) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.io.FileWriter.<init>(FileWriter.java:42) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at org.appcelerator.titanium.util.TiResponseCache.put(TiResponseCache.java:472) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.huc.CacheAdapter.put(CacheAdapter.java:57) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.http.HttpEngine.maybeCache(HttpEngine.java:554) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:826) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:439) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:384) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:231) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.net.URL.openStream(URL.java:470) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at org.appcelerator.titanium.util.TiDownloadManager$DownloadJob.run(TiDownloadManager.java:135) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at java.lang.Thread.run(Thread.java:818) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at libcore.io.Posix.open(Native Method) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: at libcore.io.IoBridge.open(IoBridge.java:438) 11-05 16:26:13.015 23434 23480 E TiDownloadManager: ... 17 more {noformat} I searched and found this Java issue: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4620571 It seems like Java can't handle a protocol redirect. I am just checking if we do this for images.

    Appcelerator JIRA | 1 year ago | Jan Ruehling
    java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.zipwire.test/cache/_tmp/remote-cache/5b7624468b64d5e3153101a30a50891c94dace39.hdr: open failed: ENOENT (No such file or directory)
  3. 0

    h6.Issue Description While trying to write the attachment content in the file and the directory used is temp_directory. As per the use case we have to save the content passed from the cloud server to the file and file is opened by using the intents. This approach is working fine for the os version upto Android 5.0 (lollipop) but on the Android 6.0 (Marshmallow) it’s failing. h6.Steps to reproduce 1) Get sample attach to run on Android 5 device 2) Monitor and watch logs. App works fine 3) Get sample attach to run on Android 6 device 4) Monitor and watch logs. App won't load file as expected. h6.Stack Trace {code} -- Start application log ----------------------------------------------------- [INFO] : TiApplication: (main) [0,0] checkpoint, app created. [INFO] : TiApplication: (main) [58,58] Titanium 5.1.2 (2015/12/16 19:00 ca822b2) [INFO] : DatabaseHelper: No value in database for platform key: 'unique_machine_id' returning supplied default '' [INFO] : DatabaseHelper: No value in database for platform key: 'hardware_machine_id' returning supplied default '' [WARN] : art: Suspending all threads took: 5.501ms [INFO] : art: Background sticky concurrent mark sweep GC freed 512(22KB) AllocSpace objects, 0(0B) LOS objects, 1% free, 2MB/2MB, paused 6.183ms total 22.877ms [INFO] : TiApplication: (main) [263,321] Titanium Javascript runtime: v8 [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null [WARN] : V8Object: (KrollRuntimeThread) [249,249] Runtime disposed, cannot set property 'userAgent' [DEBUG] : APSAnalyticsModel: Creating Database appcAnalytics.db [WARN] : TiTempFileHelper: (main) [354,603] The external temp directory doesn't exist, skipping cleanup [DEBUG] : Module: Loading module: alloy -> Resources/alloy.js [DEBUG] : Module: Loading module: alloy/underscore -> Resources/alloy/underscore.js [DEBUG] : Module: Loading module: alloy/backbone -> Resources/alloy/backbone.js [DEBUG] : Module: Loading module: alloy/constants -> Resources/alloy/constants.js [DEBUG] : Module: Loading module: alloy/CFG -> Resources/alloy/CFG.js [DEBUG] : Module: Loading module: alloy/controllers/index -> Resources/alloy/controllers/index.js [DEBUG] : Module: Loading module: alloy/controllers/BaseController -> Resources/alloy/controllers/BaseController.js [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.example.Docx_pocActivity@b56e552 [DEBUG] : OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true [DEBUG] : D/ : HostConnection::get() New Host Connection established 0xec8fdc10, tid 10299 [DEBUG] : Window: Checkpoint: postWindowCreated() [DEBUG] : libEGL: loaded /system/lib/egl/libEGL_emulation.so [DEBUG] : libEGL: loaded /system/lib/egl/libGLESv1_CM_emulation.so [DEBUG] : libEGL: loaded /system/lib/egl/libGLESv2_emulation.so [DEBUG] : D/ : HostConnection::get() New Host Connection established 0xed661cf0, tid 10318 [INFO] : OpenGLRenderer: Initialized EGL, version 1.4 [WARN] : EGL_emulation: eglSurfaceAttrib not implemented [WARN] : OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xf3d3d160, error=EGL_SUCCESS [TRACE] : updating tiapp metadata with Appcelerator Platform... [TRACE] : Uploaded tiapp metadata with Appcelerator Platform! [ERROR] : TiFileProxy: (KrollRuntimeThread) [11875,11875] IOException encountered [ERROR] : TiFileProxy: java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.example/cache/_tmp/sample.doc: open failed: ENOENT (No such file or directory) [ERROR] : TiFileProxy: at libcore.io.IoBridge.open(IoBridge.java:452) [ERROR] : TiFileProxy: at java.io.FileOutputStream.<init>(FileOutputStream.java:87) [ERROR] : TiFileProxy: at org.appcelerator.titanium.io.TiFile.getOutputStream(TiFile.java:273) [ERROR] : TiFileProxy: at org.appcelerator.titanium.io.TiFile.open(TiFile.java:336) [ERROR] : TiFileProxy: at org.appcelerator.titanium.io.TiFile.write(TiFile.java:382) [ERROR] : TiFileProxy: at org.appcelerator.titanium.TiFileProxy.write(TiFileProxy.java:284) [ERROR] : TiFileProxy: at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) [ERROR] : TiFileProxy: at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62) [ERROR] : TiFileProxy: at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:908) [ERROR] : TiFileProxy: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1131) [ERROR] : TiFileProxy: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:352) [ERROR] : TiFileProxy: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] : TiFileProxy: at android.os.Looper.loop(Looper.java:148) [ERROR] : TiFileProxy: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) [ERROR] : TiFileProxy: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) [ERROR] : TiFileProxy: at libcore.io.Posix.open(Native Method) [ERROR] : TiFileProxy: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) [ERROR] : TiFileProxy: at libcore.io.IoBridge.open(IoBridge.java:438) [ERROR] : TiFileProxy: ... 13 more [ERROR] : Path/type is empty [INFO] : APSAnalyticsService: Analytics Service Started [INFO] : APSAnalyticsService: Stopping Analytics Service {code}

    Appcelerator JIRA | 1 year ago | Eduardo Gomez
    java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.meridian.android/cache/_tmp/remote-cache/3254c4bb31a1cc5d21043e49f0704efc1a84213c.hdr: open failed: ENOENT (No such file or directory)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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): {noformat} 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 {noformat} 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.

    Appcelerator JIRA | 2 years ago | Abdiel Aviles
    java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.myApp/cache/_tmp/remote-cache/728710c6374d55247d52f210cdd1f6eafb14b8f2.hdr: open failed: ENOENT (No such file or directory)
  6. 0

    *Details:* Remote images are not rendered when using with Ti.UI.createImageView on a Android 6.0 device. *Notes:* * This is *not a regression* with 5.1.1.GA SDK. * Remote images are rendered on Android 4.X devices. *Steps to reproduce:* # Create a Titanium classic app # Replace app.js with the following code: {code} var win = Ti.UI.createWindow({ backgroundColor: 'white' }); var imageTest = Titanium.UI.createImageView({ image: 'http://chart.apis.google.com/chart?cht=r&chs=200x200&chd=t:77,66,15,0,31,48,100,77%7C20,36,100,2,0,100&chco=FF0000,FF9900&chls=2.0,4.0,0.0%7C2.0,4.0,0.0&chxt=x&chxl=0:%7C0%7C45%7C90%7C135%7C180%7C225%7C270%7C315&chxr=0,0.0,360.0', // image: 'http://www.appcelerator.com/wp-content/themes/appc-rwd/assets/media/images/logo.png', top: 10, width: Ti.UI.SIZE, height: Ti.UI.SIZE }); win.add(imageTest); win.open(); {code} # Install app to a 6.0 Android device. *Actual:* In logcat, you will *intermittently* get this FileNotFoundException: {code} 01-05 15:24:10.915: E/TiDownloadManager(13365): (pool-3-thread-2) [5309,5309] Exception downloading http://chart.apis.google.com/chart?cht=r&chs=200x200&chd=t%3A77%2C66%2C15%2C0%2C31%2C48%2C100%2C77%7C20%2C36%2C100%2C2%2C0%2C100&chco=FF0000%2CFF9900&chls=2.0%2C4.0%2C0.0%7C2.0%2C4.0%2C0.0&chxt=x&chxl=0%3A%7C0%7C45%7C90%7C135%7C180%7C225%7C270%7C315&chxr=0%2C0.0%2C360.0 01-05 15:24:10.915: E/TiDownloadManager(13365): java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.appcelerator.ImageView/cache/_tmp/remote-cache/9c7e4d9a7222251ad1e827727032e06efb597abb.hdr: open failed: ENOENT (No such file or directory) 01-05 15:24:10.915: E/TiDownloadManager(13365): at libcore.io.IoBridge.open(IoBridge.java:452) 01-05 15:24:10.915: E/TiDownloadManager(13365): at java.io.FileOutputStream.<init>(FileOutputStream.java:87) 01-05 15:24:10.915: E/TiDownloadManager(13365): at java.io.FileOutputStream.<init>(FileOutputStream.java:72) 01-05 15:24:10.915: E/TiDownloadManager(13365): at java.io.FileWriter.<init>(FileWriter.java:42) 01-05 15:24:10.915: E/TiDownloadManager(13365): at org.appcelerator.titanium.util.TiResponseCache.put(TiResponseCache.java:472) 01-05 15:24:10.915: E/TiDownloadManager(13365): at com.android.okhttp.internal.huc.CacheAdapter.put(CacheAdapter.java:57) 01-05 15:24:10.915: E/TiDownloadManager(13365): at com.android.okhttp.internal.http.HttpEngine.maybeCache(HttpEngine.java:554) 01-05 15:24:10.915: E/TiDownloadManager(13365): at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:826) 01-05 15:24:10.915: E/TiDownloadManager(13365): at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:439) 01-05 15:24:10.915: E/TiDownloadManager(13365): at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:384) 01-05 15:24:10.915: E/TiDownloadManager(13365): at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:231) 01-05 15:24:10.915: E/TiDownloadManager(13365): at java.net.URL.openStream(URL.java:470) 01-05 15:24:10.915: E/TiDownloadManager(13365): at org.appcelerator.titanium.util.TiDownloadManager$DownloadJob.run(TiDownloadManager.java:135) 01-05 15:24:10.915: E/TiDownloadManager(13365): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 01-05 15:24:10.915: E/TiDownloadManager(13365): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 01-05 15:24:10.915: E/TiDownloadManager(13365): at java.lang.Thread.run(Thread.java:818) 01-05 15:24:10.915: E/TiDownloadManager(13365): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) 01-05 15:24:10.915: E/TiDownloadManager(13365): at libcore.io.Posix.open(Native Method) 01-05 15:24:10.915: E/TiDownloadManager(13365): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) 01-05 15:24:10.915: E/TiDownloadManager(13365): at libcore.io.IoBridge.open(IoBridge.java:438) 01-05 15:24:10.915: E/TiDownloadManager(13365): ... 15 more {code} And, the remote image will not be rendered; see 6.0_device.png attachment. *Expected:* You should see the remote image being rendered on device; see 4.X_device.png attachment.

    Appcelerator JIRA | 1 year ago | Wilson Luu
    java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.appcelerator.ImageView/cache/_tmp/remote-cache/9c7e4d9a7222251ad1e827727032e06efb597abb.hdr: open failed: ENOENT (No such file or directory)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.system.ErrnoException

    open failed: ENOENT (No such file or directory)

    at libcore.io.Posix.open()
  2. Android
    IoBridge.open
    1. libcore.io.Posix.open(Native Method)
    2. libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
    3. libcore.io.IoBridge.open(IoBridge.java:438)
    3 frames
  3. Java RT
    FileWriter.<init>
    1. java.io.FileOutputStream.<init>(FileOutputStream.java:87)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:72)
    3. java.io.FileWriter.<init>(FileWriter.java:42)
    3 frames
  4. org.appcelerator.titanium
    TiResponseCache.put
    1. org.appcelerator.titanium.util.TiResponseCache.put(TiResponseCache.java:472)
    1 frame
  5. com.android.okhttp
    CacheAdapter.put
    1. com.android.okhttp.internal.huc.CacheAdapter.put(CacheAdapter.java:57)
    1 frame
  6. Android
    HttpEngine.readResponse
    1. com.android.okhttp.internal.http.HttpEngine.maybeCache(HttpEngine.java:554)
    2. com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:826)
    2 frames
  7. com.android.okhttp
    HttpsURLConnectionImpl.getInputStream
    1. com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:439)
    2. com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:384)
    3. com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:231)
    4. com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
    5. com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java)
    5 frames
  8. Java RT
    URL.openStream
    1. java.net.URL.openStream(URL.java:470)
    1 frame
  9. org.appcelerator.titanium
    TiDownloadManager$DownloadJob.run
    1. org.appcelerator.titanium.util.TiDownloadManager$DownloadJob.run(TiDownloadManager.java:135)
    1 frame
  10. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    3. java.lang.Thread.run(Thread.java:818)
    3 frames