jimjam
About
- Username
- jimjam
- Joined
- Visits
- 165
- Last Active
- Roles
- Member
Comments
-
FYI, the project I've built now also supports mobile devices, using a BLE library I found on the Unity store.
-
http://recordit.co/WzawktuC47 See above for proof of concept of streaming data to Unity from external .NET server. If anyone wants a copy of the projects, drop a line here (so that any strong demand for Unity support becomes visible to Mbientlab)…
-
Very well. I will create a separate C# console app that reads from the sensor and streams the data to unity, over network or disk. Note that this means you clearly do not support Unity desktop development. You should both correct your marketing mate…
-
@abcd Try unpairing your sensor under Bluetooth settings in windows 10 and try connecting again. That did the trick for me.
-
OK... after digging through the other threads in the windows category, I found the "do not pair your device in Windows 10" nugget of information. After unpairing the sensor, Warble connects fine, both from the command line and through Unity. I'll le…
-
HI Guys. Sorry my break ended up being longer than usual. First of all, some movement from the Unity folks. We're made it through QA at least: https://fogbugz.unity3d.com/default.asp?1065590_p5vr9ftohapf1apf Although that does not necessarily …
-
@abcd Any chance you can test the noppl branch? I’m away for a couple more days. Thank you Eric.
-
Good to hear you're going to try and help it getting it working in Unity Eric. Let's try going down both paths simultaneously. One of us (either abcd or myself) can try skipping the native dll entirely, whilst you rework the code to not use ta…
-
Same error here. Catastrophic failure. I'm on 1.4.1.
-
Eric. Just to be clear... Are you (and by you I mean Mbientlab in general) working towards making the Mbientlab sensor work in Unity? I'm asking because it clearly says Windows Unity support on your product page, and you have two very engaged cus…
-
Yes it does look like PPL is only used in that one file? Perhaps we can just build a proof of concept, (non-PPL version) of the NativeFunctions.zip test solution you shared in this thread? We might need two calls. One that starts the thread, and …
-
Yes, exactly Eric. I tried option 3 from my previous post. I'm calling GetCurrentThread in your PPL async callback, and setting the DELETE restriction on the thread so that Unity ignores the thread when it shuts down the DLL. But that does not se…
-
Here is another discussion on how to get around this issue: https://forum.unity.com/threads/problem-with-callbacks.87513/ Some stuff to check out: Example code on how to cleanup threads: make sure your C++ Plugin cleans up all its thr…
-
Thanks for the test solution Eric. I can confirm that this recreates the same freezing behavior as Warble calls. The task result code is 45 the first time around, and then unity freezes on 2nd play. Now that we have a minimum reproducible test, I…
-
I can confirm that calling Warble directly causes Unity to go into this weird state where either of the following actions will cause Unity to hang: * running play a second time * trying to quit Any ideas on what Warble is doing that can be…
-
Hi Eric. I will test both Warble calls directly tomorrow and get back to you. Thanks for your help working through this.
-
Just as a word of warning, I tried threading a 'while true' loop using both a dedicated thread and a threadpool. Although the game would play once, it would crash when I tried to play again, or when i tried to exit Unity. I think this had something …
-
Hey OK. Just to clarify. None of the MetaWear calls freeze Unity the first time around. The second time around, Unity won't even load the DLL. Now... the MetaWear call that needs to be run the first time, to cause the issue the second time is... …
-
Hi Eric The editor freezes before any of my code executes. Not even the first line of debug is executed. It freezes when it tries to reload the metawear DLLs. That's why I can't really debug it myself. As I mentioned, I've read that this type of …
-
There isn't one, and it's not straightforward. I've managed to get it working, but it crashes on second run. You can see the discussion at the link below. If I manage to get it working fully I will share my project on this forum. https://mbien…
-
That's the thing, it's not a line of code that causes the freeze. It's re-loading the assembly for a second run. The unity logs just stop at "Reloading Assembly". No code gets executed. From my research, this type of behaviour apparently can happ…