Describe the bug
Crash on startup.
To Reproduce
cargo run will crash.
Additional context
Trying to debugging this to no avail. This is kind of head-scratcher. Let me know if there's something you want me to try or code to write.
Older versions (for example git ref 5d9485885f0a6bb0e0a6c710e99e2937f3af0dcc) will run inside lldb, but cargo run and target/debug/buttplug-lite will always crash.
Currently, checkout from master and cargo run will crash and running it inside lldb will crash. I've been trying to figure it out on my own, but figured i submit a bug in case its something you had seen before.
Running in side lldb
(lldb) target create "target/debug/buttplug-lite"
Current executable set to '/Users/gibberton/source/rust/buttplug-lite/target/debug/buttplug-lite' (arm64).
(lldb) r -c -v
Process 38639 launched: '/Users/gibberton/source/rust/buttplug-lite/target/debug/buttplug-lite' (arm64)
2023-06-11T15:36:07.021174Z INFO buttplug_lite: initializing buttplug-lite 2.4.1
2023-06-11T15:36:07.035749Z INFO buttplug::server: Buttplug Server Operating System Info: Mac OS 13.4.0 [64-bit]
2023-06-11T15:36:07.035819Z INFO buttplug::util::device_configuration: Loading from custom base device configuration...
2023-06-11T15:36:07.072459Z INFO buttplug::util::device_configuration: No user configuration given.
2023-06-11T15:36:07.074377Z INFO buttplug::server::device::server_device_manager: BtlePlugCommunicationManager: false
2023-06-11T15:36:07.074388Z INFO buttplug::server::device::server_device_manager: SerialPortCommunicationManager: true
2023-06-11T15:36:07.074394Z INFO buttplug::server::device::server_device_manager: LovenseHIDDongleCommunicationManager: false
2023-06-11T15:36:07.074399Z INFO buttplug::server::device::server_device_manager: LovenseSerialDongleCommunicationManager: false
2023-06-11T15:36:07.074404Z INFO buttplug::server::device::server_device_manager: LovenseServiceDeviceCommManager: true
2023-06-11T15:36:07.074440Z INFO Lovense HID Dongle State Machine: buttplug::server::device::hardware::communication::lovense_dongle::lovense_dongle_state_machine: Running wait for dongle step
2023-06-11T15:36:07.074483Z INFO Lovense Serial Dongle State Machine: buttplug::server::device::hardware::communication::lovense_dongle::lovense_dongle_state_machine: Running wait for dongle step
2023-06-11T15:36:07.074485Z INFO buttplug::client: Connecting to server.
2023-06-11T15:36:07.074526Z INFO buttplug::client: Connection to server succeeded.
2023-06-11T15:36:07.074562Z INFO buttplug::client: Running handshake with server.
2023-06-11T15:36:07.074586Z INFO InProcessClientConnectorEventSenderLoop: buttplug::core::connector::in_process_connector: Starting In Process Client Connector Event Sender Loop
2023-06-11T15:36:07.074637Z INFO Client Loop Span: buttplug::server: Performing server handshake check with client in-process-client at message version Version3.
2023-06-11T15:36:07.074720Z INFO buttplug::client: Connected to buttplug-lite
2023-06-11T15:36:07.074794Z INFO buttplug_lite::app::buttplug::startup: buttplug_server: Device server started!
2023-06-11T15:36:07.074847Z INFO buttplug_lite::app::buttplug::startup: buttplug_server: starting device scan
2023-06-11T15:36:07.074961Z INFO buttplug_lite::config::util: Attempting to load config from "/Users/gibberton/Library/Application Support/io.github.runtime-shady-backroom.buttplug-lite/config.toml"
2023-06-11T15:36:07.074993Z WARN buttplug_lite::config::util: falling back to default config due to error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
2023-06-11T15:36:07.075003Z INFO buttplug_lite::config::util: Loaded configuration v3 from disk
2023-06-11T15:36:07.075158Z INFO buttplug_lite::app::webserver::routes: starting web server on 127.0.0.1:3031
2023-06-11T15:36:07.075216Z WARN Lovense Serial Dongle Finder: buttplug::server::device::hardware::communication::lovense_dongle::lovense_serial_dongle_comm_manager: Cannot find Lovense Serial dongle.
2023-06-11T15:36:07.087032Z WARN Lovense HID Dongle Finder Task: buttplug::server::device::hardware::communication::lovense_dongle::lovense_hid_dongle_comm_manager: Cannot find lovense HID dongle.
2023-06-11T15:36:07.509142Z ERROR buttplug_lite::util::panic: buttplug-lite v2.4.1 has crashed.
To help me diagnose this problem you can attach this log file to a new GitHub issue at https://github.com/runtime-shady-backroom/buttplug-lite/issues
thread 'main' panicked at 'ASDF', /Users/gibberton/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.28/src/stream/stream/mod.rs:1243:9
Process 38639 exited with status = 101 (0x00000065)
Describe the bug
Crash on startup.
To Reproduce
cargo runwill crash.Additional context
Trying to debugging this to no avail. This is kind of head-scratcher. Let me know if there's something you want me to try or code to write.
Older versions (for example git ref
5d9485885f0a6bb0e0a6c710e99e2937f3af0dcc) will run insidelldb, butcargo runandtarget/debug/buttplug-litewill always crash.Currently, checkout from
masterandcargo runwill crash and running it insidelldbwill crash. I've been trying to figure it out on my own, but figured i submit a bug in case its something you had seen before.Running in side
lldb