4

所以,我在各种设备上测试我的应用程序,在一些内存较少的设备上,它决定在玩了一段时间后崩溃。我想我在某处有内存泄漏,但这不是问题。

当它死时,它不会抛出任何异常,这就是 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 这样做,但我什么也没看到。

我在这里看到了关于这个的其他问题,但他们似乎都没有真正回答它为什么这样做,而这正是我正在寻找的。有人知道吗?

4

0 回答 0