所以,我正在各种设备上测试我的应用程序,对于一些内存较少的应用程序,它决定在播放一段时间后崩溃。我想我的某处有内存泄漏,但这不是问题。
当它死亡时,它不会抛出任何异常,这就是logcat给我的:
07-16 14:05:55.424 1318 1318 I ActivityManager: Starting: Intent {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.waldev.platformer/.Menu } from pid 4631
07-16 14:05:56.213 1318 1349 I ActivityManager: Displayed org.waldev.platformer/.Menu: +613ms
07-16 14:05:58.252 1318 1509 I ActivityManager: Starting: Intent { cmp=org.waldev.platformer/.Platformer } from pid 4623
07-16 14:05:58.510 1220 1316 I ExtendFileSource: filename = /data/app/org.waldev.platformer-1.apk
07-16 14:05:58.533 1220 10962 I ExtendFileSource: filename = /data/app/org.waldev.platformer-1.apk
07-16 14:05:58.549 1220 7923 I ExtendFileSource: filename = /data/app/org.waldev.platformer-1.apk
07-16 14:05:58.557 1220 1220 I ExtendFileSource: filename = /data/app/org.waldev.platformer-1.apk
07-16 14:05:58.783 1318 1349 I ActivityManager: Resumed Activity: org.waldev.platformer/.Menu totalTime: 3361 ms
07-16 14:05:58.783 1318 1349 I ActivityManager: Displayed org.waldev.platformer/.Platformer: +496ms
07-16 14:05:59.682 1220 1220 I ExtendFileSource: filename = /data/app/org.waldev.platformer-1.apk
07-16 14:08:04.619 1220 10961 I ExtendFileSource: filename = /data/app/org.waldev.platformer-1.apk
07-16 14:09:56.283 1318 1551 I ActivityManager: Process org.waldev.platformer (pid 4623) has died.
07-16 14:09:56.369 1318 1351 E InputDispatcher: channel '405409f8 org.waldev.platformer/org.waldev.platformer.Menu (server)' ~ Consumer closed input channel or an error occurred. events=0x8
07-16 14:09:56.369 1318 1351 E InputDispatcher: channel '405409f8 org.waldev.platformer/org.waldev.platformer.Menu (server)' ~ Channel is unrecoverably broken and will be disposed!
07-16 14:09:56.416 1318 6514 I WindowManager: WIN DEATH: Window{40576908 org.waldev.platformer/org.waldev.platformer.Menu paused=false}
07-16 14:09:56.557 1318 1537 I WindowManager: WIN DEATH: Window{405409f8 org.waldev.platformer/org.waldev.platformer.Menu paused=false}
07-16 14:09:56.572 1318 2103 I WindowManager: WIN DEATH: Window{409f0b80 org.waldev.platformer/org.waldev.platformer.Menu paused=false}
07-16 14:09:56.580 1318 1464 I WindowManager: WIN DEATH: Window{40543cf0 org.waldev.platformer/org.waldev.platformer.Menu paused=false}
07-16 14:09:56.603 1318 1509 I WindowManager: WIN DEATH: Window{4090ec68 org.waldev.platformer/org.waldev.platformer.Platformer paused=false}
07-16 14:09:56.853 1318 1551 I ActivityManager: Start proc org.waldev.platformer for activity org.waldev.platformer/.Menu: pid=5332 uid=10103 gids={1015}
07-16 14:09:58.291 1318 1349 I ActivityManager: Displayed org.waldev.platformer/.Menu: +1s677ms
它似乎决定在没有告诉我原因的情况下破坏我的过程。我环顾四周看看是什么导致android做到这一点,但我没有看到任何东西。
我在这里看到了关于此问题的其他问题,但是他们似乎都没有回答为什么会这样做,而这更像是我在寻找的东西。有谁知道吗?