android.content.res.Resources$NotFoundException: Unable to find resource ID #0x3e8

Appcelerator JIRA | Manuel Lehner | 2 years ago
  1. 0

    GitHub comment 4#66626138

    GitHub | 2 years ago | manumaticx
    android.content.res.Resources$NotFoundException: Unable to find resource ID #0x3e8
  2. 0

    The issue title may be a little general but I'm not able to be more specific because this happens whenever the parent view of the mapview is a Fragment. You can easily reproduce this bug with this test code: {code:javascript} Ti.UI.createAlertDialog({ androidView: require('ti.map').createView() }).show(); {code} App crashes with this: {code} [ERROR] : TiApplication (main) [712,712] Sending event: exception on thread: main msg:android.content.res.Resources$NotFoundException: Unable to find resource ID #0x3e8; Titanium 3.6.0,2014/12/11 14:51,7bde3b5 [ERROR] : TiApplication android.content.res.Resources$NotFoundException: Unable to find resource ID #0x3e8 [ERROR] : TiApplication at android.content.res.Resources.getResourceName(Resources.java:2026) [ERROR] : TiApplication at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:939) [ERROR] : TiApplication at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1126) [ERROR] : TiApplication at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:739) [ERROR] : TiApplication at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1489) [ERROR] : TiApplication at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:454) [ERROR] : TiApplication at android.os.Handler.handleCallback(Handler.java:739) [ERROR] : TiApplication at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : TiApplication at android.os.Looper.loop(Looper.java:135) [ERROR] : TiApplication at android.app.ActivityThread.main(ActivityThread.java:5221) [ERROR] : TiApplication at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiApplication at java.lang.reflect.Method.invoke(Method.java:372) [ERROR] : TiApplication at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) [ERROR] : TiApplication at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) {code} This not just happening with AlertDialogs, I've seen this error since a while here: https://github.com/manumaticx/Ti.DrawerLayout/issues/4 I think the cause for this is somewhere in [TiUIFragment|https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/src/java/org/appcelerator/titanium/view/TiUIFragment.java] as the FragmentManager fails to resolve the containers resource id. I've tested this with several Titanium versions (3.3.0 to 3.6.0).

    Appcelerator JIRA | 2 years ago | Manuel Lehner
    android.content.res.Resources$NotFoundException: Unable to find resource ID #0x3e8
  3. 0

    The issue title may be a little general but I'm not able to be more specific because this happens whenever the parent view of the mapview is a Fragment. You can easily reproduce this bug with this test code: {code:javascript} Ti.UI.createAlertDialog({ androidView: require('ti.map').createView() }).show(); {code} App crashes with this: {code} [ERROR] : TiApplication (main) [712,712] Sending event: exception on thread: main msg:android.content.res.Resources$NotFoundException: Unable to find resource ID #0x3e8; Titanium 3.6.0,2014/12/11 14:51,7bde3b5 [ERROR] : TiApplication android.content.res.Resources$NotFoundException: Unable to find resource ID #0x3e8 [ERROR] : TiApplication at android.content.res.Resources.getResourceName(Resources.java:2026) [ERROR] : TiApplication at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:939) [ERROR] : TiApplication at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1126) [ERROR] : TiApplication at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:739) [ERROR] : TiApplication at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1489) [ERROR] : TiApplication at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:454) [ERROR] : TiApplication at android.os.Handler.handleCallback(Handler.java:739) [ERROR] : TiApplication at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : TiApplication at android.os.Looper.loop(Looper.java:135) [ERROR] : TiApplication at android.app.ActivityThread.main(ActivityThread.java:5221) [ERROR] : TiApplication at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiApplication at java.lang.reflect.Method.invoke(Method.java:372) [ERROR] : TiApplication at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) [ERROR] : TiApplication at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) {code} This not just happening with AlertDialogs, I've seen this error since a while here: https://github.com/manumaticx/Ti.DrawerLayout/issues/4 I think the cause for this is somewhere in [TiUIFragment|https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/src/java/org/appcelerator/titanium/view/TiUIFragment.java] as the FragmentManager fails to resolve the containers resource id. I've tested this with several Titanium versions (3.3.0 to 3.6.0).

    Appcelerator JIRA | 2 years ago | Manuel Lehner
    android.content.res.Resources$NotFoundException: Unable to find resource ID #0x3e8
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android Google Maps makes App crash

    GitHub | 2 years ago | treinberger
    android.content.res.Resources$NotFoundException: Unable to find resource ID #0x3e8
  6. 0

    Android: Unable to find resource ID Exception

    Stack Overflow | 3 years ago | Ann18
    android.content.res.Resources$NotFoundException: Unable to find resource ID #0xffffffff

  1. tone5992 14 times, last 7 months ago
  2. Macapon 29 times, last 7 months ago
5 unregistered visitors
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.content.res.Resources$NotFoundException

    Unable to find resource ID #0x3e8

    at android.content.res.Resources.getResourceName()
  2. Android Platform
    Resources.getResourceName
    1. android.content.res.Resources.getResourceName(Resources.java:2026)
    1 frame
  3. Android Support v4
    FragmentManagerImpl$1.run
    1. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:939)
    2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1126)
    3. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:739)
    4. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1489)
    5. android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:454)
    5 frames
  4. Android Platform
    ActivityThread.main
    1. android.os.Handler.handleCallback(Handler.java:739)
    2. android.os.Handler.dispatchMessage(Handler.java:95)
    3. android.os.Looper.loop(Looper.java:135)
    4. android.app.ActivityThread.main(ActivityThread.java:5221)
    4 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
    2 frames