FS#52973 - [scim] misbehaves when changing input methods

Attached to Project: Arch Linux
Opened by Artem (i7220) - Wednesday, 15 February 2017, 08:32 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 22 February 2017, 04:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
there seems to be some regression in scim. i installed it couple months ago, used it occasionaly when needed to type in russian or chinese, only today i noticed some strange behaviour. The only place it would sorta work at is the terminal window i open straight on boot with xinitrc to load a simple text file with nano. Default trigger Control+space would not let me change normally between the input methods in any other places, neither does the left-click on tray-icon submenu. it will be clickable, but it wouldn't seem to change, nor it would load that special toolbar for secondary language. Now that's if i start it from xinitrc and put export XMODIFIERS=@im=SCIM export GTK_IM_MODULE="scim" export QT_IM_MODULE="scim" lines to xinitrc, just how i did id for all this time.
if i remove scim -d from xinitrc as well as those export ... lines, and just load, say, seamonkey from the terminal by GTK_IM_MODULE="scim" seamonkey it all functions as expected on every application boot.
Also, to test it even further, it all functions just fine if you start ibus from xinitrc with all those export ... lines. So it's pretty messy. I'll try to record some gifs in following messages maybe to make it more understandable

Additional info:
* package version(s)
scim 1.4.17-1, scim-tables 0.5.14.1-2, scim-pinyin 0.5.92-3
* config and/or log files etc.
doesn't really seem to cause any errors, or maybe i just don't know where to find them. Anyway two logs for the starters:

[user3@7a1612 ~]$ sudo journalctl | grep scim | tail -n 20
Feb 06 15:26:41 7a1612 scim-bridge[2268]: Cleanup, done. Exitting...
Feb 12 10:35:03 7a1612 scim-bridge[4389]: Cleanup, done. Exitting...
Feb 12 14:43:51 7a1612 scim-bridge[5368]: Cleanup, done. Exitting...
Feb 12 14:44:00 7a1612 scim-bridge[5529]: Cleanup, done. Exitting...
Feb 13 00:48:23 7a1612 scim-bridge[7912]: Cleanup, done. Exitting...
Feb 13 02:37:51 7a1612 scim-bridge[8697]: Cleanup, done. Exitting...
Feb 13 02:39:19 7a1612 scim-bridge[9325]: Cleanup, done. Exitting...
Feb 13 02:40:45 7a1612 scim-bridge[9535]: Cleanup, done. Exitting...
Feb 13 02:43:11 7a1612 scim-bridge[9798]: Cleanup, done. Exitting...
Feb 13 02:46:19 7a1612 scim-bridge[10583]: Cleanup, done. Exitting...
Feb 13 12:55:12 7a1612 scim-bridge[759]: Cleanup, done. Exitting...
Feb 15 16:56:09 7a1612 sudo[1401]: user3 : TTY=pts/1 ; PWD=/home/user3 ; USER=root ; COMMAND=/usr/bin/pacman -Rs scim
Feb 15 16:56:21 7a1612 sudo[1403]: user3 : TTY=pts/1 ; PWD=/home/user3 ; USER=root ; COMMAND=/usr/bin/pacman -Rs scim scim-pinyin scim-tables
Feb 15 16:57:32 7a1612 sudo[1569]: user3 : TTY=pts/1 ; PWD=/home/user3 ; USER=root ; COMMAND=/usr/bin/pacman -S scim scim-pinyin scim-tables
Feb 15 17:15:21 7a1612 scim-bridge[3870]: Cleanup, done. Exitting...
Feb 15 17:26:32 7a1612 scim-bridge[848]: Cleanup, done. Exitting...
Feb 15 17:27:17 7a1612 scim-bridge[857]: Cleanup, done. Exitting...
Feb 15 17:28:09 7a1612 scim-bridge[991]: Cleanup, done. Exitting...
Feb 15 17:39:54 7a1612 scim-bridge[998]: Cleanup, done. Exitting...
Feb 15 17:40:44 7a1612 scim-bridge[1013]: Cleanup, done. Exitting...

