When webview app is idle for more than 5+ the app shuts down.
App Name: com.peacock.peacockfiretv.main
Steps to reproduce
1 .Place device Kepler OS 1.1 (201010441850) in developer mode. vda connect {ip}:5555
2 .Deploy webview container
Webview container opens url “https://amazon.com”
3. Launch app via vda shell vlcm launch-app orpheus://com.peacock.peacockfiretv.main vda shell vlcm list show app in the foreground as
com.peacock.peacockfiretv.main 10685 72 VISIBLE PERMANENT
4. Wait 5+ minues without any user input
TV replies with no signal - Fire TV Stick vda shell vlcm list shows no entry for com.peacock.peacockfiretv.main
5. Device is still accessable and can restart the app via vda shell vlcm launch-app orpheus://com.peacock.peacockfiretv.main
See log attached.
The expected behavior
Device does not timeout and shut down the app after no activity.
From the logs shared by you, we found the below line:
Sep 18 21:55:16.158732 firestick-361f19cad01be94e local0.err lcm_service\[885\]: 885 E lcm-server:\[Lcm.cpp:4749\] Deregistering application with clientPid 20846 and package id com.peacock.peacockfiretv after crash
This line indicates that there has been a crash in the application.
Can you please share the Crash Report? You can refer to this page for the same.
I am unable to pull ACRs from the device.
Using Kepler Studio Extension Kepler Device Management: Copy ACR from device. reports No matching ACR report found
loggingctl returns: vda shell loggingctl vault --json-dump SYSTEM_TOMBSTONE/acr > “dump_file.txt” kepler % cat dump_file.txt { “acr”: { “PathInVault”: “/var/lib/data/ace/dropbox/vault/SYSTEM_TOMBSTONE/acr”, “artifacts”: , “storage”: “2952095” }, “status”: 0 }
When the app crashes the device display goes to sleep. Can the crash be related to the fact the display is no longer availble? Can the timeout be extended somewhere?
You may try changing the screensaver settings in the device. By default, screensaver starts in 5 minutes and low power mode starts in 15 minutes. User can change these defaults via Settings → Display & Sounds → Ambient Experience → Ambient Preferences → Advanced Settings.
Logs provided earlier range from Sep 18 21:55:15 to Sep 18 21:55:23 (~8 seconds). Could you please capture full logs and share?
Hi @Siva_Prakash , I found that after enabling the Ambient Experience the app no longer crashes since it keeps the display. Seems that the previous timeout turned off the display which caused the app to crash.
Hi @tlsky , that’s great to know. Are you confirming that the issue you reported is resolved after enabling Ambient Experience ? So Webview Application is not shutting down after 5+ minutes of inactivity any more ?
Hi @tlsky
‘Ambient’ turned OFF doesn’t prevent sleep so display will turn off after idle timeout.
However, we are looking into the same and will update you very soon.
Warm regards,
Ivy