rime / ibus-rime

【中州韻】Rime for Linux/IBus
https://rime.im
GNU General Public License v3.0
734 stars 105 forks source link

rime_deployer symbol lookup error #26

Open renkun-ken opened 7 years ago

renkun-ken commented 7 years ago

I use Ubuntu 16.04.2 and install ibus-rime from official repo and it works smoothly for long. But recently, it is suddenly broken. I can switch to rime on the tray icon but nothing more happens and the input box does not appear any more.

I tried reinstall ibus-rime but it does not solve the problem.

I can't see any error message from it until I run rime_deployer and find it says

$ rime_deployer
rime_deployer: symbol lookup error: /usr/lib/librime.so.1: undefined symbol: _ZN4YAML6detail9node_data12empty_scalarB5cxx11E

Any idea how I can fix this?

lotem commented 7 years ago

The missing symbol is from yaml-cpp library: https://launchpad.net/ubuntu/+source/yaml-cpp

renkun-ken commented 7 years ago

I installed libyaml-cpp-dev and it still does not solve my problem. Is there anything I can do with it?

lotem commented 7 years ago

The *-dev package is for development, not helpful. The problem reside in the yaml-cpp package. I noticed that there are open bugs in https://bugs.launchpad.net/ubuntu/+source/yaml-cpp/+bug/1646914 one of them reads

Ubuntu 16.04 package version contains improper API

This might be related to the bug you're experiencing. You may want to resort to installing from a PPA (in the comments of the bug) or from source code.

renkun-ken commented 7 years ago

I use PPA provided by https://launchpad.net/~winterheart/+archive/ubuntu/openxcom and upgrade to the latest release but it still does not work sadly :(

renkun-ken commented 7 years ago

I figure out that this is caused by one of my .conf in ld.so.conf.d that directs to a folder where there's its own version of libyaml-cpp.so.0.5.

I remove the conf, then sudo ldconfig and rime says it is under mantainence but still ends up in an error. I find some errors and warnings:

W0330 12:15:04.282084 21629 customizer.cc:122] 'patch' not found in customization file.
W0330 12:15:04.347173 21634 customizer.cc:122] 'patch' not found in customization file.
W0330 12:15:04.403610 21634 deployment_tasks.cc:133] schema list not defined.
E0330 12:12:12.113315 21019 customizer.cc:56] Error loading config from './default.yaml'.
E0330 12:12:12.113381 21019 customizer.cc:56] Error loading config from './symbols.yaml'.
E0330 12:12:12.113409 21019 deployment_tasks.cc:127] Error loading default config from './default.yaml'.
renkun-ken commented 7 years ago

I remove ibus-rime and use fcitx-rime, still not working.