Ticket Created
over 5 years ago

WERETECH-9597

Garmin 530 Maptrackview Device crash

Hi

When trying to draw on top of a mapview or maptrackview the device crashes and restarts. Works perfectly on the simulator but not on the actual device.

Error log below.

Any ideas on the issue?

[
{
"unit_id":"3314263625",
"product_name":"Edge 530",
"software_part_number":"006-B3121-00",
"ms_since_epoch":1598646976000,
"system_version":"6.00",
"build_type":"PRODUCTION",
"backtrace":"
Function Address: 0x6070AFC8
   Call Address at Function: 0x6070BEB4

Function Address: 0x60709F84
   Call Address at Function: 0x6070A0B6

Function Address: 0x604AE620
   Call Address at Function: 0x604AE7D4

Function Address: 0x604B15A0
   Call Address at Function: 0x604B1648

Function Address: 0x604B16C2
   Call Address at Function: 0x604B193C

Function Address: 0x604B2F54
   Call Address at Function: 0x604B2F66

Function Address: 0x60490ED4
   Call Address at Function: 0x60490F90

Function Address: 0x604AAC1C
   Call Address at Function: 0x604AADB4

Function Address: 0x60431FFC
   Call Address at Function: 0x604320A8

Function Address: 0x60222B9C
   Call Address at Function: 0x60222BBC

Function Address: 0x60250158
   Call Address at Function: 0x602501AC

Function Address: 0x6024FFA8
   Call Address at Function: 0x60250030

Function Address: 0x600E71B0
   Call Address at Function: 0x600E7CEA

Function Address: 0x60431E74
   Call Address at Function: 0x60431E86

Function Address: 0x609BCE5A
   Call Address at Function: 0x609BD0CA

Function Address: 0x6043144C
   Call Address at Function: 0x60431488

Function Address: 0x60430D18
   Call Address at Function: 0x60430D3A

Function Address: 0x60431708
   Call Address at Function: 0x6043179E

Function Address: 0x60214000
   Call Address at Function: 0x6021407C

",
"error_cause":"RTL Trap",
"proprietary_info":{
    "Commit ID":"2d0bc753c0b194019d3d731404ccbdc0cb6f883c",
    "Time":"2020-8-28 22:36:16",
    "Project Specific":"2020-8-28 22:36:16",
    "CDP_LOG":"605CE741,6044BE99,605B5C5D,6020894D,605CDADD,6020894D,601C6919,601C6919,605B5791,",
    "RTL Error Number":"6E5D8024",
    "Error Message":"00000000,FFFFFF00,00000018,0000F7EB,D08FBF80,00000000,00000102,0000003F,0000007A,0000007A,60B87284,61EDB43C,61EDB48C,61EDB3E8,6070BAD4,6070BEB4,2000001F",
    "Task Name":"CDP main",
    "Saved SP":"61EDB3E8",
    "Saved LR":"6070BAD4",
    "Saved PC":"6070BEB4",
    "R[0]":"00000000",
    "R[1]":"FFFFFF00",
    "R[2]":"00000018",
    "R[3]":"0000F7EB",
    "R[4]":"D08FBF80",
    "R[5]":"00000000",
    "R[6]":"00000102",
    "R[7]":"0000003F",
    "R[8]":"0000007A",
    "R[9]":"0000007A",
    "R[10]":"60B87284",
    "R[11]":"61EDB43C",
    "R[12]":"61EDB48C",
    "R[13]":"61EDB3E8",
    "R[14]":"6070BAD4",
    "R[15]":"6070BEB4",
    "cpsr":"2000001F"
    }

}
]

  • Something not related to the crash.  In the sim you don't see this, but on the actual device, the map scale is displayed at the bottom right corner, and you're covering that.  On watches, the scale is displayed at the bottom center.  Also, at night, there can be a black background to the map instead of a white one.

    Are you using Ui.requestUpdate() to update the MapTrackView, or are you letting the view take care of itself?

  • I would like to have two variables below the map and possibly adjust a polyline or add a map marker.

  • What all are you trying to draw?  With my app, the main thing I do is a dc.drawText(), and then only occasionally.  I let the view handle the track, though sometimes i add a marker.

  • Thanks for the reply Jim. My device is still crashing after waiting. Works fine if I don't try draw anything but an empty map is not very useful.

  • This is kind of an odd one.  I've not used my Hike2 app on the 530 in a while, but it was working fine.  Tried it today, and I was seeing the same crash as you when I was doing dc.drawText() calls in onUpdate for the MapTrackView.  But, if after starting the app. I waited a couple minutes before switching to the MapTrackView, no crashes.  It's almost like something with the view wasn't set up at the beginning (it's a native view so not sure what) but was fine later.

    Is this something you can try in your app?  See if things work if you wait a few minutes before going to the MapTrackView?