New launchers seem to run into init-issues #91

Closed
opened 2021-08-10 09:03:36 +00:00 by arwagner · 12 comments

0.56.4 introduced new launchers for Warnings and Texts, which is a pretty handy feature.

However, if Always update is checked, and use either launcher, I see spurious crashes. The app only opens for a blink and is gone again. From a gut feeling some init is missing. If I update data from the app frist everything seems fine as is the case if the app has recent data. (Looks like it is triggering the upate, but dies before everything is there.)

Thus spoke the log:

2021-08-10 07:38:39.755 Logging started, new file created. Device info:
2021-08-10 07:38:39.756 ------------------------------------------------------
2021-08-10 07:38:39.756 Android SDK version: 28
2021-08-10 07:38:39.756 Android SDK version: REL
2021-08-10 07:38:39.756 Android build: 47.2.A.11.228
2021-08-10 07:38:39.756 Hardware: qcom
2021-08-10 07:38:39.756 Product: G8441
2021-08-10 07:38:39.756 Model: G8441
2021-08-10 07:38:39.756 Manufacturer: Sony
2021-08-10 07:38:39.757 App build: 27
2021-08-10 07:38:39.757 App build name: 0.56.4
2021-08-10 07:38:39.757 ------------------------------------------------------
2021-08-10 07:38:39.757 
Available display:
----------------------------------
Logical density: 2.0
Scaled density: 2.0
Width  (pixels): 720
Height (pixels): 1184
x-dpi: 326.571
y-dpi: 325.12
calculated physical metrics:
Width  (x): 2.2 inch
Height (y): 3.64 inch
Pixel-independent metrics:
Width (x) in dp: 353
Height (y) in dp: 583

