Clemapfel/Mousetrap.jl

if `gdk_context_realize` fails, crashes `construction from null is not valid`

Clemapfel opened this issue · 1 comments

On certain linux distros, such as the ChromeOS Linux container, calling mousetrap.detail.initialize() causes the following error:

julia>  mousetrap.detail.initialize()

(julia:2732): debug-CRITICAL : 16:53:03.591: In gdk_window_create_gl_context: Failed to create EGL display

(julia:2732): Gdk-CRITICAL : 16:53:03.592: gdk_gl_context_set_required_version: assertion 'GDK_IS_GL_CONTEXT (context)' failed

(julia:2732): Gdk-CRITICAL **: 16:53:03.592: gdk_gl_context_realize: assertion 'GDK_IS_GL_CONTEXT (context)' failed
ERROR: basic_string: construction from null is not valid
Stacktrace:
 [1] initialize()
   @ mousetrap.detail ~/.julia/packages/CxxWrap/aXNBY/src/CxxWrap.jl:624
 [2] top-level scope
   @ REPL[14]:

This is due to a fault in how failing to create the OpenGL context is handled. This will be fixed in version 0.2.0

Fixed by Clemapfel/mousetrap@c973670, which will be deployed in v0.2.0