Menu

#10 Fails to run in strict mode (android 4.2.1)

1.0
closed
critical (1)
2014-05-01
2014-05-01
No

04-30 14:28:45.662: E/StrictMode(7145): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
04-30 14:28:45.662: E/StrictMode(7145): java.lang.Throwable: Explicit termination method 'release' not called
04-30 14:28:45.662: E/StrictMode(7145): at dalvik.system.CloseGuard.open(CloseGuard.java:184)
04-30 14:28:45.662: E/StrictMode(7145): at android.view.Surface.<init>(Surface.java:286)
04-30 14:28:45.662: E/StrictMode(7145): at com.android.internal.view.BaseSurfaceHolder.<init>(BaseSurfaceHolder.java:40)
04-30 14:28:45.662: E/StrictMode(7145): at android.view.ViewRootImpl$TakenSurfaceHolder.<init>(ViewRootImpl.java:4774)
04-30 14:28:45.662: E/StrictMode(7145): at android.view.ViewRootImpl.setView(ViewRootImpl.java:481)
04-30 14:28:45.662: E/StrictMode(7145): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:246)
04-30 14:28:45.662: E/StrictMode(7145): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
04-30 14:28:45.662: E/StrictMode(7145): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2806)
04-30 14:28:45.662: E/StrictMode(7145): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2235)
04-30 14:28:45.662: E/StrictMode(7145): at android.app.ActivityThread.access$600(ActivityThread.java:141)
04-30 14:28:45.662: E/StrictMode(7145): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
04-30 14:28:45.662: E/StrictMode(7145): at android.os.Handler.dispatchMessage(Handler.java:99)
04-30 14:28:45.662: E/StrictMode(7145): at android.os.Looper.loop(Looper.java:137)
04-30 14:28:45.662: E/StrictMode(7145): at android.app.ActivityThread.main(ActivityThread.java:5039)
04-30 14:28:45.662: E/StrictMode(7145): at java.lang.reflect.Method.invokeNative(Native Method)
04-30 14:28:45.662: E/StrictMode(7145): at java.lang.reflect.Method.invoke(Method.java:511)
04-30 14:28:45.662: E/StrictMode(7145): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-30 14:28:45.662: E/StrictMode(7145): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-30 14:28:45.662: E/StrictMode(7145): at dalvik.system.NativeStart.main(Native Method)
04-30 14:28:45.662: W/System.err(7145): StrictMode VmPolicy violation with POLICY_DEATH; shutting down.

Discussion

  • Polina Slesareva

    • summary: Fails to run in strict mode (android 4.2) --> Fails to run in strict mode (android 4.2.1)
     
  • Polina Slesareva

    • assigned_to: Alexander Slesarev
     
  • Alexander Slesarev

    Looks like it's Android bug:
    https://code.google.com/p/android/issues/detail?id=54285

    The only solution for now is to disable Strict Mode usage

     
  • Alexander Slesarev

    • status: open --> closed
     

Log in to post a comment.