{"action":"created","issue":{"url":"https://api.github.com/repos/ArthurHub/Android-Image-Cropper/issues/137","repository_url":"https://api.github.com/repos/ArthurHub/Android-Image-Cropper","labels_url":"https://api.github.com/repos/ArthurHub/Android-Image-Cropper/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/ArthurHub/Android-Image-Cropper/issues/137/comments","events_url":"https://api.github.com/repos/ArthurHub/Android-Image-Cropper/issues/137/events","html_url":"https://github.com/ArthurHub/Android-Image-Cropper/issues/137","id":168292465,"number":137,"title":"java.lang.IllegalArgumentException: width/height must be > 0","user":{"login":"devappmin","id":4322099,"avatar_url":"https://avatars.githubusercontent.com/u/4322099?v=3","gravatar_id":"","url":"https://api.github.com/users/devappmin","html_url":"https://github.com/devappmin","followers_url":"https://api.github.com/users/devappmin/followers","following_url":"https://api.github.com/users/devappmin/following{/other_user}","gists_url":"https://api.github.com/users/devappmin/gists{/gist_id}","starred_url":"https://api.github.com/users/devappmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devappmin/subscriptions","organizations_url":"https://api.github.com/users/devappmin/orgs","repos_url":"https://api.github.com/users/devappmin/repos","events_url":"https://api.github.com/users/devappmin/events{/privacy}","received_events_url":"https://api.github.com/users/devappmin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-29T10:05:24Z","updated_at":"2016-07-29T11:45:02Z","closed_at":null,"body":"On some device, when I do \r\n`Bitmap bitmap = cropImageView.getCroppedImage()`\r\n Then It makes illegalargumentexception like \r\n\r\njava.lang.RuntimeException:\r\n Failed to load sampled bitmap: content://media/external/images/media/31373\r\nwidth must be > 0\r\n\tat com.theartofdev.edmodo.cropper.BitmapUtils.cropBitmap(BitmapUtils.java:218)\r\n\tat com.theartofdev.edmodo.cropper.CropImageView.getCroppedImage(CropImageView.java:566)\r\n\tat com.theartofdev.edmodo.cropper.CropImageView.getCroppedImage(CropImageView.java:544)\r\n\tat com.petabyte.composewatch.Activity.CropActivity.onOptionsItemSelected(CropActivity.java:71)\r\n\tat android.app.Activity.onMenuItemSelected(Activity.java:3205)\r\n\tat android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:421)\r\n\tat android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:188)\r\n\tat android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)\r\n\tat android.support.v7.app.AppCompatDelegateImplV7.onMenuItemSelected(AppCompatDelegateImplV7.java:663)\r\n\tat android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:810)\r\n\tat android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)\r\n\tat android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:957)\r\n\tat android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:947)\r\n\tat android.support.v7.widget.ActionMenuView.invokeItem(ActionMenuView.java:618)\r\n\tat android.support.v7.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:155)\r\n\tat android.view.View.performClick(View.java:5698)\r\n\tat android.widget.TextView.performClick(TextView.java:10855)\r\n\tat android.view.View$PerformClick.run(View.java:22565)\r\n\tat android.os.Handler.handleCallback(Handler.java:739)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n\tat android.os.Looper.loop(Looper.java:158)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:7230)\r\n\tat java.lang.reflect.Method.invoke(Native Method)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)\r\nCaused by: java.lang.IllegalArgumentException: width must be > 0\r\n\tat android.graphics.Bitmap.checkWidthHeight(Bitmap.java:443)\r\n\tat android.graphics.Bitmap.createBitmap(Bitmap.java:822)\r\n\tat com.theartofdev.edmodo.cropper.BitmapUtils.cropBitmap(BitmapUtils.java:158)\r\n\tat com.theartofdev.edmodo.cropper.BitmapUtils.cropBitmap(BitmapUtils.java:214)\r\n\r\nDo you know why it occur?"},"comment":{"url":"https://api.github.com/repos/ArthurHub/Android-Image-Cropper/issues/comments/236160154","html_url":"https://github.com/ArthurHub/Android-Image-Cropper/issues/137#issuecomment-236160154","issue_url":"https://api.github.com/repos/ArthurHub/Android-Image-Cropper/issues/137","id":236160154,"user":{"login":"ArthurHub","id":5463635,"avatar_url":"https://avatars.githubusercontent.com/u/5463635?v=3","gravatar_id":"","url":"https://api.github.com/users/ArthurHub","html_url":"https://github.com/ArthurHub","followers_url":"https://api.github.com/users/ArthurHub/followers","following_url":"https://api.github.com/users/ArthurHub/following{/other_user}","gists_url":"https://api.github.com/users/ArthurHub/gists{/gist_id}","starred_url":"https://api.github.com/users/ArthurHub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArthurHub/subscriptions","organizations_url":"https://api.github.com/users/ArthurHub/orgs","repos_url":"https://api.github.com/users/ArthurHub/repos","events_url":"https://api.github.com/users/ArthurHub/events{/privacy}","received_events_url":"https://api.github.com/users/ArthurHub/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T11:45:02Z","updated_at":"2016-07-29T11:45:02Z","body":"That is strange... need more data:\r\nDo you use the latest version? looks like you do but I want to make sure.\r\nDo you use fixed aspect ratio? if so what is it?\r\nCan you reproduce it or you see it from production?\r\nDo you know on which devices it happens?"}}
{"actor":{"display_login":"ArthurHub"}}