Appcelerator JIRA | Rupesh Sharma | 4 years ago
  1. 0

    h2. Description In a custom android module having images in assets directory in which getting any image in Kroll.method using "context.getAssets().open("sample.jpg");" when installed to any blank android project it runs perfectly for the first time after cleaning it but again if try to install without cleaning it will not be able to find the file this time. h2. Steps to Reproduce 1. Create a Titanium Module Project and put any image in assets directory. 2. In "example" @Kroll.method put this code : {code} try { InputStream is = context.getAssets().open("sample.jpg"); Log.d(LCAT, "inputstream=="+is); } catch (IOException e) { e.printStackTrace(); } {code} 3. Install this module in Titanium android project. 4. Clean the project and then install and run it.(It will run successfully this time) 5. Now install the project again without cleaning it first, and run it again.(This time it will not be able to find the file) h2. Error Logs {code} sample.jpg W/System.err( 957): at android.content.res.AssetManager.openAsset(Native Method) W/System.err( 957): at W/System.err( 957): at W/System.err( 957): at W/System.err( 957): at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) W/System.err( 957): at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule( W/System.err( 957): at org.appcelerator.kroll.KrollRuntime.handleMessage( W/System.err( 957): at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage( W/System.err( 957): at android.os.Handler.dispatchMessage( W/System.err( 957): at android.os.Looper.loop( W/System.err( 957): at org.appcelerator.kroll.KrollRuntime$ {code}

    Appcelerator JIRA | 4 years ago | Rupesh Sharma sample.jpg
  2. 0

    I only have Arabic as my sour...

    GitHub | 2 years ago | door43app sourceTranslations/jhn/ar/avd/notes.json
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0


    GitHub | 2 years ago | door43app sourceTranslations/num/ar/avd/notes.json
  5. 0

    crash report

    GitHub | 2 years ago | door43app sourceTranslations/obs/en/
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



    at android.content.res.AssetManager.openAsset()
  2. Android Platform
    1. android.content.res.AssetManager.openAsset(Native Method)
    3 frames
    1 frame
  4. org.appcelerator.kroll
    1. org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)
    2. org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(
    3. org.appcelerator.kroll.KrollRuntime.handleMessage(
    4. org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(
    4 frames
  5. Android Platform
    1. android.os.Handler.dispatchMessage(
    2. android.os.Looper.loop(
    2 frames
  6. org.appcelerator.kroll
    1. org.appcelerator.kroll.KrollRuntime$
    1 frame