LibreShift / red-moon

Android screen filter app for night time phone use.
GNU General Public License v3.0
647 stars 81 forks source link

Always Crash on Android 7.0 #216

Closed kuanyui closed 4 years ago

kuanyui commented 6 years ago

I upgrade red-moon to 3.3.2 via f-droid on Android 7.0, but it always crashs when startup. I forgot what is the last usable version I've installed, and there are only 3.2.0 / 3.3.0 / 3.3.2 available on f-droid, so cannot downgrade to older version.

smichel17 commented 6 years ago

By "startup" do you mean when you open the app or when you try to turn on the filter?

kuanyui commented 6 years ago

When open the app, before seeing the main page. I forcedly stop the app and restart it, but still crashed.

smichel17 commented 6 years ago

If you can get a logcat to see why it crashed, that would be helpful. If not, clearing app data might fix the problem (but which would make it so you can't get logs anymore, so I wouldn't be able to fix it for others, so if you can get a logcat before doing this, I would appreciate it).

kuanyui commented 6 years ago

Oops… Because has no experience on Android development, a little lazy to make an Android development environment. And after deleting settings data, it indeed works… So sorry cannot give you usable debug information this time… orz

Next time I will avoid my stupid actions…

kuanyui commented 6 years ago

It strikes me that I has another Android 7.0 device installed old version (2.8.2) RedMoon too, and I tried to upgraded it, also crash when startup. I will find time to make a development environment to paste the log to you :)

smichel17 commented 6 years ago

You don't actually need a full development environment to get a logcat. I wrote some instructions in a comment on another issue: https://github.com/LibreShift/red-moon/issues/184#issuecomment-330053370

