IllegalStateException: getMap()

0 投票

使用产品 imobile-for-android 1001 操作系统 android 8.1.0

数据类型 文件型 

问题详细描述:在后台收到崩溃信息,看到是超图的内部抛出的异常。

堆栈如下,请问如何解决这个问题

java.lang.IllegalStateException: getMap()

at com.supermap.mapping.MapControl2.getMap(MapControl2.java:1170)
at com.supermap.mapping.MapControl.getMap(MapControl.java:486)
at com.supermap.mapping.MapDynParams.onMultiTouchOnParams(MapDynParams.java:304)
at com.supermap.mapping.MapView.dispatchTouchEvent(MapView.java:430)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3196)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2919)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3196)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2919)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3196)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2919)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3196)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2919)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3196)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2919)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3196)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2919)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3196)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2919)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3196)
at android.view.ViewGroup.cancelAndClearTouchTargets(ViewGroup.java:3052)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3988)
at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:4438)
at android.view.ViewRootImpl.doDie(ViewRootImpl.java:7656)
at android.view.ViewRootImpl.die(ViewRootImpl.java:7622)
at android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:570)
at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:501)
at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:172)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5737)
at android.app.ActivityThread.handleRelaunchActivityInner(ActivityThread.java:6024)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5938)
at android.app.servertransaction.ActivityRelaunchItem.execute(ActivityRelaunchItem.java:69)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2473)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8349)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)

11月 5, 2020 分类:  75次浏览 | 用户: mxc 牛刀小试 (108 分)

1个回答

0 投票
您好,您那边看下你的布局里面写的是MapView还是MapControl呢。代码是怎么写的,能否贴出您的代码或者写一个简单能实现的工程发我
11月 5, 2020 用户: 董懿鑫 登峰造极 (7,405 分)
你好,使用的 布局里写的是 MapView 。

MapControl 和MapView 有区别吗?

这个不是必现的问题,我也是在后台看见几条日志。

而且堆栈里没有任何我自身的代码痕迹,都是超图SDK的堆栈信息,我无从查起

写的Demo 也不一定能复现出来。
现在的版本都是使用的MapView,MapView相当于是存发地图控件的一个容器,直接将我们地图相关的view存放在MapView上,比如mapcontrol、DynamicView。看报错这个应该是MapView初始化失败了,复现后重启app能解决吗
现在还没有复现出来这个问题。
您那边复现的时候可以具体截一下日志,然后重启一下看能否解决
好的,我再试试能不能复现出来
...