when using scim-bridge-qt4, selected text is deleted when using kde 4

Bug #250046 reported by Premier
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scim-bridge (Ubuntu)
Fix Released
High
Arne Goetje
Intrepid
Fix Released
High
Arne Goetje

Bug Description

Binary package hint: scim-bridge-qt4

Anytime a window event happens selected text is deleted. So, for example, I open a text editor, type something, select it, switch to a different window and back. My text is then deleted.
Also, the default file name in save/open dialogs is deleted.

Description: Ubuntu 8.04.1
Release: 8.04
KDE 4.0.98 (KDE 4.1 rc 1)

Revision history for this message
tomas (tomas-datasupporten-deactivatedaccount) wrote :

I have the exact same problem. It happens only in Qt4-based applications I might add (like kwrite, dolphin, etc).

Description: Ubuntu 8.04.1
Release: 8.04
KDE 4.1.00 (KDE 4.1.0)

Below is some other information which might be of interest.

These packages related to scim are installed:
libscim8c2a 1.4.7-3ubuntu8
scim 1.4.7-3ubuntu8
scim-anthy 1.2.4-1ubuntu2
scim-bridge-agent 0.4.14-1ubuntu2
scim-bridge-client-gtk 0.4.14-1ubuntu2
scim-bridge-client-qt 0.4.14-1ubuntu2
scim-bridge-client-qt4 0.4.14-1ubuntu2
scim-gtk2-immodule 1.4.7-3ubuntu8
scim-modules-socket 1.4.7-3ubuntu8
scim-modules-table 0.5.7-2ubuntu1
scim-tables-ja 0.5.7-2ubuntu1
scim-uim 0.2.0-1build2

Qt4 packages are of version:
libqtcore4 4.4.0-1ubuntu5~hardy1

Output from the command "im-switch -l":
-------------
Your input method setup under sv_SE locale as below.
=======================================================
The configuration "/home/tomas/.xinput.d/sv_SE" is defined as a link pointing to
scim-bridge
This private configuration supersedes the system wide default.
=======================================================
The system wide default is pointed by "/etc/alternatives/xinput-all_ALL" .
xinput-all_ALL - status är auto.
 länk pekar för närvarande på default
default - prioritet 10
default-xim - prioritet 0
none - prioritet 0
skim - prioritet 0
Nuvarande "bästa" version är default.
=======================================================
The available input method configuration files are:
default default-xim kinput2-canna none scim scim-bridge scim-immodule scim_xim skim th-xim
=======================================================
-------------

Output from the command "env | grep IM"
-----------
QT_IM_MODULE=scim-bridge
XMODIFIERS=@im=SCIM
GTK_IM_MODULE=scim-bridge
----------

Changed in scim-bridge:
status: New → Confirmed
Revision history for this message
Michael Ummels (urmel291) wrote :

I can confirm this bug as well.

Revision history for this message
Premier (premiersullivan) wrote :

I'm using intrepid without scim installed and as of today I have the problem reappeared. (again , no scim installed).

The most irritating thing is the open/save dialogs. If I want to save a picture from the internet, I am forced to give it a name or else it will appear as ".jpg" in my filesystem.

Revision history for this message
Michael Ummels (urmel291) wrote :

Do you have im-switch installed? Try to remove im-switch by executing "sudo apt-get remove im-switch" or alternatively disable any input method by executing "im-switch -s none". That made the problem disappear for me (though I cannot use scim/skim now, of course).

Revision history for this message
Michael Ummels (urmel291) wrote :

Another workaround is to use the XIM input method plugin instead of the scim-bridge one. You can enable it by executing "im-switch -s scim".

BTW, is it possible to compile the scim immodule (package scim-qtimm) for Qt3 with Qt4?

description: updated
Revision history for this message
Arne Goetje (arnegoetje) wrote : Re: [Bug 250046] Re: when using scim-bridge-qt4, selected text is deleted when using kde 4

Michael Ummels wrote:
> Another workaround is to use the XIM input method plugin instead of the
> scim-bridge one. You can enable it by executing "im-switch -s scim".

I have suggested that scim-bridge* and skim are removed from the Kubuntu
seeds for Intrepid. That means, they should not be installed anymore on
a pristine install from the final image. However, when upgrading from
Hardy, things might go wrong and the user would need to remove those
packages by hand.

> BTW, is it possible to compile the scim immodule (package scim-qtimm)
> for Qt3 with Qt4?

My guess is that the code would need to be ported to qt4 first.

Anyways, scim-qtimm should not be needed for qt4 applications, AFAIK
plain XIM works fine. But for legacy qt3 apps, I'm not sure how to
handle this... setting the QT_IM_MODULE variable should affect both qt3
and qt4 applications and in this case conflict...

(damn this design!) I hope we can do better for Jaunty...