2021-08-10 07:38:39.758 ------------------------------------------------------
2021-08-10 07:38:39.758 ALARM MANAGER: update from API not due.
2021-08-10 07:38:39.759 ALARM MANAGER: job scheduled in 28 minutes.
2021-08-10 07:38:40.020 ALARM MANAGER: update from API not due.
2021-08-10 07:38:40.022 ALARM MANAGER: job scheduled in 28 minutes.
2021-08-10 07:42:49.891 WIDGET: Updating widget (system): class de.kaffeemitkoffein.tinyweatherforecastgermany.ClassicWidget
2021-08-10 07:42:50.277 ALARM MANAGER: update from API not due.
2021-08-10 07:42:50.281 ALARM MANAGER: job scheduled in 24 minutes.
2021-08-10 07:52:36.546 WEATHER ALERTS: Warnings not outdated, recycling.
2021-08-10 07:52:38.531 TWF: Testing
2021-08-10 07:52:38.745 TEXTS: 1 new texts found in 65 available online.
2021-08-10 07:52:43.934 ALARM MANAGER: update from API not due.
2021-08-10 07:52:43.934 ALARM MANAGER: updating widgets.
2021-08-10 07:52:43.938 ALARM MANAGER: job scheduled in 30 minutes.
2021-08-10 07:52:44.106 ALARM MANAGER: update from API not due.
2021-08-10 07:52:44.108 ALARM MANAGER: job scheduled in 29 minutes.
2021-08-10 07:52:44.116 WIDGET: Updating widget (app, custom): class de.kaffeemitkoffein.tinyweatherforecastgermany.ClassicWidget
2021-08-10 07:52:44.476 ALARM MANAGER: update from API not due.
2021-08-10 07:52:44.479 ALARM MANAGER: job scheduled in 29 minutes.
2021-08-10 07:52:44.535 WIDGET: Updating widget (app, custom): class de.kaffeemitkoffein.tinyweatherforecastgermany.LargeWidget
2021-08-10 07:52:44.583 WIDGET: Updating widget (app, custom): class de.kaffeemitkoffein.tinyweatherforecastgermany.BoldWidget
2021-08-10 07:52:44.607 WIDGET: Updating widget (app, custom): class de.kaffeemitkoffein.tinyweatherforecastgermany.ClockWidget
0.56.4 introduced new launchers for `Warnings` and `Texts`, which is a pretty handy feature. However, if _Always update_ is checked, and use either launcher, I see spurious crashes. The app only opens for a blink and is gone again. From a gut feeling some init is missing. If I update data from the app frist everything seems fine as is the case if the app has recent data. (Looks like it is triggering the upate, but dies before everything is there.) Thus spoke the log: ``` 2021-08-10 07:38:39.755 Logging started, new file created. Device info: 2021-08-10 07:38:39.756 ------------------------------------------------------ 2021-08-10 07:38:39.756 Android SDK version: 28 2021-08-10 07:38:39.756 Android SDK version: REL 2021-08-10 07:38:39.756 Android build: 47.2.A.11.228 2021-08-10 07:38:39.756 Hardware: qcom 2021-08-10 07:38:39.756 Product: G8441 2021-08-10 07:38:39.756 Model: G8441 2021-08-10 07:38:39.756 Manufacturer: Sony 2021-08-10 07:38:39.757 App build: 27 2021-08-10 07:38:39.757 App build name: 0.56.4 2021-08-10 07:38:39.757 ------------------------------------------------------ 2021-08-10 07:38:39.757 Available display: ---------------------------------- Logical density: 2.0 Scaled density: 2.0 Width (pixels): 720 Height (pixels): 1184 x-dpi: 326.571 y-dpi: 325.12 calculated physical metrics: Width (x): 2.2 inch Height (y): 3.64 inch Pixel-independent metrics: Width (x) in dp: 353 Height (y) in dp: 583 2021-08-10 07:38:39.758 ------------------------------------------------------ 2021-08-10 07:38:39.758 ALARM MANAGER: update from API not due. 2021-08-10 07:38:39.759 ALARM MANAGER: job scheduled in 28 minutes. 2021-08-10 07:38:40.020 ALARM MANAGER: update from API not due. 2021-08-10 07:38:40.022 ALARM MANAGER: job scheduled in 28 minutes. 2021-08-10 07:42:49.891 WIDGET: Updating widget (system): class de.kaffeemitkoffein.tinyweatherforecastgermany.ClassicWidget 2021-08-10 07:42:50.277 ALARM MANAGER: update from API not due. 2021-08-10 07:42:50.281 ALARM MANAGER: job scheduled in 24 minutes. 2021-08-10 07:52:36.546 WEATHER ALERTS: Warnings not outdated, recycling. 2021-08-10 07:52:38.531 TWF: Testing 2021-08-10 07:52:38.745 TEXTS: 1 new texts found in 65 available online. 2021-08-10 07:52:43.934 ALARM MANAGER: update from API not due. 2021-08-10 07:52:43.934 ALARM MANAGER: updating widgets. 2021-08-10 07:52:43.938 ALARM MANAGER: job scheduled in 30 minutes. 2021-08-10 07:52:44.106 ALARM MANAGER: update from API not due. 2021-08-10 07:52:44.108 ALARM MANAGER: job scheduled in 29 minutes. 2021-08-10 07:52:44.116 WIDGET: Updating widget (app, custom): class de.kaffeemitkoffein.tinyweatherforecastgermany.ClassicWidget 2021-08-10 07:52:44.476 ALARM MANAGER: update from API not due. 2021-08-10 07:52:44.479 ALARM MANAGER: job scheduled in 29 minutes. 2021-08-10 07:52:44.535 WIDGET: Updating widget (app, custom): class de.kaffeemitkoffein.tinyweatherforecastgermany.LargeWidget 2021-08-10 07:52:44.583 WIDGET: Updating widget (app, custom): class de.kaffeemitkoffein.tinyweatherforecastgermany.BoldWidget 2021-08-10 07:52:44.607 WIDGET: Updating widget (app, custom): class de.kaffeemitkoffein.tinyweatherforecastgermany.ClockWidget ```