kuanyui commented 6 years ago
02-13 21:10:10.149  1990  2224 D NetworkController: isSimOff(0): false
02-13 21:10:10.149  1990  2224 D NetworkController: hasPrefered: false
02-13 21:10:10.158  1990  1990 D SignalClusterView: vpn: GONE
02-13 21:10:10.158  1990  1990 D SignalClusterView: ethernet: GONE
02-13 21:10:10.159  1990  1990 D SignalClusterView: wifi: GONE sig=2130838883 inout=2130838867
02-13 21:10:10.162  1990  1990 D SignalClusterView: mobile: VISIBLE sig=2130838862 typ=2130838807 inout=2130838865
02-13 21:10:10.166  1990  1990 D SignalClusterView: vpn: GONE
02-13 21:10:10.166  1990  1990 D SignalClusterView: ethernet: GONE
02-13 21:10:10.167  1990  1990 D SignalClusterView: wifi: GONE sig=2130838883 inout=2130838867
02-13 21:10:10.170  1990  1990 D SignalClusterView: mobile: VISIBLE sig=2130838862 typ=2130838807 inout=2130838865
02-13 21:10:10.721 12370 12370 D HeadsetPhoneState: Enter onSignalStrengthsChanged
02-13 21:10:10.721  1990  2224 D NetworkController.MobileSignalController(2): onSignalStrengthsChanged signalStrength=SignalStrength: 99 0 -120 -160 -120 -1 -1 44 -93 -9 182 2147483647 2147483647 gsm|lte level=4
02-13 21:10:10.721 12370 12370 D HeadsetPhoneState: Exit onSignalStrengthsChanged
02-13 21:10:10.721  1990  2224 D NetworkController.MobileSignalController(2): updateTelephonySignalStrength: hasService=true ss=SignalStrength: 99 0 -120 -160 -120 -1 -1 44 -93 -9 182 2147483647 2147483647 gsm|lte
02-13 21:10:10.721  1990  2224 D NetworkController.MobileSignalController(2): ril.lteca.mode: 0
02-13 21:10:10.724  2227  2242 D PhoneInterfaceManager: isWifiCallingAvailable: sub Id : 2
02-13 21:10:10.724  1990  2224 D NetworkController.MobileSignalController(2): isWifiCallingAvailable=false
02-13 21:10:10.728  2227 10497 D PhoneInterfaceManager: isVolteAvailable: sub Id : 2
02-13 21:10:10.729  1990  2224 V ReflectionMethods: ========ReflectionMethods.getVolteAvailable = false ===============
02-13 21:10:10.731  2227  2744 D PhoneInterfaceManager: isVideoTelephonyAvailable: sub Id : 2
02-13 21:10:10.732  1990  2224 V ReflectionMethods: ========ReflectionMethods.getVideoTelephonyAvailable = false ===============
02-13 21:10:10.988   473  2426 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
02-13 21:10:11.058  2530  2691 D LauncherLog: Launcher:: startActivity: pkg: com.jmstudios.redmoon clz: com.jmstudios.redmoon.MainActivity user: null
02-13 21:10:11.067  2530  2530 V ActivityCategoryHelper: takes: 0
02-13 21:10:11.067  2530  2530 D LauncherLog: Launcher onPause Begin
02-13 21:10:11.067  2530  2530 D LauncherLog: Launcher onPause End
02-13 21:10:11.101  2530  2530 V Launcher: [onWindowFocusChanged]: false, takes: 0ms
02-13 21:10:11.132  7298  7298 W System  : ClassLoader referenced unknown path: /data/app/com.jmstudios.redmoon-2/lib/arm64
02-13 21:10:11.141  1990  2224 D NetworkController.MobileSignalController(2): onDataActivity: direction=0
02-13 21:10:11.142  2227  9062 D PhoneInterfaceManager: isWifiCallingAvailable: sub Id : 2
02-13 21:10:11.142  1990  2224 D NetworkController.MobileSignalController(2): isWifiCallingAvailable=false
02-13 21:10:11.143  2227  2745 D PhoneInterfaceManager: isVolteAvailable: sub Id : 2
02-13 21:10:11.144  1990  2224 V ReflectionMethods: ========ReflectionMethods.getVolteAvailable = false ===============
02-13 21:10:11.145  2227  2501 D PhoneInterfaceManager: isVideoTelephonyAvailable: sub Id : 2
02-13 21:10:11.145  1990  2224 V ReflectionMethods: ========ReflectionMethods.getVideoTelephonyAvailable = false ===============
02-13 21:10:11.146  1990  2224 D NetworkController.MobileSignalController(2): Change in state from: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(4G),activityIn=true,activityOut=false,rssi=0,lastModified=02-13 09:10:10,dataSim=true,networkName=Chunghwa Telecom,networkNameData=Chunghwa Telecom,dataConnected=true,isDefault=true,isEmergency=false,airplaneMode=false,carrierNetworkChangeMode=false,userSetup=true,isRoaming=false
02-13 21:10:11.146  1990  2224 D NetworkController.MobileSignalController(2):   to: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(4G),activityIn=false,activityOut=false,rssi=0,lastModified=02-13 09:10:10,dataSim=true,networkName=Chunghwa Telecom,networkNameData=Chunghwa Telecom,dataConnected=true,isDefault=true,isEmergency=false,airplaneMode=false,carrierNetworkChangeMode=false,userSetup=true,isRoaming=false
02-13 21:10:11.146  1990  2224 D NetworkController.MobileSignalController(2): SubscriptionInfo.getSimSlotIndex(): 0
02-13 21:10:11.146  1990  2224 D NetworkController: isSimOff(0): false
02-13 21:10:11.146  1990  2224 D NetworkController: hasPrefered: false
02-13 21:10:11.146  1990  2224 D NetworkController: isSimOff(0): false
02-13 21:10:11.146  1990  2224 D NetworkController: hasPrefered: false
02-13 21:10:11.150  1990  1990 D SignalClusterView: vpn: GONE
02-13 21:10:11.150  1990  1990 D SignalClusterView: ethernet: GONE
02-13 21:10:11.151  1990  1990 D SignalClusterView: wifi: GONE sig=2130838883 inout=2130838867
02-13 21:10:11.151  1990  1990 D SignalClusterView: mobile: VISIBLE sig=2130838862 typ=2130838807 inout=2130838867
02-13 21:10:11.153  1990  1990 D SignalClusterView: vpn: GONE
02-13 21:10:11.153  1990  1990 D SignalClusterView: ethernet: GONE
02-13 21:10:11.153  1990  1990 D SignalClusterView: wifi: GONE sig=2130838883 inout=2130838867
02-13 21:10:11.153  1990  1990 D SignalClusterView: mobile: VISIBLE sig=2130838862 typ=2130838807 inout=2130838867
02-13 21:10:11.174 12969  5051 I PBSessionCacheImpl: Deleted sessionId[25647550096590] from persistence.
02-13 21:10:11.183 12969 12969 W SearchService: Abort, client detached.
02-13 21:10:11.202  7298  7298 I RedMoonApplication: onCreate -- Initializing appContext
02-13 21:10:11.202  7298  7298 V Monotype: SetAppTypeFace- try to flip, app = com.jmstudios.redmoon
02-13 21:10:11.204  7298  7298 V Monotype:     Typeface getFontPathFlipFont - systemFont = default#default
02-13 21:10:11.231  7298  7298 I MainActivity: Got intent
02-13 21:10:11.238  7298  7298 W art     : Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
02-13 21:10:11.254  7298  7298 V BoostFramework: mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])
02-13 21:10:11.254  7298  7298 V BoostFramework: mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()
02-13 21:10:11.254  7298  7298 V BoostFramework: mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])
02-13 21:10:11.255  7298  7298 V BoostFramework: mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
02-13 21:10:11.255  7298  7298 V BoostFramework: mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()
02-13 21:10:11.257  7298  7298 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@65e76f9
02-13 21:10:11.257  7298  7298 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@c0eb63e
02-13 21:10:11.285  7298  7298 I ThemedAppCompatActivity: onCreate - First creation
02-13 21:10:11.287  7298  7298 V Monotype: SetAppTypeFace- try to flip, app = com.jmstudios.redmoon
02-13 21:10:11.287  7298  7298 V Monotype:     Typeface getFontPathFlipFont - systemFont = default#default
02-13 21:10:11.300  7298  7298 I WebViewFactory: Loading com.android.chrome version 64.0.3282.137 (code 328213752)
02-13 21:10:11.347  7298  7298 I cr_LibraryLoader: Time to load native libraries: 3 ms (timestamps 7875-7878)
02-13 21:10:11.361  7298  7298 I chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
02-13 21:10:11.362  7298  7298 I cr_LibraryLoader: Expected native library version number "64.0.3282.137", actual native library version number "64.0.3282.137"
02-13 21:10:11.380  7298  7298 I cr_BrowserStartup: Initializing chromium process, singleProcess=true
02-13 21:10:11.381  7298  7298 I cr_base : Android Locale: ja_JP requires .pak files: [ja.pak]
02-13 21:10:11.396  7298  7298 I Adreno  : QUALCOMM build                   : dfab96b, I762e720a6a
02-13 21:10:11.396  7298  7298 I Adreno  : Build Date                       : 01/31/17
02-13 21:10:11.396  7298  7298 I Adreno  : OpenGL ES Shader Compiler Version: XE031.09.00.04
02-13 21:10:11.396  7298  7298 I Adreno  : Local Branch                     : 
02-13 21:10:11.396  7298  7298 I Adreno  : Remote Branch                    : 
02-13 21:10:11.396  7298  7298 I Adreno  : Remote Branch                    : 
02-13 21:10:11.396  7298  7298 I Adreno  : Reconstruct Branch               : 
02-13 21:10:11.444  7298  7329 E chromium: [ERROR:instance.cc(49)] Unable to locate service manifest for metrics
02-13 21:10:11.444  7298  7329 E chromium: [ERROR:service_manager.cc(890)] Failed to resolve service name: metrics
02-13 21:10:11.498  7298  7298 I art     : Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.db>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/RenderProcessGoneDetail;
02-13 21:10:11.498  7298  7298 I art     :   at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:42)
02-13 21:10:11.498  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
02-13 21:10:11.498  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
02-13 21:10:11.498  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
02-13 21:10:11.498  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
02-13 21:10:11.498  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
02-13 21:10:11.498  7298  7298 I art     :   at android.app.AlertDialog de.cketti.library.changelog.ChangeLog.getDialog(boolean) (ChangeLog.java:287)
02-13 21:10:11.498  7298  7298 I art     :   at android.app.AlertDialog de.cketti.library.changelog.ChangeLog.getLogDialog() (ChangeLog.java:265)
02-13 21:10:11.498  7298  7298 I art     :   at void com.jmstudios.redmoon.MainActivity.onCreate(android.os.Bundle) (MainActivity.kt:64)
02-13 21:10:11.498  7298  7298 I art     :   at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6743)
02-13 21:10:11.498  7298  7298 I art     :   at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
02-13 21:10:11.498  7298  7298 I art     :   at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2599)
02-13 21:10:11.498  7298  7298 I art     :   at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2707)
02-13 21:10:11.498  7298  7298 I art     :   at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
02-13 21:10:11.498  7298  7298 I art     :   at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1460)
02-13 21:10:11.498  7298  7298 I art     :   at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
02-13 21:10:11.498  7298  7298 I art     :   at void android.os.Looper.loop() (Looper.java:159)
02-13 21:10:11.498  7298  7298 I art     :   at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6097)
02-13 21:10:11.498  7298  7298 I art     :   at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
02-13 21:10:11.498  7298  7298 I art     :   at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:865)
02-13 21:10:11.498  7298  7298 I art     :   at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:755)
02-13 21:10:11.498  7298  7298 I art     : Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.RenderProcessGoneDetail" on path: DexPathList[[zip file "/data/app/com.android.chrome-1/base.apk"],nativeLibraryDirectories=[/data/app/com.android.chrome-1/lib/arm64, /data/app/com.android.chrome-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
02-13 21:10:11.498  7298  7298 I art     :   at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
02-13 21:10:11.498  7298  7298 I art     :   at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
02-13 21:10:11.498  7298  7298 I art     :   at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
02-13 21:10:11.498  7298  7298 I art     :   at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:42)
02-13 21:10:11.498  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
02-13 21:10:11.498  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
02-13 21:10:11.498  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
02-13 21:10:11.498  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
02-13 21:10:11.499  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
02-13 21:10:11.499  7298  7298 I art     :   at android.app.AlertDialog de.cketti.library.changelog.ChangeLog.getDialog(boolean) (ChangeLog.java:287)
02-13 21:10:11.499  7298  7298 I art     :   at android.app.AlertDialog de.cketti.library.changelog.ChangeLog.getLogDialog() (ChangeLog.java:265)
02-13 21:10:11.499  7298  7298 I art     :   at void com.jmstudios.redmoon.MainActivity.onCreate(android.os.Bundle) (MainActivity.kt:64)
02-13 21:10:11.499  7298  7298 I art     :   at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6743)
02-13 21:10:11.499  7298  7298 I art     :   at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
02-13 21:10:11.499  7298  7298 I art     :   at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2599)
02-13 21:10:11.499  7298  7298 I art     :   at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2707)
02-13 21:10:11.499  7298  7298 I art     :   at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
02-13 21:10:11.499  7298  7298 I art     :   at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1460)
02-13 21:10:11.499  7298  7298 I art     :   at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
02-13 21:10:11.499  7298  7298 I art     :   at void android.os.Looper.loop() (Looper.java:159)
02-13 21:10:11.499  7298  7298 I art     :   at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6097)
02-13 21:10:11.499  7298  7298 I art     :   at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
02-13 21:10:11.499  7298  7298 I art     :   at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:865)
02-13 21:10:11.499  7298  7298 I art     :   at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:755)
02-13 21:10:11.499  7298  7298 I art     : 
02-13 21:10:11.500  7298  7298 I art     : Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.hb>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/SafeBrowsingResponse;
02-13 21:10:11.500  7298  7298 I art     :   at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:42)
02-13 21:10:11.500  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
02-13 21:10:11.500  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
02-13 21:10:11.500  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
02-13 21:10:11.500  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
02-13 21:10:11.500  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
02-13 21:10:11.500  7298  7298 I art     :   at android.app.AlertDialog de.cketti.library.changelog.ChangeLog.getDialog(boolean) (ChangeLog.java:287)
02-13 21:10:11.500  7298  7298 I art     :   at android.app.AlertDialog de.cketti.library.changelog.ChangeLog.getLogDialog() (ChangeLog.java:265)
02-13 21:10:11.500  7298  7298 I art     :   at void com.jmstudios.redmoon.MainActivity.onCreate(android.os.Bundle) (MainActivity.kt:64)
02-13 21:10:11.500  7298  7298 I art     :   at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6743)
02-13 21:10:11.500  7298  7298 I art     :   at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
02-13 21:10:11.500  7298  7298 I art     :   at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2599)
02-13 21:10:11.500  7298  7298 I art     :   at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2707)
02-13 21:10:11.500  7298  7298 I art     :   at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
02-13 21:10:11.500  7298  7298 I art     :   at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1460)
02-13 21:10:11.500  7298  7298 I art     :   at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
02-13 21:10:11.500  7298  7298 I art     :   at void android.os.Looper.loop() (Looper.java:159)
02-13 21:10:11.500  7298  7298 I art     :   at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6097)
02-13 21:10:11.500  7298  7298 I art     :   at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
02-13 21:10:11.500  7298  7298 I art     :   at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:865)
02-13 21:10:11.500  7298  7298 I art     :   at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:755)
02-13 21:10:11.500  7298  7298 I art     : Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.SafeBrowsingResponse" on path: DexPathList[[zip file "/data/app/com.android.chrome-1/base.apk"],nativeLibraryDirectories=[/data/app/com.android.chrome-1/lib/arm64, /data/app/com.android.chrome-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
02-13 21:10:11.500  7298  7298 I art     :   at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
02-13 21:10:11.500  7298  7298 I art     :   at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
02-13 21:10:11.501  7298  7298 I art     :   at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
02-13 21:10:11.501  7298  7298 I art     :   at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:42)
02-13 21:10:11.501  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
02-13 21:10:11.501  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
02-13 21:10:11.501  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
02-13 21:10:11.501  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
02-13 21:10:11.501  7298  7298 I art     :   at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
02-13 21:10:11.501  7298  7298 I art     :   at android.app.AlertDialog de.cketti.library.changelog.ChangeLog.getDialog(boolean) (ChangeLog.java:287)
02-13 21:10:11.501  7298  7298 I art     :   at android.app.AlertDialog de.cketti.library.changelog.ChangeLog.getLogDialog() (ChangeLog.java:265)
02-13 21:10:11.501  7298  7298 I art     :   at void com.jmstudios.redmoon.MainActivity.onCreate(android.os.Bundle) (MainActivity.kt:64)
02-13 21:10:11.501  7298  7298 I art     :   at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6743)
02-13 21:10:11.501  7298  7298 I art     :   at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
02-13 21:10:11.501  7298  7298 I art     :   at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2599)
02-13 21:10:11.501  7298  7298 I art     :   at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2707)
02-13 21:10:11.501  7298  7298 I art     :   at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
02-13 21:10:11.501  7298  7298 I art     :   at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1460)
02-13 21:10:11.501  7298  7298 I art     :   at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
02-13 21:10:11.501  7298  7298 I art     :   at void android.os.Looper.loop() (Looper.java:159)
02-13 21:10:11.501  7298  7298 I art     :   at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6097)
02-13 21:10:11.501  7298  7298 I art     :   at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
02-13 21:10:11.501  7298  7298 I art     :   at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:865)
02-13 21:10:11.501  7298  7298 I art     :   at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:755)
02-13 21:10:11.501  7298  7298 I art     : 
02-13 21:10:11.547  7298  7331 W cr_media: Requires BLUETOOTH permission
02-13 21:10:11.556  7298  7340 E libEGL  : validate_display:99 error 3008 (EGL_BAD_DISPLAY)
02-13 21:10:11.567  7298  7298 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@418d1f1
02-13 21:10:11.567  7298  7298 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@fef01d6
02-13 21:10:11.599  7298  7298 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@5d79c2d
02-13 21:10:11.599  7298  7298 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@6316562
02-13 21:10:11.614  7298  7340 W VideoCapabilities: Unrecognized profile 2130706433 for video/avc
02-13 21:10:11.614  7298  7340 W VideoCapabilities: Unrecognized profile 2130706434 for video/avc
02-13 21:10:11.618  7298  7340 W Utils   : could not parse long range '175-174'
02-13 21:10:11.620  7298  7340 W VideoCapabilities: Unrecognized profile 2130706433 for video/avc
02-13 21:10:11.620  7298  7340 W VideoCapabilities: Unrecognized profile 2130706434 for video/avc
02-13 21:10:11.622  7298  7340 W VideoCapabilities: Unrecognized profile 2130706433 for video/avc
02-13 21:10:11.622  7298  7340 W VideoCapabilities: Unrecognized profile 2130706434 for video/avc
02-13 21:10:11.633  7298  7340 W VideoCapabilities: Unsupported mime video/mp4v-esdp
02-13 21:10:11.634  7298  7298 D AndroidRuntime: Shutting down VM
02-13 21:10:11.636  7298  7298 E AndroidRuntime: FATAL EXCEPTION: main
02-13 21:10:11.636  7298  7298 E AndroidRuntime: Process: com.jmstudios.redmoon, PID: 7298
02-13 21:10:11.636  7298  7298 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jmstudios.redmoon/com.jmstudios.redmoon.MainActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.ActivityThread.-wrap12(ActivityThread.java)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:102)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:159)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6097)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
02-13 21:10:11.636  7298  7298 E AndroidRuntime: Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.SharedPreferencesImpl.getBoolean(SharedPreferencesImpl.java:263)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at me.smichel.android.KPreferences.Preferences$BooleanPreference.getPrefValue(Preferences.kt:87)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at me.smichel.android.KPreferences.Preferences$BooleanPreference.getPrefValue(Preferences.kt:80)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at me.smichel.android.KPreferences.Preferences$Preference.getValue(Preferences.kt:73)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at com.jmstudios.redmoon.model.Config.getScheduleOn(Config.kt)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at com.jmstudios.redmoon.FilterFragment.updateScheduleSummary(FilterFragment.kt:109)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at com.jmstudios.redmoon.FilterFragment.onCreate(FilterFragment.kt:75)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.Fragment.performCreate(Fragment.java:2335)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:949)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.BackStackRecord.setLastIn(BackStackRecord.java:857)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.BackStackRecord.calculateFragments(BackStackRecord.java:897)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.BackStackRecord.run(BackStackRecord.java:727)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.FragmentController.execPendingActions(FragmentController.java:371)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.Activity.performStart(Activity.java:6759)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2609)
02-13 21:10:11.636  7298  7298 E AndroidRuntime:        ... 9 more
02-13 21:10:11.650  7298  7340 I VideoCapabilities: Unsupported profile 4 for video/mp4v-es
02-13 21:10:11.650  2506  2599 D OpenedTimeAppInfoProvider: Update DB : number of affected records : 1
02-13 21:10:11.660  2506  2599 I AppOpsStatusUpdateHandler: pkgName = com.asus.launcher
02-13 21:10:11.660  2506  2599 I AppOpsStatusUpdateHandler: taskId = 7125
02-13 21:10:11.670  2506  2506 D TaskWatcherService: pkgName: com.asus.launcher taskId: 7125
02-13 21:10:11.670  2506  2506 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1397 android.content.ContextWrapper.startService:620 com.asus.powersaver.TaskWatcherService$IncomingHandler.handleMessage:-1 android.os.Handler.dispatchMessage:102 android.os.Looper.loop:159 
02-13 21:10:11.673  2506  2506 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:917 android.content.ContextWrapper.sendBroadcast:428 com.asus.powersaver.TaskWatcherService$IncomingHandler.handleMessage:-1 android.os.Handler.dispatchMessage:102 android.os.Looper.loop:159 
02-13 21:10:11.674  2506  2506 D PowerSaverService: onStartCommand PowerSaverService
02-13 21:10:11.681  2506  2506 D PowerSaverService: current package:com.asus.launcher;activity:com.android.launcher3.Launcher
02-13 21:10:11.681  2506  2506 D PowerSaverUtils: isLimitedCpuFrequency prop : 0 ; result : false
02-13 21:10:12.265  2530  2530 V Launcher: [onResume] called
02-13 21:10:12.270 12969 12969 W SessionLifecycleManager: Handover failed. Creating new session controller.
02-13 21:10:12.271  2530  2530 I Launcher: Time spent in onResume: 6ms
02-13 21:10:12.337 12969 12969 W NowEndstateTracker: Trying to delete an endstate 1725930757485708751 that does not exist
02-13 21:10:12.338 12969 12969 I BgTaskExecutorImpl: Starting EXCLUSIVE background task update_searchnow_bootstrap_data.
02-13 21:10:12.343 12969  5695 I UpdateSNBDTask: Updating bootstrap data
02-13 21:10:12.711  2530  2530 D Launcher.Utilities: isPhone= true
02-13 21:10:12.729  2530  2530 D Launcher.Utilities: isPhone= true
02-13 21:10:13.615  1016  1016 I MSM-irqbalance: Decided to move IRQ5 from CPU3 [P:0] to CPU7 [P:1] (banned)
02-13 21:10:13.616  1016  1016 I MSM-irqbalance: Decided to move IRQ3 from CPU3 [P:0] to CPU7 [P:1] (banned)
02-13 21:10:13.616  1016  1016 I MSM-irqbalance: Decided to move IRQ3 from CPU1 [P:0] to CPU7 [P:1] (banned)
02-13 21:10:13.617  1016  1016 I MSM-irqbalance: Decided to move IRQ5 from CPU1 [P:0] to CPU7 [P:1] (banned)
02-13 21:10:13.617  1016  1016 I MSM-irqbalance: Decided to move IRQ3 from CPU2 [P:0] to CPU7 [P:1] (banned)
02-13 21:10:13.618  1016  1016 I MSM-irqbalance: Decided to move IRQ5 from CPU2 [P:0] to CPU7 [P:1] (banned)
02-13 21:10:13.618  1016  1016 I MSM-irqbalance: Decided to move IRQ3 from CPU0 [P:0] to CPU7 [P:1] (banned)
02-13 21:10:13.619  1016  1016 I MSM-irqbalance: Decided to move IRQ5 from CPU0 [P:0] to CPU7 [P:1] (banned)
02-13 21:10:14.153  1990  2224 D NetworkController.MobileSignalController(2): onDataActivity: direction=1
02-13 21:10:14.156  2227  2745 D PhoneInterfaceManager: isWifiCallingAvailable: sub Id : 2
02-13 21:10:14.157  1990  2224 D NetworkController.MobileSignalController(2): isWifiCallingAvailable=false
02-13 21:10:14.161  2227  2501 D PhoneInterfaceManager: isVolteAvailable: sub Id : 2
02-13 21:10:14.162  1990  2224 V ReflectionMethods: ========ReflectionMethods.getVolteAvailable = false ===============
02-13 21:10:14.165  2227   503 D PhoneInterfaceManager: isVideoTelephonyAvailable: sub Id : 2
02-13 21:10:14.166  1990  2224 V ReflectionMethods: ========ReflectionMethods.getVideoTelephonyAvailable = false ===============
02-13 21:10:14.170  1990  2224 D NetworkController.MobileSignalController(2): Change in state from: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(4G),activityIn=false,activityOut=false,rssi=0,lastModified=02-13 09:10:11,dataSim=true,networkName=Chunghwa Telecom,networkNameData=Chunghwa Telecom,dataConnected=true,isDefault=true,isEmergency=false,airplaneMode=false,carrierNetworkChangeMode=false,userSetup=true,isRoaming=false
02-13 21:10:14.170  1990  2224 D NetworkController.MobileSignalController(2):   to: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(4G),activityIn=true,activityOut=false,rssi=0,lastModified=02-13 09:10:11,dataSim=true,networkName=Chunghwa Telecom,networkNameData=Chunghwa Telecom,dataConnected=true,isDefault=true,isEmergency=false,airplaneMode=false,carrierNetworkChangeMode=false,userSetup=true,isRoaming=false
02-13 21:10:14.171  1990  2224 D NetworkController.MobileSignalController(2): SubscriptionInfo.getSimSlotIndex(): 0
02-13 21:10:14.171  1990  2224 D NetworkController: isSimOff(0): false
02-13 21:10:14.171  1990  2224 D NetworkController: hasPrefered: false
02-13 21:10:14.171  1990  2224 D NetworkController: isSimOff(0): false
02-13 21:10:14.171  1990  2224 D NetworkController: hasPrefered: false
02-13 21:10:14.182  1990  1990 D SignalClusterView: vpn: GONE
02-13 21:10:14.182  1990  1990 D SignalClusterView: ethernet: GONE
02-13 21:10:14.183  1990  1990 D SignalClusterView: wifi: GONE sig=2130838883 inout=2130838867
02-13 21:10:14.187  1990  1990 D SignalClusterView: mobile: VISIBLE sig=2130838862 typ=2130838807 inout=2130838865
02-13 21:10:14.192  1990  1990 D SignalClusterView: vpn: GONE
02-13 21:10:14.192  1990  1990 D SignalClusterView: ethernet: GONE
02-13 21:10:14.192  1990  1990 D SignalClusterView: wifi: GONE sig=2130838883 inout=2130838867
02-13 21:10:14.194  1990  1990 D SignalClusterView: mobile: VISIBLE sig=2130838862 typ=2130838807 inout=2130838865
02-13 21:10:15.162  1990  2224 D NetworkController.MobileSignalController(2): onDataActivity: direction=0
02-13 21:10:15.164  2227  2242 D PhoneInterfaceManager: isWifiCallingAvailable: sub Id : 2
02-13 21:10:15.165  1990  2224 D NetworkController.MobileSignalController(2): isWifiCallingAvailable=false
02-13 21:10:15.169  2227 10497 D PhoneInterfaceManager: isVolteAvailable: sub Id : 2
02-13 21:10:15.169  1990  2224 V ReflectionMethods: ========ReflectionMethods.getVolteAvailable = false ===============
02-13 21:10:15.174  2227  2744 D PhoneInterfaceManager: isVideoTelephonyAvailable: sub Id : 2
02-13 21:10:15.174  1990  2224 V ReflectionMethods: ========ReflectionMethods.getVideoTelephonyAvailable = false ===============
02-13 21:10:15.177  1990  2224 D NetworkController.MobileSignalController(2): Change in state from: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(4G),activityIn=true,activityOut=false,rssi=0,lastModified=02-13 09:10:14,dataSim=true,networkName=Chunghwa Telecom,networkNameData=Chunghwa Telecom,dataConnected=true,isDefault=true,isEmergency=false,airplaneMode=false,carrierNetworkChangeMode=false,userSetup=true,isRoaming=false
02-13 21:10:15.177  1990  2224 D NetworkController.MobileSignalController(2):   to: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(4G),activityIn=false,activityOut=false,rssi=0,lastModified=02-13 09:10:14,dataSim=true,networkName=Chunghwa Telecom,networkNameData=Chunghwa Telecom,dataConnected=true,isDefault=true,isEmergency=false,airplaneMode=false,carrierNetworkChangeMode=false,userSetup=true,isRoaming=false
02-13 21:10:15.178  1990  2224 D NetworkController.MobileSignalController(2): SubscriptionInfo.getSimSlotIndex(): 0
02-13 21:10:15.178  1990  2224 D NetworkController: isSimOff(0): false
02-13 21:10:15.178  1990  2224 D NetworkController: hasPrefered: false
02-13 21:10:15.178  1990  2224 D NetworkController: isSimOff(0): false
smichel17 commented 6 years ago

Thank you! A quick look through seems like this is enough information to identify and fix the bug, when I sit down to do that.

smichel17 commented 4 years ago

This happened because in one version, I switched from storing the schedule preference as a string ("off"/"sun"/"custom") to a pair of booleans (off/on and sun/manual). There is code to catch the version upgrade and convert, but apparently it did not work in this case.

For this particular case, I don't think there is anything more to do. I could investigate but I doubt anybody has been suffering this bug for 2-3 years without uninstalling and reinstalling Red Moon, which will fix the bug in most cases (by clearing the preferences).

In the future, If I make similar changes, I should not reuse the same preference key. This way, if the upgrade fails, it just resets to default values instead of crashing.