I’m trying to build and run on Unity 2019.2.6f1, for android. I am just running the sample scene and Setting build to Android, and building and running on the phone. I was able to do this on 2018 (the app runs, and I see the sample scene), but on 2019, when the app runs, I get the Unity logo, it sort of flashes a couple times then I get a black screen. I have had issues with with 2019 and the downloadable SDK/NDK saying they are not installed via hub when they are in fact installed, but with 2019.2.6f1 it seems like they are installed properly. Though, the app crashes when run. Any ideas what I am doing wrong?
Thanks
Please provide device logs via “adb logcat | grep -i unity” (or use findstr on Windows)
Thanks, This is what I see (I’m using Logcat in Analysis Window section) hopefully that is the info you need.
01/01 00:00:00.000 -1 -1 Info : --------- beginning of main
01/01 00:00:00.000 -1 -1 Info : --------- beginning of system
10/01 17:04:27.953 30399 30399 Info Finsky: [2] mic.b(3): IQ: Scheduling install request package_name=com.valvesoftware.android.steam.community, version=5379038, priority=3, reason=auto_update, account_name=[Ud3Xyuu9q8SeyGGuUL4ie83AVFvK5_hksNlkOhzoe7g], type=0, constraints=((REQ_CHARGING, REQ_DEVICE_IDLE, REQ_GEARHEAD_PROJECTION_OFF, NETWORK=UNMETERED, PROVISIONING_STATE=PROVISIONED),)
10/01 17:04:28.199 30399 30499 Warn Finsky: [2128] mgt.call(14): IQ: Resolved conflict: package=com.valvesoftware.android.steam.community. oldConstraints=[(REQ_CHARGING, REQ_GEARHEAD_PROJECTION_OFF, NETWORK=UNMETERED, PROVISIONING_STATE=PROVISIONED)], newConstraints=[(REQ_CHARGING, REQ_DEVICE_IDLE, REQ_GEARHEAD_PROJECTION_OFF, NETWORK=UNMETERED, PROVISIONING_STATE=PROVISIONED)]
10/01 17:04:28.428 30399 30499 Info Finsky: [2128] mic.b(40): IQ: Notifying installation update. package=com.valvesoftware.android.steam.community, status=SCHEDULED
10/01 17:04:29.200 30399 30453 Info Finsky: [2088] xkj.a(39): Package com.valvesoftware.android.steam.community staleness changed from 0 to 1569963869200, available version changed from 0 to 5379038 or in-app update priority changed from 0 to 0.
10/01 17:04:32.172 1234 1274 Info ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity} from uid 2000
10/01 17:04:32.220 1234 1289 Info ActivityManager: Start proc 30923:com.DefaultCompany.AndroidBuildTest/u0a355 for activity {com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity}
10/01 17:04:32.793 1234 1287 Info ActivityTaskManager: Displayed com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity: +604ms
10/01 17:04:42.394 30923 30995 Error mono-rt: c9406000-c941b000 rw-p 00e2c000 08:0d 3146593 /data/app/com.DefaultCompany.AndroidBuildTest-NJsgXAxgtWOwApbgXWShfg==/lib/arm/libunity.so
01/01 00:00:00.000 -1 -1 Info : read: unexpected EOF!
I uninstalled the Steam App and get this
01/01 00:00:00.000 -1 -1 Info : --------- beginning of system
10/01 17:14:34.960 1234 4122 Info ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity} from uid 2000
10/01 17:14:34.995 1234 1289 Info ActivityManager: Start proc 4411:com.DefaultCompany.AndroidBuildTest/u0a355 for activity {com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity}
01/01 00:00:00.000 -1 -1 Info : --------- beginning of main
10/01 17:14:51.233 1234 1561 Warn InputDispatcher: channel ‘b2e2e92 com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity (server)’ ~ Consumer closed input channel or an error occurred. events=0x9
10/01 17:14:51.233 1234 1561 Error InputDispatcher: channel ‘b2e2e92 com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity (server)’ ~ Channel is unrecoverably broken and will be disposed!
10/01 17:14:51.235 1234 4145 Info WindowManager: WIN DEATH: Window{b2e2e92 u0 com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity}
10/01 17:14:51.235 1234 4145 Warn InputDispatcher: Attempted to unregister already unregistered input channel ‘b2e2e92 com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity (server)’
10/01 17:14:51.246 1234 4148 Warn ActivityTaskManager: Force removing ActivityRecord{a16fa96 u0 com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity t101}: app died, no saved state
10/01 17:14:51.340 4408 4616 Info AiAiReflection: Filtering unlaunchable event com.valvesoftware.android.steam.community/com.valvesoftware.android.steam.community.activity.MainActivity
Where these logs at all helpful?
The logs don’t actually look familiar, how did you capture them? I generally run “adb logcat” from a terminal window, but I understand that there is an Logcat asset available that I haven’t yet checked out, is this what you’re using? You uninstalled the Steam app on your Android device? What type of phone or tablet is it? I might suggest comparing the logs from a problem app with 2019 and a working app with 2018 and look for any differences.
Yes I am using the Logcat Package in 2019. The device is a Pixel 2XL. The logcat asset isn’t on 2018, so I can’t really compare. I can do it through ADB, but when I try to use your command string I get :
‘grep’ is not recognized as an internal or external command,
operable program or batch file.’
I am guessing grep is a linux/mac only command? What would the proper syntax for windows be? (Sorry, I am not super comfortable with ADB on CMD/Terminal, but hopefully can get what you need with some guidance.
I rebooted the phone after uninstalling steam, and now all the references to steam in the log are gone.
01/01 00:00:00.000 -1 -1 Info : --------- beginning of main
01/01 00:00:00.000 -1 -1 Info : --------- beginning of system
10/03 10:05:14.792 1251 2451 Info ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10300000 cmp=com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity} from uid 2000
10/03 10:05:14.819 1251 1294 Info ActivityManager: Start proc 18756:com.DefaultCompany.AndroidBuildTest/u0a355 for activity {com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity}
10/03 10:05:14.958 1251 1292 Info ActivityTaskManager: Displayed com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity: +162ms
10/03 10:05:15.219 637 637 Error Layer: [Surface(name=AppWindowToken{613bc74 token=Token{8137c47 ActivityRecord{8bdb86 u0 com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity t161}}})/@0xe9107d1 - animation-leash#0] No local sync point found
10/03 10:05:34.361 1251 1560 Warn InputDispatcher: channel ‘732642f com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity (server)’ ~ Consumer closed input channel or an error occurred. events=0x9
10/03 10:05:34.361 1251 1560 Error InputDispatcher: channel ‘732642f com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity (server)’ ~ Channel is unrecoverably broken and will be disposed!
10/03 10:05:34.363 1251 3873 Info WindowManager: WIN DEATH: Window{732642f u0 com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity}
10/03 10:05:34.363 1251 3873 Warn InputDispatcher: Attempted to unregister already unregistered input channel ‘732642f com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity (server)’
10/03 10:05:34.375 1251 2055 Warn ActivityTaskManager: Force removing ActivityRecord{8bdb86 u0 com.DefaultCompany.AndroidBuildTest/com.unity3d.player.UnityPlayerActivity t161}: app died, no saved state
The syntax for Windows is “adb logcat | findstr -i unity”
Thanks, I thought I had tried just swapping the command names, but it just hanged. I must have made a typo. But in any case, here are the logs from 2018(lwrp) and 2019(lwrp)
2018.2.18f1 LWRP version logs
10-03 16:47:07.015 1264 3896 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.skantron.Android2018_LWRP/com.unity3d.player.UnityPlayerActivity} from uid 2000
10-03 16:47:07.179 1264 1299 I ActivityManager: Start proc 23786:com.skantron.Android2018_LWRP/u0a30 for activity {com.skantron.Android2018_LWRP/com.unity3d.player.UnityPlayerActivity}
10-03 16:47:07.459 1264 1297 I ActivityTaskManager: Displayed com.skantron.Android2018_LWRP/com.unity3d.player.UnityPlayerActivity: +419ms
10-03 16:47:07.491 23786 23818 I Unity : SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 8, Memory = 3662mb
10-03 16:47:07.491 23786 23818 I Unity : SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf0), 4 little (mask: 0xf)
10-03 16:47:07.495 23786 23818 I Unity : ApplicationInfo com.skantron.Android2018_LWRP version 0.1 build dfa0d73f-739c-44e8-9720-c76feb7816f5
10-03 16:47:07.495 23786 23818 I Unity : Built from ‘2018.2/staging’ branch, Version ‘2018.2.18f1 (4550892b6062)’, Build type ‘Release’, Scripting Backend ‘mono’
10-03 16:47:07.584 23786 23818 I chatty : uid=10030(com.skantron.Android2018_LWRP) UnityMain identical 14 lines
2019.2.6f1 LWRP version logs
adb server version (40) doesn’t match this client (41); killing…
daemon started successfully
10-03 16:31:08.392 1264 3837 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.skantron_2018test/com.unity3d.player.UnityPlayerActivity} from uid 2000
10-03 16:31:08.842 1264 1299 I ActivityManager: Start proc 21857:com.skantron_2018test/u0a24 for activity {com.skantron_2018test/com.unity3d.player.UnityPlayerActivity}
10-03 16:33:03.872 1264 2171 I WindowManager: WIN DEATH: Window{e2ff49e u0 com.skantron_2018test/com.unity3d.player.UnityPlayerActivity}
10-03 16:47:07.015 1264 3896 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.skantron.Android2018_LWRP/com.unity3d.player.UnityPlayerActivity} from uid 2000
10-03 16:47:07.179 1264 1299 I ActivityManager: Start proc 23786:com.skantron.Android2018_LWRP/u0a30 for activity {com.skantron.Android2018_LWRP/com.unity3d.player.UnityPlayerActivity}
10-03 16:49:31.607 1264 2076 I WindowManager: WIN DEATH: Window{c4669dd u0 com.skantron.Android2018_LWRP/com.unity3d.player.UnityPlayerActivity}
10-03 17:01:55.429 1264 3710 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.Skantron.Android2019lwrp/com.unity3d.player.UnityPlayerActivity} from uid 2000
10-03 17:01:55.763 1264 1299 I ActivityManager: Start proc 27216:com.Skantron.Android2019lwrp/u0a33 for activity {com.Skantron.Android2019lwrp/com.unity3d.player.UnityPlayerActivity}
10-03 17:01:56.295 1264 1297 I ActivityTaskManager: Displayed com.Skantron.Android2019lwrp/com.unity3d.player.UnityPlayerActivity: +613ms
10-03 17:02:09.273 27216 27280 E CRASH : pid: 27216, tid: 27280, name: UnityGfxDeviceW >>> com.Skantron.Android2019lwrp <<<
10-03 17:02:14.810 1264 1540 W InputDispatcher: channel ‘8630c01 com.Skantron.Android2019lwrp/com.unity3d.player.UnityPlayerActivity (server)’ ~ Consumer closed input channel or an error occurred. events=0x9
10-03 17:02:14.810 1264 1540 E InputDispatcher: channel ‘8630c01 com.Skantron.Android2019lwrp/com.unity3d.player.UnityPlayerActivity (server)’ ~ Channel is unrecoverably broken and will be disposed!
10-03 17:02:14.811 1264 3204 I WindowManager: WIN DEATH: Window{8630c01 u0 com.Skantron.Android2019lwrp/com.unity3d.player.UnityPlayerActivity}
10-03 17:02:14.812 1264 3204 W InputDispatcher: Attempted to unregister already unregistered input channel ‘8630c01 com.Skantron.Android2019lwrp/com.unity3d.player.UnityPlayerActivity (server)’
10-03 17:02:14.832 1264 3187 W ActivityTaskManager: Force removing ActivityRecord{10faec2 u0 com.Skantron.Android2019lwrp/com.unity3d.player.UnityPlayerActivity t210}: app died, no saved state
10-03 17:02:22.502 1264 3837 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10300000 cmp=com.Skantron.Android2019lwrp/com.unity3d.player.UnityPlayerActivity} from uid 2000
10-03 17:02:22.604 1264 1299 I ActivityManager: Start proc 27454:com.Skantron.Android2019lwrp/u0a33 for activity {com.Skantron.Android2019lwrp/com.unity3d.player.UnityPlayerActivity}
10-03 17:02:22.842 1264 1297 I ActivityTaskManager: Displayed com.Skantron.Android2019lwrp/com.unity3d.player.UnityPlayerActivity: +336ms
10-03 17:02:22.884 27454 27483 I Unity : SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 8, Memory = 3662mb
10-03 17:02:22.884 27454 27483 I Unity : SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf0), 4 little (mask: 0xf)
10-03 17:02:22.885 27454 27483 I Unity : ApplicationInfo com.Skantron.Android2019lwrp version 0.1 build 61d13ca6-1bba-44bd-b8d3-a1f7a9ed4162
10-03 17:02:22.885 27454 27483 I Unity : Built from ‘2019.2/staging’ branch, Version ‘2019.2.6f1 (fe82a0e88406)’, Build type ‘Release’, Scripting Backend ‘mono’, CPU ‘armeabi-v7a’, Stripping ‘Disabled’
10-03 17:02:23.025 27454 27483 I chatty : uid=10033(com.Skantron.Android2019lwrp) UnityMain identical 14 lines
10-03 17:02:32.689 27454 27512 E mono-rt : bf119000-bff1e000 r-xp 00000000 08:0d 3146740 /data/app/com.Skantron.Android2019lwrp-XzWGD4iJhgoAfa3d4iDvwA==/lib/arm/libunity.so
10-03 17:02:32.711 27454 27512 E CRASH : pid: 27454, tid: 27512, name: UnityGfxDeviceW >>> com.Skantron.Android2019lwrp <<<
read: unexpected EOF!
Do you see any clues in there? Thanks again for the help
skantron:
Thanks, I thought I had tried just swapping the command names, but it just hanged. I must have made a typo. But in any case, here are the logs from 2018(lwrp) and 2019(lwrp)
Do you see any clues in there? Thanks again for the help
Yes, it will “hang” until you launch your app, then the logs will start to scroll by. If you copied what I wrote it wouldn’t be a typo. Please provide a screenshot. You’re looking for differences when it works, and when it doesn’t. You’ll need to compare both logs side by side.
JeffDUnity3D:
Yes, it will “hang” until you launch your app, then the logs will start to scroll by. If you copied what I wrote it wouldn’t be a typo. Please provide a screenshot. You’re looking for differences when it works, and when it doesn’t. You’ll need to compare both logs side by side.
Sorry, it may have not been clear, they were both in there.
Here is the 2019 version (that is not running)
and here is the 2018 version that is running.
10-04 16:41:39.542 1264 3896 I WindowManager: WIN DEATH: Window{771e1d4 u0 com.skantron.Android2018_LWRP/com.unity3d.player.UnityPlayerActivity}
10-04 16:47:57.424 1264 2075 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.skantron.Android2018_LWRP/com.unity3d.player.UnityPlayerActivity} from uid 2000
10-04 16:47:57.478 1264 1299 I ActivityManager: Start proc 10023:com.skantron.Android2018_LWRP/u0a352 for activity {com.skantron.Android2018_LWRP/com.unity3d.player.UnityPlayerActivity}
10-04 16:47:57.689 10023 10051 I Unity : SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 8, Memory = 3662mb
10-04 16:47:57.689 10023 10051 I Unity : SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf0), 4 little (mask: 0xf)
10-04 16:47:57.689 10023 10051 I Unity : ApplicationInfo com.skantron.Android2018_LWRP version 0.1 build 48537928-fd81-480c-a23c-0f707a16f14a
10-04 16:47:57.689 10023 10051 I Unity : Built from ‘2018.2/staging’ branch, Version ‘2018.2.18f1 (4550892b6062)’, Build type ‘Release’, Scripting Backend ‘mono’
10-04 16:47:57.744 10023 10051 I chatty : uid=10352(com.skantron.Android2018_LWRP) UnityMain identical 14 lines
10-04 16:47:57.926 1264 1297 I ActivityTaskManager: Displayed com.skantron.Android2018_LWRP/com.unity3d.player.UnityPlayerActivity: +241ms
Both are running the LWRP, and the default sample scene with the Unity construction props.
@skantron Looks like there’s a crash on the last line, could you paste the whole stacktrace?
I would love to, but I may need some guidance on how to do that (and should I do it from ADB logcat, or from the Unity Logcat shell)
adb logcat | findstr -i unity > log.txt
Is that at all helpful? I really am not sure what I am looking for in there.
So, I was not able to get this running on 2019.2.6f1, which is disappointing, but I was able to use Unity 2019.2.9f1 to get a basic build running, but only with a standard 3d project, not with a LWRP project.
1 Like