Clemapfel / Mousetrap.jl

Finally, a GUI Engine made for Julia

Home Page:https://clemens-cords.com/mousetrap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Clemapfel opened this issue · 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