Revision history for this message
Arne Goetje (arnegoetje) wrote :

I have a new package in my ppa.

Please go to System -> Administration -> Software Sources and in the Third-Party Software add the following link:

deb http://ppa.launchpad.net/arnegoetje/ubuntu intrepid main

Then please update scim-bridge and test if this solves the issue.

Thanks.

Arne Goetje (arnegoetje)
Changed in scim-bridge:
assignee: nobody → arnegoetje
status: Confirmed → In Progress
Revision history for this message
Michael Ummels (urmel291) wrote :

Hello Arne,

I installed scim-bridge from your repository, and indeed the problem does not occur any more!

I also tried using plain XIM, but it seems Qt4 applications don't like XIM very much resulting in frequent disconnects from Scim. So, I using scim-bridge is preferable to me.

Thanks very much for your efforts!
Michael

Revision history for this message
Arne Goetje (arnegoetje) wrote :

Michael Ummels wrote:
> I installed scim-bridge from your repository, and indeed the problem
> does not occur any more!
>
> I also tried using plain XIM, but it seems Qt4 applications don't like
> XIM very much resulting in frequent disconnects from Scim. So, I using
> scim-bridge is preferable to me.

Hmm... this is strange. I tried this on a pristine Kubuntu install from
the latest daily image and it works there without problems.
Did you upgrade from an older release? Could you try to rename your
~/.scim directory temporarily, log out and -in again and try if that
fixes it?

Thanks.

Colin Watson (cjwatson)
Changed in scim-bridge:
importance: Undecided → High
milestone: none → ubuntu-8.10
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package scim-bridge - 0.4.14-2ubuntu4

---------------
scim-bridge (0.4.14-2ubuntu4) intrepid; urgency=low

  All changes thanks to Zheng Peng-Hou.
  * Disable 50_check_scim_binary.dpatch since only a dependency on scim is
    enough. Actually only a running scim-helper is needed, which is in the
    scim package and gets started (and restarted if it dies) automatically.
    However, modified the patch to check for schim-helper instead in case the
    patch becomes necessary again. (LP: #286923)
  * Add patch 50_fix_qt4_focus.dpatch to fix focus loss under KDE4. (LP:
    #250046)
  * Update debian/control to fix dependencies and the Name of the Original
    Maintainer.

 -- Arne Goetje <email address hidden> Wed, 22 Oct 2008 10:44:39 +0800

Changed in scim-bridge:
status: In Progress → Fix Released
Revision history for this message
Julien Aubin (gojulgarbmail) wrote :

Actually the fix does reopens another bug that was solved previously :
- When launching KDE4 dozens of SCIM instances are started, even if scim is closed. This makes KDE almost unusable very quickly.

The bug is the following one :
https://bugs.launchpad.net/ubuntu/+source/kubuntu-kde4-meta/+bug/203334

Only workaround consists in completely removing SCIM.

Revision history for this message
Arne Goetje (arnegoetje) wrote :

Julien Aubin wrote:
> Actually the fix does reopens another bug that was solved previously :
> - When launching KDE4 dozens of SCIM instances are started, even if scim is closed. This makes KDE almost unusable very quickly.

It doesn't. The scim-bridge-agent package depends on scim now, so that
makes sure that the delay in starting up applications does not happen
anymore.

Anyways, if you have properly disabled support for complex characters,
then this doesn't affect you anyways, because neither scim, nor
scim-bridge will run.

If this still affects you, then your installation is probably messed up.
If this is the case, please post the output of:

im-switch -l

> Only workaround consists in completely removing SCIM.

Wrong! The solution is to INSTALL scim, because scim-bridge depends on scim!

Revision history for this message
Premier (premiersullivan) wrote :

Okay, i deleted .kde and uninstalled scim. Can someone tell me, if I do want to have scim, what packages should I have installed, ie, what is the default?

Revision history for this message
metellius (haraldhv) wrote :

Hi there everyone

I was surprised to find this bug report here, along with a fix someone wrote. Back in June 2008 (a month before this bug was reported) I was annoyed by this bug, and wrote a patch for it and sent it off upstream to the scim project. I got a reply that the patch was applied and would be released a few months later as a part of a maintenance release.

The original patch commit is here:

http://scim.cvs.sourceforge.net/viewvc/scim/scim-bridge/client-qt/scim-bridge-client-imcontext-qt.cpp?r1=1.17&r2=1.18

This has now become part of scim-bridge release 0.4.15.2.
I'm not entirely sure about how ubuntu handles upgrading and getting rid of patches at this time, but I would at least like to notify the packagers that there will be a conflict of this sort once they do decide to upgrade from 0.4.14 to the newest version from upstream.
Oh, and about that, 0.4.15 was released februrary 2008. Is there a reason why ubuntu has not synced to upstream in 14 months?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.