I had the crash once when changing the language, but was not able to reporoduce it. Unfortunately, I had the device not connected via adb when it occured. Will watch it. However, I currently regard this a minor issue because it does not really break the app.

I had the crash once when changing the language, but was not able to reporoduce it. Unfortunately, I had the device not connected via adb when it occured. Will watch it. However, I currently regard this a minor issue because it does not really break the app.

but was not able to reporoduce it.

Here it happens quite regularly.

Unfortunately, I had the device not connected via adb when it occured.

Does this help:

08-11 14:01:12.967  1533  8227 I ActivityManager: START u0 {act=android.intent.action.VIEW flg=0x1000c000 cmp=de.kaffeemitkoffein.tinyweatherforecastgermany/.TextForecastListActivity bnds=[430,534][570,692]} from uid 10471
08-11 14:01:11.645   919  1070 I chatty  : uid=1000(system) HwBinder:919_2 identical 7 lines
08-11 14:01:12.962   919  1070 D SDM     : DisplayBase::BuildLayerStackStats: LayerStack layer_count: 5, app_layer_count: 4, gpu_target_index: 4, display type: 0
08-11 14:01:12.972   618   618 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.iop@2.0::IIop/default in either framework or device manifest.
08-11 14:01:12.972  1533  8227 E ANDR-PERF-JNI: Iop tryGetService failed
08-11 14:01:12.977   922   922 W memtrack@1.0-se: type=1400 audit(0.0:105122): avc: denied { search } for name="proc" dev="debugfs" ino=11983 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0 ppid=1 pcomm="init" pgid=1 pgcomm="init"
08-11 14:01:12.997  1533  1591 I ActivityManager: Start proc 13543:de.kaffeemitkoffein.tinyweatherforecastgermany/u0a471 for activity de.kaffeemitkoffein.tinyweatherforecastgermany/.TextForecastListActivity
08-11 14:01:12.977   922   922 W memtrack@1.0-se: type=1400 audit(0.0:105123): avc: denied { search } for name="proc" dev="debugfs" ino=11983 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0 ppid=1 pcomm="init" pgid=1 pgcomm="init"
08-11 14:01:13.000 13543 13543 E forecastgerman: Not starting debugger since process cannot load the jdwp agent.
08-11 14:01:13.015  1533  1590 I DisplayBooster: DisplayBoosterService: CABC is not supported in this model
08-11 14:01:13.016  3166 31659 I android_os_HwBinder: HwBinder: Starting thread pool for default::vendor.somc.hardware.swiqi@1.0::IHidlSwiqi
08-11 14:01:13.020  1533  8227 D ConnectivityService: getProxy: mDefaultProxy return
08-11 14:01:13.017  3166 31659 I android_os_HwBinder: HwBinder: Starting thread pool for default::vendor.somc.hardware.swiqi@1.0::IHidlSwiqi
08-11 14:01:13.031 13543 13543 I Perf    : Connecting to perf service.
08-11 14:01:13.043   919  1070 D SDM     : DisplayBase::BuildLayerStackStats: LayerStack layer_count: 5, app_layer_count: 4, gpu_target_index: 4, display type: 0
08-11 14:01:13.058 13543 13543 D OpenGLRenderer: Skia GL Pipeline
08-11 14:01:13.060   919  1070 D SDM     : DisplayBase::BuildLayerStackStats: LayerStack layer_count: 6, app_layer_count: 5, gpu_target_index: 5, display type: 0
08-11 14:01:13.075  1533  8227 W ActivityManager: Receiver with filter android.content.IntentFilter@5f1d4d5 already registered for pid 13543, callerPackage is de.kaffeemitkoffein.tinyweatherforecastgermany
08-11 14:01:13.076 13543 13560 D NetworkSecurityConfig: No Network Security Config specified, using platform default
08-11 14:01:13.076   919  1070 D SDM     : DisplayBase::BuildLayerStackStats: LayerStack layer_count: 6, app_layer_count: 5, gpu_target_index: 5, display type: 0
08-11 14:01:13.093   919  1070 I chatty  : uid=1000(system) HwBinder:919_2 identical 1 line
08-11 14:01:13.109   919  1070 D SDM     : DisplayBase::BuildLayerStackStats: LayerStack layer_count: 6, app_layer_count: 5, gpu_target_index: 5, display type: 0
08-11 14:01:13.112 13543 13543 D AndroidRuntime: Shutting down VM
08-11 14:01:13.112 13543 13543 E AndroidRuntime: FATAL EXCEPTION: main
08-11 14:01:13.112 13543 13543 E AndroidRuntime: Process: de.kaffeemitkoffein.tinyweatherforecastgermany, PID: 13543
08-11 14:01:13.112 13543 13543 E AndroidRuntime: android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class <unknown>
08-11 14:01:13.112 13543 13543 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #42: Error inflating class <unknown>
08-11 14:01:13.112 13543 13543 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at java.lang.reflect.Constructor.newInstance0(Native Method)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.LayoutInflater.createView(LayoutInflater.java:647)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at de.kaffeemitkoffein.tinyweatherforecastgermany.TextForecastAdapter.getView(TextForecastAdapter.java:80)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.widget.AbsListView.obtainView(AbsListView.java:2477)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.widget.ListView.measureHeightOfChildren(ListView.java:1482)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.widget.ListView.onMeasure(ListView.java:1389)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.View.measure(View.java:23188)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.View.measure(View.java:23188)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.View.measure(View.java:23188)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:461)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.View.measure(View.java:23188)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at com.android.internal.policy.DecorView.onMeasure(DecorView.java:728)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.View.measure(View.java:23188)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2732)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1585)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1869)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1473)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7215)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1004)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.Choreographer.doCallbacks(Choreographer.java:816)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.Choreographer.doFrame(Choreographer.java:751)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:990)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:873)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:280)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6706)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
08-11 14:01:13.112 13543 13543 E AndroidRuntime: Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 5: TypedValue{t=0x2/d=0x7f020004 a=-1}
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.content.res.TypedArray.getColorStateList(TypedArray.java:546)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.widget.TextView.readTextAppearance(TextView.java:3542)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.widget.TextView.<init>(TextView.java:959)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.widget.TextView.<init>(TextView.java:869)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        at android.widget.TextView.<init>(TextView.java:865)
08-11 14:01:13.112 13543 13543 E AndroidRuntime:        ... 45 more
08-11 14:01:13.114  1533  8227 D ActivityManager: New dropbox entry: de.kaffeemitkoffein.tinyweatherforecastgermany, data_app_crash, ea014687-797d-4d3c-ab83-88e1443cc288
08-11 14:01:13.114  1533  8227 W ActivityManager:   Force finishing activity de.kaffeemitkoffein.tinyweatherforecastgermany/.TextForecastListActivity
08-11 14:01:13.117  1533  1590 I ActivityManager: Showing crash dialog for package de.kaffeemitkoffein.tinyweatherforecastgermany u0

