bhaptics / haptic-library

SDK for bhaptics haptic devices
http://bhaptics.com
Other
35 stars 12 forks source link

c# library #209

Closed westside closed 2 years ago

westside commented 2 years ago
Hey thanks for opening this chat 🙂

First of all, thanks for making this nice piece of hardware, I love it! (That was also the motivation to code a mod for one of my favourite VR games, which unfortunately had no support, until now :P)

The main reason I asked for this chat is a weird bug in the C# library which I encountered:
Sometimes, the bhaptics library throws the following exception:
Object reference not set to an instance of an object System.NullReferenceException: Object reference not set to an instance of an object
  at Bhaptics.Tact.PlayerRequest.ToJsonObject () [0x00090] in <4ec0c4035195426fa127564cf42310b2>:0 
  at Bhaptics.Tact.WebSocketSender.Send () [0x0001a] in <4ec0c4035195426fa127564cf42310b2>:0 

The thing is: The bug is extremely rare (I had it like two or three times in my whole test / gaming sessions). But if it happens the log is full of the message above and all haptics stopped completely. No events with SubmitRegistered or Submit are working anymore until I completely restart the game. Since the bug is that rare it is not that big problem. Maybe you have an idea what is going on there^^

Florian Fahrenberger said me that the C# library is not updated anymore and he also encountered weird bugs, so I guess if I dont find a solution and I encounter the bug again I will try to wrap the C++ library into C#.