Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18784] Android : SearchView along with table view crashes

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-07-11T20:40:45.000+0000
Affected Version/sRelease 3.5.1
Fix Version/sn/a
ComponentsAndroid
Labelsalloy, android, crash, searchview, tableview
ReporterHardik Amal
AssigneeEric Merriman
Created2015-04-04T12:02:38.000+0000
Updated2017-07-11T20:40:45.000+0000

Description

I have been facing this issue but dont have the reproducible steps. But this seems to be bug in the SearchView but surprisingly the crash only occurs on real device and not on Genymotion...After replacing the searchview with searchbar app seems to be working properly.... java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. at android.view.ViewGroup.addViewInner(ViewGroup.java:3562) at android.view.ViewGroup.addView(ViewGroup.java:3415) at android.view.ViewGroup.addView(ViewGroup.java:3360) at android.view.ViewGroup.addView(ViewGroup.java:3336) at android.support.v7.internal.view.menu.MenuItemWrapperICS$CollapsibleActionViewWrapper.(MenuItemWrapperICS.java:444) at android.support.v7.internal.view.menu.MenuItemWrapperICS.setActionView(MenuItemWrapperICS.java:242) at org.appcelerator.titanium.proxy.MenuItemProxy$1.run(MenuItemProxy.java:377) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5001) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) at dalvik.system.NativeStart.main(Native Method)

Comments

  1. Lee Morris 2017-07-11

    Verifying that has been fixed as I am unable to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source