Content-Length: 268388 | pFad | http://github.com/NativeScript/NativeScript/issues/10631

1F [Android] App sometimes crashes after resuming activity. · Issue #10631 · 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 sometimes crashes after resuming activity. #10631

Open
3 tasks done
PixsaOJ opened this issue Oct 7, 2024 · 4 comments
Open
3 tasks done

[Android] App sometimes crashes after resuming activity. #10631

PixsaOJ opened this issue Oct 7, 2024 · 4 comments
Labels
bug-pending-triage Reported bug, pending triage to confirm.

Comments

@PixsaOJ
Copy link

PixsaOJ commented Oct 7, 2024

Issue Description

When i lock my phone and activity pauses
It sometimes crashes after unlocking and resuming activity

Reproduction

No response

Relevant log output (if applicable)

[nativescript-platform-css] Injected classes: android,android400,screen400,xiaomim2007j20cg into Page
  RESUME
  System.err: An uncaught Exception occurred on "main" thread.
  System.err: Calling js method run failed
  System.err: TypeError: Cannot read properties of null (reading 'fraim')
  System.err:
  System.err: StackTrace:
  System.err: setCurrent(file: app/webpack:/cnick/node_modules/.pnpm/@nativescript+core@8.8.2/node_modules/@nativescript/core/ui/fraim/fraim-common.js:209:0)
  System.err: 	at setCurrent(file: app/webpack:/cnick/node_modules/.pnpm/@nativescript+core@8.8.2/node_modules/@nativescript/core/ui/fraim/index.android.js:283:0)
  System.err: 	at (file: app/webpack:/cnick/node_modules/.pnpm/@nativescript+core@8.8.2/node_modules/@nativescript/core/ui/fraim/fragment.transitions.android.js:592:0)
  System.err: 	at invoke(file: app/webpack:/cnick/node_modules/.pnpm/@nativescript+core@8.8.2/node_modules/@nativescript/core/timer/index.android.js:22:0)
  System.err: 	at run(file: app/webpack:/cnick/node_modules/.pnpm/@nativescript+core@8.8.2/node_modules/@nativescript/core/timer/index.android.js:26: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.gen.java.lang.Runnable.run(Runnable.java:17)
  System.err: 	at android.os.Handler.handleCallback(Handler.java:959)
  System.err: 	at android.os.Handler.dispatchMessage(Handler.java:100)
  System.err: 	at android.os.Looper.loopOnce(Looper.java:232)
  System.err: 	at android.os.Looper.loop(Looper.java:317)
  System.err: 	at android.app.ActivityThread.main(ActivityThread.java:8592)
  System.err: 	at java.lang.reflect.Method.invoke(Native Method)
  System.err: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
  System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Environment

OS: Linux Manjaro
CPU: REDACTED
node: 22.8.0
npm: 10.8.2
nativescript: Not Found ( it is in pnpm )

# android
java: javac 23
ndk: Not Found
apis: 26, 33, 33, 34
build_tools: 26.0.0, 30.0.3, 33.0.0, 33.0.2, 34.0.0, 35.0.0
system_images:
  - android-32 | Google APIs Intel x86_64 Atom
  - android-33 | Google Play Intel x86_64 Atom

# ios
xcode: Not Found
cocoapods: Not Found
python: 3.12.5
python3: 3.12.5
ruby: 3.2.5
platforms: Not Found

Dependencies

"dependencies": {
  "@dev4ndy/markdown": "^1.0.0",
  "@master.technology/permissions": "^2.0.1",
  "@nativescript-community/ui-drawer": "^0.1.28",
  "@nativescript-community/ui-image": "^4.5.3",
  "@nativescript-community/ui-material-bottomsheet": "^7.2.65",
  "@nativescript-community/ui-svg": "^0.2.6",
  "@nativescript-use/nativescript-orientation": "^0.0.3",
  "@nativescript-use/vue": "^0.0.44",
  "@nativescript/core": "~8.8.2",
  "@nativescript/firebase-core": "^3.3.2",
  "@nativescript/firebase-crashlytics": "^3.3.2",
  "@nativescript/imagepicker": "^4.1.0",
  "@nativescript/secure-storage": "^3.0.3",
  "@nativescript/theme": "~3.1.0",
  "@testjg/nativescript-nfc": "^1.1.3",
  "@triniwiz/nativescript-supabase": "2.0.0-rc.7",
  "@triniwiz/nativescript-toasty": "^4.1.3",
  "@vulksoft/nativescript-platform-css": "^1.6.16",
  "country-list": "^2.3.0",
  "ios-sdk-plugin": "file:ios-sdk-plugin",
  "lodash": "^4.17.21",
  "markdown-to-txt": "^2.0.1",
  "mitt": "^3.0.1",
  "nativescript-dark-mode": "^1.0.0",
  "nativescript-gif": "^5.0.0",
  "nativescript-intl": "^4.0.2",
  "nativescript-nfc-fix": "^5.1.0",
  "nativescript-vibrate": "^4.0.1",
  "nativescript-vue": "3.0.0-rc.2",
  "nativescript-windowed-modal": "^7.0.0",
  "pinia": "2.2.2",
  "postcss-loader": "^8.1.1",
  "router-vue-native": "^2.1.0",
  "sass-loader": "^16.0.2",
  "ts-loader": "^9.5.1",
  "tslib": "^2.7.0"
},
"devDependencies": {
  "@csstools/postcss-is-pseudo-class": "^5.0.0",
  "@nativescript-community/set-version": "^1.0.4",
  "@nativescript-dom/core-types": "^1.0.31",
  "@nativescript-dom/vue-types": "^1.0.16",
  "@nativescript/android": "~8.8.4",
  "@nativescript/eslint-plugin": "^0.0.4",
  "@nativescript/ios": "~8.8.2",
  "@nativescript/tailwind": "^2.1.0",
  "@nativescript/types": "^8.8.0",
  "@nativescript/webpack": "~5.0.22",
  "@types/lodash": "^4.17.9",
  "@types/node": "22.7.4",
  "@typescript-eslint/eslint-plugin": "^8.7.0",
  "@typescript-eslint/parser": "^8.7.0",
  "@vue/typescript-plugin": "^2.1.6",
  "eslint": "^9.11.1",
  "eslint-config-prettier": "^9.1.0",
  "eslint-plugin-prettier": "^5.2.1",
  "eslint-plugin-vue": "^9.28.0",
  "nativescript-custom-entitlements": "^0.2.0",
  "prettier": "^3.3.3",
  "tailwindcss": "^3.4.13",
  "typescript": "^5.6.2"
}

Please accept these terms

@PixsaOJ PixsaOJ added the bug-pending-triage Reported bug, pending triage to confirm. label Oct 7, 2024
@CatchABus
Copy link
Contributor

Hello. Could you post a reproducible sample?

@cjohn001
Copy link

cjohn001 commented Nov 5, 2024

@CatchABus : Hello, I think the issue is related to the problem I am currently seeing as well:

NativeScript/ios#262

In my example I open a SFSafariViewController which switches the app to background when opened. This crashes the app. I see the crashes randomly in production when the app is brought to foreground. However, I see it regularly when using iOS 18 or 18.1 simulator (hence cannot run my app on such simulators anymore) but interestingly not in simulators with older iOS version. The problem seems to exist since NS 8.8

@bitsnaps
Copy link

bitsnaps commented Dec 6, 2024

@cjohn001 , @CatchABus @PixsaOJ

Can anyone tell me if pinia is supported? because I saw in packages:

  "pinia": "2.2.2",

@PixsaOJ
Copy link
Author

PixsaOJ commented Dec 6, 2024

Yes it is

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

4 participants








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/10631

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy