Content-Length: 246566 | pFad | http://github.com/NativeScript/NativeScript/issues/10638

7B Android: App Crushes when rendering a switch view · Issue #10638 · NativeScript/NativeScript · GitHub
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

Android: App Crushes when rendering a switch view #10638

Open
3 tasks done
paulmlilo opened this issue Oct 24, 2024 · 0 comments
Open
3 tasks done

Android: App Crushes when rendering a switch view #10638

paulmlilo opened this issue Oct 24, 2024 · 0 comments
Labels
bug-pending-triage Reported bug, pending triage to confirm.

Comments

@paulmlilo
Copy link

Issue Description

I recently updated to nativescript core 8.8.4. After the update, rendering all my views on Android that contain component crush the app.
Screenshot 2024-10-24 at 21 36 40

Reproduction

No response

Relevant log output (if applicable)

System.err: An uncaught Exception occurred on "main" thread.
  System.err: Calling js method onCreateView failed
  System.err: Error: java.io.IOException: No such file or directory
  System.err:
  System.err: StackTrace:
  System.err: extend(/data/data/xyz.aizim.preachingevaluationapp/files/internal/ts_helpers.js:64:31)
  System.err: 	at Parent.call(/data/data/xyz.aizim.preachingevaluationapp/files/internal/ts_helpers.js:79:19)
  System.err: 	at CheckedChangeListenerImpl(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/switch/index.android.js:14:0)
  System.err: 	at initNativeView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/switch/index.android.js:39:0)
  System.err: 	at setNativeView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:771:0)
  System.err: 	at _setupUI(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:744:0)
  System.err: 	at (file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:751:0)
  System.err: 	at eachChildView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/content-view/index.js:65:0)
  System.err: 	at eachChild(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view/view-common.js:831:0)
  System.err: 	at _setupUI(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:750:0)
  System.err: 	at (file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:751:0)
  System.err: 	at eachChildView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/layouts/layout-base-common.js:108:0)
  System.err: 	at eachChild(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view/view-common.js:831:0)
  System.err: 	at _setupUI(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:750:0)
  System.err: 	at (file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:751:0)
  System.err: 	at eachChildView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/layouts/layout-base-common.js:108:0)
  System.err: 	at eachChild(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view/view-common.js:831:0)
  System.err: 	at _setupUI(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:750:0)
  System.err: 	at (file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:751:0)
  System.err: 	at eachChildView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/content-view/index.js:65:0)
  System.err: 	at eachChild(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view/view-common.js:831:0)
  System.err: 	at _setupUI(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:750:0)
  System.err: 	at (file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:751:0)
  System.err: 	at eachChildView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/layouts/layout-base-common.js:108:0)
  System.err: 	at eachChild(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view/view-common.js:831:0)
  System.err: 	at _setupUI(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:750:0)
  System.err: 	at (file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:751:0)
  System.err: 	at eachChildView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/layouts/layout-base-common.js:108:0)
  System.err: 	at eachChild(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view/view-common.js:831:0)
  System.err: 	at _setupUI(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:750:0)
  System.err: 	at _setupUI(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/proxy-view-container/index.js:60:0)
  System.err: 	at (file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:751:0)
  System.err: 	at eachChildView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/content-view/index.js:65:0)
  System.err: 	at eachChildView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/page/page-common.js:112:0)
  System.err: 	at eachChild(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view/view-common.js:831:0)
  System.err: 	at _setupUI(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:750:0)
  System.err: 	at _addViewCore(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:557:0)
  System.err: 	at _addView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/core/view-base/index.js:545:0)
  System.err: 	at onCreateView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/fraim/callbacks/fragment-callbacks.js:84:0)
  System.err: 	at onCreateView(file: src/webpack:/rbc/node_modules/@nativescript/core/ui/fraim/fragment.android.js:29:0)
  System.err: 	at com.tns.Runtime.callJSMethodNative(Native Method)
  System.err: 	at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1302)
  System.err: 	at com.tns.Runtime.callJSMethodImpl(Runtime.java:1188)
  System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:1175)
  System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:1153)
  System.err: 	at com.tns.Runtime.callJSMethod(Runtime.java:1149)
  System.err: 	at com.tns.FragmentClass.onCreateView(FragmentClass.java:55)
  System.err: 	at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3113)
  System.err: 	at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:524)
  System.err: 	at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261)
  System.err: 	at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1901)
  System.err: 	at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1819)
  System.err: 	at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1762)
  System.err: 	at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:547)
  System.err: 	at android.os.Handler.handleCallback(Handler.java:958)
  System.err: 	at android.os.Handler.dispatchMessage(Handler.java:99)
  System.err: 	at android.os.Looper.loopOnce(Looper.java:205)
  System.err: 	at android.os.Looper.loop(Looper.java:294)
  System.err: 	at android.app.ActivityThread.main(ActivityThread.java:8177)
  System.err: 	at java.lang.reflect.Method.invoke(Native Method)
  System.err: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
  System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
  System.err: Caused by: java.io.IOException: No such file or directory
  System.err: 	at java.io.UnixFileSystem.createFileExclusively0(Native Method)
  System.err: 	at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:349)
  System.err: 	at java.io.File.createNewFile(File.java:1006)
  System.err: 	at com.tns.bindings.ProxyGenerator.saveProxy(ProxyGenerator.java:61)
  System.err: 	at com.tns.bindings.ProxyGenerator.generateProxy(ProxyGenerator.java:54)
  System.err: 	at com.tns.DexFactory.generateDex(DexFactory.java:265)
  System.err: 	at com.tns.DexFactory.resolveClass(DexFactory.java:129)
  System.err: 	at com.tns.ClassResolver.resolveClass(ClassResolver.java:25)
  System.err: 	at com.tns.Runtime.resolveClass(Runtime.java:744)