(My first attempt with adb logcat This one is form the Texts launcher failing. Right now the warnings launcher is fine. Maybe, as there are no warnings.)

> but was not able to reporoduce it. Here it happens quite regularly. > Unfortunately, I had the device not connected via adb when it occured. Does this help: ``` 08-11 14:01:12.967 1533 8227 I ActivityManager: START u0 {act=android.intent.action.VIEW flg=0x1000c000 cmp=de.kaffeemitkoffein.tinyweatherforecastgermany/.TextForecastListActivity bnds=[430,534][570,692]} from uid 10471 08-11 14:01:11.645 919 1070 I chatty : uid=1000(system) HwBinder:919_2 identical 7 lines 08-11 14:01:12.962 919 1070 D SDM : DisplayBase::BuildLayerStackStats: LayerStack layer_count: 5, app_layer_count: 4, gpu_target_index: 4, display type: 0 08-11 14:01:12.972 618 618 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.iop@2.0::IIop/default in either framework or device manifest. 08-11 14:01:12.972 1533 8227 E ANDR-PERF-JNI: Iop tryGetService failed 08-11 14:01:12.977 922 922 W memtrack@1.0-se: type=1400 audit(0.0:105122): avc: denied { search } for name="proc" dev="debugfs" ino=11983 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0 ppid=1 pcomm="init" pgid=1 pgcomm="init" 08-11 14:01:12.997 1533 1591 I ActivityManager: Start proc 13543:de.kaffeemitkoffein.tinyweatherforecastgermany/u0a471 for activity de.kaffeemitkoffein.tinyweatherforecastgermany/.TextForecastListActivity 08-11 14:01:12.977 922 922 W memtrack@1.0-se: type=1400 audit(0.0:105123): avc: denied { search } for name="proc" dev="debugfs" ino=11983 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0 ppid=1 pcomm="init" pgid=1 pgcomm="init" 08-11 14:01:13.000 13543 13543 E forecastgerman: Not starting debugger since process cannot load the jdwp agent. 08-11 14:01:13.015 1533 1590 I DisplayBooster: DisplayBoosterService: CABC is not supported in this model 08-11 14:01:13.016 3166 31659 I android_os_HwBinder: HwBinder: Starting thread pool for default::vendor.somc.hardware.swiqi@1.0::IHidlSwiqi 08-11 14:01:13.020 1533 8227 D ConnectivityService: getProxy: mDefaultProxy return 08-11 14:01:13.017 3166 31659 I android_os_HwBinder: HwBinder: Starting thread pool for default::vendor.somc.hardware.swiqi@1.0::IHidlSwiqi 08-11 14:01:13.031 13543 13543 I Perf : Connecting to perf service. 08-11 14:01:13.043 919 1070 D SDM : DisplayBase::BuildLayerStackStats: LayerStack layer_count: 5, app_layer_count: 4, gpu_target_index: 4, display type: 0 08-11 14:01:13.058 13543 13543 D OpenGLRenderer: Skia GL Pipeline 08-11 14:01:13.060 919 1070 D SDM : DisplayBase::BuildLayerStackStats: LayerStack layer_count: 6, app_layer_count: 5, gpu_target_index: 5, display type: 0 08-11 14:01:13.075 1533 8227 W ActivityManager: Receiver with filter android.content.IntentFilter@5f1d4d5 already registered for pid 13543, callerPackage is de.kaffeemitkoffein.tinyweatherforecastgermany 08-11 14:01:13.076 13543 13560 D NetworkSecurityConfig: No Network Security Config specified, using platform default 08-11 14:01:13.076 919 1070 D SDM : DisplayBase::BuildLayerStackStats: LayerStack layer_count: 6, app_layer_count: 5, gpu_target_index: 5, display type: 0 08-11 14:01:13.093 919 1070 I chatty : uid=1000(system) HwBinder:919_2 identical 1 line 08-11 14:01:13.109 919 1070 D SDM : DisplayBase::BuildLayerStackStats: LayerStack layer_count: 6, app_layer_count: 5, gpu_target_index: 5, display type: 0 08-11 14:01:13.112 13543 13543 D AndroidRuntime: Shutting down VM 08-11 14:01:13.112 13543 13543 E AndroidRuntime: FATAL EXCEPTION: main 08-11 14:01:13.112 13543 13543 E AndroidRuntime: Process: de.kaffeemitkoffein.tinyweatherforecastgermany, PID: 13543 08-11 14:01:13.112 13543 13543 E AndroidRuntime: android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class <unknown> 08-11 14:01:13.112 13543 13543 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #42: Error inflating class <unknown> 08-11 14:01:13.112 13543 13543 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance0(Native Method) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:343) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:647) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:863) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:515) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at de.kaffeemitkoffein.tinyweatherforecastgermany.TextForecastAdapter.getView(TextForecastAdapter.java:80) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.widget.AbsListView.obtainView(AbsListView.java:2477) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.widget.ListView.measureHeightOfChildren(ListView.java:1482) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.widget.ListView.onMeasure(ListView.java:1389) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.View.measure(View.java:23188) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.View.measure(View.java:23188) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:185) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.View.measure(View.java:23188) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:461) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.View.measure(View.java:23188) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:185) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at com.android.internal.policy.DecorView.onMeasure(DecorView.java:728) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.View.measure(View.java:23188) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2732) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1585) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1869) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1473) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7215) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1004) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:816) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:751) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:990) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.os.Looper.loop(Looper.java:280) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6706) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 5: TypedValue{t=0x2/d=0x7f020004 a=-1} 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.content.res.TypedArray.getColorStateList(TypedArray.java:546) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.widget.TextView.readTextAppearance(TextView.java:3542) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.widget.TextView.<init>(TextView.java:959) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.widget.TextView.<init>(TextView.java:869) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: at android.widget.TextView.<init>(TextView.java:865) 08-11 14:01:13.112 13543 13543 E AndroidRuntime: ... 45 more 08-11 14:01:13.114 1533 8227 D ActivityManager: New dropbox entry: de.kaffeemitkoffein.tinyweatherforecastgermany, data_app_crash, ea014687-797d-4d3c-ab83-88e1443cc288 08-11 14:01:13.114 1533 8227 W ActivityManager: Force finishing activity de.kaffeemitkoffein.tinyweatherforecastgermany/.TextForecastListActivity 08-11 14:01:13.117 1533 1590 I ActivityManager: Showing crash dialog for package de.kaffeemitkoffein.tinyweatherforecastgermany u0 ``` (My first attempt with `adb logcat` This one is form the `Texts` launcher failing. Right now the warnings launcher is fine. Maybe, as there are no warnings.)

