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

CodeCache option is broken since Android Runtime 4.1.0 #1235

Closed
darind opened this issue Dec 18, 2018 · 0 comments
Closed

CodeCache option is broken since Android Runtime 4.1.0 #1235

darind opened this issue Dec 18, 2018 · 0 comments
Assignees
Milestone

Comments

@darind
Copy link
Collaborator

darind commented Dec 18, 2018

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: 5.1.0
  • Cross-platform modules: 5.1.0
  • Android Runtime: 5.1.0

Describe the bug

The codeCache option described in this blog post doesn't work since android runtime 4.1.0

To Reproduce

  1. Create a nativescript app using the CLI: tns create test
  2. Enable the codeCache option in app/package.json:
"android": {
    "v8Flags": "--nolazy --expose_gc",
    "codeCache": "true"
}
  1. Run the app: tns run android

Expected behavior

The application starts successfully and for each .js file, there's a corresponding .js.cache file created on the device containing the compiled script that is used on subsequent runs of the application.

Actual behavior

The application crashes with a SIGSEGV in the Android Runtime.

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

No branches or pull requests

2 participants