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

MacOS simulator crashes when Xbox controller is connected #7718

Open
mjansen4857 opened this issue Jan 22, 2025 · 1 comment
Open

MacOS simulator crashes when Xbox controller is connected #7718

mjansen4857 opened this issue Jan 22, 2025 · 1 comment
Labels
type: bug Something isn't working.

Comments

@mjansen4857
Copy link
Contributor

Describe the bug
If an Xbox controller is connected to a macOS computer (in my case it's wireless through bluetooth) the simulator will crash when run. Disconnecting the controller allows the simulator to run normally.

Console output:

> Task :simulateJavaRelease FAILED
HAL Extensions: Attempting to load: libhalsim_gui
Simulator GUI Initializing.
Simulator GUI Initialized!
HAL Extensions: Successfully loaded extension
********** Robot program starting **********
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000197137458, pid=33322, tid=259
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.12+7 (17.0.12+7) (build 17.0.12+7)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.12+7 (17.0.12+7, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# C  [CoreFoundation+0x14f458]  CF_IS_OBJC+0x18
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/mjansen/Dev/RobotCode2025/hs_err_pid33322.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
7 actionable tasks: 6 executed, 1 up-to-date
NT: Listening on NT3 port 1735, NT4 port 5810

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':simulateJavaRelease'.
> Process 'command '/Users/mjansen/wpilib/2025/jdk/bin/java'' finished with non-zero exit value 134

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 1s
4:09:32 PM: Execution finished 'simulateJava'.

To Reproduce
Steps to reproduce the behavior:

  1. Connect Xbox controller to macOS system
  2. Launch robot code simulator

Expected behavior
Simulator should run when controllers are connected, and allow them to be mapped/used.

Desktop (please complete the following information):

  • OS: macOS 15.1.1
  • Project Information:
WPILib Information:
Project Version: 2025.2.1
VS Code Version: 1.96.2
WPILib Extension Version: 2025.2.1
C++ Extension Version: 1.23.2
Java Extension Version: 1.38.0
Java Debug Extension Version: 0.58.1
Java Dependencies Extension Version 0.24.1
Java Version: 17
Java Location: /Users/mjansen/wpilib/2025/jdk
Vendor Libraries:
   AdvantageKit (4.0.0)
   PathplannerLib (2025.2.1)
   CTRE-Phoenix (v6) (25.2.0)
   WPILib-New-Commands (1.0.0)
@mjansen4857 mjansen4857 added the type: bug Something isn't working. label Jan 22, 2025
@KangarooKoala
Copy link
Contributor

I'll work on some more detailed testing when I have time (which might not be for a while), but I was able to run simulation on the :devRobot project in allwpilib with a Logitech controller connected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants