home-assistant / android

:iphone: Home Assistant Companion for Android
https://companion.home-assistant.io/
Apache License 2.0
2.29k stars 631 forks source link

WebRTC video stream fails to load in latest release. #2047

Closed rbray89 closed 2 years ago

rbray89 commented 2 years ago

Home Assistant Android version:2021.12.0

Android version:12

Phone model:Pixel 4A

Home Assistant version:2021.12.4

Last working Home Assistant release (if known):2021.12.3

Description of problem:WebRTC streams fail to load in the app. They continue to load just fine with the web instance on mobile chrome. Worked fine in prior Android app release.

Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):

--------- beginning of main
12-21 07:02:13.205  2639  2639 E mpanion.androi: Not starting debugger since process cannot load the jdwp agent.
12-21 07:02:13.221  2639  2639 D ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
12-21 07:02:13.259  2639  2639 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10454; state: ENABLED
12-21 07:02:13.279  2639  2639 W mpanion.androi: Entry not found
12-21 07:02:13.280  2639  2639 W mpanion.androi: Entry not found
12-21 07:02:13.281  2639  2639 W mpanion.androi: Entry not found
12-21 07:02:13.290  2639  2639 W mpanion.androi: JIT profile information will not be recorded: profile file does not exist.
12-21 07:02:13.290  2639  2639 W mpanion.androi: JIT profile information will not be recorded: profile file does not exist.
12-21 07:02:13.290  2639  2639 W mpanion.androi: JIT profile information will not be recorded: profile file does not exist.
12-21 07:02:13.302  2639  2639 V GraphicsEnvironment: ANGLE Developer option for 'io.homeassistant.companion.android' set to: 'default'
12-21 07:02:13.303  2639  2639 V GraphicsEnvironment: ANGLE GameManagerService for io.homeassistant.companion.android: false
12-21 07:02:13.303  2639  2639 V GraphicsEnvironment: Updatable production driver is not supported on the device.
12-21 07:02:13.305  2639  2639 D NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: false
12-21 07:02:13.309  2639  2639 D NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: false
12-21 07:02:13.362  2639  2639 I FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT]
12-21 07:02:13.457  2639  2639 I FirebaseInitProvider: FirebaseApp initialization successful
12-21 07:02:13.461  2639  2639 D WM-WrkMgrInitializer: Initializing WorkManager with default configuration.
12-21 07:02:13.528  2639  2639 D Sentry  : io.sentry.auto-init read: false
12-21 07:02:13.528  2639  2639 I Sentry  : Retrieving auto-init from AndroidManifest.xml
12-21 07:02:13.568  2639  2693 I DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:55 and remote module com.google.android.gms.measurement.dynamite:55
12-21 07:02:13.568  2639  2693 I DynamiteModule: Selected local version of com.google.android.gms.measurement.dynamite
12-21 07:02:13.678  2639  2699 D CompatibilityChangeReporter: Compat change id reported: 160794467; UID 10454; state: ENABLED
12-21 07:02:13.759  2639  2719 D Sentry  : SU isn't found on this Device.
12-21 07:02:13.767  2639  2639 W pool-15-thread-: type=1400 audit(0.0:198772): avc: denied { read } for name="version" dev="proc" ino=4026532103 scontext=u:r:untrusted_app:s0:c198,c257,c512,c768 tcontext=u:object_r:proc_version:s0 tclass=file permissive=0 app=io.homeassistant.companion.android
12-21 07:02:13.947  2639  2639 I WebViewFactory: Loading com.google.android.webview version 96.0.4664.104 (code 466410433)
12-21 07:02:13.964  2639  2710 I FA      : App measurement initialized, version: 46000
12-21 07:02:13.964  2639  2710 I FA      : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
12-21 07:02:13.964  2639  2710 I FA      : To enable faster debug mode event logging run:
12-21 07:02:13.964  2639  2710 I FA      :   adb shell setprop debug.firebase.analytics.app io.homeassistant.companion.android
12-21 07:02:14.332  2639  2639 I cr_WVCFactoryProvider: Loaded version=96.0.4664.104 minSdkVersion=29 isBundle=true multiprocess=true packageId=2
12-21 07:02:14.409  2639  2639 I cr_LibraryLoader: Successfully loaded native library
12-21 07:02:14.412  2639  2639 I cr_CachingUmaRecorder: Flushed 7 samples from 7 histograms.
12-21 07:02:14.438  2639  2639 I Choreographer: Skipped 54 frames!  The application may be doing too much work on its main thread.
12-21 07:02:14.439  2639  2707 D WebSocketRepository: Sending message number 1: {type=get_config, id=1}
12-21 07:02:14.440  2639  2708 D WebSocketRepository: Sending message number 2: {type=get_config, id=2}
12-21 07:02:14.441  2639  2639 D SensorReceiver: Sensor audio_sensor corresponding to received event android.media.RINGER_MODE_CHANGED is disabled, skipping sensors update
12-21 07:02:14.447  2639  2709 D WebSocketRepository: Sending message number 3: {type=get_config, id=3}
12-21 07:02:14.464  2639  2707 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:14.464  2639  2707 D UrlRepository: Using external URL
12-21 07:02:14.521  2639  2639 D LocBroadcastReceiver: Received location update.
12-21 07:02:14.538  2639  2639 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
12-21 07:02:14.538  2639  2639 D LocBroadcastReceiver: Last Location: 
12-21 07:02:14.538  2639  2639 D LocBroadcastReceiver: Coords:(39.7228608, -104.9041109)
12-21 07:02:14.538  2639  2639 D LocBroadcastReceiver: Accuracy: 11.406
12-21 07:02:14.538  2639  2639 D LocBroadcastReceiver: Bearing: 0.0
12-21 07:02:14.538  2639  2639 D LocBroadcastReceiver: Begin evaluating if location update should be skipped
12-21 07:02:14.538  2639  2639 D LocBroadcastReceiver: Received location that is 159 milliseconds old, 1640095334379 compared to 1640095334538 with source fused
12-21 07:02:14.540  2639  2710 I FA      : Tag Manager is not found and thus will not be used
12-21 07:02:14.540  2639  2639 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:14.540  2639  2639 D UrlRepository: Using external URL
12-21 07:02:14.542  2639  2707 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:14.543  2639  2639 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:14.603  2639  2639 W mpanion.androi: Accessing hidden method Landroid/content/res/Resources$Theme;->getKey()Landroid/content/res/Resources$ThemeKey; (max-target-o, reflection, denied)
12-21 07:02:14.635  2639  2754 D WebSocketRepository: Websocket: onOpen
12-21 07:02:14.638  2639  2747 I AdrenoGLES-0: QUALCOMM build                   : 85da404, I46ff5fc46f
12-21 07:02:14.638  2639  2747 I AdrenoGLES-0: Build Date                       : 11/30/20
12-21 07:02:14.638  2639  2747 I AdrenoGLES-0: OpenGL ES Shader Compiler Version: EV031.31.04.01
12-21 07:02:14.638  2639  2747 I AdrenoGLES-0: Local Branch                     : promo490_3_Google
12-21 07:02:14.638  2639  2747 I AdrenoGLES-0: Remote Branch                    : 
12-21 07:02:14.638  2639  2747 I AdrenoGLES-0: Remote Branch                    : 
12-21 07:02:14.638  2639  2747 I AdrenoGLES-0: Reconstruct Branch               : 
12-21 07:02:14.638  2639  2747 I AdrenoGLES-0: Build Config                     : S P 10.0.4 AArch64
12-21 07:02:14.638  2639  2747 I AdrenoGLES-0: Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
12-21 07:02:14.639  2639  2747 D hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
12-21 07:02:14.640  2639  2754 D WebSocketRepository: Websocket: onMessage (text)
12-21 07:02:14.657  2639  2747 I AdrenoGLES-0: PFP: 0x016ee190, ME: 0x00000000
12-21 07:02:14.660  2639  2747 W AdrenoUtils: <ReadGpuID_from_sysfs:197>: Failed to open /sys/class/kgsl/kgsl-3d0/gpu_model
12-21 07:02:14.660  2639  2747 W AdrenoUtils: <ReadGpuID:221>: Failed to read chip ID from gpu_model. Fallback to use the GSL path
12-21 07:02:14.678  2639  2747 D hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
12-21 07:02:14.773  2639  2754 D WebSocketRepository: Message number null received: {"type": "auth_required", "ha_version": "2021.12.4"}
12-21 07:02:14.775  2639  2745 D WebSocketRepository: Auth Requested
12-21 07:02:14.776  2639  2754 D WebSocketRepository: Websocket: onMessage (text)
12-21 07:02:14.779  2639  2754 D WebSocketRepository: Message number null received: {"type": "auth_ok", "ha_version": "2021.12.4"}
12-21 07:02:14.784  2639  2805 D WebSocketRepository: Message number 2 sent
12-21 07:02:14.784  2639  2745 D WebSocketRepository: Message number 3 sent
12-21 07:02:14.790  2639  2744 D WebSocketRepository: Message number 1 sent
12-21 07:02:14.793  2639  2754 D WebSocketRepository: Websocket: onMessage (text)
12-21 07:02:14.795  2639  2754 D WebSocketRepository: Message number 2 received: {"id": 2, "type": "result", "success": true, "result": {"latitude": 39.722860527425794, "longitude": -104.90410941316934, "elevation": 1581, "unit_system": {"length": "mi", "accumulated_precipitation": "in", "mass": "lb", "pressure": "psi", "temperature": "\u00b0F", "volume": "gal", "wind_speed": "mph"}, "location_name": "Home", "time_zone": "America/Denver", "components": ["alarm_control_panel.alexa_media", "history", "my", "binary_sensor", "switch", "sensor.nut", "zone", "climate.esphome", "binary_sensor.synology_dsm", "light.zwave_js", "fan.zha", "sun", "input_boolean", "persistent_notification", "climate", "switch.zha", "websocket_api", "device_automation", "lovelace", "hassio", "ssdp", "synology_dsm", "energy", "siren", "mqtt", "notify.mobile_app", "conversation", "janus_stream", "blueprint", "notify.html5", "alarm_control_panel.zha", "media_source", "number.zha", "sensor.REDACTED", "usb", "input_number", "sensor.mqtt", "auth", "frontend", "notify", "cover.group", "switch.template", "light.group", "notify.alexa_media", "switch.zwave_js", "sensor.syncthru", "upnp", "cover", "button", "cover.zha", "sensor", "binary_sensor.REDACTED", "mobile_app", "sensor.netgear", "camera", "media_player", "binary_sensor.zwave_js", "sensor.keymaster", "onboarding", "nanoleaf", "zwave_js", "sensor.upnp", "sensor.hacs", "homeassistant", "device_tracker.netgear", "hacs", "light", "number", "stream", "smartir", "logbook", "binary_sensor.hikvision", "lock", "binary_sensor.mobile_app", "keymaster", "binary_sensor.template", "light.zha", "REDACTED", "zha", "camera.synology_dsm", "image", "sensor.template", "lock.zha", "sensor.systemmonitor", "analytics", "switch.alexa_media", "tag", "sensor.esphome", "lock.zwave_js", "webhook", "nut", "cloud", "group", "switch.esphome", "binary_sensor.hassio", "scene", "default_config", "sensor.alexa_media", "syncthru", "tts.google_translate", "recorder", "system_health", "remote.broadlink", "button.nanoleaf", "sensor.synology_dsm", "search", "scheduler", "netgear", "switch.adguard", "device_tracker.mobile_app", "remote", "sensor.zwave_js", "homekit_controller", "climate.smartir", "network", "automation", "system_log", "zeroconf", "siren.zha", "template", "trace", "person", "binary_sensor.upnp", "broadlink", "api", "alexa_media", "climate.zwave_js", "config", "device_tracker.zha", "switch.scheduler", "binary_sensor.zha", "input_datetime", "media_player.alexa_media", "updater", "climate.zha", "cover.homekit_controller", "light.alexa_media", "alarm_control_panel", "esphome", "discovery", "script", "sensor.energy", "number.mqtt", "input_text", "dhcp", "switch.broadlink", "tts", "map", "camera.janus_stream", "sensor.hassio", "camera.mjpeg", "device_tracker", "light.nanoleaf", "counter", "input_select", "timer", "emulated_hue", "scene.homeassistant", "binary_sensor.syncthru", "sensor.adguard", "binary_sensor.keymaster", "number.zwave_js", "sensor.zha", "switch.mqtt", "adguard", "sensor.mobile_app", "binary_sensor.updater", "http", "fan"], "config_dir": "/config", "whitelist_external_dirs": ["/config/www", "/media"], "allowlist_external_dirs": ["/config/www", "/media"], "allowlist_external_urls": [], "version": "2021.12.4", "config_source": "yaml", "safe_mode": false, "state": "RUNNING", "external_url": "https://REDACTED", "internal_url": "https://REDACTED", "currency": "EUR"}}
12-21 07:02:14.796  2639  2754 D WebSocketRepository: Websocket: onMessage (text)
12-21 07:02:14.798  2639  2754 D WebSocketRepository: Message number 3 received: {"id": 3, "type": "result", "success": true, "result": {"latitude": 39.722860527425794, "longitude": -104.90410941316934, "elevation": 1581, "unit_system": {"length": "mi", "accumulated_precipitation": "in", "mass": "lb", "pressure": "psi", "temperature": "\u00b0F", "volume": "gal", "wind_speed": "mph"}, "location_name": "Home", "time_zone": "America/Denver", "components": ["alarm_control_panel.alexa_media", "history", "my", "binary_sensor", "switch", "sensor.nut", "zone", "climate.esphome", "binary_sensor.synology_dsm", "light.zwave_js", "fan.zha", "sun", "input_boolean", "persistent_notification", "climate", "switch.zha", "websocket_api", "device_automation", "lovelace", "hassio", "ssdp", "synology_dsm", "energy", "siren", "mqtt", "notify.mobile_app", "conversation", "janus_stream", "blueprint", "notify.html5", "alarm_control_panel.zha", "media_source", "number.zha", "usb", "input_number", "sensor.mqtt", "auth", "frontend", "notify", "cover.group", "switch.template", "light.group", "notify.alexa_media", "switch.zwave_js", "sensor.syncthru", "upnp", "cover", "button", "cover.zha", "sensor", "binary_sensor.REDACTED", "mobile_app", "sensor.netgear", "camera", "media_player", "binary_sensor.zwave_js", "sensor.keymaster", "onboarding", "nanoleaf", "zwave_js", "sensor.upnp", "sensor.hacs", "homeassistant", "device_tracker.netgear", "hacs", "light", "number", "stream", "smartir", "logbook", "binary_sensor.hikvision", "lock", "binary_sensor.mobile_app", "keymaster", "binary_sensor.template", "light.zha", "zha", "camera.synology_dsm", "image", "sensor.template", "lock.zha", "sensor.systemmonitor", "analytics", "switch.alexa_media", "tag", "sensor.esphome", "lock.zwave_js", "webhook", "nut", "cloud", "group", "switch.esphome", "binary_sensor.hassio", "scene", "default_config", "sensor.alexa_media", "syncthru", "tts.google_translate", "recorder", "system_health", "remote.broadlink", "button.nanoleaf", "sensor.synology_dsm", "search", "scheduler", "netgear", "switch.adguard", "device_tracker.mobile_app", "remote", "sensor.zwave_js", "homekit_controller", "climate.smartir", "network", "automation", "system_log", "zeroconf", "siren.zha", "template", "trace", "person", "binary_sensor.upnp", "broadlink", "api", "alexa_media", "climate.zwave_js", "config", "device_tracker.zha", "switch.scheduler", "binary_sensor.zha", "input_datetime", "media_player.alexa_media", "updater", "climate.zha", "cover.homekit_controller", "light.alexa_media", "alarm_control_panel", "esphome", "discovery", "script", "sensor.energy", "number.mqtt", "input_text", "dhcp", "switch.broadlink", "tts", "map", "camera.janus_stream", "sensor.hassio", "camera.mjpeg", "device_tracker", "light.nanoleaf", "counter", "input_select", "timer", "emulated_hue", "scene.homeassistant", "binary_sensor.syncthru", "sensor.adguard", "binary_sensor.keymaster", "number.zwave_js", "sensor.zha", "switch.mqtt", "adguard", "sensor.mobile_app", "binary_sensor.updater", "http", "fan"], "config_dir": "/config", "whitelist_external_dirs": ["/config/www", "/media"], "allowlist_external_dirs": ["/config/www", "/media"], "allowlist_external_urls": [], "version": "2021.12.4", "config_source": "yaml", "safe_mode": false, "state": "RUNNING", "external_url": "https://REDACTED", "internal_url": "https://REDACTED", "currency": "EUR"}}
12-21 07:02:14.799  2639  2754 D WebSocketRepository: Websocket: onMessage (text)
12-21 07:02:14.801  2639  2754 D WebSocketRepository: Message number 1 received: {"id": 1, "type": "result", "success": false, "error": {"code": "id_reuse", "message": "Identifier values have to increase."}}
12-21 07:02:14.884  2639  2707 D LocBroadcastReceiver: Location update sent successfully
12-21 07:02:14.916  2639  2805 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:14.947  2639  2744 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.076  2639  2639 D CompatibilityChangeReporter: Compat change id reported: 171228096; UID 10454; state: ENABLED
12-21 07:02:15.143  2639  2639 D RenderScript HIDL Adaptation: IRenderScriptDevice::getService()
12-21 07:02:15.146  2639  2639 D RenderScript HIDL Adaptation: IRenderScriptDevice::getService() returned 0x0
12-21 07:02:15.146  2639  2639 D RenderScript HIDL Adaptation: Using Fallback Path.
12-21 07:02:15.233  2639  2639 D mpanion.androi: Successfully queried cache dir: /data/user_de/0/io.homeassistant.companion.android/code_cache
12-21 07:02:15.233  2639  2639 D RenderScript: Setting cache dir: /data/user_de/0/io.homeassistant.companion.android/code_cache
12-21 07:02:15.250  2639  2639 I System.out: recordForce value 5
12-21 07:02:15.252  2639  2639 D WebviewActivity: Current webview package com.google.android.webview and version 96.0.4664.104
12-21 07:02:15.405  2639  2709 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.448  2639  2639 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.448  2639  2639 D UrlRepository: Using external URL
12-21 07:02:15.450  2639  2807 D SensorWorker: Updating all Sensors.
12-21 07:02:15.456  2639  2699 I WM-Processor: Moving WorkSpec (bcf7914c-605d-4fd8-a2f5-d01495014708) to the foreground
12-21 07:02:15.497  2639  2639 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }
12-21 07:02:15.594  2639  2744 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.596  2639  2805 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.604  2639  2807 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.617  2639  2807 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.622  2639  2709 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.629  2639  2709 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.643  2639  2709 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.643  2639  2805 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.648  2639  2744 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.665  2639  2744 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.671  2639  2744 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.681  2639  2744 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.693  2639  2744 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.708  2639  2744 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.721  2639  2744 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.789  2639  2807 D LocBroadcastReceiver: Registering for zone based location updates
12-21 07:02:15.836  2639  2807 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.868  2639  2708 D LocBroadcastReceiver: Registering for location updates.
12-21 07:02:15.878  2639  2707 D LocBroadcastReceiver: High accuracy mode parameters changed. Disable high accuracy mode.
12-21 07:02:15.884  2639  2707 D HighAccLocService: Try stopping high accuracy location service...
12-21 07:02:15.884  2639  2707 D LocBroadcastReceiver: Registering for location updates.
12-21 07:02:15.886  2639  2707 D LocBroadcastReceiver: High accuracy mode geo parameters changed. Reconfigure zones.
12-21 07:02:15.886  2639  2707 D LocBroadcastReceiver: Removing geofence location requests.
12-21 07:02:15.894  2639  2639 I WM-SystemFgDispatcher: Stopping foreground service
12-21 07:02:15.896  2639  2707 D LocBroadcastReceiver: Registering for zone based location updates
12-21 07:02:15.905  2639  2639 I WM-SystemFgService: Re-initializing SystemForegroundService after a request to shut-down.
12-21 07:02:15.905  2639  2639 I WM-SystemFgDispatcher: Stopping foreground service
12-21 07:02:15.921  2639  2707 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.945  2639  2947 I WM-WorkerWrapper: Work [ id=bcf7914c-605d-4fd8-a2f5-d01495014708, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ] was cancelled
12-21 07:02:15.945  2639  2947 I WM-WorkerWrapper: java.util.concurrent.CancellationException: Task was cancelled.
12-21 07:02:15.945  2639  2947 I WM-WorkerWrapper:     at androidx.work.impl.utils.futures.AbstractFuture.cancellationExceptionWithCause(AbstractFuture.java:1184)
12-21 07:02:15.945  2639  2947 I WM-WorkerWrapper:     at androidx.work.impl.utils.futures.AbstractFuture.getDoneValue(AbstractFuture.java:514)
12-21 07:02:15.945  2639  2947 I WM-WorkerWrapper:     at androidx.work.impl.utils.futures.AbstractFuture.get(AbstractFuture.java:475)
12-21 07:02:15.945  2639  2947 I WM-WorkerWrapper:     at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:311)
12-21 07:02:15.945  2639  2947 I WM-WorkerWrapper:     at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
12-21 07:02:15.945  2639  2947 I WM-WorkerWrapper:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
12-21 07:02:15.945  2639  2947 I WM-WorkerWrapper:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
12-21 07:02:15.945  2639  2947 I WM-WorkerWrapper:     at java.lang.Thread.run(Thread.java:920)
12-21 07:02:15.955  2639  2639 D LocBroadcastReceiver: Received location update.
12-21 07:02:15.963  2639  2639 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
12-21 07:02:15.963  2639  2639 D LocBroadcastReceiver: Last Location: 
12-21 07:02:15.963  2639  2639 D LocBroadcastReceiver: Coords:(39.7228608, -104.9041109)
12-21 07:02:15.963  2639  2639 D LocBroadcastReceiver: Accuracy: 11.406
12-21 07:02:15.963  2639  2639 D LocBroadcastReceiver: Bearing: 0.0
12-21 07:02:15.963  2639  2639 D LocBroadcastReceiver: Begin evaluating if location update should be skipped
12-21 07:02:15.963  2639  2639 D LocBroadcastReceiver: Skipping old location update since time is before the last one we sent, received: 1640095334379 last sent: 1640095334538
12-21 07:02:15.964  2639  2744 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:15.964  2639  2639 I WM-SystemFgDispatcher: Stopping foreground service
12-21 07:02:15.978  2639  2708 D SensorWorker: Updating all Sensors.
12-21 07:02:15.982  2639  2699 I WM-Processor: Moving WorkSpec (a2cf773a-508e-40e1-ba4d-cb5b3713f3bc) to the foreground
12-21 07:02:15.990  2639  2639 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }
12-21 07:02:16.027  2639  2805 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:16.027  2639  2709 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:16.049  2639  2709 E SensorReceiver: Exception while updating sensors.
12-21 07:02:16.049  2639  2709 E SensorReceiver: io.homeassistant.companion.android.common.data.integration.IntegrationException: kotlinx.coroutines.JobCancellationException: Job was cancelled; job=JobImpl{Cancelling}@1ace0f3
12-21 07:02:16.049  2639  2709 E SensorReceiver:     at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl.updateSensors(IntegrationRepositoryImpl.kt:563)
12-21 07:02:16.049  2639  2709 E SensorReceiver:     at io.homeassistant.companion.android.common.data.integration.impl.IntegrationRepositoryImpl$updateSensors$1.invokeSuspend(Unknown Source:15)
12-21 07:02:16.049  2639  2709 E SensorReceiver:     at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
12-21 07:02:16.049  2639  2709 E SensorReceiver:     at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
12-21 07:02:16.049  2639  2709 E SensorReceiver:     at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
12-21 07:02:16.049  2639  2709 E SensorReceiver:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
12-21 07:02:16.049  2639  2709 E SensorReceiver:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
12-21 07:02:16.049  2639  2709 E SensorReceiver:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
12-21 07:02:16.049  2639  2709 E SensorReceiver: Caused by: kotlinx.coroutines.JobCancellationException: Job was cancelled; job=JobImpl{Cancelling}@1ace0f3
12-21 07:02:16.060  2639  2708 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:16.092  2639  2709 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:16.111  2639  2639 D LocBroadcastReceiver: Received geofence update.
12-21 07:02:16.114  2639  2639 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:16.153  2639  2639 D LocBroadcastReceiver: Event sent to Home Assistant
12-21 07:02:16.155  2639  2639 D LocBroadcastReceiver: Last Location: 
12-21 07:02:16.155  2639  2639 D LocBroadcastReceiver: Coords:(39.7228608, -104.9041109)
12-21 07:02:16.155  2639  2639 D LocBroadcastReceiver: Accuracy: 11.406
12-21 07:02:16.155  2639  2639 D LocBroadcastReceiver: Bearing: 0.0
12-21 07:02:16.155  2639  2639 D LocBroadcastReceiver: Begin evaluating if location update should be skipped
12-21 07:02:16.155  2639  2639 D LocBroadcastReceiver: Skipping old location update since time is before the last one we sent, received: 1640095334379 last sent: 1640095334538
12-21 07:02:16.206  2639  2709 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:16.225  2639  2947 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=a2cf773a-508e-40e1-ba4d-cb5b3713f3bc, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
12-21 07:02:16.265  2639  2639 I WM-SystemFgDispatcher: Stopping foreground service
12-21 07:02:16.584  2639  3048 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":1}
12-21 07:02:16.811  2639  3048 D WebviewActivity: External bus {"type":"theme-update","id":2}
12-21 07:02:16.870  2639  2639 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-21 07:02:16.870  2639  2639 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-21 07:02:16.870  2639  2709 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
12-21 07:02:16.871  2639  2709 I WebViewPresenterImpl: Found color -15720924.
12-21 07:02:16.871  2639  2744 D WebViewPresenterImpl: Try getting color from webview color "#111111".
12-21 07:02:16.871  2639  2744 I WebViewPresenterImpl: Found color -15658735.
12-21 07:02:16.985  2639  3048 D WebviewActivity: External bus {"type":"config/get","id":3}
12-21 07:02:16.992  2639  2639 D WebviewActivity: externalBus({"id":3,"type":"result","success":true,"result":{"hasSettingsScreen":true,"canWriteTag":true,"hasExoPlayer":true}});
12-21 07:02:17.074  2639  2639 D WebviewActivity: Callback null
12-21 07:02:17.076  2639  2639 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-21 07:02:17.076  2639  2639 D WebviewActivity: Color from webview is "#101e24-SPACER-#111111"
12-21 07:02:17.076  2639  2744 D WebViewPresenterImpl: Try getting color from webview color "#101e24".
12-21 07:02:17.077  2639  2744 I WebViewPresenterImpl: Found color -15720924.
12-21 07:02:17.077  2639  2744 D WebViewPresenterImpl: Try getting color from webview color "#111111".
12-21 07:02:17.077  2639  2744 I WebViewPresenterImpl: Found color -15658735.
12-21 07:02:17.690  2639  2974 W VideoCapabilities: Unsupported mime image/vnd.android.heic
12-21 07:02:21.168  2639  2639 D LocBroadcastReceiver: Received geofence update.
12-21 07:02:21.176  2639  2639 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:21.198  2639  2639 D LocBroadcastReceiver: Event sent to Home Assistant
12-21 07:02:21.200  2639  2639 D LocBroadcastReceiver: Last Location: 
12-21 07:02:21.200  2639  2639 D LocBroadcastReceiver: Coords:(39.7228608, -104.9041109)
12-21 07:02:21.200  2639  2639 D LocBroadcastReceiver: Accuracy: 11.406
12-21 07:02:21.200  2639  2639 D LocBroadcastReceiver: Bearing: 0.0
12-21 07:02:21.200  2639  2639 D LocBroadcastReceiver: Begin evaluating if location update should be skipped
12-21 07:02:21.200  2639  2639 D LocBroadcastReceiver: Skipping old location update since time is before the last one we sent, received: 1640095334379 last sent: 1640095334538
12-21 07:02:29.854  2639  3048 D WebviewActivity: External bus {"type":"config_screen/show","id":4}
12-21 07:02:29.933  2639  2639 D UrlRepository: Using external URL
12-21 07:02:29.933  2639  2639 D UrlRepository: Using external URL
12-21 07:02:29.935  2639  2639 D UrlRepository: Using external URL
12-21 07:02:29.936  2639  2639 D UrlRepository: Using external URL
12-21 07:02:30.322  2639  2744 D SensorWorker: Updating all Sensors.
12-21 07:02:30.329  2639  2699 I WM-Processor: Moving WorkSpec (02a6cae5-eb70-4676-9ad2-b08359aa1f44) to the foreground
12-21 07:02:30.339  2639  2639 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }
12-21 07:02:30.424  2639  2744 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:02:30.448  2639  2944 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=02a6cae5-eb70-4676-9ad2-b08359aa1f44, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
12-21 07:02:30.458  2639  2639 I WM-SystemFgDispatcher: Stopping foreground service
12-21 07:02:44.785  2639  2744 E WebSocketRepository: Error sending request number 1
12-21 07:02:44.785  2639  2744 E WebSocketRepository: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 30000 ms
12-21 07:02:44.785  2639  2744 E WebSocketRepository:     at kotlinx.coroutines.TimeoutKt.TimeoutCancellationException(Timeout.kt:186)
12-21 07:02:44.785  2639  2744 E WebSocketRepository:     at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:156)
12-21 07:02:44.785  2639  2744 E WebSocketRepository:     at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt:497)
12-21 07:02:44.785  2639  2744 E WebSocketRepository:     at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:274)
12-21 07:02:44.785  2639  2744 E WebSocketRepository:     at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:69)
12-21 07:02:44.785  2639  2744 E WebSocketRepository:     at java.lang.Thread.run(Thread.java:920)
12-21 07:02:44.785  2639  2744 D WebSocketRepository: Sending message number 4: {type=get_config, id=4}
12-21 07:02:44.786  2639  2744 D WebSocketRepository: Message number 4 sent
12-21 07:02:44.790  2639  2754 D WebSocketRepository: Websocket: onMessage (text)
12-21 07:02:44.792  2639  2754 D WebSocketRepository: Message number 4 received: {"id": 4, "type": "result", "success": true, "result": {"latitude": 39.722860527425794, "longitude": -104.90410941316934, "elevation": 1581, "unit_system": {"length": "mi", "accumulated_precipitation": "in", "mass": "lb", "pressure": "psi", "temperature": "\u00b0F", "volume": "gal", "wind_speed": "mph"}, "location_name": "Home", "time_zone": "America/Denver", "components": ["alarm_control_panel.alexa_media", "history", "my", "binary_sensor", "switch", "sensor.nut", "zone", "climate.esphome", "binary_sensor.synology_dsm", "light.zwave_js", "fan.zha", "sun", "input_boolean", "persistent_notification", "climate", "switch.zha", "websocket_api", "device_automation", "lovelace", "hassio", "ssdp", "synology_dsm", "energy", "siren", "mqtt", "notify.mobile_app", "conversation", "janus_stream", "blueprint", "notify.html5", "alarm_control_panel.zha", "media_source", "number.zha", "sensor.REDACTED", "usb", "input_number", "sensor.mqtt", "auth", "frontend", "notify", "cover.group", "switch.template", "light.group", "notify.alexa_media", "switch.zwave_js", "sensor.syncthru", "upnp", "cover", "button", "cover.zha", "sensor", "binary_sensor.REDACTED", "mobile_app", "sensor.netgear", "camera", "media_player", "binary_sensor.zwave_js", "sensor.keymaster", "onboarding", "nanoleaf", "zwave_js", "sensor.upnp", "sensor.hacs", "homeassistant", "device_tracker.netgear", "hacs", "light", "number", "stream", "smartir", "logbook", "binary_sensor.hikvision", "lock", "binary_sensor.mobile_app", "keymaster", "binary_sensor.template", "light.zha", "REDACTED", "zha", "camera.synology_dsm", "image", "sensor.template", "lock.zha", "sensor.systemmonitor", "analytics", "switch.alexa_media", "tag", "sensor.esphome", "lock.zwave_js", "webhook", "nut", "cloud", "group", "switch.esphome", "binary_sensor.hassio", "scene", "default_config", "sensor.alexa_media", "syncthru", "tts.google_translate", "recorder", "system_health", "remote.broadlink", "button.nanoleaf", "sensor.synology_dsm", "search", "scheduler", "netgear", "switch.adguard", "device_tracker.mobile_app", "remote", "sensor.zwave_js", "homekit_controller", "climate.smartir", "network", "automation", "system_log", "zeroconf", "siren.zha", "template", "trace", "person", "binary_sensor.upnp", "broadlink", "api", "alexa_media", "climate.zwave_js", "config", "device_tracker.zha", "switch.scheduler", "binary_sensor.zha", "input_datetime", "media_player.alexa_media", "updater", "climate.zha", "cover.homekit_controller", "light.alexa_media", "alarm_control_panel", "esphome", "discovery", "script", "sensor.energy", "number.mqtt", "input_text", "dhcp", "switch.broadlink", "tts", "map", "camera.janus_stream", "sensor.hassio", "camera.mjpeg", "device_tracker", "light.nanoleaf", "counter", "input_select", "timer", "emulated_hue", "scene.homeassistant", "binary_sensor.syncthru", "sensor.adguard", "binary_sensor.keymaster", "number.zwave_js", "sensor.zha", "switch.mqtt", "adguard", "sensor.mobile_app", "binary_sensor.updater", "http", "fan"], "config_dir": "/config", "whitelist_external_dirs": ["/config/www", "/media"], "allowlist_external_dirs": ["/config/www", "/media"], "allowlist_external_urls": [], "version": "2021.12.4", "config_source": "yaml", "safe_mode": false, "state": "RUNNING", "external_url": "https://REDACTED", "internal_url": "https://REDACTED", "currency": "EUR"}}
12-21 07:02:44.853  2639  2744 D UrlRepository: localUrl is: false and usesInternalSsid is: false
12-21 07:03:07.640  2639  2709 D LogcatReader: Read logcat for pid 263

