Skip to content

[Fatal]: dotnet test crushed #40

Closed

Description

@AlrayQiu

Brif

When running dotnet test, the error "test host crashed" appears.
Problem lies in the test case ConcurrentTimerCreationAndDisposal_MultipleContexts.

commit 6b285dd

Platform

  • WSL
  • ubuntu 22.04
  • ros:humble
  • dotnet:7.0 8.0 9.0

log

[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.5.4.1+b9eacec401 (64-bit .NET 9.0.8)
[xUnit.net 00:00:00.19] Rcl.NET.Tests: Running tests with RclTestFramework, ProcessorCount = 12.
[xUnit.net 00:00:00.26]   Starting:    Rcl.NET.Tests (parallel test collections = on [12 threads], stop on fail = off)
The active test run was aborted. Reason: Test host process crashed

File Path

rclnet\src\Rcl.NET.Tests\ThreadSafetyTests.cs [Line 14]

Image

Activity

  1. AlrayQiu commented on Sep 15, 2025

    @AlrayQiu
    ContributorAuthor

    I changed the xUnit test run to run sequentially instead of in parallel, and the test passed without crashing.

    It passed the thread safety test, so the code is theoretically safe and shouldn't crash.

    Perhaps Xunit is doing something that causes the ROS underlying layer to release the same resources. ಠಿ_ಠ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions