【发布时间】:2013-11-28 11:36:46
【问题描述】:
我在这上面花了很长时间,这让我很疯狂。
我的应用在android 4.1 及以下版本上运行良好。但是在android 4.2.2上运行有一个大问题
在某些时候,应用程序会开始无休止地闪烁或闪烁,直到它耗尽手机的所有内存,然后手机就死机了。
我不知道这个问题是从哪里触发的,我不知道是哪一行代码导致了这个奇怪的问题。因为它根本没有坏日志,它从onCreate运行到onResume的最后一行,一切正常,但之后它只是自动跳转到onDestroy,然后再次运行到onCreate,它是一个无限循环。
在循环期间,我得到的所有日志都是这样的:
11-26 16:48:56.497 1491-1491/com.efergy.module W/EGL_emulation﹕ eglSurfaceAttrib not implemented
11-26 16:48:56.545 1491-1491/com.efergy.module D/dalvikvm﹕ GC_EXPLICIT freed 212K, 47% free 18253K/34312K, paused 1ms+0ms, total 6ms
11-26 16:48:56.549 1491-1491/com.efergy.module D/dalvikvm﹕ GC_EXPLICIT freed 6K, 47% free 18251K/34312K, paused 1ms+0ms, total 6ms
11-26 16:48:56.565 1491-1491/com.efergy.module D/dalvikvm﹕ GC_EXPLICIT freed 259K, 47% free 18505K/34312K, paused 0ms+1ms, total 4ms
11-26 16:48:56.593 1491-1491/com.efergy.module W/EGL_emulation﹕ eglSurfaceAttrib not implemented
11-26 16:48:56.649 1491-1491/com.efergy.module D/dalvikvm﹕ GC_EXPLICIT freed 269K, 47% free 18253K/34312K, paused 0ms+1ms, total 6ms
11-26 16:48:56.661 1491-1491/com.efergy.module D/dalvikvm﹕ GC_EXPLICIT freed 6K, 47% free 18251K/34312K, paused 0ms+1ms, total 7ms
11-26 16:48:56.673 1491-1491/com.efergy.module D/dalvikvm﹕ GC_EXPLICIT freed 244K, 47% free 18448K/34312K, paused 1ms+1ms, total 7ms
11-26 16:48:56.705 1491-1491/com.efergy.module W/EGL_emulation﹕ eglSurfaceAttrib not implemented
11-26 16:48:56.753 1491-1491/com.efergy.module D/dalvikvm﹕ GC_EXPLICIT freed 213K, 47% free 18254K/34312K, paused 0ms+0ms, total 5ms
11-26 16:48:56.761 1491-1491/com.efergy.module D/dalvikvm﹕ GC_EXPLICIT freed 6K, 47% free 18251K/34312K, paused 0ms+1ms, total 7ms
11-26 16:48:56.773 1491-1491/com.efergy.module D/dalvikvm﹕ GC_EXPLICIT freed 259K, 47% free 18505K/34312K, paused 0ms+0ms, total 5ms
11-26 16:48:56.793 1491-1491/com.efergy.module W/EGL_emulation﹕ eglSurfaceAttrib not implemented
感谢任何可以帮助我找出问题所在的文字或建议。 提前致谢。
【问题讨论】:
-
如果您与此活动相关的代码不是很大,请发布它,或者剪切方法并仅发布 onresume() ondestroy 等
-
对不起,里面有很多代码和自定义函数。但是这个问题不仅仅发生在一项活动中,而是发生在其他活动中。所以我在想它是否与全球事物有关。
-
sit 在 4.3 上是如何工作的?你能找到是因为 API 限制(好吧,低于 4.1,上面失败了)还是因为手机本身(你在模拟器上吗?你可以尝试 2 个不同的制造商吗?)
标签: android android-4.2-jelly-bean flicker