{"action":"created","issue":{"url":"https://api.github.com/repos/amlcurran/ShowcaseView/issues/244","labels_url":"https://api.github.com/repos/amlcurran/ShowcaseView/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/amlcurran/ShowcaseView/issues/244/comments","events_url":"https://api.github.com/repos/amlcurran/ShowcaseView/issues/244/events","html_url":"https://github.com/amlcurran/ShowcaseView/issues/244","id":45988370,"number":244,"title":"OutOfMemoryError crashes app after creating multiple instances (using 5.1.0-Snapshot)","user":{"login":"tuncakagan","id":8505757,"avatar_url":"https://avatars.githubusercontent.com/u/8505757?v=3","gravatar_id":"","url":"https://api.github.com/users/tuncakagan","html_url":"https://github.com/tuncakagan","followers_url":"https://api.github.com/users/tuncakagan/followers","following_url":"https://api.github.com/users/tuncakagan/following{/other_user}","gists_url":"https://api.github.com/users/tuncakagan/gists{/gist_id}","starred_url":"https://api.github.com/users/tuncakagan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuncakagan/subscriptions","organizations_url":"https://api.github.com/users/tuncakagan/orgs","repos_url":"https://api.github.com/users/tuncakagan/repos","events_url":"https://api.github.com/users/tuncakagan/events{/privacy}","received_events_url":"https://api.github.com/users/tuncakagan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-10-16T13:56:33Z","updated_at":"2015-01-23T10:49:24Z","closed_at":null,"body":"Hi everyone,\r\n\r\nEven though this error was reported and solved(#183), I still receive it even after upgrading to 5.1.0-Snapshot.  I'm creating six instances of ShowCaseViews one after another as a tutorial in my app, and I can only create 34 instances(that is, after starting the tutorial for the sixth time) before the app crashes.  Every time a new ShowCaseView is created, the heap is increased to a certain point that gives OutOfMemoryError and crashes the app.  I really love this library and its design and want to use it in my app, but right now the only solution seems to limit the user and only show the tutorial after the installation, but I want to enable the user to use the tutorial anytime.\r\n\r\nIs it really solved as described in the issue given above or is there another solution that wasn't released as a snapshot? Because I can't think of a way to overcome this problem and I desperately need help.  Thanks in advance.\r\n\r\nI am using Samsung Galaxy S3(GT-I9305) running on Android 4.3 and here is my error log:\r\n\r\n`7583-7583/de.kisi.android.plus E/AndroidRuntime﹕ FATAL EXCEPTION: main\r\n    java.lang.OutOfMemoryError\r\n            at android.graphics.Bitmap.nativeCreate(Native Method)\r\n            at android.graphics.Bitmap.createBitmap(Bitmap.java:726)\r\n            at android.graphics.Bitmap.createBitmap(Bitmap.java:703)\r\n            at android.graphics.Bitmap.createBitmap(Bitmap.java:670)\r\n            at com.github.amlcurran.showcaseview.ShowcaseView.updateBitmap(ShowcaseView.java:187)\r\n            at com.github.amlcurran.showcaseview.ShowcaseView.onGlobalLayout(ShowcaseView.java:370)\r\n            at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:839)\r\n            at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2050)\r\n            at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1249)\r\n            at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6364)\r\n            at android.view.Choreographer$CallbackRecord.run(Choreographer.java:791)\r\n            at android.view.Choreographer.doCallbacks(Choreographer.java:591)\r\n            at android.view.Choreographer.doFrame(Choreographer.java:561)\r\n            at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:777)\r\n            at android.os.Handler.handleCallback(Handler.java:730)\r\n            at android.os.Handler.dispatchMessage(Handler.java:92)\r\n            at android.os.Looper.loop(Looper.java:137)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5419)\r\n            at java.lang.reflect.Method.invokeNative(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:525)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1209)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1025)\r\n            at dalvik.system.NativeStart.main(Native Method)`"},"comment":{"url":"https://api.github.com/repos/amlcurran/ShowcaseView/issues/comments/71176923","html_url":"https://github.com/amlcurran/ShowcaseView/issues/244#issuecomment-71176923","issue_url":"https://api.github.com/repos/amlcurran/ShowcaseView/issues/244","id":71176923,"user":{"login":"GuilhermeMota93","id":7058393,"avatar_url":"https://avatars.githubusercontent.com/u/7058393?v=3","gravatar_id":"","url":"https://api.github.com/users/GuilhermeMota93","html_url":"https://github.com/GuilhermeMota93","followers_url":"https://api.github.com/users/GuilhermeMota93/followers","following_url":"https://api.github.com/users/GuilhermeMota93/following{/other_user}","gists_url":"https://api.github.com/users/GuilhermeMota93/gists{/gist_id}","starred_url":"https://api.github.com/users/GuilhermeMota93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuilhermeMota93/subscriptions","organizations_url":"https://api.github.com/users/GuilhermeMota93/orgs","repos_url":"https://api.github.com/users/GuilhermeMota93/repos","events_url":"https://api.github.com/users/GuilhermeMota93/events{/privacy}","received_events_url":"https://api.github.com/users/GuilhermeMota93/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T10:49:23Z","updated_at":"2015-01-23T10:49:23Z","body":"For the ones in need, i got it working by changing, in the ShowcaseView class, the bitmapBuffer from Bitmap.Config.ARG_8888 (which takes 4 bytes of memory) to Bitmap.Config.ALPHA_8 (which only takes 1 byte).\r\nThere's still a leak somewhere, and this \"hack\" doesn't maintain all the colors customizations made, but at least it works :D \r\nWaiting for a better approach! Take care ;)"}}