This is fixed now, the reason was that the warning activity tried to build some views before the theme was properly set.

You can test with the theme preview userbuild.

This is fixed now, the reason was that the warning activity tried to build some views before the theme was properly set. You can test with the theme preview userbuild.

Just installed TinyWeatherForecastGermany-build027-version_0.56.4-userdebug-20210815-new_theme_support and indeed this seems to work. :) Thanks for the fix!

May I ask: the log above I created using adb was this helpful? Is this the sort of log you can use easily? Or should I have done something differently?

Just installed `TinyWeatherForecastGermany-build027-version_0.56.4-userdebug-20210815-new_theme_support` and indeed this seems to work. :) Thanks for the fix! May I ask: the log above I created using `adb` was this helpful? Is this the sort of log you can use easily? Or should I have done something differently?

Yes, it was very helpful. However, it needs some experience that Error inflating class unknown results from an attribute where the value has not been set yet. :-)

Yes, it was very helpful. However, it needs some experience that **Error inflating class unknown** results from an *attribute* where the value has not been set yet. :-)

There is a similar issue if one uses the starter for text forecasts:

08-20 13:16:33.244 11798 11798 D AndroidRuntime: Shutting down VM
08-20 13:16:33.245 11798 11798 E AndroidRuntime: FATAL EXCEPTION: main
08-20 13:16:33.245 11798 11798 E AndroidRuntime: Process: de.kaffeemitkoffein.tinyweatherforecastgermany, PID: 11798
08-20 13:16:33.245 11798 11798 E AndroidRuntime: android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class <unknown>
08-20 13:16:33.245 11798 11798 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #42: Error inflating class <unknown>
08-20 13:16:33.245 11798 11798 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at java.lang.reflect.Constructor.newInstance0(Native Method)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.LayoutInflater.createView(LayoutInflater.java:647)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at de.kaffeemitkoffein.tinyweatherforecastgermany.TextForecastAdapter.getView(TextForecastAdapter.java:80)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.widget.AbsListView.obtainView(AbsListView.java:2477)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.widget.ListView.measureHeightOfChildren(ListView.java:1482)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.widget.ListView.onMeasure(ListView.java:1389)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.View.measure(View.java:23188)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.View.measure(View.java:23188)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.View.measure(View.java:23188)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:461)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.View.measure(View.java:23188)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at com.android.internal.policy.DecorView.onMeasure(DecorView.java:728)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.View.measure(View.java:23188)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2732)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1585)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1869)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1473)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7215)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1004)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.Choreographer.doCallbacks(Choreographer.java:816)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.Choreographer.doFrame(Choreographer.java:751)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:990)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:873)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:280)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6706)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
08-20 13:16:33.245 11798 11798 E AndroidRuntime: Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 5: TypedValue{t=0x2/d=0x7f020006 a=-1}
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.content.res.TypedArray.getColorStateList(TypedArray.java:546)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.widget.TextView.readTextAppearance(TextView.java:3542)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.widget.TextView.<init>(TextView.java:959)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.widget.TextView.<init>(TextView.java:869)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        at android.widget.TextView.<init>(TextView.java:865)
08-20 13:16:33.245 11798 11798 E AndroidRuntime:        ... 45 more
08-20 13:16:33.247  1529  3192 D ActivityManager: New dropbox entry: de.kaffeemitkoffein.tinyweatherforecastgermany, data_app_crash, 61492cdc-c134-49d1-9491-ba4fdba0b710
08-20 13:16:33.247  1529  3192 W ActivityManager:   Force finishing activity de.kaffeemitkoffein.tinyweatherforecastgermany/.TextForecastListActivity
08-20 13:16:33.250  1529  1577 I ActivityManager: Showing crash dialog for package de.kaffeemitkoffein.tinyweatherforecastgermany u0