[user3@7a1612 ~]$ sudo journalctl | tail -n 20
Feb 15 17:45:32 7a1612 systemd[261]: Started Virtual filesystem service.
Feb 15 17:45:32 7a1612 polkitd[557]: Finished loading, compiling and executing 2 rules
Feb 15 17:45:32 7a1612 dbus[246]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Feb 15 17:45:32 7a1612 systemd[1]: Started Authorization Manager.
Feb 15 17:45:32 7a1612 polkitd[557]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Feb 15 17:45:32 7a1612 rtkit-daemon[554]: Successfully made thread 553 of process 553 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Feb 15 17:45:32 7a1612 rtkit-daemon[554]: Supervising 1 threads of 1 processes of 1 users.
Feb 15 17:45:32 7a1612 dbus-daemon[511]: Activating via systemd: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service'
Feb 15 17:45:32 7a1612 systemd[261]: Starting Accessibility services bus...
Feb 15 17:45:33 7a1612 dbus-daemon[511]: Successfully activated service 'org.a11y.Bus'
Feb 15 17:45:33 7a1612 systemd[261]: Started Accessibility services bus.
Feb 15 17:45:33 7a1612 at-spi-bus-launcher[579]: Activating service name='org.a11y.atspi.Registry'
Feb 15 17:45:33 7a1612 at-spi-bus-launcher[579]: Successfully activated service 'org.a11y.atspi.Registry'
Feb 15 17:45:33 7a1612 org.a11y.atspi.Registry[584]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Feb 15 17:45:33 7a1612 systemd[261]: Started Sound Service.
Feb 15 17:47:17 7a1612 sudo[770]: user3 : TTY=pts/1 ; PWD=/home/user3 ; USER=root ; COMMAND=/usr/bin/journalctl
Feb 15 17:47:17 7a1612 sudo[770]: pam_unix(sudo:session): session opened for user root by user3(uid=0)
Feb 15 17:47:23 7a1612 sudo[770]: pam_unix(sudo:session): session closed for user root
Feb 15 17:51:36 7a1612 sudo[815]: user3 : TTY=pts/1 ; PWD=/home/user3 ; USER=root ; COMMAND=/usr/bin/journalctl
Feb 15 17:51:36 7a1612 sudo[815]: pam_unix(sudo:session): session opened for user root by user3(uid=0)

Steps to reproduce:
1. pacman -S scim scim-pinyin scim-tables
2. add smart pinyin and russian computer in scim-setup, log out
3. edit xinitrc to have something like this
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
sleep 1 && scim -d &
4. log back in
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 22 February 2017, 04:17 GMT
Reason for closing:  Not a bug
Comment by Artem (i7220) - Wednesday, 15 February 2017, 09:12 GMT
added three little screencasts showcasing the original problem.
Comment by Artem (i7220) - Friday, 17 February 2017, 10:18 GMT
so i guess the best way to summarize it would be: scim does not do a very good job getting those variables for GTK_IM_MODULE, QT_IM_MODULE, XMODIFIERS being exported (not for a single user thru xinitrc, nor system-wide thru /etc/profile) anymore (whatever caused the regression, cuz frankly speaking scim-related packages have not been updated in a while), but it still functions as expected if it is explicitly told to by launcihing the application with that GTK_IM_MODULE="scim" or QT_IM_MODULE="scim" prefix
Comment by Artem (i7220) - Tuesday, 21 February 2017, 03:11 GMT
i was able to reproduce it on a fresh install. attached is the pretty much complete log of my post-install procedure with the two marks of having scim working at the very early stage, and not having it working few very simple steps later
PS reported upstream as well https://github.com/scim-im/scim/issues/19
   history4 (1.7 KiB)
Comment by Artem (i7220) - Wednesday, 22 February 2017, 03:16 GMT
thanks for being patient!
turns out i noticed the "regression" after installing tint2. before i was using plain openbox. spending a little time testing, including the fresh install, reveals that loading scim daemon before the panel (sleep 1 && scim -d / sleep 2 && lxpanel &) solves the problem. will double-post that upstream. if no one objects i could also add info on that "work-around" to the related scim wiki page.
cheers!

Loading...