intiface / intiface-engine Goto Github PK
View Code? Open in Web Editor NEWIntiface CLI, except now also a library
Intiface CLI, except now also a library
We aren't building Lovense connect into the system.
Kinda important if the device isn't connected to localhost somehow :|
Description:
If I try to start the engine with any log level, it panics:
/home/kell/repos/intiface-engine/target/debug/intiface-engine --log debug
Intiface Server, starting up with stdout output.
2023-01-05T04:58:58.539776Z INFO intiface_engine: Intiface CLI Options: User Device Config /home/kell/Desktop/device-config-flipper.json
2023-01-05T04:58:58.539994Z INFO intiface_engine::frontend: Frontend sender dropped, assuming connection lost, breaking.
2023-01-05T04:59:50.319398Z ERROR panic: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: SetGlobalDefaultError("a global default trace dispatcher has already been set")': src/logging.rs:120
Steps to reproduce:
0. Try to start engine with any debug level: ./intiface-engine --log debug
Expected behavior:
Engine is working normally
Additional info:
v.1.2.0
Of those I noticed during a quick test:
The command-line documentation uses underscores, but the executable's command line options all use hyphens instead.
The readme lists the websocket port command as websocket_peport [port]
however it should be websocket-port
.
At the bottom of the "running" section, it uses --wsinsecureport
when it should be --websocket-port
. and --use_bluetooth_le
when it should be --use-bluetooth-le
The documentation from running ./intiface-engine --help
appears to be correct.
If intiface-central is restarted as part of debugging, we lose logs because we don't let our broadcaster survive staticly.
context: https://discord.com/channels/353303527587708932/752593231681683657/1224110662247121088
was trying to do some http requests to intiface-engine to see if it supported it and the sw crashed. It should only handle ws requests and ignore http methods to prevent these crashes
replicate the bug:
start intiface-engine
In another terminal:
error log:
024-03-31T21:59:12.692338Z TRACE tungstenite::handshake::server: Server handshake initiated.
2024-03-31T21:59:12.692350Z TRACE tungstenite::handshake::machine: Doing handshake round.
2024-03-31T21:59:12.692452Z ERROR buttplug::core::connector::transport::websocket::websocket_server: Websocket server accept error: Protocol(MissingConnectionUpgradeHeader)
2024-03-31T21:59:12.692510Z ERROR intiface_engine::engine: Process Error: ConnectorError("TransportSpecificError(TungsteniteError(Protocol(MissingConnectionUpgradeHeader)))")
2024-03-31T21:59:12.692521Z INFO intiface_engine::engine: Client forcefully disconnected from server.
2024-03-31T21:59:12.692527Z INFO intiface_engine::engine: Breaking out of event loop in order to exit
2024-03-31T21:59:12.692533Z INFO intiface_engine::engine: Shutting down server...
2024-03-31T21:59:12.692570Z INFO intiface_engine::engine: Exiting
2024-03-31T21:59:12.692585Z TRACE buttplug::server::device::server_device_manager_event_loop: Got device command message StopScanning
2024-03-31T21:59:12.692630Z DEBUG buttplug::server::device::server_device_manager_event_loop: Device event loop cancelled, exiting.
2024-03-31T21:59:12.692638Z DEBUG buttplug::server::device::server_device_manager_event_loop: Exiting Device Manager Loop
2024-03-31T21:59:12.694270Z ERROR buttplug::server::device::hardware::communication::btleplug::btleplug_adapter_task: Stop scanning request failed: No discovery started
2024-03-31T21:59:12.694286Z DEBUG buttplug::server::device::hardware::communication::btleplug::btleplug_adapter_task: Command stream closed. Exiting btleplug adapter loop.
2024-03-31T21:59:12.794684Z INFO buttplug::server::device::server_device_manager: Dropping device manager!
Hey,
I'm trying to build the intiface-engine for ios to use it with dart ffi. But no matter which rust target I'm using out of:
aarch64-apple-ios (installed), aarch64-apple-ios-sim (installed), x86_64-apple-ios (installed)
I'm always getting the error:
linking with cc failed: exit status: 1 [...] note: ld: framework not found AppKit clang: error: linker command failed with exit code 1
I have no experience with xcode or building for ios / macos devices but it seems like AppKit is a MacOs only feature. Why is the intiface-engine and also the buttplug crate itself using it when I'm building for ios? Is it even possible to build the intiface flutter repository for ios and android? Because if i run flutter build for ios I'm getting the same error.
Thank you.
Moritz
[anto@beef IntifaceCentral]$ ./intiface-engine --help
Segmentation fault
[anto@beef IntifaceCentral]$ ldd intiface-engine
/lib64/ld-linux-x86-64.so.2 (0x7f4f84408000)
libudev.so.1 => /lib/libudev.so.1 (0x7f4f835d7000)
libdbus-1.so.3 => /lib/libdbus-1.so.3 (0x7f4f83581000)
libssl.so.3 => /lib/libssl.so.3 (0x7f4f834dd000)
libcrypto.so.3 => /lib/libcrypto.so.3 (0x7f4f82e00000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7f4f834bf000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f4f84408000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f4f84408000)
ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x7f4f84401000)
Error relocating intiface-engine: __vsnprintf_chk: symbol not found
Error relocating intiface-engine: __mbstowcs_chk: symbol not found
Error relocating intiface-engine: __memcpy_chk: symbol not found
Error relocating intiface-engine: __wcsncpy_chk: symbol not found
Error relocating intiface-engine: __register_atfork: symbol not found
Error relocating intiface-engine: __snprintf_chk: symbol not found
Error relocating intiface-engine: gnu_get_libc_version: symbol not found
Error relocating intiface-engine: __res_init: symbol not found
[anto@beef IntifaceCentral]$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.