Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find key in given stack trace lines #23

Open
Aposhian opened this issue Dec 13, 2021 · 0 comments
Open

Could not find key in given stack trace lines #23

Aposhian opened this issue Dec 13, 2021 · 0 comments

Comments

@Aposhian
Copy link

When I try running a build and test according to the README, but on my own project, I get the following error:

[16.091s] ERROR:colcon.colcon_core.event_reactor:Exception in event handler extension 'sanitizer_report': Could not find key in given stack trace lines.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/colcon_core/event_reactor.py", line 78, in _notify_observers
    retval = observer(event)
  File "/home/adam/.local/lib/python3.8/site-packages/colcon_sanitizer_reports/event_handlers/sanitizer_report.py", line 43, in __call__
    self._handle(event)
  File "/home/adam/.local/lib/python3.8/site-packages/colcon_sanitizer_reports/event_handlers/sanitizer_report.py", line 54, in _handle
    self._log_parser.parse_line(line)
  File "/home/adam/.local/lib/python3.8/site-packages/colcon_sanitizer_reports/sanitizer_log_parser.py", line 164, in parse_line
    section = SanitizerSection(lines=tuple(lines))
  File "/home/adam/.local/lib/python3.8/site-packages/colcon_sanitizer_reports/_sanitizer_section.py", line 88, in __init__
    SanitizerSectionPart(error_name=self.error_name, lines=tuple(part_lines))
  File "/home/adam/.local/lib/python3.8/site-packages/colcon_sanitizer_reports/_sanitizer_section_part.py", line 146, in __init__
    SanitizerSectionPartStackTrace(lines=tuple(relevant_stack_trace_lines))
  File "/home/adam/.local/lib/python3.8/site-packages/colcon_sanitizer_reports/_sanitizer_section_part_stack_trace.py", line 77, in __init__
    assert key is not None, 'Could not find key in given stack trace lines.'
AssertionError: Could not find key in given stack trace lines.

Do my tests need special instrumentation to support this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant