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

setdata 太长就会报错吗 #24

Closed
HuRuWo opened this issue Feb 12, 2018 · 4 comments
Closed

setdata 太长就会报错吗 #24

HuRuWo opened this issue Feb 12, 2018 · 4 comments

Comments

@HuRuWo
Copy link

HuRuWo commented Feb 12, 2018

No description provided.

@HuRuWo HuRuWo changed the title 可以和greendao一起用吗 xx Feb 13, 2018
@HuRuWo HuRuWo closed this as completed Feb 13, 2018
@HuRuWo HuRuWo reopened this Feb 13, 2018
@HuRuWo
Copy link
Author

HuRuWo commented Feb 13, 2018

测试 大概setdata 50以上就会报错

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Rect.height()' on a null object reference
                                                                     at com.bin.david.form.core.SmartTable.requestReMeasure(SmartTable.java:268)
                                                                     at com.bin.david.form.core.SmartTable.onMeasure(SmartTable.java:286)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.support.constraint.ConstraintLayout.internalMeasureChildren(ConstraintLayout.java:934)
                                                                     at android.support.constraint.ConstraintLayout.onMeasure(ConstraintLayout.java:973)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
                                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
                                                                     at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
                                                                     at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692)
                                                                     at android.widget.LinearLayout.measureVertical(LinearLayout.java:760)
                                                                     at android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
                                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
                                                                     at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692)
                                                                     at android.widget.LinearLayout.measureVertical(LinearLayout.java:760)
                                                                     at android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698)
                                                                     at android.widget.FrameLayout.onMeasure(FrameLayout.java:465)
                                                                     at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2778)
                                                                     at android.view.View.measure(View.java:18017)
                                                                     at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2451)
                                                                     at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1433)
                                                                     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1668)
                                                                     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1311)
                                                                     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6667)
                                                                     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:802)
                                                                     at android.view.Choreographer.doCallbacks(Choreographer.java:605)
                                                                     at android.view.Choreographer.doFrame(Choreographer.java:574)
                                                                     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:788)
                                                                     at android.os.Handler.handleCallback(Handler.java:815)
                                                                     at android.os.Handler.dispatchMessage(Handler.java:104)
                                                                     at android.os.Looper.loop(Looper.java:194)
                                                                     at android.app.ActivityThread.main(ActivityThread.java:5877)
                                                                     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:1020)
                                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

@HuRuWo HuRuWo changed the title xx setdata 太长就会报错吗 Feb 13, 2018
@HuRuWo
Copy link
Author

HuRuWo commented Feb 14, 2018

我找到了 闪退的原因了
就是使用了
ConstraintLayout 布局作为父布局,同时setdata 数据太长
希望修复该bug

@kona5362
Copy link

image
遇到类似的错误了。

1.7.1版本上没事
1.8.7版本上就会出现这个问题
和题主不一样
我不是ConstraintLayout 布局作为父布局

刚过完年回来,祝作者新年快乐,哈哈

@huangyanbin
Copy link
Owner

已修复 1.8.8

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