只有在我的应用程序上执行了多个背靠背操作后,我才会得到一个随机异常。我有一个位置列表,我至少添加了10个位置,删除了一个,更改了4次位置,然后尝试输入一个新位置。它是一个自动完成文本视图,用于处理搜索。这是我收到的错误。当我回到应用程序时,我所有的位置都不见了,但如果我再次打开它,就会重新出现。这是一个HomeScreen应用程序小部件。
01-18 13:08:54.903:E/AndroidRuntime(22653(:致命异常:main01-18 13:08:54.903:E/AndroidRuntime(22653(:进程:com.tara.client.diff.android,PID:22265301-18 13:08:54.903:E/AndroidRuntime(22653(:java.lang.IllegalArgumentException:View=android.widget.PopupWindow$PopupViewContainer{41c48ea0 V.E……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.resport(PopupWindow.java:1308(01-18 13:08:54.903:E/AndroidRuntime(22653(:在android.widget.ListPopupWindow.sdisse(ListPopupWindow.java:646(01-18 13:08:54.903:E/AndroidRuntime(22653(:在android.widget.AutoCompleteTextView.dispenseDropDown(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(:在com.tara.android.views.SimpleSearchView.clearInput(SimpleSearchView.java:163(01-18 13:08:54.903:E/AndroidRuntime(22653(:在com.tara.android.widgets.WidgetConfigurationActivity.handleSearchItemSelected(WidgetConfigurationActivity.java:279(01-18 13:08:54.903:E/AndroidRuntime(22653(:在com.tara.android.widgets.WidgetConfigurationActivity.onLocationSearchCompleted(WidgetConfigurationActivity.java:390(01-18 13:08:54.903:E/AndroidRuntime(22653(:在com.tara.android.utilities.Data.notifyLocationSearchCompleted(Data.java:601(01-18 13:08:54.903:E/AndroidRuntime(22653(:在com.tara.android.services.request.LocationKeySearchTask.onPostExecute(LocationKeySearchTask.java:93(01-18 13:08:54.903:E/AndroidRuntime(22653(:在android.os.AsyncTask.fining(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(ActivityThreads.java:5109(01-18 13:08:54.903:E/AndroidRuntime(22653(:在java.lang.reflect.Method.invokeNative(Native Method(01-18 13:08:54.903:E/AndroidRuntime(22653(:在java.lang.reflect.Method.ioke(Method.java:515(01-18 13:08:54.903:E/AndroidRuntime(22653(:在com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:800(01-18 13:08:54.903:E/AndroidRuntime(22653(:在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616(01-18 13:08:54.903:E/AndroidRuntime(22653(:在dalvik.system.NativeStart.main(Native Method(
您是否尝试过编写一些日志来检查每一步?
Log.d("passing through foo_function()","bar just read");