먼저 안드로이드에서 사용중입니다.
override fun onCurrentLocationUpdate(mapView: MapView?, currentLocation: MapPoint?, accuracyInMeters: Float) {
if(currentLocation != null) {
printLog(TAG, "currentLocation : ${currentLocation.mapPointGeoCoord.latitude.toString().substring(0, 6)}, ${currentLocation.mapPointGeoCoord.longitude.toString().substring(0, 6)}")
centerPoint = currentLocation
if(mapView != null) {
binding.mapView.setMapCenterPointAndZoomLevel(
MapPoint.mapPointWithGeoCoord(
currentLocation.mapPointGeoCoord.latitude,
currentLocation.mapPointGeoCoord.longitude
), 1, false
)
if (isStart) {//산책중일때(위치정보 저장)
printLog(TAG, "산책 위치")
mapView.removeAllPolylines()
mapPolyline?.addPoint(currentLocation)
mapView.addPolyline(mapPolyline)
}
}
}
}
이렇게 위치가 업데이트 되면 Polyline을 지웠다가 다시 그리는 코드를 작성했는데 시간이 지나면 이런 오류를 내면서 어플이 꺼집니다
05-16 14:09:01.116 23978 26826 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10 in tid 26826 (GLThread 33391), pid 23978 (xample.aroundog)
05-16 14:09:01.153 27325 27325 F crash_dump64: crash_dump.cpp:270] invalid core_num: -1
05-16 14:09:01.155 27325 27325 E libc : failed to read response to DumpRequest packet: No message of desired type
05-16 14:09:01.155 27325 27325 E crash_dump64: failed to connected to tombstoned to report failure
05-16 14:09:01.156 23978 26826 F libc : crash_dump helper failed to exec, or was killed
어떤 부분이 문제인지 알 수 있을까요?