Screenshot of problem:

Additional information:

dshokouhi commented 2 years ago

Are you saying this issue got introduced after a HA core update? Have you tested this in chrome for android?

rbray89 commented 2 years ago

@dshokouhi it is an Android app issue I believe. Rolling back to version 2021.10.0 of the app seems to work fine with latest HA Core. I'll edit the ticket to reflect this.

Edit: also works fine with Chrome on Android.

dshokouhi commented 2 years ago

ok then please get us the on device logs as requested in the issue template

rbray89 commented 2 years ago

@dshokouhi ah, will do. Sorry, was late and on my phone when I opened this.

rbray89 commented 2 years ago

@dshokouhi updated. I didn't see anything in the log that stood out as applicable. I should note that the webRTC stream is created by a Janus Gateway custom component (https://github.com/jurriaan/janus-stream-custom-component)

dshokouhi commented 2 years ago

12-21 07:02:17.690 2639 2974 W VideoCapabilities: Unsupported mime image/vnd.android.heic

can you double check that android system webview is up to date and its the version from the play store?

also have you tried with the WebRTC stream found in HA core? If this issue is related to the custom component only then we wont be able to fix that here

rbray89 commented 2 years ago

@dshokouhi looks like I'm up-to-date: 96.0.4664.104

Any easy way to get a WebRTC stream going from HACore? Everything seems to be about the custom components others have created.

dshokouhi commented 2 years ago

So far according to release notes it's only nest. We may want to ask the custom component author to see if they can fix this on their end. I wonder if the core integration is working on Android.

https://www.home-assistant.io/blog/2021/11/03/release-202111/#other-noteworthy-changes

rbray89 commented 2 years ago

Closing this. There's another WebRTC component I was able to get working without issues.