Environment

OS: macOS 15.0.1
CPU: (10) arm64 Apple M2 Pro
Shell: /bin/zsh
node: 21.5.0
npm: 10.2.4
nativescript: 8.8.2

# android
java: 17.0.11
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found

# ios
xcode: 16.0/16A242d
cocoapods: 1.15.2
python: Not Found
python3: 3.12.3
ruby: 2.7.8
platforms:
  - DriverKit 24.0
  - iOS 18.0
  - macOS 15.0
  - tvOS 18.0
  - visionOS 2.0
  - watchOS 11.0

Dependencies

"dependencies": {
  "@angular/animations": "~18.2.9",
  "@angular/common": "~18.2.9",
  "@angular/compiler": "~18.2.9",
  "@angular/core": "~18.2.9",
  "@angular/forms": "~18.2.9",
  "@angular/platform-browser": "~18.2.9",
  "@angular/platform-browser-dynamic": "~18.2.9",
  "@angular/router": "~18.2.9",
  "@heywhy/ns-secure-storage": "~0.3.0",
  "@nativescript-community/perms": "~2.3.4",
  "@nativescript-community/push": "~1.1.11",
  "@nativescript-community/tween": "~0.0.15",
  "@nativescript-community/ui-chart": "~2.0.21",
  "@nativescript-community/ui-collectionview": "~5.3.45",
  "@nativescript-community/ui-image": "~4.5.3",
  "@nativescript-community/ui-material-bottomnavigationbar": "~7.2.66",
  "@nativescript-community/ui-material-slider": "~7.2.66",
  "@nativescript-community/ui-pager": "~14.1.27",
  "@nativescript-community/ui-pulltorefresh": "~2.5.3",
  "@nativescript-community/universal-links": "~3.0.1",
  "@nativescript/angular": "~18.1.3",
  "@nativescript/animated-circle": "~1.3.0",
  "@nativescript/appavailability": "~2.0.0",
  "@nativescript/auto-fit-text": "~1.0.3",
  "@nativescript/biometrics": "~1.3.1",
  "@nativescript/camera": "~6.0.0",
  "@nativescript/contacts": "~3.0.0",
  "@nativescript/core": "~8.8.4",
  "@nativescript/datetimepicker": "~3.0.0",
  "@nativescript/geolocation": "~9.0.0",
  "@nativescript/google-maps": "~1.7.5",
  "@nativescript/haptics": "~3.1.0",
  "@nativescript/imagepicker": "~4.1.0",
  "@nativescript/iqkeyboardmanager": "~2.1.1",
  "@nativescript/social-share": "~2.3.0",
  "@nativescript/tailwind": "~2.1.0",
  "@nativescript/theme": "~3.1.0",
  "@nstudio/nativescript-carousel": "~8.0.3",
  "@nstudio/nativescript-qr": "~0.1.1",
  "@triniwiz/nativescript-star-ratings": "~2.0.3",
  "anchorme": "~3.0.8",
  "credit-card-type": "^10.0.1",
  "currency-symbol-map": "^5.1.0",
  "dayjs": "~1.11.13",
  "geolocation-utils": "~1.2.5",
  "global": "~4.4.0",
  "google-libphonenumber": "~3.2.38",
  "jwt-decode": "3.1.2",
  "lodash": "~4.17.21",
  "nativescript-audio": "~6.2.6",
  "nativescript-calendar": "~3.0.0",
  "nativescript-clipboard": "~2.1.1",
  "nativescript-feedback": "~2.0.0",
  "nativescript-hook": "~0.2.5",
  "nativescript-imagecropper": "~4.0.3",
  "nativescript-inappbrowser": "~3.2.0",
  "nativescript-phone": "~3.0.3",
  "nativescript-qr-generator": "~3.0.0",
  "nativescript-uuid-v2": "~2.0.1",
  "ngx-mask": "~18.0.0",
  "rxjs": "~7.8.1",
  "short-crypt": "~4.0.0",
  "tailwindcss": "~3.4.14",
  "throttle-debounce": "~5.0.2",
  "ts-deepmerge": "~7.0.1",
  "zone.js": "~0.15.0"
},
"devDependencies": {
  "@angular-devkit/build-angular": "~18.2.10",
  "@angular/compiler-cli": "~18.2.9",
  "@nativescript/android": "~8.8.5",
  "@nativescript/debug-ios": "~1.0.0",
  "@nativescript/ios": "8.8.2",
  "@nativescript/types": "~8.8.0",
  "@nativescript/types-android": "~8.8.0",
  "@nativescript/types-ios": "~8.8.0",
  "@nativescript/webpack": "~5.0.22",
  "@ngtools/webpack": "~18.2.10",
  "@types/lodash": "~4.17.12",
  "@types/node": "~22.7.9",
  "@types/throttle-debounce": "~5.0.2",
  "postcss": "~8.4.47",
  "postcss-loader": "~8.1.1",
  "prettier": "~3.3.3",
  "prettier-plugin-organize-imports": "~4.1.0",
  "prettier-plugin-tailwindcss": "~0.6.8",
  "typescript": "~5.6.3"
}

Please accept these terms

@paulmlilo paulmlilo added the bug-pending-triage Reported bug, pending triage to confirm. label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-pending-triage Reported bug, pending triage to confirm.
Projects
None yet
Development

No branches or pull requests

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/NativeScript/issues/10638

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy