# glfwInit crashes in XkbGetKeyboard

**URL:** <https://discourse.glfw.org/t/glfwinit-crashes-in-xkbgetkeyboard/546>\
**Category:** support\
**Created:** [June 26, 2015, 9:26pm UTC](https://discourse.glfw.org/t/glfwinit-crashes-in-xkbgetkeyboard/546 "2015-06-26T21:26:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [June 26, 2015, 9:26pm UTC](https://discourse.glfw.org/t/glfwinit-crashes-in-xkbgetkeyboard/546/1 "2015-06-26T21:26:41Z")

</div>

**[sheeri185adidam](https://sourceforge.net/u/sheeri185adidam/)** wrote on [Friday, June 26, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/01bf8acc/#a1eb):

Hi,

I built and installed glfw 3.1.1 with my custom toolchain. And when I try to run any of the tests, the program crashes in glfwInit(). Upon debugging, I saw that the return value of the function call XkbGetKeyboard() is NULL in function createKeyTables();

XkbGetKeyboard(\_glfw.x11.display,XkbAllComponentsMask,XkbUseCoreKbd);

Can anyone know what could be the problem ?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [June 27, 2015, 12:00am UTC](https://discourse.glfw.org/t/glfwinit-crashes-in-xkbgetkeyboard/546/2 "2015-06-27T00:00:24Z")

</div>

**[sheeri185adidam](https://sourceforge.net/u/sheeri185adidam/)** wrote on [Saturday, June 27, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/01bf8acc/#2bcb):

I was trying to run ‘defaults’ test program

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [June 27, 2015, 12:10am UTC](https://discourse.glfw.org/t/glfwinit-crashes-in-xkbgetkeyboard/546/3 "2015-06-27T00:10:40Z")

</div>

**[sheeri185adidam](https://sourceforge.net/u/sheeri185adidam/)** wrote on [Saturday, June 27, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/01bf8acc/#8361):

the xorg server that I am using is 1.6.1

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [June 29, 2015, 5:16pm UTC](https://discourse.glfw.org/t/glfwinit-crashes-in-xkbgetkeyboard/546/4 "2015-06-29T17:16:51Z")

</div>

**[sheeri185adidam](https://sourceforge.net/u/sheeri185adidam/)** wrote on [Monday, June 29, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/01bf8acc/#8618):

can anyone help ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [June 29, 2015, 5:19pm UTC](https://discourse.glfw.org/t/glfwinit-crashes-in-xkbgetkeyboard/546/5 "2015-06-29T17:19:55Z")

</div>

**[sheeri185adidam](https://sourceforge.net/u/sheeri185adidam/)** wrote on [Monday, June 29, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/01bf8acc/#6536):

I saw this : [https://github.com/glfw/glfw/issues/389](https://github.com/glfw/glfw/issues/389)  
this post has been mentioned there but strangely no replies here.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [June 29, 2015, 9:07pm UTC](https://discourse.glfw.org/t/glfwinit-crashes-in-xkbgetkeyboard/546/6 "2015-06-29T21:07:41Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Monday, June 29, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/01bf8acc/#c32b):

You may attempt to use the fix proposed in that issue, or wait until a fix is made.
