{ "id": "90616", "key": "AC-2921", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-09-18T11:47:25.000+0000", "created": "2012-04-19T23:59:26.000+0000", "labels": [ "android", "crash", "state", "view" ], "versions": [], "issuelinks": [ { "id": "57494", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "130892", "key": "TIMOB-17089", "fields": { "summary": "Android: Activity/Fragment restore can sometimes crash app due to view ID collision", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2019-04-11T23:47:44.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I just had a crash. and From the description i suppose 2 of the views i created found themselves with the same id 0x65. I sadly cant find which one!\r\n{code:javascript}\r\n java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.AbsListView$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/0x65. Make sure other views do not use the same id.\r\n\tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1840)\r\n\tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1856)\r\n\tat android.app.ActivityThread.access$500(ActivityThread.java:125)\r\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1049)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:99)\r\n\tat android.os.Looper.loop(Looper.java:132)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:4157)\r\n\tat java.lang.reflect.Method.invokeNative(Native Method)\r\n\tat java.lang.reflect.Method.invoke(Method.java:491)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)\r\n\tat dalvik.system.NativeStart.main(Native Method)\r\nCaused by: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.AbsListView$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/0x65. Make sure other views do not use the same id.\r\n\tat android.view.View.onRestoreInstanceState(View.java:8340)\r\n\tat android.widget.TextView.onRestoreInstanceState(TextView.java:2557)\r\n\tat android.view.View.dispatchRestoreInstanceState(View.java:8316)\r\n\tat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2024)\r\n\tat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2024)\r\n\tat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2024)\r\n\tat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2024)\r\n\tat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2024)\r\n\tat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2024)\r\n\tat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2024)\r\n\tat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2024)\r\n\tat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2024)\r\n\tat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2024)\r\n\tat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2024)\r\n\tat android.view.View.restoreHierarchyState(View.java:8295)\r\n\tat com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1489)\r\n\tat android.app.Activity.onRestoreInstanceState(Activity.java:898)\r\n\tat android.app.Activity.performRestoreInstanceState(Activity.java:870)\r\n\tat android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1099)\r\n\tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1818)\r\n\t... 11 more\r\n{code}", "attachment": [], "flagged": false, "summary": "[android] two views of different type have the same id", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "sdk 2.0.1.GA2\r\nandroid V8 ", "comment": { "comments": [ { "id": "194746", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\n\r\nplease provide a testcase. Follow this instructions to submit a report:\r\n\r\nhttps://wiki.appcelerator.org/display/guides2/How+to+Submit+a+Bug+Report\r\n\r\nBest,\r\n\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-05-14T15:44:06.000+0000", "updated": "2012-05-14T15:44:06.000+0000" }, { "id": "219493", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Can't reproduce in 2.1.2", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-09-18T11:47:25.000+0000", "updated": "2012-09-18T11:47:25.000+0000" }, { "id": "235477", "author": { "name": "eduard@yarosa.com", "key": "eduard@yarosa.com", "displayName": "Eduard Gabdulkhakov", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Mauro,\n\nCould you please help me to understand this issue on Android device?\nWhen application is resumed after being in background ('pause' -state) for appr. 20 minutes it will crash with same error. \n\n\n\n01-22 19:37:11.165 E/TiApplication(25605): (main) [153,1980] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.app.test/com.example.app.test.TestActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.AbsListView$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/0x65. Make sure other views do not use the same id.; Titanium 3.0.0,2012/12/12 18:49,a5894b3\n01-22 19:37:11.165 E/TiApplication(25605): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.app.test/com.example.app.test.TestActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.AbsListView$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/0x65. Make sure other views do not use the same id.\n01-22 19:37:11.165 E/TiApplication(25605): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1967)\n01-22 19:37:11.165 E/TiApplication(25605): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)\n01-22 19:37:11.165 E/TiApplication(25605): at android.app.ActivityThread.access$600(ActivityThread.java:127)\n01-22 19:37:11.165 E/TiApplication(25605): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)\n01-22 19:37:11.165 E/TiApplication(25605): at android.os.Handler.dispatchMessage(Handler.java:99)\n01-22 19:37:11.165 E/TiApplication(25605): at android.os.Looper.loop(Looper.java:137)\n01-22 19:37:11.165 E/TiApplication(25605): at android.app.ActivityThread.main(ActivityThread.java:4511)\n01-22 19:37:11.165 E/TiApplication(25605): at java.lang.reflect.Method.invokeNative(Native Method)\n01-22 19:37:11.165 E/TiApplication(25605): at java.lang.reflect.Method.invoke(Method.java:511)\n01-22 19:37:11.165 E/TiApplication(25605): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)\n01-22 19:37:11.165 E/TiApplication(25605): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)\n01-22 19:37:11.165 E/TiApplication(25605): at dalvik.system.NativeStart.main(Native Method)\n01-22 19:37:11.165 E/TiApplication(25605): Caused by: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.AbsListView$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/0x65. Make sure other views do not use the same id.\n01-22 19:37:11.165 E/TiApplication(25605): at android.view.View.onRestoreInstanceState(View.java:10169)\n01-22 19:37:11.165 E/TiApplication(25605): at android.view.View.dispatchRestoreInstanceState(View.java:10145)\n01-22 19:37:11.165 E/TiApplication(25605): at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2329)\n01-22 19:37:11.165 E/TiApplication(25605): at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2329)\n01-22 19:37:11.165 E/TiApplication(25605): at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2329)\n01-22 19:37:11.165 E/TiApplication(25605): at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2329)\n01-22 19:37:11.165 E/TiApplication(25605): at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2329)\n01-22 19:37:11.165 E/TiApplication(25605): at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2329)\n01-22 19:37:11.165 E/TiApplication(25605): at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2329)\n01-22 19:37:11.165 E/TiApplication(25605): at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2329)\n01-22 19:37:11.165 E/TiApplication(25605): at android.view.View.restoreHierarchyState(View.java:10123)\n01-22 19:37:11.165 E/TiApplication(25605): at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1752)\n01-22 19:37:11.165 E/TiApplication(25605): at android.app.Activity.onRestoreInstanceState(Activity.java:906)\n01-22 19:37:11.165 E/TiApplication(25605): at android.app.Activity.performRestoreInstanceState(Activity.java:878)\n01-22 19:37:11.165 E/TiApplication(25605): at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1103)\n01-22 19:37:11.165 E/TiApplication(25605): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1945)\n01-22 19:37:11.165 E/TiApplication(25605): ... 11 more\n\nThank you,\n\nEduard\n", "updateAuthor": { "name": "eduard@yarosa.com", "key": "eduard@yarosa.com", "displayName": "Eduard Gabdulkhakov", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-01-23T12:57:56.000+0000", "updated": "2013-01-23T12:57:56.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }