Skip to content

Segmentation fault when pairing BLE device #2764

@figuripv6o

Description

@figuripv6o

Describe the problem

While attempting to pair a BLE device (MAC: 62:27:4D:01:A8:94) using the Arduino IDE, the application unexpectedly crashes with a segmentation fault. This occurs consistently whenever the pairing request is triggered, and the IDE is unable to recover unless force restarted. BLE pairing works fine outside the IDE.

To reproduce

To repr🐞 GitHub Bug Report Draft (for Arduino IDE crash)

  1. Launch Arduino IDE

  2. Activate BLE device (ESP32 with BLE advertising enabled)

  3. Try to connect or scan from within the IDE

  4. Observe crash or "Segmentation fault" message

Expected behavior

The Arduino IDE should scan and list nearby BLE devices without crashing. If a device is not pairable, an error should be logged, but the application should remain stable and usable.

Arduino IDE version

Arduino IDE version: Arduino IDE 2.3.2 (or replace with your exact version if different)

Operating system

Linux

Operating system version

Operating system version: Termux 0.119.1 / Android 13

Additional context

BLE device used was an ESP32 advertising a custom service via Arduino code. Crash appears related to internal BLE stack or Java bridge on scan/pair attempt. Device MAC: 62:27:4D:01:A8:94.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions