StackOverflowError出了问题.
现在最糟糕的事情只发生在一台设备上.
我到目前为止测试过:
三星galaxy SII(2.3.4)
三星Nexus S(4.0.3)
HTC Wildfire(2.3.7和2.2)
三星galaxy Tab 10.1(3.2)
……一切都很好.
但是当我向客户发送应用程序并且他在HTC HolIDay 2.3.4上测试时,它就崩溃了
错误:
java.lang.StackOverflowErrorat androID.Widget.TextVIEw.onDraw(TextVIEw.java:4329)at androID.vIEw.VIEw.draw(VIEw.java:6993)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1732)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEw.draw(VIEw.java:6996)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1732)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEw.draw(VIEw.java:6996)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1732)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEw.draw(VIEw.java:6996)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1732)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEw.draw(VIEw.java:6996)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1732)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1730)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEw.draw(VIEw.java:7105)at androID.Widget.FrameLayout.draw(FrameLayout.java:357)at androID.Widget.ScrollVIEw.draw(ScrollVIEw.java:1417)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1732)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEw.draw(VIEw.java:6996)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1732)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEw.draw(VIEw.java:6996)at androID.Widget.FrameLayout.draw(FrameLayout.java:357)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1732)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1730)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEw.draw(VIEw.java:6996)at androID.Widget.FrameLayout.draw(FrameLayout.java:357)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1732)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1730)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1730)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1730)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEw.draw(VIEw.java:6996)at androID.Widget.FrameLayout.draw(FrameLayout.java:357)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1732)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1730)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1730)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1730)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEw.draw(VIEw.java:6996)at androID.Widget.FrameLayout.draw(FrameLayout.java:357)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1732)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEw.draw(VIEw.java:6996)at androID.Widget.FrameLayout.draw(FrameLayout.java:357)at androID.vIEw.VIEwGroup.drawChild(VIEwGroup.java:1732)at androID.vIEw.VIEwGroup.dispatchDraw(VIEwGroup.java:1459)at androID.vIEw.VIEw.draw(VIEw.java:6996)at androID.Widget.FrameLayout.draw(FrameLayout.java:357)at com.androID.internal.policy.impl.PhoneWindow$DecorVIEw.draw(PhoneWindow.java:2054)at androID.vIEw.VIEwRoot.draw(VIEwRoot.java:1632)at androID.vIEw.VIEwRoot.performTraversals(VIEwRoot.java:1335)at androID.vIEw.VIEwRoot.handleMessage(VIEwRoot.java:1991)at androID.os.Handler.dispatchMessage(Handler.java:99)at androID.os.Looper.loop(Looper.java:150)at androID.app.ActivityThread.main(ActivityThread.java:4358)at java.lang.reflect.Method.invokeNative(Native Method)at java.lang.reflect.Method.invoke(Method.java:507)at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:607)at dalvik.system.NativeStart.main(Native Method)
我有可能不知道,增加记忆等.
应用程序很复杂,一切都在TabWidget上作为基本活动.
在一个活动中发生错误,我在那里使用我使用的ListVIEw
具有动态添加视图的scrollvIEw.
更多细节:
1)我有错误的地方是TabWidget,里面有另一个
具有两个意图的TabWidget.
什么是更好的? TabWidget里面有TabWidget,或者只有一个
TabWidget和意图与假tabbuttons一起使用setContentVIEw(…)的内容.
2)在第一个意图我有两个ScrollVIEws,第一个我动态添加用户pic和相同数据的视图.当您点击用户时,使用第二个ScrollVIEw显示动画,这也是由更详细的用户数据动态填充的.所有视图都来自xml文件.
我在使用ListVIEw时没有出现此错误,没有动画并显示详细视图我只是通过setContentVIEw方法更改内容视图.我应该回到这个方法吗?
谢谢你的帮助.
3)为什么只在一台设备上发生此错误?不幸的是,这是客户端设备在美国,我在英国,所以我没有可能重现错误.
解决方法:
StackOverflowError通常在递归调用太多时发生,因此我建议您检查每个会非常小心地调用自身的方法,特别是会导致它们自称为不合理的次数(几千)的条件,或者导致无退出情况(无限递归).
有关更详细的帮助,请发布错误日志和其他信息.
总结以上是内存溢出为你收集整理的Android – stackoverflow错误全部内容,希望文章能够帮你解决Android – stackoverflow错误所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)