AnsweredAssumed Answered

Bug: FreeRTOS task viewer crashes

Question asked by Dave Nadler on Nov 21, 2016
Latest reply on Nov 29, 2016 by Dave Nadler

Trying to use the FreeRTOS task viewer shows the following error for ~one second and then KDS switches to a different tab:

The TAD log shows:

"FreeRTOS Task Aware Debugger for GDB" version 1.0.1 (201610061345)
(c) 2016 NXP Semiconductors, Inc.
==================================
11:28:44.913 INFO: [TadModel] DSF session ID 1 has started.
11:28:48.768 INFO: [TadState] TAD state changed:  DEBUG_STARTED -> DEBUG_INIT_0 (SUSPENDED, USER_REQUEST)
11:29:34.50 INFO: [TadState] TAD state changed:  DEBUG_INIT_0 -> DEBUG_INIT_1 (RESUMED, USER_REQUEST)
11:29:34.339 INFO: [TadState] TAD state changed:  DEBUG_INIT_1 -> DEBUG_SUSPENDED (SUSPENDED, BREAKPOINT)
11:29:41.189 INFO: [TadState] TAD state changed:  DEBUG_SUSPENDED -> DEBUG_RESUMED (RESUMED, USER_REQUEST)
11:30:15.444 INFO: [TadState] TAD state changed:  DEBUG_RESUMED -> READY (SUSPENDED, SIGNAL)
11:30:15.453 INFO: [Benchmark] Loading data for "Task List" has started.
11:30:16.620 INFO: [FreeRTOS] FreeRTOS macro "configGENERATE_RUN_TIME_STATS" is disabled.
11:30:19.863 ERROR: [MemoryReader] Could not get memory block! Invalid address "0x1fff1358" and/or "0x12dc" length!
11:30:20.365 INFO: [FreeRTOS] FreeRTOS macro "configUSE_TRACE_FACILITY" is disabled.
11:30:20.866 EXCEPTION: [TaskFactory] ReadingException in class "com.nxp.freertos.gdb.tad.controller.tasklist.TaskFactory" at 242. line when calling method "readLongAtAddress(0x1fff26e8, tskTaskControlBlock, xEventListItem.pvContainer)"
    com.nxp.freertos.gdb.tad.controller.TadFactory.readLongAtAddress(TadFactory.java:160)
    com.nxp.freertos.gdb.tad.controller.tasklist.TaskFactory.readTasksFromList(TaskFactory.java:242)
    com.nxp.freertos.gdb.tad.controller.tasklist.TaskFactory.getData(TaskFactory.java:135)
    com.nxp.freertos.gdb.tad.model.TadModel$3.execute(TadModel.java:257)
    com.nxp.freertos.gdb.tad.model.TadModel$4.run(TadModel.java:366)
11:30:20.866 ERROR: [TadFactoryData] Could not load data for "Task List" view! For more information check TAD log
11:30:20.866 INFO: [Benchmark] Loading data for "Task List" took 5413 ms.
11:30:20.866 INFO: [Benchmark] Loading data for "Task List" has started.
11:30:21.367 EXCEPTION: [TaskFactory] ReadingException in class "com.nxp.freertos.gdb.tad.controller.tasklist.TaskFactory" at 108. line when calling method "getSize(pxReadyTasksLists)"
    com.nxp.freertos.gdb.tad.controller.TadFactory.getSize(TadFactory.java:118)
    com.nxp.freertos.gdb.tad.controller.tasklist.TaskFactory.getData(TaskFactory.java:108)
    com.nxp.freertos.gdb.tad.model.TadModel$3.execute(TadModel.java:257)
    com.nxp.freertos.gdb.tad.model.TadModel$4.run(TadModel.java:366)
11:30:21.368 ERROR: [TadFactoryData] Could not load data for "Task List" view! For more information check TAD log
11:30:21.368 INFO: [Benchmark] Loading data for "Task List" took 502 ms.
11:31:12.824 INFO: [TadModel] DSF session ID 1 has ended.

The FreeRTOSviewer worked a few days ago on this project (no obviously relevant changes since it was working).

Anybody seen this bug? Work-around?
Thanks in advance,
Best Regards, Dave

PS: FreeRTOSConfig.h is attached...

 

OpenOCD window seems to show reading a bad pointer?

Here's the FreeRTOS plugin installation detail:

Another slightly different crash:

Original Attachment has been moved to: .log.zip

Original Attachment has been moved to: FreeRTOSConfig.h.zip

Outcomes