My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 38261: Class-cast exception when using SearchView
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by riv...@gmail.com, Oct 8, 2012
We've caught strange exception on Samsung Galaxy Tab.
Case is simple but it's very rare:
Call search, enter keyword, tap search -> crash

10-08 11:41:25.489: E/AndroidRuntime(30594): FATAL EXCEPTION: main
10-08 11:41:25.489: E/AndroidRuntime(30594): java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.ListView.measureScrapChild(ListView.java:1181)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.ListView.measureHeightOfChildren(ListView.java:1264)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.ListView.onMeasure(ListView.java:1173)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.View.measure(View.java:10853)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4353)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.View.measure(View.java:10853)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4353)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.View.measure(View.java:10853)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:581)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:365)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.View.measure(View.java:10853)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4353)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.View.measure(View.java:10853)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.LinearLayout.measureVertical(LinearLayout.java:764)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.LinearLayout.onMeasure(LinearLayout.java:519)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.View.measure(View.java:10853)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4353)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.View.measure(View.java:10853)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4353)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1284)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.LinearLayout.measureVertical(LinearLayout.java:613)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.LinearLayout.onMeasure(LinearLayout.java:519)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.View.measure(View.java:10853)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4353)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2042)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.View.measure(View.java:10853)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.ViewRoot.performTraversals(ViewRoot.java:941)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.view.ViewRoot.handleMessage(ViewRoot.java:2066)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.os.Handler.dispatchMessage(Handler.java:99)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.os.Looper.loop(Looper.java:132)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at android.app.ActivityThread.main(ActivityThread.java:4126)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at java.lang.reflect.Method.invokeNative(Native Method)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at java.lang.reflect.Method.invoke(Method.java:491)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
10-08 11:41:25.489: E/AndroidRuntime(30594): 	at dalvik.system.NativeStart.main(Native Method)
Sign in to add a comment

Powered by Google Project Hosting