{"action":"created","issue":{"url":"https://api.github.com/repos/TheFinestArtist/FinestWebView-Android/issues/38","repository_url":"https://api.github.com/repos/TheFinestArtist/FinestWebView-Android","labels_url":"https://api.github.com/repos/TheFinestArtist/FinestWebView-Android/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/TheFinestArtist/FinestWebView-Android/issues/38/comments","events_url":"https://api.github.com/repos/TheFinestArtist/FinestWebView-Android/issues/38/events","html_url":"https://github.com/TheFinestArtist/FinestWebView-Android/issues/38","id":141813549,"number":38,"title":"OutOfMemoryError in BitmapHelper.getColoredBitmap() ","user":{"login":"urizev","id":997364,"avatar_url":"https://avatars.githubusercontent.com/u/997364?v=3","gravatar_id":"","url":"https://api.github.com/users/urizev","html_url":"https://github.com/urizev","followers_url":"https://api.github.com/users/urizev/followers","following_url":"https://api.github.com/users/urizev/following{/other_user}","gists_url":"https://api.github.com/users/urizev/gists{/gist_id}","starred_url":"https://api.github.com/users/urizev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urizev/subscriptions","organizations_url":"https://api.github.com/users/urizev/orgs","repos_url":"https://api.github.com/users/urizev/repos","events_url":"https://api.github.com/users/urizev/events{/privacy}","received_events_url":"https://api.github.com/users/urizev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-18T09:21:43Z","updated_at":"2016-03-19T10:44:40Z","closed_at":"2016-03-18T15:18:00Z","body":"Hi everyone,\r\n\r\nI don't know if anyone more have received this error:\r\n\r\n```\r\nFatal Exception: java.lang.OutOfMemoryError: Failed to allocate a 82956 byte allocation with 48202 free bytes and 47KB until OOM\r\n       at dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java)\r\n       at android.graphics.Bitmap.nativeCopy(Bitmap.java)\r\n       at android.graphics.Bitmap.copy(Bitmap.java:680)\r\n       at com.thefinestartist.finestwebview.helpers.BitmapHelper.getColoredBitmap(BitmapHelper.java:31)\r\n       at com.thefinestartist.finestwebview.helpers.BitmapHelper.getColoredBitmap(BitmapHelper.java:38)\r\n       at com.thefinestartist.finestwebview.FinestWebViewActivity.updateIcon(FinestWebViewActivity.java:834)\r\n       at com.thefinestartist.finestwebview.FinestWebViewActivity.layoutViews(FinestWebViewActivity.java:461)\r\n       at com.thefinestartist.finestwebview.FinestWebViewActivity.onCreate(FinestWebViewActivity.java:853)\r\n       at android.app.Activity.performCreate(Activity.java:6289)\r\n       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)\r\n       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655)\r\n       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2767)\r\n       at android.app.ActivityThread.access$900(ActivityThread.java:177)\r\n       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449)\r\n       at android.os.Handler.dispatchMessage(Handler.java:102)\r\n       at android.os.Looper.loop(Looper.java:145)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5951)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:372)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)\r\n```\r\n\r\nThis is the way I launching the web activity:\r\n\r\n```\r\npublic static void openUrlEmbedded(Context context, String url, String title) {\r\n     FinestWebView.Builder builder;\r\n     builder = new FinestWebView.Builder(context)\r\n                .titleColor(Color.WHITE)\r\n                .urlColor(Color.WHITE)\r\n                .iconDefaultColor(Color.WHITE)\r\n                .showIconMenu(false)\r\n                .showIconForward(false)\r\n                .showIconBack(false)\r\n                .backPressToClose(false);\r\n\r\n    if (title != null) {\r\n         builder.titleDefault(title);\r\n    }\r\n\r\n    builder.show(url);\r\n}\r\n```\r\n\r\nIt is a pretty simple code. \r\n\r\nI cannot say which url is throwing the error since the app is in production. If it really matters I could try to find out the url but I am not sure I could.\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/TheFinestArtist/FinestWebView-Android/issues/comments/198681820","html_url":"https://github.com/TheFinestArtist/FinestWebView-Android/issues/38#issuecomment-198681820","issue_url":"https://api.github.com/repos/TheFinestArtist/FinestWebView-Android/issues/38","id":198681820,"user":{"login":"urizev","id":997364,"avatar_url":"https://avatars.githubusercontent.com/u/997364?v=3","gravatar_id":"","url":"https://api.github.com/users/urizev","html_url":"https://github.com/urizev","followers_url":"https://api.github.com/users/urizev/followers","following_url":"https://api.github.com/users/urizev/following{/other_user}","gists_url":"https://api.github.com/users/urizev/gists{/gist_id}","starred_url":"https://api.github.com/users/urizev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urizev/subscriptions","organizations_url":"https://api.github.com/users/urizev/orgs","repos_url":"https://api.github.com/users/urizev/repos","events_url":"https://api.github.com/users/urizev/events{/privacy}","received_events_url":"https://api.github.com/users/urizev/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T10:44:40Z","updated_at":"2016-03-19T10:44:40Z","body":"Gotcha! Thanks @TheFinestArtist. I will try the new version and let you now if it happens again."}}