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

Forms Crash Occasionally In Angular 2 Apps #244

Closed
nraboy opened this issue May 19, 2016 · 3 comments
Closed

Forms Crash Occasionally In Angular 2 Apps #244

nraboy opened this issue May 19, 2016 · 3 comments

Comments

@nraboy
Copy link

nraboy commented May 19, 2016

I've been getting this error maybe 1 in 20 runs:

angular-couchbase

Basically when I start my Angular 2 application and try to type something in a form, it crashes. The error received is as follows:

JS: Page loaded
JS: BOOTSTRAPPING...
JS: Setting DOM
JS: Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
JS: ANGULAR BOOTSTRAP DONE.
I/DEBUG   (  146):     #02  pc 0024a377  /data/app-lib/org.nativescript.CouchbaseAngular-1/libNativeScript.so (Java_com_tns_Runtime_callJSMethodNative+231)
I/DEBUG   (  146):          bfc23dc4  947d9f31  /data/app-lib/org.nativescript.CouchbaseAngular-1/libNativeScript.so (tns::Runtime::CallJSMethodNative(_JNIEnv*, _jobject*, int, _jstring*, int, unsigned char, _jobjectArray*)+17)
I/DEBUG   (  146):          bfc23dd8  947d5378  /data/app-lib/org.nativescript.CouchbaseAngular-1/libNativeScript.so (Java_com_tns_Runtime_callJSMethodNative+232)

It is not particularly descriptive.

Any ideas?

@slavchev
Copy link

It seems like a bug in the {N} runtime. Is it possible to send a repro project or steps to reproduce? If not possible, can you put __enableVerboseLogging() somewhere in your app (for example in the first line in app.js) and send us the full log when the app crashes?

@slavchev slavchev self-assigned this May 25, 2016
@nraboy
Copy link
Author

nraboy commented May 25, 2016

Hey @slavchev,

See the attached project that I was using:

CouchbaseAngular.zip

See if anything seems out of the ordinary to you.

Best,

@slavchev
Copy link

Hi @nraboy

I investigated the issue further and can confirm it's the same as NativeScript/android#385. So far we identified the problem in ashmem but don't have a solution. We experienced (quite severely, especially on Genymotion) the same problem in our test environment and only on x86 emulators. As a workaround we switched to arm emulators.

Currently our team doesn't have enough resources and the mentioned workaround works fine for us. If you frequently experience the problem I would suggest to try another x86 emulator or switch to arm. Hopefully, in near future we will have more resources and solve the problem.

I am closing this issue. You can keep the track at NativeScript/android#385.

@slavchev slavchev removed their assignment Jun 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants