Skip to content

Simulator crashes with SIGSEGV on NVIDIA GPU + SDL2 #16

@Amperstrand

Description

@Amperstrand

Summary

Running the unix simulator crashes immediately with signal 11 (SIGSEGV) on systems with NVIDIA GPU drivers and SDL2.

$ cd test && ../bin/micropython_unix run_tests.py
# crashes with SIGSEGV, exit code -11

Workaround

SDL_VIDEODRIVER=software python3 run_tests.py

Or set SDL_VIDEODRIVER=software as an environment variable before running.

Environment

  • NVIDIA GPU (confirmed on multiple cards)
  • SDL2 with hardware-accelerated video driver
  • Ubuntu Linux

Proposed fix

Add a SIGSEGV check in test/integration/util/controller.py SimController.start() — detect proc.poll() == -11 and print the workaround message. Alternatively, set SDL_VIDEODRIVER=software automatically in the test runner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: lowNice to have, not blockingupstreamIssues that should be submitted upstream

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions