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

Another Crashing error in 1.3 #225

Closed
NathanaelA opened this issue Sep 17, 2015 · 3 comments
Closed

Another Crashing error in 1.3 #225

NathanaelA opened this issue Sep 17, 2015 · 3 comments

Comments

@NathanaelA
Copy link
Contributor

While trying to duplicate #224, I can easily duplicate this one. Basically I have a text box that I enter text and add it to a Observable-Array. Which then shows up in the list; after around 36 of them added it crashes.

W/dalvikvm( 5508): JNI WARNING: JNI function NewWeakGlobalRef called with exception pending
W/dalvikvm( 5508): in Lcom/tns/Platform;.callJSMethodNative:(ILjava/lang/String;IZ[Ljav
a/lang/Object;)Ljava/lang/Object; (NewWeakGlobalRef)
W/dalvikvm( 5508): Pending exception is:
I/dalvikvm( 5508): com.tns.NativeScriptException: No weak reference found. Attempt to use cleared ob
ject reference id=18872
I/dalvikvm( 5508): at com.tns.Platform.getJavaObjectByID(Platform.java:610)
I/dalvikvm( 5508): at com.tns.Platform.callJSMethodNative(Native Method)
I/dalvikvm( 5508): at com.tns.Platform.dispatchCallJSMethodNative(Platform.java:799)
I/dalvikvm( 5508): at com.tns.Platform.callJSMethod(Platform.java:687)
I/dalvikvm( 5508): at com.tns.Platform.callJSMethod(Platform.java:666)
I/dalvikvm( 5508): at com.tns.Platform.callJSMethod(Platform.java:656)
I/dalvikvm( 5508): at com.tns.gen.android.text.TextWatcher_ftns_modules_ui_editable-text-base_e
ditable-text-base_l22_c27__.afterTextChanged(android.text.TextWatcher.java:-1)
I/dalvikvm( 5508): at android.widget.TextView.sendAfterTextChanged(TextView.java:7424)
I/dalvikvm( 5508): at android.widget.TextView$ChangeWatcher.afterTextChanged(TextView.java:9198
)
I/dalvikvm( 5508): at android.text.SpannableStringBuilder.sendAfterTextChanged(SpannableStringB
uilder.java:970)
I/dalvikvm( 5508): at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:4

@NathanaelA

This comment was marked as abuse.

@slavchev
Copy link

Thanks for the repro sample. I provided a fix and associated it with #224

@atanasovg
Copy link
Contributor

Fixed, closing.

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

3 participants