[jitsi-users] Jitsi application hangs when switching keyboard layouts

I've narrowed down the issue. It seems to be related with native library
*sysactivitynotifications *in class SystemActivityNotifications. If I
modify this line


       ptr = allocAndInit();
       if (ptr == -1)
              ptr = 0;

to this

*if(!org.jitsi.util.OSUtils.IS_ANDROID &&
       ptr = allocAndInit();
       if (ptr == -1)
              ptr = 0;

the issue is gone.

The reason of using windows32 is because this only happens on 32-bit
windows according to earlier issue report.

Of course this is not a solution, and to dig further one has to look into
native .cpp / .h code and find out what in the code is causing program to
hang on 32-bit windows system when switching keyboard input layout. Hope
*lubomir_m* could kindly offer some hint on this.



2015-02-03 19:09 GMT+08:00 Ken-Hao Liu <genhau@gmail.com>:

has anyone managed to resolve this difficult issue? It's been reported for *more
than a year*, and same problem still occurs on the latest build. I'm
currently working on this, and would appreciate if anyone could offer any
hint on this.


Hey Yavor, On 17.05.14, 07:15, OFRM Team wrote:
>* Hey Jitsi team! *>
>* Thank you for your great communication software! *Thanks for your
kind words! >* Unfortunately, I am experiencing the same freeze problem
when I switch *>* keyboard layouts that has been reported before on the
following occasions: *>
>* http://lists.jitsi.org/pipermail/users/2014-February/006595.html
<http://lists.jitsi.org/pipermail/users/2014-February/006595.html> *>
>* http://lists.jitsi.org/pipermail/users/2014-February/006597.html
<http://lists.jitsi.org/pipermail/users/2014-February/006597.html> *>
>* http://lists.jitsi.org/pipermail/users/2014-February/006641.html
<http://lists.jitsi.org/pipermail/users/2014-February/006641.html> *>
>* http://lists.jitsi.org/pipermail/users/2014-March/006862.html
<http://lists.jitsi.org/pipermail/users/2014-March/006862.html> *>
>* http://lists.jitsi.org/pipermail/dev/2013-July/017747.html
<http://lists.jitsi.org/pipermail/dev/2013-July/017747.html> *>
>* http://lists.jitsi.org/pipermail/dev/2013-July/017766.html
<http://lists.jitsi.org/pipermail/dev/2013-July/017766.html> *>
>* Every time a keyboard layout switching is being performed (Left Alt
+ *>* Shift), the Jitsi application hangs (not responding) and needs to
be *>* terminated in Task Manager and started anew. This problem occurs *
>*regardless of whether keyboard layout switching is performed in a *>* contact's
chat window or in Jitsi's main window. Selecting a different *>* change
key sequence (Ctrl + Shift, or Grave Accent) from "Region and *>*Language"
settings in Windows Control Panel does not resolve the *>* problem, and
neither does switching the keyboard layout from the *>* Language Bar
using the mouse. *>
>* The operating system is an up-to-date 32-bit Windows 7 SP1 with
default *>* language support (no additional language support software
installed). *>* The same problem is also experienced with Jitsi
installed in a VM under *>* Windows XP SP3 (32-bit) on the same host
machine. Both 2.4 stable and *>* latest nightly (2.5.5228) versions of
Jitsi are affected by the problem. *>
>* It is quite frustrating, because I am used to switching keyboard
layouts *>* constantly between english language (latin charset) and
bulgarian *>* language (cyrillic charset), and even though I am aware of
this problem *>* and try to avoid switching layouts, I frequently end up
hanging the *>* application by a force of habit. I would appeciate it
very much if you *>* can investigate further into this problem and if
there is something I *>* can help with, please let me know. Thank you in
advance! *Thanks for the exhaustive report! I agree that this needs to
be investigated and patched. Anyone willing
to do this? Emil --