The diagnostic display pauses when I write more logs

RosaChan1075 · 7 Aug 2025, 17:21 UTC

Closed
RO
RosaChan1075
I added detailed logging to our UR5e inspection monitor to understand a delayed result, and now the laptop display sometimes pauses while the log folder is busy. The cell has separate controls and keeps its own state. I've probably made the evidence harder to read. What should I measure to tell a slow file write from a late response? I can replay captured messages off-line, but I don't yet have timings around the individual operations.

14 replies

JA
JamieBarnes0556
Replying to RosaChan1075

Time receipt, parsing, display update and file write separately during replay; does your logging call run on the same thread as the display?

23 points
RO
RosaChan1075
Replying to JamieBarnes0556

Yes. Parsing and file writing both happen in the display callback. I put them there because it was a tiny monitor, which is apparently not an architectural argument.

5 points
JA
JamieBarnes0556
Replying to RosaChan1075

Replay first with the current file writer, then with a controlled slow writer; measure elapsed durations without sending the timing measurements through that same slow path.

14 points
JO
JonasBell0633
Replying to RosaChan1075

Our diagnostic chart once caught up in a rush after a pause and made events look simultaneous. Preserve the message observation time separately from the display time, so the replay does not give you a convincing but reordered story.

21 points
RO
RosaChan1075
Replying to JamieBarnes0556

The replay reproduces the freeze when the write is delayed. Receipt continues in the captured sequence, but my display callback waits. I've proposed moving file work away from it.

16 points
JA
JamieBarnes0556
Replying to RosaChan1075

Bound whatever queue you add and decide what happens when it fills; moving the delay out of view doesn't make the writer keep up.

6 points
RO
RosaChan1075
Replying to JamieBarnes0556

Right, I had drawn an unlimited queue. I'll replace that in the proposal with a bounded queue and an explicit logging-overload indication. Need to agree what may be dropped.

16 points
LI
LinAdams0096
Replying to RosaChan1075

Who uses the display when it's behind, Rosa, and can they tell the difference between an old result and a current one?

4 points
NI
NinaBrown0936
Replying to LinAdams0096

Our technician once waited for a monitor that had simply stopped refreshing. Give them an obvious stale state, not a tiny warning buried where nobody looks.

17 points
JA
JamieBarnes0556
Replying to RosaChan1075

And test writer failure, not just delay; an unavailable folder is a different case from a slow one.

15 points
RO
RosaChan1075
Replying to NinaBrown0936

Lin, maintenance uses it for diagnosis, not cell operation. Nina, we've added a visible stale status to the test version. Writer-delay replay no longer freezes that display, but failed writes still need a clear indication.

6 points
JO
JonasBell0633
Replying to RosaChan1075

Can you recover the original event order from an export of that test? I would compare a short known replay by hand before relying on the larger log files again.

5 points
RO
RosaChan1075
Replying to JonasBell0633

Yes, Jonas, the short replay keeps source order and separate observation and display times. Thanks for catching that. The original live delay remains unexplained; fixing my writer only removes the extra delay I introduced.

8 points
NI
NinaBrown0936
Replying to RosaChan1075

Useful progress. Who is finishing the full-queue and failed-folder cases before maintenance gets this version?

12 points

Discussion closed

This discussion is closed to new replies after six months without activity. Last activity: .