{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6839","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6839/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6839/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6839/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/6839","id":185635905,"number":6839,"title":"Caused by java.lang.RuntimeException: The dimensions from location and bearing drawables should be match","user":{"login":"DmitryTankovich","id":5974230,"avatar_url":"https://avatars.githubusercontent.com/u/5974230?v=3","gravatar_id":"","url":"https://api.github.com/users/DmitryTankovich","html_url":"https://github.com/DmitryTankovich","followers_url":"https://api.github.com/users/DmitryTankovich/followers","following_url":"https://api.github.com/users/DmitryTankovich/following{/other_user}","gists_url":"https://api.github.com/users/DmitryTankovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryTankovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryTankovich/subscriptions","organizations_url":"https://api.github.com/users/DmitryTankovich/orgs","repos_url":"https://api.github.com/users/DmitryTankovich/repos","events_url":"https://api.github.com/users/DmitryTankovich/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryTankovich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-27T10:55:31Z","updated_at":"2016-10-31T08:53:42Z","closed_at":null,"body":"Devices Samsung SM-G925F, SM-G920F\nOS 6.0.1\ncom.mapbox.mapboxsdk:mapbox-android-sdk:4.1.1@aar\n\nCaused by java.lang.RuntimeException: The dimensions from location and bearing drawables should be match\n       at com.mapbox.mapboxsdk.maps.widgets.MyLocationView.setForegroundDrawables(SourceFile:156)\n       at com.mapbox.mapboxsdk.maps.widgets.MyLocationViewSettings.setForegroundDrawable(SourceFile:101)\n       at com.mapbox.mapboxsdk.maps.MapView.setInitialState(SourceFile:283)\n       at com.mapbox.mapboxsdk.maps.MapView.initialize(SourceFile:247)\n       at com.mapbox.mapboxsdk.maps.MapView.(SourceFile)\n       at mapbox.BaseMapView.(SourceFile)\n       at mapbox.MMapView.(SourceFile)\n       at java.lang.reflect.Constructor.newInstance(Constructor.java)\n       at android.view.LayoutInflater.createView(LayoutInflater.java:631)\n       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:776)\n       at android.view.LayoutInflater.parseInclude(LayoutInflater.java:966)\n       at android.view.LayoutInflater.rInflate(LayoutInflater.java:843)\n       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)\n       at android.view.LayoutInflater.rInflate(LayoutInflater.java:855)\n       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)\n       at android.view.LayoutInflater.rInflate(LayoutInflater.java:855)\n       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)\n       at android.view.LayoutInflater.rInflate(LayoutInflater.java:855)\n       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)\n       at android.view.LayoutInflater.inflate(LayoutInflater.java:527)\n       at android.view.LayoutInflater.inflate(LayoutInflater.java:429)\n       at android.view.LayoutInflater.inflate(LayoutInflater.java:380)\n       at android.support.v7.app.AppCompatDelegateImplV9.setContentView(SourceFile:284)\n       at android.support.v7.app.AppCompatActivity.setContentView(SourceFile:140)\n       at ui_activities.MainActivity.onCreate(SourceFile:153)\n       at android.app.Activity.performCreate(Activity.java:6876)\n       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)\n       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)\n       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)\n       at android.app.ActivityThread.access$1100(ActivityThread.java:222)\n       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)\n       at android.os.Handler.dispatchMessage(Handler.java:102)\n       at android.os.Looper.loop(Looper.java:158)\n       at android.app.ActivityThread.main(ActivityThread.java:7229)\n       at java.lang.reflect.Method.invoke(Method.java)\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)\n"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/257242129","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/6839#issuecomment-257242129","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6839","id":257242129,"user":{"login":"tobrun","id":2151639,"avatar_url":"https://avatars.githubusercontent.com/u/2151639?v=3","gravatar_id":"","url":"https://api.github.com/users/tobrun","html_url":"https://github.com/tobrun","followers_url":"https://api.github.com/users/tobrun/followers","following_url":"https://api.github.com/users/tobrun/following{/other_user}","gists_url":"https://api.github.com/users/tobrun/gists{/gist_id}","starred_url":"https://api.github.com/users/tobrun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobrun/subscriptions","organizations_url":"https://api.github.com/users/tobrun/orgs","repos_url":"https://api.github.com/users/tobrun/repos","events_url":"https://api.github.com/users/tobrun/events{/privacy}","received_events_url":"https://api.github.com/users/tobrun/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T08:53:42Z","updated_at":"2016-10-31T08:53:42Z","body":"@DmitryTankovich any more information on this issue? \r\nThe exception thrown shows that the sizes from those 2 drawables do not match:\r\n\r\n`MyLocationViewSettings`:\r\n\r\n```java\r\n  /**\r\n     * Set the foreground drawable of the MyLocationView\r\n     * <p>\r\n     * The foreground drawable is the image visible on screen\r\n     * </p>\r\n     *\r\n     * @param foregroundDrawable        the drawable to show as foreground without bearing\r\n     * @param foregroundBearingDrawable the drawable to show as foreground when bearing is enabled\r\n     */\r\n    public void setForegroundDrawable(Drawable foregroundDrawable, Drawable foregroundBearingDrawable) {\r\n        this.foregroundDrawable = foregroundDrawable;\r\n        this.foregroundBearingDrawable = foregroundBearingDrawable;\r\n        myLocationView.setForegroundDrawables(foregroundDrawable, foregroundBearingDrawable);\r\n    }\r\n```\r\n\r\nTo have a correctly working transformation the 2 state images should match."}}
{"actor":{"display_login":"tobrun"}}