Skip to content

Another Android Bug after NativeScript 1.6, maybe can help your team to improve( not sure ) #1705

Closed

Description

@wisonye

The test phone is a Huawei P8 lite version( Android 5.0 ), it's very easy to re-show the issue, just like my loginUI, if I do type in the "password" field, it will crash( sometimes need to long press to show up the "copy/paste" floating mean to cause crash ), UI super simple, looks like this:

https://drive.google.com/file/d/0B-AooW_48tzISmZCbnNNeDB2ZUU/view?usp=sharing

And here is the crash log output, if your team found something, that's good, if have no idea, then just ignore it, I just want to do a "potential bug report" :)

com.tns.NativeScriptException: No weak reference found. Attempt to use cleared object reference id=366
at com.tns.Platform.getJavaObjectByID(Platform.java:633)
at com.tns.Platform.callJSMethodNative(Native Method)
at com.tns.Platform.dispatchCallJSMethodNative(Platform.java:812)
at com.tns.Platform.callJSMethod(Platform.java:711)
at com.tns.Platform.callJSMethod(Platform.java:690)
at com.tns.Platform.callJSMethod(Platform.java:680)
at com.tns.gen.android.text.TextWatcher_ftns_modules_ui_editable-text-base_editable-text-base_l22_c29__.afterTextChanged(android.text.TextWatcher.java)
at android.widget.TextView.sendAfterTextChanged(TextView.java:7771)
at android.widget.TextView$ChangeWatcher.afterTextChanged(TextView.java:9563)
at android.text.SpannableStringBuilder.sendAfterTextChanged(SpannableStringBuilder.java:976)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:520)
at android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:216)
at android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:33)
at android.view.inputmethod.BaseInputConnection.deleteSurroundingText(BaseInputConnection.java:249)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:398)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:82)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5538)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

Activity

  1. mikeres0 commented on Mar 8, 2016

    @mikeres0

    +1 I've got something very similar to this.

  2. enchev commented on Mar 12, 2016

    @enchev
    Contributor

    Hey @slavchev can you help with this? I've tried to fix it here however it seems that we still have problems.

  3. slavchev commented on Mar 12, 2016

    @slavchev

    @wisonye @mikeres0

    This seems like a bug in {N} for Android runtime. We had this bug reported from other customers as well but unfortunately we didn't reproduce it. I am very interested in a small repro project, if possible, as this error is critical as it indicates wrong object lifetime management.

  4. wisonye commented on Mar 12, 2016

    @wisonye
    Author

    @slavchev

    I think NativeScript team should put this on a high priority, as it's already happen many many times in my product, and it's a very basic situation and easy to happen in Android, it maybe can cause more.developers afriad to use NativeScritp for this reason, it's very important !!!

  5. slavchev commented on Mar 13, 2016

    @slavchev

    @wisonye

    Can you help us by sending us a simple repro project?

  6. slavchev commented on Mar 15, 2016

    @slavchev

    Move this issue NativeScript/android#382

  7. lock commented on Aug 30, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  8. locked and limited conversation to collaborators on Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions