{"action":"created","issue":{"url":"https://api.github.com/repos/OneBusAway/onebusaway-android/issues/442","repository_url":"https://api.github.com/repos/OneBusAway/onebusaway-android","labels_url":"https://api.github.com/repos/OneBusAway/onebusaway-android/issues/442/labels{/name}","comments_url":"https://api.github.com/repos/OneBusAway/onebusaway-android/issues/442/comments","events_url":"https://api.github.com/repos/OneBusAway/onebusaway-android/issues/442/events","html_url":"https://github.com/OneBusAway/onebusaway-android/issues/442","id":141074447,"number":442,"title":"IllegalArgumentException - width and height must be > 0 - ShowcaseView","user":{"login":"barbeau","id":928045,"avatar_url":"https://avatars.githubusercontent.com/u/928045?v=3","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OneBusAway/onebusaway-android/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OneBusAway/onebusaway-android/milestones/1","html_url":"https://github.com/OneBusAway/onebusaway-android/milestones/Public%20v2.0.x%20release","labels_url":"https://api.github.com/repos/OneBusAway/onebusaway-android/milestones/1/labels","id":1322936,"number":1,"title":"Public v2.0.x release","description":"A public release of version v2.0.x, which is currently available to the alpha testers.","creator":{"login":"barbeau","id":928045,"avatar_url":"https://avatars.githubusercontent.com/u/928045?v=3","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":80,"state":"open","created_at":"2015-09-24T21:47:47Z","updated_at":"2016-04-04T17:42:13Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2016-03-15T19:23:26Z","updated_at":"2016-04-05T20:14:27Z","closed_at":null,"body":"From Android developer console, for v2.0.8 beta:\r\n\r\n~~~\r\njava.lang.IllegalArgumentException: width and height must be > 0\r\n\tat android.graphics.Bitmap.createBitmap(Bitmap.java:810)\r\n\tat android.graphics.Bitmap.createBitmap(Bitmap.java:789)\r\n\tat android.graphics.Bitmap.createBitmap(Bitmap.java:756)\r\n\tat com.github.amlcurran.showcaseview.ShowcaseView.updateBitmap(ShowcaseView.java:211)\r\n\tat com.github.amlcurran.showcaseview.ShowcaseView.access$100(ShowcaseView.java:51)\r\n\tat com.github.amlcurran.showcaseview.ShowcaseView$1.run(ShowcaseView.java:187)\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:211)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:5373)\r\n\tat java.lang.reflect.Method.invoke(Native Method)\r\n\tat java.lang.reflect.Method.invoke(Method.java:372)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)\r\n~~~\r\n\r\nDevice info:\r\n\r\n~~~\r\nXperia Z3 Compact (D5803)\r\nManufacturer Sony \r\nAndroid version Android 4.4 \r\nRAM (MB) 2048 \r\nScreen size 720 × 1280 \r\nScreen density (dpi) 320 \r\nOpenGL ES version 3.0 \r\nNative platform armeabi-v7a \r\nCPU make Qualcomm \r\nCPU model MSM8974AC\r\n~~~\r\n\r\nUser message:\r\n\r\n>when i try to restart the tutorial"},"comment":{"url":"https://api.github.com/repos/OneBusAway/onebusaway-android/issues/comments/205973395","html_url":"https://github.com/OneBusAway/onebusaway-android/issues/442#issuecomment-205973395","issue_url":"https://api.github.com/repos/OneBusAway/onebusaway-android/issues/442","id":205973395,"user":{"login":"barbeau","id":928045,"avatar_url":"https://avatars.githubusercontent.com/u/928045?v=3","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T20:14:27Z","updated_at":"2016-04-05T20:14:27Z","body":"Reported by another user as well, after clicking through a few screens (including real-time vehicles on map) and then restarting the tutorial.\r\n\r\nHere is where the tutorials are reset after tapping \"Help->Show tutorials\":\r\nhttps://github.com/OneBusAway/onebusaway-android/blob/master/onebusaway-android/src/main/java/org/onebusaway/android/ui/HomeActivity.java#L604\r\n\r\nCode is:\r\n\r\n~~~\r\nShowcaseViewUtils.resetAllTutorials();\r\nNavHelp.goHome(HomeActivity.this);\r\n~~~\r\n \r\n`NavHelp.goHome()` looks like this:\r\n\r\n~~~\r\nIntent intent = new Intent(context, HomeActivity.class);\r\nintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\ncontext.startActivity(intent);\r\n~~~\r\n\r\nAnd, in `HomeActivity.onCreate()` we immediately show a tutorial again (the \"Welcome\" one first - the \"Recent stops\" one will wait to be shown until the next time `HomeActivity.onCreate()` is invoked):\r\n\r\n~~~\r\n// Tutorials - only one will show at a time, so \"Welcome\" is shown before \"Recents\"\r\nShowcaseViewUtils.showTutorial(ShowcaseViewUtils.TUTORIAL_WELCOME, this, null);\r\nShowcaseViewUtils.showTutorial(ShowcaseViewUtils.TUTORIAL_RECENT_STOPS_ROUTES, this, null);\r\n~~~\r\n\r\nI'm guessing we're not properly tearing down the existing ShowcaseView before resetting everything and going back to the HomeActivity."}}