Search Unity

Game close on Android

Discussion in 'Android' started by ErikMartins, Jul 16, 2018.

  1. ErikMartins

    ErikMartins

    Joined:
    Oct 28, 2016
    Posts:
    49
    Hello, I'm really in need of help, I can no longer make the game work on weak phones, I've already tried to update on all the units (from 5.6 until 2018) and nothing works. I did this using a copy of the project to test, the original is in 5.6.5, before in unity 5.4 I was able to make it work normally, now I can not from version 5.6 onwards. What do I do?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
  3. ErikMartins

    ErikMartins

    Joined:
    Oct 28, 2016
    Posts:
    49
    I did not make it specify the log of the app, I quoted the end of the game (Com.LifeGames.RodandoOBrasil) if I want to step the complete log. sorry my inglesh, i using google traduction.

    Code (JavaScript):
    1. I/GAv4    (31621):   adb logcat -s GAv4
    2.  
    3. D/AudioFlinger_Threads(  180): threadLoop_sleepTime write muted data to hw
    4.  
    5. D/AudioFlinger_Threads(  180): threadLoop_write
    6.  
    7. I/System.out(31621): [CDS][DNS] getAllByNameImpl netId = 0
    8.  
    9. D/libc-netbsd(31621): [getaddrinfo]: hostname=graph.facebook.com; servname=(null); cache_mode=(null), netid=0; mark=0
    10.  
    11. D/libc-netbsd(31621): [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
    12.  
    13. D/AudioMTKStreamOut(  180): write (-) 8192 latency_in_s,0.028828,0.000183,0.017414
    14.  
    15. E/SensorService(  855): activeConnections...
    16.  
    17. D/SensorService(  855): SensorService hasOneShotSensors handle:1 mode:0
    18.  
    19. W/GAv4    (31621): String xml configuration name not recognized: ga_trackingId
    20.  
    21. D/AudioFlinger_Threads(  180): threadLoop_sleepTime write muted data to hw
    22.  
    23. D/AudioFlinger_Threads(  180): threadLoop_write
    24.  
    25. D/libc-netbsd(31621): [getaddrinfo]: hostname=graph.facebook.com; servname=(null); cache_mode=(null), netid=0; mark=0
    26.  
    27. D/libc-netbsd(31621): [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
    28.  
    29. W/ActivityManager(  855): getRunningAppProcesses: caller 10069 does not hold REAL_GET_TASKS; limiting output
    30.  
    31. D/AudioMTKStreamOut(  180): write (-) 8192 latency_in_s,0.028789,0.000177,0.017468
    32.  
    33. E/SensorService(  855): activeConnections...
    34.  
    35. D/SensorService(  855): SensorService hasOneShotSensors handle:1 mode:0
    36.  
    37. D/AudioFlinger_Threads(  180): threadLoop_sleepTime write muted data to hw
    38.  
    39. D/AudioFlinger_Threads(  180): threadLoop_write
    40.  
    41. V/WindowManager(  855): Changing focus from Window{195a76b3 u0 com.LifeGames.RodandoOBrasil/com.unity3d.player.UnityPlayerActivity} to null Callers=com.android.server.wm.WindowManagerService.setTokenVisibilityLocked:5072 com.android.server.wm.WindowManagerService.removeAppToken:5346 com.android.server.am.ActivityStack.removeActivityFromHistoryLocked:3522 com.android.server.am.ActivityStack.removeHistoryRecordsForAppLocked:3957
    42.  
    43. D/FrameworkListener(  175): dispatchCommand data = (getaddrinfo graph.facebook.com ^ 1024 0 1 0 0)
    44.  
    45. D/libc-netbsd(  175): [getaddrinfo]: hostname=graph.facebook.com; servname=(null); cache_mode=local, netid=0; mark=917504
    46.  
    47. D/libc-netbsd(  175): [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
    48.  
    49. D/libc-netbsd(  175): default dns: query_ipv6=0, query_ipv4=0
    50.  
    51. D/libc-netbsd(31621): getaddrinfo: graph.facebook.com NO result from proxy
    52.  
    53. I/System.out(31621): [CDS][DNS]Unable to resolve host "graph.facebook.com": No address associated with hostname
    54.  
    55. D/AudioMTKStreamOut(  180): write (-) 8192 latency_in_s,0.028678,0.000184,0.017586
    56.  
    57. D/AudioFlinger_Threads(  180): threadLoop_sleepTime write muted data to hw
    58.  
    59. D/AudioFlinger_Threads(  180): threadLoop_write
    60.  
    61. D/LockPatternUtils(  855): s=true ,L=true ,q=true ,v=false
    62.  
    63. E/SensorService(  855): activeConnections...
    64.  
    65. D/SensorService(  855): SensorService hasOneShotSensors handle:1 mode:0
    66.  
    67. D/LockPatternUtils(  855): s=true ,L=true ,q=true ,v=false
    68.  
    69. D/AudioMTKStreamOut(  180): write (-) 8192 latency_in_s,0.028765,0.000180,0.017491
    70.  
    71. D/FeatureProxyBase(  855): FeatureProxyBase class constructor
    72.  
    73. D/MultiWindow(  855): MultiWindowProxy constructor.
    74.  
    75. D/FeatureProxyBase(  855): getService(), serviceName = multiwindow_service_v1
    76.  
    77. D/AudioFlinger_Threads(  180): threadLoop_sleepTime write muted data to hw
    78.  
    79. D/LockPatternUtils(  855): s=true ,L=true ,q=true ,v=false
    80.  
    81. D/FeatureProxyBase(  855): FeatureProxyBase class constructor
    82.  
    83. D/MultiWindow(  855): MultiWindowProxy constructor.
    84.  
    85. D/AudioFlinger_Threads(  180): threadLoop_write
    86.  
    87. D/FeatureProxyBase(  855): getService(), serviceName = multiwindow_service_v1
    88.  
    89. W/InputDispatcher(  855): Attempted to unregister already unregistered input channel '195a76b3 com.LifeGames.RodandoOBrasil/com.unity3d.player.UnityPlayerActivity (server)'
    90.  
    91. D/AudioMTKStreamOut(  180): write (-) 8192 latency_in_s,0.028840,0.000172,0.017425
    92.  
    93. E/SensorService(  855): activeConnections...
    94.  
    95. D/SensorService(  855): SensorService hasOneShotSensors handle:1 mode:0
    96.  
    97. I/BufferQueueConsumer(  150): [SurfaceView](this:0xb8c2b580,id:954,api:1,p:-1,c:-1) disconnect(C)
    98.  
    99. D/GraphicBuffer(  150): free, handle(0xb8c09370) (w:320 h:480 s:320 f:0x4 u:0x000f02)
    100.  
    101. I/BufferQueue(  150): [SurfaceView](this:0xb8c2b580,id:954,api:1,p:-1,c:-1) ~BufferQueueCore
    102.  
    103. D/LockPatternUtils(  855): s=true ,L=true ,q=true ,v=false
    104.  
    105. D/PowerManagerService(  855): releaseWakeLockInternal: lock=359789490 [WindowManager], flags=0x0, total_time=27880ms
    106.  
    107. D/PowerManagerNotifier(  855): onWakeLockReleased: flags=536870922, tag="WindowManager", packageName=android, ownerUid=1000, ownerPid=855, workSource=WorkSource{10071}
    108.  
    109. D/PowerManagerService(  855): userActivityNoUpdateLocked: eventTime=40957520, event=0, flags=0x1, uid=1000
    110.  
    111. D/PowerManagerNotifier(  855): onUserActivity: event=0, uid=1000
    112.  
    113. D/PowerManagerService(  855): updateWakeLockSummaryLocked: mWakefulness=Awake, mWakeLockSummary=0x1
    114.  
    115. D/PowerManagerService(  855): updateUserActivitySummaryLocked: mWakefulness=Awake, mUserActivitySummary=0x1, nextTimeout=40979206 (in 21685 ms)
    116.  
    117. D/PowerManagerService(  855): mDisplayPowerRequest.policy = 3
    118.  
    119. D/PowerManagerService(  855): isWfdEnabled() mWfdStatus=WifiDisplayStatus{featureState=0, scanState=0, activeDisplayState=0, activeDisplay=null, displays=[], sessionInfo=WifiDisplaySessionInfo: C/O:Client,GId:,Pp:,SId:0,IP:}, return false
    120.  
    121. D/DisplayPowerController(  855): requestPowerState: policy=BRIGHT, useProximitySensor=false, forceProximitySensorEnable=false, forceWakeUpEnable=false, screenBrightness=10, screenAutoBrightnessAdjustment=0.0, useAutoBrightness=false, blockScreenOn=false, lowPowerMode=false, boostScreenBrightness=false, dozeScreenBrightness=-1, dozeScreenState=UNKNOWN, waitForNegativeProximity=false
    122.  
    123. I/PowerManagerService(  855): setBrightness mButtonLight 0.
    124.  
    125. D/PowerManagerService(  855): updateDisplayPowerStateLocked: mDisplayReady=true, policy=3, mWakefulness=1, mWakeLockSummary=0x1, mUserActivitySummary=0x1, mBootCompleted=true, mScreenBrightnessBoostInProgress=false
    126.  
    127. D/FeatureProxyBase(  855): FeatureProxyBase class constructor
    128.  
    129. D/MultiWindow(  855): MultiWindowProxy constructor.
    130.  
    131. D/FeatureProxyBase(  855): getService(), serviceName = multiwindow_service_v1
    132.  
    133. D/ActivityManager(  855): [BMW] moveNextFloatingStackToTopLocked next = null curTop = ActivityStack{340a2084 stackId=1, 12 tasks}
    134.  
    135. D/AudioFlinger_Threads(  180): threadLoop_sleepTime write muted data to hw
    136.  
    137. W/WindowManager(  855): Failed looking up window
    138.  
    139. W/WindowManager(  855): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@26db721 does not exist
    140.  
    141. W/WindowManager(  855):     at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9312)
    142.  
    143. W/WindowManager(  855):     at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9303)
    144.  
    145. W/WindowManager(  855):     at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1154)
    146.  
    147. W/WindowManager(  855):     at android.os.BinderProxy.sendDeathNotice(Binder.java:559)
    148.  
    149. I/WindowState(  855): WIN DEATH: null
    150.  
    151. W/WindowManager(  855): Failed looking up window
    152.  
    153. W/WindowManager(  855): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@3979cc22 does not exist
    154.  
    155. W/WindowManager(  855):     at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9312)
    156.  
    157. W/WindowManager(  855):     at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9303)
    158.  
    159. W/WindowManager(  855):     at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1154)
    160.  
    161. W/WindowManager(  855):     at android.os.BinderProxy.sendDeathNotice(Binder.java:559)
    162.  
    163. I/WindowState(  855): WIN DEATH: null
    164.  
    165. I/SurfaceFlinger(  150): [SF client] DEL(0xb8ba9190) for (855:system_server)
    166.  
    167. D/SurfaceFlinger(  150):     remove: com.LifeGames.RodandoOBrasil/com.unity3d.player.UnityPlayerActivity
    168.  
    169. D/AudioFlinger_Threads(  180): threadLoop_write
    170.  
    171. I/WindowManager(  855): Losing focus: Window{195a76b3 u0 com.LifeGames.RodandoOBrasil/com.unity3d.player.UnityPlayerActivity}
    172.  
    173. D/LockPatternUtils(  855): s=true ,L=true ,q=true ,v=false
    174.  
    175. D/FeatureProxyBase(  855): FeatureProxyBase class constructor
    176.  
    177. D/MultiWindow(  855): MultiWindowProxy constructor.
    178.  
    179. D/FeatureProxyBase(  855): getService(), serviceName = multiwindow_service_v1
    180.  
    181. D/FeatureProxyBase(  855): FeatureProxyBase class constructor
    182.  
    183. D/MultiWindow(  855): MultiWindowProxy constructor.
    184.  
    185. D/FeatureProxyBase(  855): getService(), serviceName = multiwindow_service_v1
    186.  
    187. I/libPerfService(  855): 1: set: 2
    188.  
    189. E/libPerfService(  855): Could not open '/sys/devices/system/cpu/cpufreq/hotplug/cpu_num_base'
    190.  
    191. E/libPerfService(  855): error : 13, Permission denied
    192.  
    193. V/WindowAnimator(  855): No window is displayed, unset the SET_ORIENTATION_CHANGE_COMPLETE flag
    194.  
    195. D/AudioMTKStreamOut(  180): write (-) 8192 latency_in_s,0.028791,0.000160,0.017510
    196.  
    197. E/SensorService(  855): activeConnections...
    198.  
    199. D/SensorService(  855): SensorService hasOneShotSensors handle:1 mode:0
    200.  
    201. D/AudioFlinger_Threads(  180): threadLoop_sleepTime write muted data to hw
    202.  
    203. D/AudioFlinger_Threads(  180): threadLoop_write
    204.  
    205. D/AudioMTKStreamOut(  180): write (-) 8192 latency_in_s,0.028865,0.000193,0.017368
    206.  
    207. I/BufferQueueProducer(  150): [FrameBufferSurface_0](this:0xb8b9ec50,id:0,api:1,p:150,c:150) queueBuffer: fps=0.04 dur=28369.04 max=28369.04 min=28369.04
    208.  
    209. I/SurfaceFlinger(  150): [Built-in Screen (type:0)] fps:0.164752,dur:6069.74,max:6069.74,min:6069.74
    210.  
    211. I/BufferQueueConsumer(  150): [com.LifeGames.RodandoOBrasil/com.unity3d.player.UnityPlayerActivity](this:0xb8bc8d08,id:953,api:1,p:-1,c:-1) disconnect(C)
    212.  
    213. D/GraphicBuffer(  150): free, handle(0xb8ba8a20) (w:320 h:480 s:320 f:0x1 u:0x000f02)
    214.  
    215. I/BufferQueue(  150): [com.LifeGames.RodandoOBrasil/com.unity3d.player.UnityPlayerActivity](this:0xb8bc8d08,id:953,api:1,p:-1,c:-1) ~BufferQueueCore
    216.  
    217. D/AudioFlinger_Threads(  180): threadLoop_sleepTime write muted data to hw
    218.  
    219. D/SurfaceFlinger(  150): Skip composition.
    220.  
    221. D/AudioFlinger_Threads(  180): threadLoop_write
    222.  
    223. E/SensorService(  855): activeConnections...
    224.  
    225. D/SensorService(  855): SensorService hasOneShotSensors handle:1 mode:0
    226.  
    227. D/FeatureProxyBase(  855): FeatureProxyBase class constructor
    228.  
    229. D/MultiWindow(  855): MultiWindowProxy constructor.
    230.  
    231. D/FeatureProxyBase(  855): getService(), serviceName = multiwindow_service_v1
    232.  
    233. D/AudioMTKStreamOut(  180): write (-) 8192 latency_in_s,0.028714,0.000190,0.017549
    234.  
    235. D/AudioFlinger_Threads(  180): threadLoop_sleepTime write muted data to hw
    236.  
    237. D/AudioFlinger_Threads(  180): threadLoop_write
    238.  
    239. E/SensorService(  855): activeConnections...
    240.  
    241. D/SensorService(  855): SensorService hasOneShotSensors handle:1 mode:0
    242.  
    243. D/AudioMTKStreamOut(  180): write (-) 8192 latency_in_s,0.028680,0.000186,0.017575
    244.  
    245. I/ActivityManager(  855): Start proc 31652:com.tct.launcher/u0a59 for activity com.tct.launcher/.Launcher
    246.  
    247. D/AudioFlinger_Threads(  180): threadLoop_sleepTime write muted data to hw
    248.  
    249. D/AudioFlinger_Threads(  180): threadLoop_write
    250.  
    251. V/AlarmManager(  855): isAlarmNeedAlign : charging
    252.  
    253. D/AlarmManager(  855): remove(operation) changed bounds; rebatching operation = PendingIntent{191de2a1: PendingIntentRecord{166d202d com.cmcm.lite broadcastIntent}}
    254.  
    255. D/AlarmManager(  855): rebatchAllAlarmsLocked begin oldBatches count = 53
     
  4. ErikMartins

    ErikMartins

    Joined:
    Oct 28, 2016
    Posts:
    49
    what I meant with I can no longer make it work on weak phones, and the same project I'm on in Unity 5.6, when the project was on Unity 5.4, I was able to make it work on weak phones now that I upgraded to Unity 5.6.5 and I can not revert to unity 5.4, I can no longer run on weak phones.
     
  5. ErikMartins

    ErikMartins

    Joined:
    Oct 28, 2016
    Posts:
    49
    The cell phone I use is an Alcatel Pixi 4 (3.5), 512MB of RAM, processor - Dual Core 1.0Ghz, Operating System - Android 5.1 Lollipop.
    I have the games in apk format to show you.

    This worked perfectly on weak phones, using unity 5.4, with a large map full of objects.
    http://www.mediafire.com/file/y3o3u8asy1xxcbx/teste+cell+fracos.apk

    This works, but I can not add the rest of the map.
    http://www.mediafire.com/file/s7cv2mbwgngd6y0/test13.apk

    This does not work, but it does not have much difference from above, the only thing different is that, I tried to make it work by creating a spawn system, to appear the rest of the map on the scene after 20 seconds.
    http://www.mediafire.com/file/wk570hfa64tqmv7/test14.apk/file