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
[Android] Version 2.10.8-2.12.3 crashes on Configuration button click. Partially fixed in version 2.13.10. #7974
Comments
I can confirm, I have the same bug |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
In the current release (as there were no update depoyments yet) it is still in place, 100% reproductible, making the app completely unusable on the affected device. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
In the current release (as there were no update depoyments yet) it is still in place, 100% reproductible, making the app completely unusable on the affected device. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
Update to version 2.11.31 has not fixed the bug, it is stil there. |
I am also affected by this bug and as @andrzej-nov says it is 100% reproducible on my device rendering the app completely unusable on it. I have just submitted a dump through the android crash dump collector. I'm not sure you have access to the dump that way, but I thought it might be better than nothing. Please let me know, if there is something I can do to aid in getting to the root of the problem by providing additional logs or be of help in any other way. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
The bug is still here. |
Update to version 2.12.2 has not fixed the bug, it is stil there. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
The issue is still actual. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
Update to version 2.12.3 has not fixed the bug, it is stil there. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
The version 2.13.10 is still the laest release, so the issue is still here. |
From the stack trace above, this looks related to the Information about how Joplin uses this packageWe use this package to support joplin/packages/app-mobile/components/screens/ConfigScreen/SettingComponent.tsx Lines 86 to 113 in 1d176b3
I've created a React Native sample with just a slider through Expo that could be tested with Expo Go. If the issue happens with this minimal example (it doesn't for me), an upstream bug report can be created (with the demo attached). |
The minimum example works without issues on my tablet. |
Just in case, the updated stack trace from the current version (it does not differ much from the initial one): |
Just guessing (I don't know React and that is my first look at the Joplin sources): packages\lib\components\shared\config\config-shared.ts
Could the (state.settings[key] === value) check wrongly return false when the value is not actually changing (for example, due to minor rounding issues)? |
Intended to help fix laurent22#7974
I've created a branch that allows enabling/disabling various slider-related options (e.g. whether a minimum value is provided) and released an APK. It may be helpful to know which of these slider-related options can be enabled without the app crashing. |
Great! I've downloaded and installed https://github.com/personalizedrefrigerator/joplin/releases/download/testing--slider-props/joplin-release.apk on my problem tablet and played with different slider options.
So it seems that the order of setting the options is critical: "Set include maximum" must be set on before "Set include minimum" and "Set include step" are on. Reverse order (setting minimum and step both on, in any order, while maximum is still off) causes crash. As for crashes when enabling "Show slider" or clicking "Reload slider", I suppose they use fixed order of scanning and setting options, and it does not set maximum before minimum and step. Hope that helps. |
That was helpful! I suspect that the issue is related to the upper limit of the slider being larger than the lower limit (related upstream code). I haven't gotten this to happen locally, but can reproduce a Looking at this StackOverflow thread and the Android ProgressBar source code (used by react-native-slider), it looks like onProgress events shouldn't be fired by I've published another APK that patches the slider library we use to:
|
Nice! I haven't managed to crash this version. I've recorded a couple of logs, just in case. |
…n some devices
Re-opened by 6dbfa6e |
Is it possible to apply the patch to all versions of |
When I click the Configuration button, Joplin app crashes with StackOverflow exception. The issue occurred both on the full notes database from the prior Joplin version (after the app update) and on the clean database (after deleting the app data).
Environment
Joplin version: 2.10.8-2.12.3
Platform: Android
OS specifics: Lenovo TB-8704F tablet, Android 8.1.0 (SDK 27)
Partially fixed in version 2.13.10 (only some Configuration sections are crashing now).
Steps to reproduce
Describe what you expected to happen
The Configuration section opens.
Logfile (probably obsolete in the current version)
Unfortunately, I cannot copy full stack trace from the Android app feedback preview popup. Here are some details:
Exception: java.lang.StackOverflowError
Source class: android.content.ContextWrapper
Source method: getApplicationInfo
Line number: 152
Stack trace excerpts:
com.facebook.react.bridge.JSApplicationIllegalArgumentException: error while updating property 'step' of a view managed by RNCSlider
at com.facebook.react.urlmanager.ViewManagersPropertyCache$PropSetter.updateViewProp(ViewManagerPropertyCache.java:101)
...
Caused by: java.lang.StackOverflowError: stack size 8MB
at android.content.ContextWrapper.getApplicationInfo(ContextWrapper.java:152)
...
at android.widget.ProgressBar.setProgress(ProgressBar.java:1385)
at com.reactnativecommunity.slider.ReactSliderManager$1.onProgressChanged(ReactSliderManager.java:38)
at android.widget.ProgressBar.onProgressRefresh(SeekBar.java:95)
at android.widget.ProgressBar.doRefreshProgress(ProgressBar.java:11298)
at android.widget.ProgressBar.refreshProgress(ProgressBar.java:1353)
at android.widget.ProgressBar.setProgressInternal(ProgressBar.java:1418)
at android.widget.ProgressBar.setProgress(ProgressBar.java:1385)
(The last part loops until stack overflow).
The text was updated successfully, but these errors were encountered: