Error: Could not create an input method #13785

Closed
STommydx opened this Issue Feb 10, 2017 · 10 comments

Projects

None yet

7 participants

@STommydx
STommydx commented Feb 10, 2017 edited

Prerequisites

Description

After upgrading to atom 1.14.1, atom crashes.
I have tried removing the config completely and reinstalling the whole package but it wont work.

Steps to Reproduce

  1. Open atom editor

Expected behavior: [What you expect to happen]
Editor shows up.

Actual behavior: [What actually happens]
Chrome-like console shows up with error. Also, a message popped up which says the editor crashed and please report the issue here.
Behavior is the same in safe mode.

Reproduces how often: [What percentage of the time does it reproduce?]
100%

Versions

Atom : 1.14.1
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0

apm 1.15.3
npm 3.10.5
node 4.4.5 x64
python 2.7.12+
git 2.9.3

Running on Ubuntu 16.10.

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

1.10.2 version was the old version i used. It runs perfectly fine on my computer.

The error log:

Error: Could not create an input method.
at Error (native)
at Object. (/usr/share/atom/resources/app.asar/node_modules/keyboard-layout/lib/keyboard-layout.js:9:17)
at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:109:30)
at Object.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
at Object. (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/helpers.js:6:20)
at Object. (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/helpers.js:372:4)
at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:109:30)
at Object.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
at Object. (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/key-binding.js:4:10)
at Object. (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/key-binding.js:129:4)
at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:109:30)
at Object.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
at Object. (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:17:11)
at Object. (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:639:4)
at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:109:30)

This is my first time reporting an issue, i am fine to provide extra information if needed. Thanks!

UPDATE: 1.13.0 works fine.

@avnes
avnes commented Feb 10, 2017

I am hitting the same issue on Fedora 25 with Atom 1.14.1, which was upgraded from 1.13.1

@50Wliu
Member
50Wliu commented Feb 10, 2017

@STommydx, @avnes what keyboard layout(s) are you using?

@nathansobo

@50Wliu 50Wliu changed the title from Atom crashed after updating to Error: Could not create an input method Feb 10, 2017
@avnes
avnes commented Feb 10, 2017

@50Wliu I am not at that desktop PC until later this month due to vacation, but I use a Danish keyboard layout. As I am running Openbox on Fedora 25 on that box, I have set the keyboard layout with setxkbmap

@nathansobo
Contributor

@Ben3eeE Can you link those PRs of changes to keyboard-layout in 1.14 that you posted to me in Slack?

@Ben3eeE
Member
Ben3eeE commented Feb 10, 2017 edited

@nathansobo

Also atom/keyboard-layout#26 was merged to fix CI problems from atom/keyboard-layout#24.

@jakubhruby

Same for me since 1.14.0 on ArchLinux:

System Locale: LANG=cs_CZ.UTF-8
VC Keymap: cz-us-qwertz
X11 Layout: cz,us
X11 Variant: ,
@nathansobo nathansobo added a commit that closed this issue Feb 13, 2017
@nathansobo nathansobo ⬆️ atom-keymap
Fixes #13785
f7ca704
@binaryDiv
binaryDiv commented Feb 14, 2017 edited

I just spent almost 2 hours to find a way to circumvent this problem (as the atom-editor-bin package on ArchLinux hasn't been fixed yet), and only found out because I had a similar problem with dmenu. May be helpful to @jakubhruby and anyone stumbling over this issue via Google:

The problem results from using a locale different from "en_US". It should suffice to set the environment variable LC_CTYPE to en_US.utf8, for example by starting atom from shell via LC_CTYPE=en_US.utf8 atom or by changing your locale.conf.

@nathansobo
Contributor

Please give just-published 1.15.0-beta2 a try. We think we have fixed this issue.

@avnes
avnes commented Feb 17, 2017

I tried the 1.14.2 on Fedora 25 with LANG=en_DK.UTF-8 and Danish keyboard, and I could not reproduce this issue any longer.

@nathansobo
Contributor

Thanks for the report. Glad it's working for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment