vialab / SMT

Simple Multi-Touch (SMT) Toolkit
http://vialab.science.uoit.ca/smt
GNU General Public License v3.0
43 stars 18 forks source link

Java stopped working - Zinframe Multitouch Overlay #227

Open barbaracastro opened 8 years ago

barbaracastro commented 8 years ago

Hey guys, I'm developping an interactive instalation using SMT library. It's great! I was testing with my inbuilt touch screen from my Dell Laptop, but for the exhibition we are using a infra-red frame on a TV.

The Zinframe multitouch overlay supports TUIO. I installed Zinframe Multitouch Overlay drivers and the sketch is working and recognizing multiple touch, but the moment I release the touch, the app stops and shows: "Java(TM) Platform SE binary has stopped working" No error message.

I don't have a clue what's going on. Can anybody help me?

Thanks in advance!

mshancock commented 8 years ago

Hi @barbaracastro, glad you're enjoying SMT! I've never used Zinframe overlays before, but it's hard to track down the issue without more info. We also don't have an active developer on this project at the moment, but it does sound like your issue might be a driver one (or at least somewhere in the native code that runs the TUIO support), since there's no Java error message.

Can you try getting TUIO working in a different (non-SMT) application? It would also help to know what sketch you're specifically trying to get working. It may help to initialize with: SMT.init( this, TouchSource.TUIO_DEVICE); instead of: SMT.init( this, TouchSource.AUTOMATIC);

barbaracastro commented 8 years ago

Hi @mshancock,

Thanks for the quick reply! Changing for automatic initiation didn't work, but it's working on a Mac though. Unfortunately we don't have the option to work on a mac for the exhibition. I've tried memory and firewall tutorials for java with no sucess. I'll keep trying.

If someone else have other option, please let me know. I'll keep you posted.

Thanks!

barbaracastro commented 8 years ago

So it's working with SMT.init( this, TouchSource.MOUSE); I think this is probably a similar problem reported iby @amyro here https://github.com/vialab/SMT/issues/169

If I use MOUSE, it works but I can't get multitouch and pinch functions to work.

If I use WM_TOUCH the multitouch works and compiles perfectly, but as soon as I release the touch, it JAVA crashes.

Thanks.

mshancock commented 8 years ago

And what happens when you use TouchSource.TUIO_DEVICE? If the overlay supports TUIO natively, this may be the best option.

The MOUSE version should always work, but this is just mouse emulation of touch support (so using right clicks can "drop" a touch point, and clicking again can remove them).

WM_TOUCH would attempt to use Windows Touch events natively, so maybe this is what's broken. Does pinch work in any other Windows application (e.g., if you're using Win 10, try the Maps app)?