我在我的应用上执行多个背靠背操作后才会收到随机异常。我有一个我添加至少10个位置的列表,删除一个,更改位置4次,然后尝试输入一个新位置。它是一个处理搜索的AutoCompleteTextView。这是我收到的错误。当我回到应用程序时,我的所有位置都消失了,但如果我再次打开它会重新出现。这是一个HomeScreen应用程序小部件。
01-18 13:08:54.903:E / AndroidRuntime(22653):致命异常:主要 01-18 13:08:54.903:E / AndroidRuntime(22653):进程:com.tara.client.diff.android,PID:22653 01-18 13:08:54.903:E / AndroidRuntime(22653):java.lang.IllegalArgumentException:View = android.widget.PopupWindow $ PopupViewContainer {41c48ea0 VE .... ...... ID 0,0-0 ,0}未附加到窗口管理器 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:370) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:299) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:84) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.widget.PopupWindow.dismiss(PopupWindow.java:1308) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.widget.ListPopupWindow.dismiss(ListPopupWindow.java:646) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.widget.AutoCompleteTextView.dismissDropDown(AutoCompleteTextView.java:1033) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.widget.AutoCompleteTextView.doAfterTextChanged(AutoCompleteTextView.java:786) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.widget.AutoCompleteTextView $ MyWatcher.afterTextChanged(AutoCompleteTextView.java:745) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.widget.TextView.sendAfterTextChanged(TextView.java:7424) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.widget.TextView.setText(TextView.java:3822) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.widget.TextView.setText(TextView.java:3671) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.widget.EditText.setText(EditText.java:80) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.widget.TextView.setText(TextView.java:3646) 01-18 13:08:54.903:E / AndroidRuntime(22653):at com.tara.android.views.SimpleSearchView.clearInput(SimpleSearchView.java:163) 01-18 13:08:54.903:E / AndroidRuntime(22653):at com.tara.android.widgets.WidgetConfigurationActivity.handleSearchItemSelected(WidgetConfigurationActivity.java:279) 01-18 13:08:54.903:E / AndroidRuntime(22653):at com.tara.android.widgets.WidgetConfigurationActivity.onLocationSearchCompleted(WidgetConfigurationActivity.java:390) 01-18 13:08:54.903:E / AndroidRuntime(22653):at com.tara.android.utilities.Data.notifyLocationSearchCompleted(Data.java:601) 01-18 13:08:54.903:E / AndroidRuntime(22653):at com.tara.android.services.request.LocationKeySearchTask.onPostExecute(LocationKeySearchTask.java:93) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.os.AsyncTask.finish(AsyncTask.java:632) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.os.AsyncTask.access $ 600(AsyncTask.java:177) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.os.AsyncTask $ InternalHandler.handleMessage(AsyncTask.java:645) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.os.Handler.dispatchMessage(Handler.java:102) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.os.Looper.loop(Looper.java:136) 01-18 13:08:54.903:E / AndroidRuntime(22653):在android.app.ActivityThread.main(ActivityThread.java:5109) 01-18 13:08:54.903:E / AndroidRuntime(22653):at java.lang.reflect.Method.invokeNative(Native Method) 01-18 13:08:54.903:E / AndroidRuntime(22653):at java.lang.reflect.Method.invoke(Method.java:515) 01-18 13:08:54.903:E / AndroidRuntime(22653):at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:800) 01-18 13:08:54.903:E / AndroidRuntime(22653):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 01-18 13:08:54.903:E / AndroidRuntime(22653):at dalvik.system.NativeStart.main(Native Method)
答案 0 :(得分:0)
您是否曾尝试编写一些日志以检查每一步?
Log.d("passing through foo_function()","bar just read");