LeVanPhuUIT / jnativehook

Automatically exported from code.google.com/p/jnativehook
0 stars 0 forks source link

Crash after 30 seconds. #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have a javaFX application that uses the library to detect key events.
When I register the native hook, It take the application 30 seconds ( more or 
less ) to crash. Here is a complete log of the error attached.

Original issue reported on code.google.com by nabilocs...@gmail.com on 10 Jun 2014 at 8:01

Attachments:

GoogleCodeExporter commented 8 years ago
Well, I have never seen that error before ;)  What version of the library are 
you using?  If it is 1.1, please try 1.2.  There are a number of nighties 
attached to various bugs or you can just test with beta 2 on github.

If it is still occurring with 1.2, could you provide some test code for getting 
it to crash with javafx?  I am not very familiar with the technology.

Original comment by a...@1stleg.com on 10 Jun 2014 at 9:08

GoogleCodeExporter commented 8 years ago
Please check the console output for 1.2, there maybe a clue as to what went 
wrong in there.

Original comment by a...@1stleg.com on 10 Jun 2014 at 9:11

GoogleCodeExporter commented 8 years ago
It's actually occuring only in 1.2, and the console output for 1.2 shows 
nothing special, just the mouse positions when I move my mouse and then part of 
the error log.
I don't beleive it's related to javaFx because it's before I even change things 
in my application. I just load the keyboard driver and register my native hook, 
I start playing with the mouse and it crashes.

Original comment by nabilocs...@gmail.com on 11 Jun 2014 at 1:22

GoogleCodeExporter commented 8 years ago
I suspect its related to a system property having an unexpected value that 
resulted in some bad math.  I have tested on 10.7.5 32-bit and beta two 
attached to github and I was able to an error that looks like null pointer.

Wed Jun 11 08:38:20 PDT 2014 INFO:  hook_get_multi_click_time [398]: 
IOHIDGetParameter: 
Invalid memory access of location 0x0 rip=0x1111bc72d

Where did Java dump the hs_err_pid23778.log file for you?

Original comment by a...@1stleg.com on 11 Jun 2014 at 3:46

GoogleCodeExporter commented 8 years ago
Do you have a scroll wheel mouse?  Does this occur when you scroll?  I cant 
seem to produce an error log even with -XX:ErrorFile, its always empty.

Original comment by a...@1stleg.com on 11 Jun 2014 at 3:57

GoogleCodeExporter commented 8 years ago
Java dumped the hs_err file in the root folder of my project, the one 
containing src, libs ...

I have a macbook pro with a touch pad, I don't have a scroll wheel mouse. And I 
didn't get the error while scrolling with the two finger touching. It just 
happened when I was moving my mouse.

Original comment by nabilocs...@gmail.com on 11 Jun 2014 at 8:45

GoogleCodeExporter commented 8 years ago
As far as I can tell it was related to the scrolling in the horizontal 
direction.  Added a check for divide by zero in commit 
4c0e0641f7e53181f49b6fb36573b8847e17190f, and attached a nightly of that build 
here.  Thanks for reporting this one.

Original comment by a...@1stleg.com on 12 Jun 2014 at 9:35

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, I'll try it right away and see if it doesn't crash anymore.

Original comment by nabilocs...@gmail.com on 13 Jun 2014 at 7:34

GoogleCodeExporter commented 8 years ago
I confirm, the bug is now corrected, thank you !

Original comment by nabilocs...@gmail.com on 13 Jun 2014 at 10:26