opensrp / opensrp-client-reveal

OpenSRP Client Reveal App
Other
7 stars 8 forks source link

The app keeps on crashing #1403

Closed Naima-Bashir closed 3 years ago

Naima-Bashir commented 3 years ago

Version: Thai preview 5.3.25 User: raitest Login to the app. Wait for the sync to complete Turn the internet off Go to list view Select an old residential structure(existing) Click on add new member App crashes

Varshana has also been experiencing some app crashes at the same time. I used Samsung A21, she used Huawei. @Rkareko we should check Crashylitcs image

Rkareko commented 3 years ago

some errors from crashlytics BaseDrawerPresenter.java line 424

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.app.Activity.findViewById(int)' on a null object reference
       at org.smartregister.reveal.presenter.BaseDrawerPresenter.updateSyncStatusDisplay(BaseDrawerPresenter.java:424)
       at org.smartregister.reveal.interactor.BaseDrawerInteractor$3$1.run(BaseDrawerInteractor.java:132)
       at android.os.Handler.handleCallback(Handler.java:808)
       at android.os.Handler.dispatchMessage(Handler.java:101)
       at android.os.Looper.loop(Looper.java:166)
       at android.app.ActivityThread.main(ActivityThread.java:7529)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)

BaseLoginInteractor.java line 232

Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'org.smartregister.view.contract.BaseLoginContract$View org.smartregister.view.contract.BaseLoginContract$Presenter.getLoginView()' on a null object reference
       at org.smartregister.login.interactor.BaseLoginInteractor.getLoginView(BaseLoginInteractor.java:232)
       at org.smartregister.login.interactor.BaseLoginInteractor.lambda$remoteLogin$4$BaseLoginInteractor(BaseLoginInteractor.java:138)
       at org.smartregister.login.interactor.-$$Lambda$BaseLoginInteractor$f45-b3zPXfirEkRNbFpO116ZY8Y.onEvent(lambda)
       at org.smartregister.login.task.RemoteLoginTask.onPostExecute(RemoteLoginTask.java:175)
       at org.smartregister.login.task.RemoteLoginTask.onPostExecute(RemoteLoginTask.java:40)
       at android.os.AsyncTask.finish(AsyncTask.java:692)
       at android.os.AsyncTask.-wrap1(AsyncTask.java)
       at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:709)
       at android.os.Handler.dispatchMessage(Handler.java:105)
       at android.os.Looper.loop(Looper.java:156)
       at android.app.ActivityThread.main(ActivityThread.java:6617)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)

ListTaskPresenter.java line 891

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.mapbox.geojson.FeatureCollection.features()' on a null object reference
       at org.smartregister.reveal.presenter.ListTaskPresenter.searchTasks(ListTaskPresenter.java:891)
       at org.smartregister.reveal.view.ListTasksActivity$3.afterTextChanged(ListTasksActivity.java:480)
       at android.widget.TextView.sendAfterTextChanged(TextView.java:8526)
       at android.widget.TextView.setText(TextView.java:4595)
       at android.widget.TextView.setText(TextView.java:4443)
       at android.widget.EditText.setText(EditText.java:89)
       at android.widget.TextView.setText(TextView.java:4418)
       at android.widget.TextView.onRestoreInstanceState(TextView.java:4300)
       at android.view.View.dispatchRestoreInstanceState(View.java:15805)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3282)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3282)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3282)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3282)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3282)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3282)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3282)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3282)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:3282)
       at android.view.View.restoreHierarchyState(View.java:15783)
       at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2192)
       at android.app.Activity.onRestoreInstanceState(Activity.java:1096)
       at android.app.Activity.performRestoreInstanceState(Activity.java:1050)
       at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1179)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2777)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2875)
       at android.app.ActivityThread.-wrap12(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1578)
       at android.os.Handler.dispatchMessage(Handler.java:105)
       at android.os.Looper.loop(Looper.java:156)
       at android.app.ActivityThread.main(ActivityThread.java:6617)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)