Log Timestamp Alignment Doesn't Work When Opening Multiple Logs At Once

by ADMIN 72 views

Introduction

In the world of log file management, time synchronization is a crucial aspect that ensures accurate and efficient analysis of log data. However, a critical bug has been identified in the log file management system, which affects the alignment of timestamps when opening multiple logs at once. This article aims to provide a detailed description of the bug, its reproduction steps, expected behavior, and additional context to help developers and users understand the issue.

Describe the Bug

Time synchronization only appears to work if a wpilog file is opened first. This means that when multiple log files are opened simultaneously, the enabled time does not align correctly, leading to incorrect analysis and potential errors.

To Reproduce

The following steps can be taken to reproduce the behavior:

Method 1: Opening Logs through File Menu

  1. File -> Open Logs...
  2. Select three attached logs
  3. See error

Method 2: Opening Logs through Advantage Scope

  1. Open Advantage Scope
  2. Drag and drop the three attached logs
  3. See error

Method 3: Opening Logs through File Menu with Multiple Selections

  1. File -> Open Logs...
  2. Select two of the three logs (doesn't matter which, tried with both wpilog + hoot, or two hoot logs)
  3. File -> Add New Logs...
  4. Select the third log file
  5. See error

Expected Behavior

The enabled time should be aligned, regardless of how the log files were opened. This means that when multiple log files are opened simultaneously, the timestamps should be synchronized correctly, ensuring accurate analysis and efficient log file management.

Screenshots

Correct Behavior

When opening one log file first (tried with both wpilog & either hoot file), then adding the two other logs:

Image

Incorrect Behavior

When opening all three at once or opening two logs and then adding the third one:

Image

Version (Required)

Software Version

  • Version: 4.1.4
  • Distributor: FRC 6328
  • Platform: win32-x64
  • Build Date: 3/8/2025, 20:53:35 UTC
  • Electron: 32.0.2
  • Chromium: 128.0.6613.84
  • Node: 20.16.0

Additional Context

This issue can be considered an enhancement since it requires the app to pick which of the multiple initial log files is the time base to use. This means that the app should be able to automatically synchronize the timestamps when multiple log files are opened simultaneously, without requiring manual intervention.

Log Files

The following log files are attached for reference:

Introduction

In our previous article, we discussed the critical bug in log file management that affects the alignment of timestamps when opening multiple logs at once. In this article, we will address some of the frequently asked questions (FAQs) related to this issue.

Q: What is the cause of the log timestamp alignment issue?

A: The cause of the log timestamp alignment issue is due to the way the app handles multiple log files being opened simultaneously. When multiple log files are opened, the app does not automatically synchronize the timestamps, leading to incorrect analysis and potential errors.

Q: Why does the issue only occur when opening multiple logs at once?

A: The issue only occurs when opening multiple logs at once because the app is designed to pick which of the multiple initial log files is the time base to use. This means that when multiple log files are opened simultaneously, the app does not know which log file to use as the time base, leading to incorrect timestamp alignment.

Q: Can I manually synchronize the timestamps?

A: Yes, you can manually synchronize the timestamps by opening one log file first and then adding the other log files. However, this is not a practical solution, especially when working with multiple log files.

Q: Is this issue specific to a particular version of the app?

A: The issue is specific to version 4.1.4 of the app. However, it is possible that this issue may occur in other versions of the app as well.

Q: Can I attach log files to this issue?

A: Yes, you can attach log files to this issue by following the instructions provided in the previous article.

Q: How can I reproduce the issue?

A: You can reproduce the issue by following the steps provided in the previous article.

Q: What is the expected behavior?

A: The expected behavior is that the enabled time should be aligned, regardless of how the log files were opened. This means that when multiple log files are opened simultaneously, the timestamps should be synchronized correctly, ensuring accurate analysis and efficient log file management.

Q: Can I get help from the development team?

A: Yes, you can get help from the development team by providing more information about the issue, including the log files and the steps to reproduce the issue.

Q: How can I stay updated on the progress of this issue?

A: You can stay updated on the progress of this issue by following the issue tracker or by subscribing to the development team's newsletter.

Conclusion

The log timestamp alignment issue is a critical bug that affects the alignment of timestamps when opening multiple logs at once. By understanding the cause of the issue, the expected behavior, and the steps to reproduce the issue, developers and users can work together to resolve this issue and ensure accurate and efficient log file management.