Wx opengl error on Ubuntu: (Erlang:8464): GLib-WARNING

Hi,
Could you please help me to understand?
The wx:demo() about GL is working, while a lot of other examples using wx and gl did not work (both on Windows and Ubuntu). For instance GitHub - kostyushkin/erlworld: A fork of https://code.google.com/p/erlworld/
GitHub - dgud/gl_demos: Erlang wxErlang OpenGL demos
Under Ubuntu I get

(Erlang:8464): GLib-WARNING **: 11:11:53.402: In call to g_spawn_sync(), exit status of a child process was requested but ECHILD was received by waitpid(). See the documentation of g_child_watch_source_new() for possible causes.

And nothing is starting, on Windows nothing is starting but no messages.
What do you think? Why in one case does it work and not in the others?
Best

1 Like

At least my old opengl code have not been updated to use the new wxGLCanvas interface.

I have updated the demos and they run for me on windows now.

All had the same problems:

  • wxGLContext initialization.
  • Used integers as floats and vice verse.
  • Used erlang:now

The demos still use the old OPENGL API which is discouraged nowadays.

1 Like

Thanks,
just today I’ve updated the code for cubes and image and now it works. Unfortunately for Erlworld, which I am very interested to, the changes to setCurrent/2 did not seem to have a positive effect

1 Like