java - Sudden shutdown with IllegalStateException without doing anything -
after 26 minutes leaving app running without doing user, "app has stopped" window pop , logcat prints this:
07-15 20:34:16.595 27361-27363/test.game d/dalvikvm: gc_concurrent freed 1419k, 44% free 13902k/24391k, paused 4ms+9ms, total 66ms 07-15 20:34:28.997 27361-27363/test.game d/dalvikvm: gc_concurrent freed 1416k, 43% free 13903k/24391k, paused 3ms+7ms, total 56ms 07-15 20:34:29.418 27361-27361/test.game d/androidruntime: shutting down vm 07-15 20:34:29.418 27361-27361/test.game w/dalvikvm: threadid=1: thread exiting uncaught exception (group=0x412b52a0) 07-15 20:34:29.498 27361-27361/test.game e/androidruntime: fatal exception: main java.lang.illegalstateexception: onmeasure() did not set measured dimension calling setmeasureddimension() @ android.view.view.measure(view.java:15293) @ android.widget.relativelayout.measurechildhorizontal(relativelayout.java:617) @ android.widget.relativelayout.onmeasure(relativelayout.java:399) @ android.view.view.measure(view.java:15288) @ android.widget.relativelayout.measurechildhorizontal(relativelayout.java:617) @ android.widget.relativelayout.onmeasure(relativelayout.java:399) @ android.view.view.measure(view.java:15288) @ android.view.viewgroup.measurechildwithmargins(viewgroup.java:4876) @ android.widget.framelayout.onmeasure(framelayout.java:310) @ android.view.view.measure(view.java:15288) @ android.view.viewgroup.measurechildwithmargins(viewgroup.java:4876) @ android.widget.linearlayout.measurechildbeforelayout(linearlayout.java:1396) @ android.widget.linearlayout.measurevertical(linearlayout.java:681) @ android.widget.linearlayout.onmeasure(linearlayout.java:574) @ android.view.view.measure(view.java:15288) @ android.view.viewgroup.measurechildwithmargins(viewgroup.java:4876) @ android.widget.framelayout.onmeasure(framelayout.java:310) @ com.android.internal.policy.impl.phonewindow$decorview.onmeasure(phonewindow.java:2397) @ android.view.view.measure(view.java:15288) @ android.view.viewrootimpl.performmeasure(viewrootimpl.java:1974) @ android.view.viewrootimpl.measurehierarchy(viewrootimpl.java:1217) @ android.view.viewrootimpl.performtraversals(viewrootimpl.java:1390) @ android.view.viewrootimpl.dotraversal(viewrootimpl.java:1113) @ android.view.viewrootimpl$traversalrunnable.run(viewrootimpl.java:4481) @ android.view.choreographer$callbackrecord.run(choreographer.java:725) @ android.view.choreographer.docallbacks(choreographer.java:555) @ android.view.choreographer.doframe(choreographer.java:525) @ android.view.choreographer$framedisplayeventreceiver.run(choreographer.java:711) @ android.os.handler.handlecallback(handler.java:615) @ android.os.handler.dispatchmessage(handler.java:92) @ android.os.looper.loop(looper.java:137) @ android.app.activitythread.main(activitythread.java:4867) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:511) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1007) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:774) @ dalvik.system.nativestart.main(native method)
any ideas problem? happened 2nd time (1st time happened sooner, in ~13 mins), it's not "random" issue.
i can't provide sample code since none of logcat errors links code (all goes source of specific view). strange behaviour is, happened twice on s3 mini (in mentioned 13 , 26 mins), didn't happened yet on old ace s5830i - app running 4 hours 9 minutes , still nothing here!
edit n1:
only thing running on background timer executed each 17ms. i'm displaying hours, minutes, seconds , milis on screen it.
timer.scheduleatfixedrate(new timertask() ... currenttime = system.currenttimemillis() - start; milisecond = currenttime % 1000; long x = currenttime / 1000; second = x % 60; x /= 60; minute = x % 60; x /= 60; hour = x % 24;
variable start system.currenttimemillis(). has still value, assigned when timer created.
it's possible s3 mini bit "overworked", because i've been developing , testing on computer day (and newest android studio eats quite lot memory in phone against v1.0.0). i'll try tests tomorow , let know how ended.
Comments
Post a Comment