<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGISRuntimeException from CoreMapView.nativeSetViewpointScaleAsync in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisruntimeexception-from-coremapview/m-p/62238#M447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gunther - Unfortunately I cannot reproduce the issue.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jul 2019 14:57:29 GMT</pubDate>
    <dc:creator>LukeKim</dc:creator>
    <dc:date>2019-07-16T14:57:29Z</dc:date>
    <item>
      <title>ArcGISRuntimeException from CoreMapView.nativeSetViewpointScaleAsync</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisruntimeexception-from-coremapview/m-p/62236#M445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: rgba(0, 0, 0, 0.87); background-color: white; border: 0px; font-size: 13px;"&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;SPAN style="color: inherit; border: 0px; font-weight: bold; font-size: inherit;"&gt;&lt;STRONG&gt;Hello,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;SPAN style="color: inherit; border: 0px; font-weight: bold; font-size: inherit;"&gt;&lt;STRONG&gt;The following stack trace is form Google Play Console. Can someone please look into this?&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;SPAN style="color: inherit; border: 0px; font-weight: bold; font-size: inherit;"&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;SPAN style="color: inherit; border: 0px; font-weight: bold; font-size: inherit;"&gt;&lt;STRONG&gt;Luke&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;------------------------------------------------------------&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: inherit; font-weight: bold; font-size: inherit;"&gt;&lt;STRONG&gt;Android Version: Android 9&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: inherit; font-weight: bold; font-size: inherit;"&gt;&lt;STRONG&gt;Device: crownqlteue (Samsung Galaxy Note9)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;SPAN style="color: inherit; border: 0px; font-weight: bold; font-size: inherit;"&gt;&lt;STRONG&gt;// build.gradle&lt;BR /&gt; implementation 'com.esri.arcgisruntime:arcgis-android:100.5.0'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;------------------------------------------------------------&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;com.esri.arcgisruntime.ArcGISRuntimeException:&lt;BR /&gt;at com.esri.arcgisruntime.internal.jni.CoreMapView.nativeSetViewpointScaleAsync (CoreMapView.java)&lt;BR /&gt;at com.esri.arcgisruntime.internal.jni.CoreMapView.b (CoreMapView.java:466)&lt;BR /&gt;at com.esri.arcgisruntime.internal.h.b.o.b (o.java:389)&lt;BR /&gt;at com.esri.arcgisruntime.mapping.view.MapView.setViewpointScaleAsync (MapView.java:509)&lt;BR /&gt;at ##########################.zoomOut (##########BaseGisMap.java:272)&lt;BR /&gt;at ##########################Fragment.zoomOut (##########GisMapFragment.java:202)&lt;BR /&gt;at ##########################.-$$Lambda$h3MyHBBt8NtlFxN6xy62Sz5lvRo.execute (-.java:2)&lt;BR /&gt;at ##########################.databinding.FragmentGisMapControlsBindingImpl._internalCallbackOnClick (FragmentGisMapControlsBindingImpl.java:656)&lt;BR /&gt;at com.wssc.util.generated.callback.OnClickListener.onClick (OnClickListener.java:11)&lt;BR /&gt;at android.view.View.performClick (View.java:7333)&lt;BR /&gt;at android.view.View.performClickInternal (View.java:7299)&lt;BR /&gt;at android.view.View.access$3200 (View.java:846)&lt;BR /&gt;at android.view.View$PerformClick.run (View.java:27774)&lt;BR /&gt;at android.os.Handler.handleCallback (Handler.java:873)&lt;BR /&gt;at android.os.Handler.dispatchMessage (Handler.java:99)&lt;BR /&gt;at android.os.Looper.loop (Looper.java:214)&lt;BR /&gt;at android.app.ActivityThread.main (ActivityThread.java:6981)&lt;BR /&gt;at java.lang.reflect.Method.invoke (Method.java)&lt;BR /&gt;at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)&lt;BR /&gt;at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1445)&lt;/P&gt;&lt;DIV style="color: rgba(0, 0, 0, 0.87); background-color: white; border: 0px; font-size: 13px;"&gt;&lt;DIV class="" style="color: inherit; background-color: #f8f8f8; border: 0px; font-weight: inherit; font-size: inherit;"&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: inherit; border: 0px;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 17:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisruntimeexception-from-coremapview/m-p/62236#M445</guid>
      <dc:creator>LukeKim</dc:creator>
      <dc:date>2019-07-09T17:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISRuntimeException from CoreMapView.nativeSetViewpointScaleAsync</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisruntimeexception-from-coremapview/m-p/62237#M446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are able to reproduce this in your app, I recommend you try to catch the ArcGISRuntimeException thrown in `&lt;SPAN style="background-color: #ffffff;"&gt;MapView.setViewpointScaleAsync()&lt;/SPAN&gt;` and inspect the exception's message and additionalMessage properties. That might give some useful information as to what might be going wrong.&lt;/P&gt;&lt;P&gt;One possibility is that an invalid scale value is passed to&amp;nbsp;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;MapView.setViewpointScaleAsync()&lt;/SPAN&gt;&lt;SPAN&gt;`, for example a negative value. This would definitely cause an&amp;nbsp;ArcGISRuntimeException to be thrown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Gunther&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 19:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisruntimeexception-from-coremapview/m-p/62237#M446</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2019-07-09T19:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISRuntimeException from CoreMapView.nativeSetViewpointScaleAsync</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisruntimeexception-from-coremapview/m-p/62238#M447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gunther - Unfortunately I cannot reproduce the issue.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisruntimeexception-from-coremapview/m-p/62238#M447</guid>
      <dc:creator>LukeKim</dc:creator>
      <dc:date>2019-07-16T14:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISRuntimeException from CoreMapView.nativeSetViewpointScaleAsync</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisruntimeexception-from-coremapview/m-p/62239#M448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gunther,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another issue.&amp;nbsp;Crashes caused&amp;nbsp;by the following stacktrace are trending now. Can your team please look into this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This stacktrace seems out of nowhere. It is not directly associated with any of our android code. Unfortunately I cannot reproduce this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fatal Exception: com.esri.arcgisruntime.ArcGISRuntimeException: Invalid argument&lt;BR /&gt; at com.esri.arcgisruntime.internal.jni.CoreMapView.nativeGetMagnifierEnabled(CoreMapView.java)&lt;BR /&gt; at com.esri.arcgisruntime.internal.jni.CoreMapView.q + 190(CoreMapView.java:190)&lt;BR /&gt; at com.esri.arcgisruntime.internal.h.b.o.s + 304(o.java:304)&lt;BR /&gt; at com.esri.arcgisruntime.mapping.view.MapView.isMagnifierEnabled + 383(MapView.java:383)&lt;BR /&gt; at com.esri.arcgisruntime.mapping.view.DefaultMapViewOnTouchListener.onLongPress + 643(DefaultMapViewOnTouchListener.java:643)&lt;BR /&gt; at com.esri.arcgisruntime.mapping.view.DefaultMapViewOnTouchListener$2.run + 164(DefaultMapViewOnTouchListener.java:164)&lt;BR /&gt; at android.os.Handler.handleCallback + 789(Handler.java:789)&lt;BR /&gt; at android.os.Handler.dispatchMessage + 98(Handler.java:98)&lt;BR /&gt; at android.os.Looper.loop + 164(Looper.java:164)&lt;BR /&gt; at android.app.ActivityThread.main + 6944(ActivityThread.java:6944)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java)&lt;BR /&gt; at com.android.internal.os.Zygote$MethodAndArgsCaller.run + 327(Zygote.java:327)&lt;BR /&gt; at com.android.internal.os.ZygoteInit.main + 1374(ZygoteInit.java:1374)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 15:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisruntimeexception-from-coremapview/m-p/62239#M448</guid>
      <dc:creator>LukeKim</dc:creator>
      <dc:date>2019-07-16T15:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISRuntimeException from CoreMapView.nativeSetViewpointScaleAsync</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisruntimeexception-from-coremapview/m-p/62240#M449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Judging from the call stack the users does a long press on the MapView which causes the magnifier to be shown (I assume you have enabled the magnifier via `MapView.setMagnifierEnabled()`?). There are two possibilities why this could be causing the Invalid argument exception:&lt;BR /&gt;1. Invalid screen coordinates are set when the magnifier is shown.&lt;/P&gt;&lt;P&gt;2. As the user pans the map while the magnifier is visible, invalid screen coordinates are set for panning the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how either of these cases could be reproduced, but it might be worth to try these workflows in your app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gunther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 14:58:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgisruntimeexception-from-coremapview/m-p/62240#M449</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2019-07-17T14:58:33Z</dc:date>
    </item>
  </channel>
</rss>