(Userdebug build 027 20210819-widget_themes)

There is a similar issue if one uses the starter for text forecasts: ``` 08-20 13:16:33.244 11798 11798 D AndroidRuntime: Shutting down VM 08-20 13:16:33.245 11798 11798 E AndroidRuntime: FATAL EXCEPTION: main 08-20 13:16:33.245 11798 11798 E AndroidRuntime: Process: de.kaffeemitkoffein.tinyweatherforecastgermany, PID: 11798 08-20 13:16:33.245 11798 11798 E AndroidRuntime: android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class <unknown> 08-20 13:16:33.245 11798 11798 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #42: Error inflating class <unknown> 08-20 13:16:33.245 11798 11798 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance0(Native Method) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:343) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:647) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:863) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:515) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at de.kaffeemitkoffein.tinyweatherforecastgermany.TextForecastAdapter.getView(TextForecastAdapter.java:80) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.widget.AbsListView.obtainView(AbsListView.java:2477) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.widget.ListView.measureHeightOfChildren(ListView.java:1482) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.widget.ListView.onMeasure(ListView.java:1389) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.View.measure(View.java:23188) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.View.measure(View.java:23188) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:185) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.View.measure(View.java:23188) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:461) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.View.measure(View.java:23188) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:185) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at com.android.internal.policy.DecorView.onMeasure(DecorView.java:728) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.View.measure(View.java:23188) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2732) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1585) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1869) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1473) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7215) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1004) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:816) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:751) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:990) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.os.Looper.loop(Looper.java:280) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6706) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 5: TypedValue{t=0x2/d=0x7f020006 a=-1} 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.content.res.TypedArray.getColorStateList(TypedArray.java:546) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.widget.TextView.readTextAppearance(TextView.java:3542) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.widget.TextView.<init>(TextView.java:959) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.widget.TextView.<init>(TextView.java:869) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: at android.widget.TextView.<init>(TextView.java:865) 08-20 13:16:33.245 11798 11798 E AndroidRuntime: ... 45 more 08-20 13:16:33.247 1529 3192 D ActivityManager: New dropbox entry: de.kaffeemitkoffein.tinyweatherforecastgermany, data_app_crash, 61492cdc-c134-49d1-9491-ba4fdba0b710 08-20 13:16:33.247 1529 3192 W ActivityManager: Force finishing activity de.kaffeemitkoffein.tinyweatherforecastgermany/.TextForecastListActivity 08-20 13:16:33.250 1529 1577 I ActivityManager: Showing crash dialog for package de.kaffeemitkoffein.tinyweatherforecastgermany u0 ``` (Userdebug build 027 20210819-widget_themes)
arwagner reopened this issue 2021-08-20 11:31:35 +00:00

