Giter VIP home page Giter VIP logo

intiface-engine's People

Contributors

heldom1proton avatar qdot avatar suheugene avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

intiface-engine's Issues

Starting the engine with any log level fails

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

Command-line documentation errors

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.

Prevent crash when receiving GET requests

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:

curl http://localhost:12345

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!

Issues with building for IOS

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

Segfault in Void Linux Musl.

[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]$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.