Title: Changing font-size / display-size in combination with BottomNavigation causes crash · Issue #8104 · NativeScript/NativeScript · GitHub
Open Graph Title: Changing font-size / display-size in combination with BottomNavigation causes crash · Issue #8104 · NativeScript/NativeScript
X Title: Changing font-size / display-size in combination with BottomNavigation causes crash · Issue #8104 · NativeScript/NativeScript
Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.2.0 Cross-platform modules: tns-android: ...
Open Graph Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.2...
X Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.2...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/8104
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Changing font-size / display-size in combination with BottomNavigation causes crash","articleBody":"**Environment**\r\nProvide version numbers for the following components (information can be retrieved by running `tns info` in your project folder or by inspecting the `package.json` of the project):\r\n - CLI: 6.2.0\r\n - Cross-platform modules:\r\n - tns-android: 6.2.0\r\n - Android Runtime:\r\n - Devices with Android 8, 9, and 10.\r\n\r\n**Describe the bug**\r\n\u003c!-- A clear and concise description of what the bug is. Please, explain whether it's a build time error or a runtime error. More detailed logs can be easily obtained by following the instructions in this guide: https://docs.nativescript.org/get-support#how-to-obtain-diagnostic-reports. --\u003e\r\nChanging accessibility font-size within the context of a BottomNavigation causes a runtime error. \r\n\r\n```bash\r\nSystem.err: An uncaught Exception occurred on \"main\" thread.\r\nSystem.err: Calling js method onStart failed\r\nSystem.err: Error: java.lang.IllegalArgumentException: No view found for id 0x2 (unknown) for fragment FragmentBase_vendor_15352_26_TabFragmentImplementation{54a9e51 #1 id=0x2 android:bottomnavigation:2:1}\r\nSystem.err: \r\nSystem.err: StackTrace:\r\nSystem.err: BottomNavigation.commitCurrentTransaction(file:///node_modules/@nativescript/core/ui/bottom-navigation/bottom-navigation.js:347:37)\r\nSystem.err: at BottomNavigation.changeTab(file:///node_modules/@nativescript/core/ui/bottom-navigation/bottom-navigation.js:361:13)\r\nSystem.err: at BottomNavigation.onLoaded(file:///node_modules/@nativescript/core/ui/bottom-navigation/bottom-navigation.js:289:13)\r\nSystem.err: at (file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:312:89)\r\nSystem.err: at ViewBase.callFunctionWithSuper(file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:305:8)\r\nSystem.err: at ViewBase.callLoaded(file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:312:13)\r\nSystem.err: at ViewBase.loadView(file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:440:17)\r\nSystem.err: at (file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:234:18)\r\nSystem.err: at ContentView.eachChildView(file:///node_modules/@nativescript/core/ui/content-view/content-view.js:70:12)\r\nSystem.err: at PageBase.eachChildView(file:///node_modules/@nativescript/core/ui/page/page-common.js:126:39)\r\nSystem.err: at ViewCommon.eachChild(file:///node_modules/@nativescript/core/ui/core/view/view-common.js:1010:13)\r\nSystem.err: at ViewBase.onLoaded(file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:233:13)\r\nSystem.err: at View.onLoaded(file:///node_modules/@nativescript/core/ui/core/view/view.js:247:34)\r\nSystem.err: at Page.onLoaded(file:///node_modules/@nativescript/core/ui/page/page.js:43:34)\r\nSystem.err: at (file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:312:89)\r\nSystem.err: at ViewBase.callFunctionWithSuper(file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:305:8)\r\nSystem.err: at ViewBase.callLoaded(file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:312:13)\r\nSystem.err: at ViewBase.loadView(file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:440:17)\r\nSystem.err: at (file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:234:18)\r\nSystem.err: at FrameBase.eachChildView(file:///node_modules/@nativescript/core/ui/frame/frame-common.js:422:12)\r\nSystem.err: at ViewCommon.eachChild(file:///node_modules/@nativescript/core/ui/core/view/view-common.js:1010:13)\r\nSystem.err: at ViewBase.onLoaded(file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:233:13)\r\nSystem.err: at View.onLoaded(file:///node_modules/@nativescript/core/ui/core/view/view.js:247:34)\r\nSystem.err: at FrameBase.onLoaded(file:///node_modules/@nativescript/core/ui/frame/frame-common.js:87:34)\r\nSystem.err: at (file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:312:89)\r\nSystem.err: at ViewBase.callFunctionWithSuper(file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:305:8)\r\nSystem.err: at ViewBase.callLoaded(file:///node_modules/@nativescript/core/ui/core/view-base/view-base.js:312:13)\r\nSystem.err: at ActivityCallbacksImplementation.onStart(file:///node_modules/@nativescript/core/ui/frame/frame.js:872:21)\r\nSystem.err: at NativeScriptActivity.onStart(file:///node_modules/@nativescript/core/ui/frame/activity.js:29:24)\r\nSystem.err: at com.tns.Runtime.callJSMethodNative(Native Method)\r\nSystem.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1286)\r\nSystem.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:1173)\r\nSystem.err: at com.tns.Runtime.callJSMethod(Runtime.java:1160)\r\nSystem.err: at com.tns.Runtime.callJSMethod(Runtime.java:1138)\r\nSystem.err: at com.tns.Runtime.callJSMethod(Runtime.java:1134)\r\nSystem.err: at com.tns.NativeScriptActivity.onStart(NativeScriptActivity.java:29)\r\nSystem.err: at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1514)\r\nSystem.err: at android.app.Activity.performStart(Activity.java:7838)\r\nSystem.err: at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3398)\r\nSystem.err: at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)\r\nSystem.err: at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)\r\nSystem.err: at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)\r\nSystem.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)\r\nSystem.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2109)\r\nSystem.err: at android.os.Handler.dispatchMessage(Handler.java:107)\r\nSystem.err: at android.os.Looper.loop(Looper.java:214)\r\nSystem.err: at android.app.ActivityThread.main(ActivityThread.java:7682)\r\nSystem.err: at java.lang.reflect.Method.invoke(Native Method)\r\nSystem.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)\r\nSystem.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)\r\nSystem.err: Caused by: java.lang.IllegalArgumentException: No view found for id 0x2 (unknown) for fragment FragmentBase_vendor_15352_26_TabFragmentImplementation{54a9e51 #1 id=0x2 android:bottomnavigation:2:1}\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1454)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852)\r\nSystem.err: at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:802)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManager.java:2625)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2411)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366)\r\nSystem.err: at androidx.fragment.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:2243)\r\nSystem.err: at androidx.fragment.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:654)\r\nSystem.err: ... 21 more\r\n```\r\n\r\n**To Reproduce**\r\n\u003c!-- Add commands used or steps taken to reproduce the behaviour. --\u003e\r\n1. Download the sample-project zip.\r\n2. Unzip and install dependencies\r\n3. run: `tns debug android`\r\n4. Tap press \"tap to login\" and get navigated to the actual tab-navigation.\r\n5. Switch to any tab\r\n6. Change font-size either from Settings or use adb command: adb shell settings put system font_scale 1.5\r\n7. Go to desktop or another app and return\r\n8. Observe crash\r\n\r\n**Expected behavior**\r\nApplication should resize the text and not crash afterwards.\r\n\r\n**Sample project**\r\n\u003c!-- If possible, provide a link from the [Playground](https://play.nativescript.org) with reproduction of the problem. If not, consider attaching a sample project or link to a repository with such project. --\u003e\r\n[my-app-name.zip](https://github.com/NativeScript/NativeScript/files/3851831/my-app-name.zip)\r\n\r\n**Additional context**\r\n\u003c!-- Add any other context about the problem here. --\u003e\r\nThe bug was first issued to `@nota/nativescript-accessibility-ext` plugin but the author @m-abs of the plugin found logs pointing towards NativeScript upstream\r\nhttps://github.com/Notalib/nativescript-accessibility-ext/issues/40","author":{"url":"https://github.com/oslc15","@type":"Person","name":"oslc15"},"datePublished":"2019-11-15T14:22:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/8104/NativeScript/issues/8104"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9fae948e-f14f-e9fb-de8a-4f2961810495 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8FA:2A6262:251E45A:2FE13FD:6974BC26 |
| html-safe-nonce | 297f44e27a4d36b91c7932e7a6c0ada2d09b9552897faff5c3bd578e0a2ece45 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEZBOjJBNjI2MjoyNTFFNDVBOjJGRTEzRkQ6Njk3NEJDMjYiLCJ2aXNpdG9yX2lkIjoiMTI1NjY0NzcxMTA1ODYwNzE0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f2385b312e41903f8d3cbe6e04e36e5c2ab85fdb9e1b07afd851a01a022e7444 |
| hovercard-subject-tag | issue:523497645 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/8104/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ed066478c1340d983783d9887f963b238e17f8652f60fde81464ed52cc9ed98/NativeScript/NativeScript/issues/8104 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ed066478c1340d983783d9887f963b238e17f8652f60fde81464ed52cc9ed98/NativeScript/NativeScript/issues/8104 |
| og:image:alt | Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.2... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oslc15 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width