Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Application force close on low-end device while playing — Gideros Forum

Application force close on low-end device while playing

unlyingunlying Guru
edited September 2014 in General questions
It looks pretty strange. It runs well, you're playing and... it dies.

LogCat has this:

09-10 10:36:58.049: I/ActivityManager(270): Process com.debia.lesniezverien (pid 2001) has died.
09-10 10:36:58.129: W/InputDispatcher(270): channel '413a89c8 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
09-10 10:36:58.129: I/WindowState(270): WIN DEATH: Window{413a89c8 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity paused=false}
09-10 10:36:58.129: W/ActivityManager(270): Force removing ActivityRecord{413a8c70 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity}: app died, no saved state
09-10 10:36:58.139: E/InputDispatcher(270): channel '413a89c8 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
09-10 10:36:58.149: W/InputDispatcher(270): Attempted to unregister already unregistered input channel '413a89c8 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity (server)'
09-10 10:36:58.189: D/dalvikvm(2116): GC_CONCURRENT freed 160K, 8% free 6076K/6599K, paused 12ms+4ms, total 91ms
09-10 10:36:58.189: D/dalvikvm(2116): WAIT_FOR_CONCURRENT_GC blocked 8ms
09-10 10:36:58.209: W/WindowManager(270): Force-removing child win Window{413fe498 SurfaceView paused=false} from container Window{413a89c8 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity paused=false}
09-10 10:36:58.349: W/WindowManager(270): Failed looking up window
09-10 10:36:58.349: W/WindowManager(270): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@41341678 does not exist
09-10 10:36:58.349: W/WindowManager(270): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7648)
09-10 10:36:58.349: W/WindowManager(270): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7639)
09-10 10:36:58.349: W/WindowManager(270): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:854)
09-10 10:36:58.349: W/WindowManager(270): at android.os.BinderProxy.sendDeathNotice(Binder.java:449)
09-10 10:36:58.349: W/WindowManager(270): at dalvik.system.NativeStart.run(Native Method)
09-10 10:36:58.349: I/WindowState(270): WIN DEATH: null
09-10 10:36:58.349: I/WindowManager(270): WINDOW DIED Window{413a89c8 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity paused=false}

Comments

  • Was there anything in jut before the "Process has died" part?
  • 09-10 10:36:56.199: I/ActivityManager(270): Start proc com.google.android.gms.drive for service com.google.android.gms/.drive.api.ApiService: pid=2116 uid=10020 gids={3003, 1015, 1028, 1007, 1006, 3002, 3001, 2001, 3006}
    09-10 10:36:56.539: V/PowerManagerService(270): User Activity
    09-10 10:36:56.859: E/Trace(2116): error opening trace file: No such file or directory (2)
    09-10 10:36:57.239: I/ActivityManager(270): Process com.google.process.gapps (pid 485) has died.
    09-10 10:36:57.269: W/ActivityManager(270): Scheduling restart of crashed service com.google.android.gsf/.gtalkservice.service.GTalkService in 48742ms
    09-10 10:36:57.279: W/ActivityManager(270): Scheduling restart of crashed service com.google.android.gms/.gcm.GcmService in 58742ms
    09-10 10:36:57.279: W/ActivityManager(270): Scheduling restart of crashed service com.google.android.location/.NetworkLocationService in 58741ms
    09-10 10:36:57.559: I/ActivityManager(270): Process com.android.smspush (pid 538) has died.
    09-10 10:36:57.559: W/ActivityManager(270): Scheduling restart of crashed service com.android.smspush/.WapPushManager in 68452ms
    09-10 10:36:57.939: D/dalvikvm(2116): GC_CONCURRENT freed 175K, 9% free 5685K/6215K, paused 19ms+3ms, total 348ms
    09-10 10:36:57.939: D/dalvikvm(2116): WAIT_FOR_CONCURRENT_GC blocked 325ms
    09-10 10:36:58.039: I/ActivityManager(270): Start proc com.android.smspush for service com.android.smspush/.WapPushManager: pid=2130 uid=10049 gids={1028}
  • It seems something has happened and OS is killing bunch of different processes (not app related), probably to get more resources.
    Is the crash reproducable?
    Maybe app uses too much memory?
    You can check how much memory it uses with:
    print(math.floor(collectgarbage("count")))
    --and
    print(application:getTextureMemoryUsage())
    And compare how much memory is on the device.
  • As much as i know OS shouldn't kill active application.
    Reproducable.
    May be:) But apk size is lower then 30Mb and it forceclose pretty fast.

    I think that it is 100% about memory, but i don't feel that device should react like this on low memory problem.
  • I have an old armv6 device, can you post a link to the app I can play with it and see if I can get it to crash :)
  • Hi unlying
    There are two types of memory:
    1- like Hard disc memory
    2- like RAM memory
    APK size is type 1.
    for example if a 1024*1024 pixel image file consume 200KB in type 1 memory then if will be 4*1024*1024 = 4MB in type 2 memory.
  • 09-18 12:31:03.566: W/InputMethodManagerService(282): at com.android.server.ServerThread.run(SystemServer.java:906)
    09-18 12:31:03.806: I/ActivityManager(282): Process com.android.smspush (pid 1630) has died.
    09-18 12:31:03.806: W/ActivityManager(282): Scheduling restart of crashed service com.android.smspush/.WapPushManager in 14603ms
    09-18 12:31:04.036: I/ActivityManager(282): Start proc com.android.smspush for service com.android.smspush/.WapPushManager: pid=2155 uid=10049 gids={1028}
    09-18 12:31:04.186: I/ActivityManager(282): Process com.debia.lesniezverien (pid 1968) has died.
    09-18 12:31:04.186: W/ActivityManager(282): Force removing ActivityRecord{427601a0 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity}: app died, no saved state
    09-18 12:31:04.216: W/InputDispatcher(282): channel '42774720 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
    09-18 12:31:04.216: E/InputDispatcher(282): channel '42774720 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
    09-18 12:31:04.406: W/InputDispatcher(282): Attempted to unregister already unregistered input channel '42774720 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity (server)'
    09-18 12:31:04.406: I/WindowState(282): WIN DEATH: Window{42774720 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity paused=false}
    09-18 12:31:04.436: W/WindowManager(282): Force-removing child win Window{4278d5c8 SurfaceView paused=false} from container Window{42774720 com.debia.lesniezverien/com.giderosmobile.android.lesniezverienActivity paused=false}
  • Same. Interesting thing that smspush dies before application every time.
Sign In or Register to comment.