{"action":"created","issue":{"url":"https://api.github.com/repos/hdodenhof/CircleImageView/issues/130","repository_url":"https://api.github.com/repos/hdodenhof/CircleImageView","labels_url":"https://api.github.com/repos/hdodenhof/CircleImageView/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/hdodenhof/CircleImageView/issues/130/comments","events_url":"https://api.github.com/repos/hdodenhof/CircleImageView/issues/130/events","html_url":"https://github.com/hdodenhof/CircleImageView/issues/130","id":153641236,"number":130,"title":"Error: android.view.InflateException: Binary XML file line XXX: Error inflating class de.hdodenhof.circleimageview.CircleImageView","user":{"login":"tusharme","id":17686163,"avatar_url":"https://avatars.githubusercontent.com/u/17686163?v=3","gravatar_id":"","url":"https://api.github.com/users/tusharme","html_url":"https://github.com/tusharme","followers_url":"https://api.github.com/users/tusharme/followers","following_url":"https://api.github.com/users/tusharme/following{/other_user}","gists_url":"https://api.github.com/users/tusharme/gists{/gist_id}","starred_url":"https://api.github.com/users/tusharme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tusharme/subscriptions","organizations_url":"https://api.github.com/users/tusharme/orgs","repos_url":"https://api.github.com/users/tusharme/repos","events_url":"https://api.github.com/users/tusharme/events{/privacy}","received_events_url":"https://api.github.com/users/tusharme/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-08T07:23:06Z","updated_at":"2016-05-08T11:53:23Z","closed_at":"2016-05-08T11:19:01Z","body":"My App crashes when I launch the activity containing the circle view a second time.\r\n\r\nXML:\r\n```\r\n<de.hdodenhof.circleimageview.CircleImageView\r\n                xmlns:app=\"http://schemas.android.com/apk/res-auto\"\r\n                android:id=\"@+id/men_image\"\r\n                android:layout_width=\"150dp\"\r\n                android:layout_height=\"150dp\"\r\n                android:layout_alignParentTop=\"true\"\r\n                android:layout_centerHorizontal=\"true\"\r\n                app:civ_border_color=\"#FFFFFE\"\r\n                app:civ_border_width=\"2dp\"\r\n                android:src=\"@drawable/men\" />\r\n```\r\nError :\r\n```\r\ncom.example.tushar.myapplication E/AndroidRuntime﹕ FATAL EXCEPTION: main\r\n    Process: com.example.tushar.myapplication, PID: 7247\r\n    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tushar.myapplication/com.example.tushar.myapplication.Activity_Filter}: android.view.InflateException: Binary XML file line #175: Binary XML file line #175: Error inflating class <unknown>\r\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)\r\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)\r\n            at android.app.ActivityThread.-wrap11(ActivityThread.java)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:148)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5443)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)\r\n     Caused by: android.view.InflateException: Binary XML file line #175: Binary XML file line #175: Error inflating class <unknown>\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:539)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:423)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:374)\r\n            at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267)\r\n            at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)\r\n            at com.example.tushar.myapplication.Activity_Filter.onCreate(Activity_Filter.java:20)\r\n            at android.app.Activity.performCreate(Activity.java:6259)\r\n            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)\r\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)\r\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)\r\n            at android.app.ActivityThread.-wrap11(ActivityThread.java)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:148)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5443)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)\r\n     Caused by: android.view.InflateException: Binary XML file line #175: Error inflating class <unknown>\r\n            at android.view.LayoutInflater.createView(LayoutInflater.java:645)\r\n            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)\r\n            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)\r\n            at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)\r\n            at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)\r\n            at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:515)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:423)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:374)\r\n            at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267)\r\n            at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)\r\n            at com.example.tushar.myapplication.Activity_Filter.onCreate(Activity_Filter.java:20)\r\n            at android.app.Activity.performCreate(Activity.java:6259)\r\n            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)\r\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)\r\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)\r\n            at android.app.ActivityThread.-wrap11(ActivityThread.java)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:148)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5443)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)\r\n     Caused by: java.lang.reflect.InvocationTargetException\r\n            at java.lang.reflect.Constructor.newInstance(Native Method)\r\n            at android.view.LayoutInflater.createView(LayoutInflater.java:619)\r\n            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)\r\n            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)\r\n            at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)\r\n            at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)\r\n            at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:515)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:423)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:374)\r\n            at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267)\r\n            at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)\r\n            at com.example.tushar.myapplication.Activity_Filter.onCreate(Activity_Filter.java:20)\r\n            at android.app.Activity.performCreate(Activity.java:6259)\r\n            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)\r\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)\r\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)\r\n            at android.app.ActivityThread.-wrap11(ActivityThread.java)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:148)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5443)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)\r\n     Caused by: java.lang.OutOfMemoryError: Failed to allocate a 3326412 byte allocation with 1639696 free bytes and 1601KB until OOM\r\n            at dalvik.system.VMRuntime.newNonMovableArray(Native Method)\r\n            at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)\r\n            at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:609)\r\n            at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444)\r\n            at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1080)\r\n            at android.content.res.Resources.loadDrawableForCookie(Resources.java:2638)\r\n            at android.content.res.Resources.loadDrawable(Resources.java:2543)\r\n            at android.content.res.TypedArray.getDrawable(TypedArray.java:870)\r\n            at android.widget.ImageView.<init>(ImageView.java:162)\r\n            at android.widget.ImageView.<init>(ImageView.java:150)\r\n            at de.hdodenhof.circleimageview.CircleImageView.<init>(CircleImageView.java:73)\r\n            at de.hdodenhof.circleimageview.CircleImageView.<init>(CircleImageView.java:69)\r\n            at java.lang.reflect.Constructor.newInstance(Native Method)\r\n            at android.view.LayoutInflater.createView(LayoutInflater.java:619)\r\n            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)\r\n            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)\r\n            at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)\r\n            at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)\r\n            at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:515)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:423)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:374)\r\n            at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267)\r\n            at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)\r\n            at com.example.tushar.myapplication.Activity_Filter.onCreate(Activity_Filter.java:20)\r\n            at android.app.Activity.performCreate(Activity.java:6259)\r\n            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)\r\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)\r\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)\r\n            at android.app.ActivityThread.-wrap11(ActivityThread.java)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:148)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5443)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)\r\n```"},"comment":{"url":"https://api.github.com/repos/hdodenhof/CircleImageView/issues/comments/217711537","html_url":"https://github.com/hdodenhof/CircleImageView/issues/130#issuecomment-217711537","issue_url":"https://api.github.com/repos/hdodenhof/CircleImageView/issues/130","id":217711537,"user":{"login":"tusharme","id":17686163,"avatar_url":"https://avatars.githubusercontent.com/u/17686163?v=3","gravatar_id":"","url":"https://api.github.com/users/tusharme","html_url":"https://github.com/tusharme","followers_url":"https://api.github.com/users/tusharme/followers","following_url":"https://api.github.com/users/tusharme/following{/other_user}","gists_url":"https://api.github.com/users/tusharme/gists{/gist_id}","starred_url":"https://api.github.com/users/tusharme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tusharme/subscriptions","organizations_url":"https://api.github.com/users/tusharme/orgs","repos_url":"https://api.github.com/users/tusharme/repos","events_url":"https://api.github.com/users/tusharme/events{/privacy}","received_events_url":"https://api.github.com/users/tusharme/received_events","type":"User","site_admin":false},"created_at":"2016-05-08T11:53:23Z","updated_at":"2016-05-08T11:53:23Z","body":"Thanks man for pointing it out. It was of great help."}}