kendzi / kendzi3d

3D plugin for JOSM
57 stars 19 forks source link

JOSM hangs when pressing ctrl in text input fields when using external keyboard switcher #16

Open kolen opened 11 years ago

kolen commented 11 years ago

Hangs when pressing right ctrl (bound to switch keyboard layout on my machine, ctrl+shift and alt+shift seems not causes this).

Hangs completely, displays hourglass icon, not redraws UI.

JOSM 5590, Windows 7, Java 1.7.0_06-b24

Thread dump: https://gist.github.com/kolen/5822539

P.S. Using "keyla" program to switch layouts, maybe it is related. Unable to reproduce the same with Kendzi3D turned off, it occurs only when Kendzi3D plugin is loaded.

kolen commented 11 years ago

Was started using Java Webstart, I will try directly later.

kolen commented 11 years ago

Occured today in tag "value" field, and when not using webstart. Thread dump

kendzi commented 11 years ago

I try to reproduce issue by pressing ctrl+shift but with out any result.

blinkenlight commented 11 years ago

This happened to me A LOT on one of the PCs I work on, rather predictably. Unfortunately I'm not sure what exactly was I pressing (but it did involve CTRL or something around there) - I'll see if I can still provoke it.

blinkenlight commented 11 years ago

Yup, just confirmed it - it's still happening, and it's caused by the language switch - it doesn't matter whether I change the keyboard language by CTRL-Shift (if that's the configured shortcut for it) or CTRL-Alt (if that is) or from the small Language Bar on the taskbar using the mouse, the entire josm freezes up instantly without as much as a word to the console window (but only if the plugin was running of course).

Considering that some aspect of editing in josm (not sure what exactly) causes the language setting to drift in time (an enormous annoyance on its own, but that's a different story) changing back to English is a necessity every now and then, and at these times this issue can promptly lose all activity unless one remembers to save first, then crash, then reload.

I'm running on WinXP MCE SP2, JRE 1.7.0_40, josm 6238, kendzi3d 229 / kendzi3d-jogl 21

blinkenlight commented 11 years ago

Just tried on my other PC - interestingly, it's not happening here. This one is a WinXP Pro SP2, JRE 1.7.0_25, josm 6238, kendzi3d 242 / kendzi3d-jogl 21

kendzi commented 11 years ago

I have reproduced issue on some outdated PC with WinXP and java 1.6.22. Unfortunately I don't see any errors there, simply AWT events in dialog window are not responding any longer. This error appear in all dialog windows, not only when editing tags. It is appearing when keyboard language is switch. There is no error message, no exception, Event Queue is still working. Plug-in window is redraw but don't get any events from keyboard or mouse. Main JOSM windows and open dialog is not repainted, except last active input (if it is text area cursor is still blinking). It seams that there is no deadlocks on thread level. For me it is some kind of bug inside java it self.

If anyone could help with it it will be nice.