Closed duomeng1314 closed 13 years ago
Hello,
Can you reproduce the problem outside of eclipse, i.e. when you build the project from maven and run from command line?
Hello,
I test the project use maven, there are similar problems. test as follow:
fjhdemacbook:JKey root# java -jar jkeymaster-1.0-SNAPSHOT.jar Aug 22, 2011 10:27:14 PM com.tulskiy.keymaster.osx.CarbonProvider$1 run INFO: Installing Event Handler Aug 22, 2011 10:27:25 PM com.tulskiy.keymaster.osx.CarbonProvider resetAll INFO: Resetting hotkeys Aug 22, 2011 10:27:25 PM com.tulskiy.keymaster.osx.CarbonProvider register INFO: Registered hotkey: ctrl alt pressed D Aug 22, 2011 10:27:35 PM com.tulskiy.keymaster.osx.CarbonProvider$EventHandler callback INFO: Received event id: 1 Invalid access of stack red zone 0xbf800ff0 eip=0x9598f205 Segmentation fault
The other buttons is same
fjhdemacbook:JKey root# java -jar jkeymaster-1.0-SNAPSHOT.jar Aug 22, 2011 10:30:14 PM com.tulskiy.keymaster.osx.CarbonProvider$1 run INFO: Installing Event Handler Aug 22, 2011 10:30:21 PM com.tulskiy.keymaster.osx.CarbonProvider resetAll INFO: Resetting hotkeys Aug 22, 2011 10:30:21 PM com.tulskiy.keymaster.osx.CarbonProvider register INFO: Registered hotkey: pressed G Aug 22, 2011 10:30:24 PM com.tulskiy.keymaster.osx.CarbonProvider$EventHandler callback INFO: Received event id: 1 Invalid access of stack red zone 0xbf800ff0 eip=0x9598f205 Segmentation fault fjhdemacbook:JKey root#
the test jar file is download from https://github.com/tulskiy/jkeymaster
Are you on a 64-bit system? Try the latest build from here: https://github.com/tulskiy/jkeymaster/blob/gh-pages/maven/com/tulskiy/jkeymaster/1.0/jkeymaster-1.0.jar
No, the system is 32-bit! the latest build version have the same problem. The detail information about my macbook: Darwin fjhdemacbook.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
Seems like it's a problem with osx java. Are you running an intel-based mac or powerpc? Also, please post your java version.
It's an intel-based mac,the java version is 1.5.0_30. My macbook model is A1181.
Yes, you are right! I‘m try it with java 1.6.0_25 on macosx10.6.8 and running normal. Thanks for your help!(^o^)/~ Best wishes for you!
So it must be the problem with java 1.5. Try increasing stack size with -Xss1m
Hello:
At the end : I will be continue debug it ; I hope you can give some solutions . Thank you very much!