Fixed: 23a1330005

Explanation: the BaseAdapter responsible for the list displayed had a wrong context, and because of the new theme support the adapter was not able to find the proper attributes for the layout.

This error was both the same in the warnings and the texts activity.

Again, thanks a lot for reporting!

By the way: the log helped a lot!

Fixed: https://codeberg.org/Starfish/TinyWeatherForecastGermany/commit/23a1330005d57d38d47d1e451be6f5e29f7c09c3 Explanation: the BaseAdapter responsible for the list displayed had a wrong context, and because of the new theme support the adapter was not able to find the proper attributes for the layout. This error was both the same in the warnings and the texts activity. Again, thanks a lot for reporting! By the way: the log helped a lot!

Thanks for looking into it. Just installed the 20210828-RC1 userdebug and if I find something else, I'll report back.

By the way: the log helped a lot!

I already created arwagner/TinyWeatherForecastGermany#2 to write up some how to create this for mere mortals. Many thanks to @dicer for his helpful comment in #74 (comment) that enabled me to pull this off :)

Thanks for looking into it. Just installed the 20210828-RC1 userdebug and if I find something else, I'll report back. > By the way: the log helped a lot! I already created https://codeberg.org/arwagner/TinyWeatherForecastGermany/issues/2 to write up some _how to create this for mere mortals_. Many thanks to @dicer for his helpful comment in https://codeberg.org/Starfish/TinyWeatherForecastGermany/issues/74#issuecomment-242254 that enabled me to pull this off :)

