Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes after increasing font beyond certain limit apparently related to slider size #1239

Open
jumase opened this issue Jan 27, 2025 · 0 comments

Comments

@jumase
Copy link
Contributor

jumase commented Jan 27, 2025

Describe the bug
When tweaking UI text size by increasing scale, I encountered this bug. Before crash, I was at a certain point that the slider was almost as wide as the screen. I tried increasing a bit the scale by pressing + button and suddenly the app crashes.

When reopening, I could navigate through timelines and accounts without issues, but when I tried to change back to the previous value, the app crashed again as soon as I entered to Preferences.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Preferences
  2. Increase UI text size so that the slider goes beyond screen limits
  3. See error

Expected behavior
Slider should not cause the app to crash. I believe it's the slider because of the logs, especially the following line:
E AndroidRuntime: java.lang.IllegalStateException: Slider value(155.0) must be greater or equal to valueFrom(50.0), and lower or equal to valueTo(150.0)

Full log

00.786  1030  1030 V SettingsProvider: Notifying for 0: content://settings/system/screen_brightness
03.634  1030  1642 E LightsService: Light requested not available on this device. 2
03.732  1030  5306 I ActivityTaskManager: START u0 {cmp=app.pachli/.components.preference.PreferencesActivity (has extras)} from uid 10156
03.737   337   337 E QTI PowerHAL: Failed to perform launch boost
03.820 21387 21387 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@9c87d16
03.841 21387 21387 D skia    : --- Failed to create image decoder with message 'unimplemented'
03.958  1030  5306 E WindowManager: App trying to use insecure INPUT_FEATURE_NO_INPUT_CHANNEL flag. Ignoring
03.994 21387 21482 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
03.994 21387 21400 I app.pachli: Background young concurrent copying GC freed 56426(3859KB) AllocSpace objects, 92(1928KB) LOS objects, 23% free, 15MB/20MB, paused 588us total 125.142ms
04.098 21387 21387 D AndroidRuntime: Shutting down VM
04.100 21387 21387 E AndroidRuntime: FATAL EXCEPTION: main
04.100 21387 21387 E AndroidRuntime: Process: app.pachli, PID: 21387
04.100 21387 21387 E AndroidRuntime: java.lang.IllegalStateException: Slider value(155.0) must be greater or equal to valueFrom(50.0), and lower or equal to valueTo(150.0)
04.100 21387 21387 E AndroidRuntime: 	at com.google.android.material.slider.BaseSlider.z(SourceFile:225)
04.100 21387 21387 E AndroidRuntime: 	at com.google.android.material.slider.BaseSlider.l(SourceFile:9)
04.100 21387 21387 E AndroidRuntime: 	at com.google.android.material.slider.BaseSlider.onSizeChanged(SourceFile:13)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.sizeChange(View.java:22654)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.setFrame(View.java:22606)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22463)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1818)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.onLayout(LinearLayout.java:1584)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1818)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.onLayout(LinearLayout.java:1584)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at androidx.recyclerview.widget.RecyclerView$LayoutManager.R(SourceFile:33)
04.100 21387 21387 E AndroidRuntime: 	at androidx.recyclerview.widget.LinearLayoutManager.c1(SourceFile:251)
04.100 21387 21387 E AndroidRuntime: 	at androidx.recyclerview.widget.LinearLayoutManager.P0(SourceFile:49)
04.100 21387 21387 E AndroidRuntime: 	at androidx.recyclerview.widget.LinearLayoutManager.h0(SourceFile:805)
04.100 21387 21387 E AndroidRuntime: 	at androidx.recyclerview.widget.RecyclerView.u(SourceFile:74)
04.100 21387 21387 E AndroidRuntime: 	at androidx.recyclerview.widget.RecyclerView.s(SourceFile:67)
04.100 21387 21387 E AndroidRuntime: 	at androidx.recyclerview.widget.RecyclerView.onLayout(SourceFile:8)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at com.google.android.material.appbar.HeaderScrollingViewBehavior.t(SourceFile:144)
04.100 21387 21387 E AndroidRuntime: 	at com.google.android.material.appbar.ViewOffsetBehavior.h(SourceFile:1)
04.100 21387 21387 E AndroidRuntime: 	at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout(SourceFile:41)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
04.100 21387 21387 E AndroidRuntime: 	at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
04.100 21387 21387 E AndroidRuntime: 	at com.android.internal.policy.DecorView.onLayout(DecorView.java:779)
04.100 21387 21387 E AndroidRuntime: 	at android.view.View.layout(View.java:22466)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:6304)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3154)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2611)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1742)
04.100 21387 21387 E AndroidRuntime: 	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7765)
04.100 21387 21387 E AndroidRuntime: 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:967)
04.100 21387 21387 E AndroidRuntime: 	at android.view.Choreographer.doCallbacks(Choreographer.java:791)
04.100 21387 21387 E AndroidRuntime: 	at android.view.Choreographer.doFrame(Choreographer.java:726)
04.100 21387 21387 E AndroidRuntime: 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:952)
04.100 21387 21387 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:883)
04.100 21387 21387 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:100)
04.100 21387 21387 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:214)
04.100 21387 21387 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7356)
04.100 21387 21387 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
04.100 21387 21387 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
04.100 21387 21387 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
04.105  1030  1891 W ActivityTaskManager:   Force finishing activity app.pachli/.components.preference.PreferencesActivity
04.107  1030 21523 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
04.124  1030  1891 W ActivityTaskManager:   Force finishing activity app.pachli/.MainActivity
04.134 21387 21387 I Process : Sending signal. PID: 21387 SIG: 9
04.188  1030 18693 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ TRACK_DEFAULT id=1664, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10156] ], android.os.BinderProxy@ede37f9)
04.189  1030 18699 I ActivityManager: Process app.pachli (pid 21387) has died: fore TOP 
04.189  1030  1660 D ConnectivityService: releasing NetworkRequest [ TRACK_DEFAULT id=1664, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10156] ] (release request)
04.191  1030 27400 I WindowManager: WIN DEATH: Window{6d88d66 u0 app.pachli/app.pachli.components.preference.PreferencesActivity}
04.198  1030  1642 W InputDispatcher: channel 'f8884e2 app.pachli/app.pachli.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
04.198  1030  1642 E InputDispatcher: channel 'f8884e2 app.pachli/app.pachli.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04.199   290   290 I Zygote  : Process 21387 exited due to signal 9 (Killed)
04.201  1706  1706 V KeyguardUpdateMonitor: onSubscriptionInfoChanged()
04.202  1030 25688 I WindowManager: WIN DEATH: Window{f8884e2 u0 app.pachli/app.pachli.MainActivity}
04.202  1030 25688 W InputDispatcher: Attempted to unregister already unregistered input channel 'f8884e2 app.pachli/app.pachli.MainActivity (server)'
04.213  1030  1061 I libprocessgroup: Successfully killed process cgroup uid 10156 pid 21387 in 23ms
04.252  1030  1052 W ActivityManager: setHasOverlayUi called on unknown pid: 21387
04.254  1030 25688 W ActivityManager: Unable to start service Intent { act=com.android.launcher3.WINDOW_OVERLAY dat=app://com.android.launcher3:10100?v=9&cv=14 pkg=com.google.android.googlequicksearchbox } U=0: not found
04.272 22859 22883 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
04.315  1706  1719 I ndroid.systemu: NativeAlloc concurrent copying GC freed 44740(1663KB) AllocSpace objects, 1(20KB) LOS objects, 49% free, 7804KB/15MB, paused 155us total 181.304ms
04.326  1706  1706 D ImageWallpaper: wallpaper visibility changes to: true
04.620  1030  1052 W ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{455645 u0 app.pachli/.components.preference.PreferencesActivity t-1 f}

Versions
2.9.1
Android 10
SDK: 29
Moto E2

Additional context
I was doing some experimentation with user interface. I don't know if someone could need those great values, but the app should not crash or maybe fall back to a stable value in such scenario.

Affirmation
I have checked other issues for this project (open and closed) and I cannot find one that matches the problem I am reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant