应用程序仅在调试模式下崩溃

时间:2017-03-26 11:20:05

标签: android debugging firebase crash

我是编程新手,正在尝试制作Android应用。最近几天我在使用调试器时遇到了麻烦。该应用程序在正常运行模式下工作正常。 该应用程序连接到firebase,所有数据都保存在那里。如果我尝试以调试模式作为学生登录,应用程序崩溃权利。如果我以教授身份登录,我会进入主页,但是如果我点击下一个按钮,我将被退回到登录页面,并且它将变为运行模式。 我真的不知道问题是什么,但有一些关于调试器和firebase的东西?

我不知道我将在哪里开始查看我得到的错误消息,所以我只是发布所有内容并希望有人知道这个问题或者可以告诉我在错误代码中我将寻找解决方案。谢谢!我在这里发布了一些错误:

                                        [ 03-26 11:07:15.981  1253: 1253 W/         ]
                                        debuggerd: resuming target 890
03-26 11:07:15.982 1574-1592/system_process I/BootReceiver: Copying /data/tombstones/tombstone_08 to DropBox (SYSTEM_TOMBSTONE)
03-26 11:07:16.068 1574-2194/system_process D/GraphicsStats: Buffer count: 5
03-26 11:07:16.073 1574-1618/system_process W/InputDispatcher: channel '3bb91ba com.example.anna.eduback2/com.example.anna.eduback2.views.Login.LoginActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
03-26 11:07:16.074 1574-1618/system_process E/InputDispatcher: channel '3bb91ba com.example.anna.eduback2/com.example.anna.eduback2.views.Login.LoginActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
03-26 11:07:16.075 1574-1618/system_process W/InputDispatcher: channel '4df46b1 com.example.anna.eduback2/com.example.anna.eduback2.views.Mains.MainActivityProfessor (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
03-26 11:07:16.076 1574-1618/system_process E/InputDispatcher: channel '4df46b1 com.example.anna.eduback2/com.example.anna.eduback2.views.Mains.MainActivityProfessor (server)' ~ Channel is unrecoverably broken and will be disposed!
03-26 11:07:16.077 1302-1302/? I/Zygote: Process 890 exited due to signal (6)
03-26 11:07:16.122 1574-1986/system_process W/ActivityManager:   Force finishing activity com.example.anna.eduback2/.views.Subject.SubjectViewActivity
03-26 11:07:16.185 1574-2193/system_process I/WindowManager: WIN DEATH: Window{4df46b1 u0 com.example.anna.eduback2/com.example.anna.eduback2.views.Mains.MainActivityProfessor}
03-26 11:07:16.186 1574-2193/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel '4df46b1 com.example.anna.eduback2/com.example.anna.eduback2.views.Mains.MainActivityProfessor (server)'
03-26 11:07:16.191 1574-2084/system_process I/WindowManager: WIN DEATH: Window{3bb91ba u0 com.example.anna.eduback2/com.example.anna.eduback2.views.Login.LoginActivity}
03-26 11:07:16.192 1574-2084/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel '3bb91ba com.example.anna.eduback2/com.example.anna.eduback2.views.Login.LoginActivity (server)'
03-26 11:07:16.211 1574-1986/system_process W/ActivityManager: Exception thrown during pause
                                                               android.os.DeadObjectException
                                                                   at android.os.BinderProxy.transactNative(Native Method)
                                                                   at android.os.BinderProxy.transact(Binder.java:615)
                                                                   at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:785)
                                                                   at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1141)
                                                                   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3523)
                                                                   at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:3359)
                                                                   at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:1855)
                                                                   at com.android.server.am.AppErrors.handleAppCrashLocked(AppErrors.java:619)
                                                                   at com.android.server.am.AppErrors.makeAppCrashingLocked(AppErrors.java:477)
                                                                   at com.android.server.am.AppErrors.crashApplicationInner(AppErrors.java:353)
                                                                   at com.android.server.am.AppErrors.crashApplication(AppErrors.java:305)
                                                                   at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:13476)
                                                                   at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
03-26 11:07:16.214 1574-1986/system_process I/ActivityManager: Restarting because process died: ActivityRecord{57c1c35 u0 com.example.anna.eduback2/.views.Mains.MainActivityProfessor t29}
03-26 11:07:16.237 1574-1986/system_process W/ActivityManager: Exception when starting activity com.example.anna.eduback2/.views.Mains.MainActivityProfessor
                                                               android.os.DeadObjectException
                                                                   at android.os.BinderProxy.transactNative(Native Method)
                                                                   at android.os.BinderProxy.transact(Binder.java:615)
                                                                   at android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:884)
                                                                   at com.android.server.am.ActivityStackSupervisor.realStartActivityLocked(ActivityStackSupervisor.java:1309)
                                                                   at com.android.server.am.ActivityStackSupervisor.startSpecificActivityLocked(ActivityStackSupervisor.java:1408)
                                                                   at com.android.server.am.ActivityStack.resumeTopActivityInnerLocked(ActivityStack.java:2548)
                                                                   at com.android.server.am.ActivityStack.resumeTopActivityUncheckedLocked(ActivityStack.java:2127)
                                                                   at com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:1833)
                                                                   at com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:1823)
                                                                   at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1196)
                                                                   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3523)
                                                                   at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:3359)
                                                                   at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:1855)
                                                                   at com.android.server.am.AppErrors.handleAppCrashLocked(AppErrors.java:619)
                                                                   at com.android.server.am.AppErrors.makeAppCrashingLocked(AppErrors.java:477)
                                                                   at com.android.server.am.AppErrors.crashApplicationInner(AppErrors.java:353)
                                                                   at com.android.server.am.AppErrors.crashApplication(AppErrors.java:305)
                                                                   at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:13476)
                                                                   at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
03-26 11:07:16.237 1574-1986/system_process D/ActivityManager: cleanUpApplicationRecord -- 890
03-26 11:07:16.244 1574-1986/system_process W/ActivityManager: Force removing ActivityRecord{57c1c35 u0 com.example.anna.eduback2/.views.Mains.MainActivityProfessor t29}: app died, no saved state
03-26 11:07:16.269 1574-1986/system_process I/ActivityManager: Start proc 1991:com.example.anna.eduback2/u0a71 for activity com.example.anna.eduback2/.views.Mains.MainActivityProfessor
03-26 11:07:16.269 1991-1991/? I/art: Not late-enabling -Xcheck:jni (already on)
03-26 11:07:16.269 1991-1991/? W/art: Unexpected CPU variant for X86 using defaults: x86
03-26 11:07:16.270 1574-32531/system_process W/ActivityManager: Spurious death for ProcessRecord{e80098 1991:com.example.anna.eduback2/u0a71}, curProc for 890: null
03-26 11:07:16.270 1574-1986/system_process E/NativeCrashListener: Unable to report native crash
                                                                   java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
                                                                       at java.util.ArrayList.get(ArrayList.java:411)
                                                                       at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:3375)
                                                                       at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:1855)
                                                                       at com.android.server.am.AppErrors.handleAppCrashLocked(AppErrors.java:619)
                                                                       at com.android.server.am.AppErrors.makeAppCrashingLocked(AppErrors.java:477)
                                                                       at com.android.server.am.AppErrors.crashApplicationInner(AppErrors.java:353)
                                                                       at com.android.server.am.AppErrors.crashApplication(AppErrors.java:305)
                                                                       at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:13476)
                                                                       at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)

1 个答案:

答案 0 :(得分:-1)

看一下这个答案:Android app crashes when launched in debug mode。 尝试从嵌套函数中删除所有断点。在菜单中转到Run -> View Breakpoints并删除不必要的断点。