This would be great, you may notice that a lot of details changed ragarding the themes.

There is also a simplified forecast view available, for all the folks that want to keep it simple :-)

Would you be so kind to uninstall and re-install it, too?

Just to be sure we do not run into any "database preparing crash" again :-)

This would be great, you may notice that a lot of details changed ragarding the themes. There is also a simplified forecast view available, for all the folks that want to keep it simple :-) Would you be so kind to uninstall and re-install it, too? Just to be sure we do not run into any "database preparing crash" again :-)

This would be great, you may notice that a lot of details changed ragarding the themes.

Yes. It looks cool.

I was wondering why it asked me quite a bit of my setup again, so I feared that I had to set up everything a new, which wasn't the case.

Would you be so kind to uninstall and re-install it, too?

Ok, I'll give it a try later.

> This would be great, you may notice that a lot of details changed ragarding the themes. Yes. It looks cool. I was wondering why it asked me quite a bit of my setup again, so I feared that I had to set up everything a new, which wasn't the case. > Would you be so kind to uninstall and re-install it, too? Ok, I'll give it a try later.

Yes, the setup respects any changes made before.

Reason for this screen is to customize the app to the user's needs as streightforward as possible.

I am curious about the feedback. :-)

Yes, the setup respects any changes made before. Reason for this screen is to customize the app to the user's needs as streightforward as possible. I am curious about the feedback. :-)

I am curious about the feedback. :-)

I've moved all my findings to #96.

> I am curious about the feedback. :-) I've moved all my findings to #96.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Starfish/TinyWeatherForecastGermany#91
There is no content yet.