Newbie: librocket in panda problems

I want to integrate librocket with panda3d, but i am getting segfault at driver level when i call “context->render”.
I have very little background in c++, so there is very good possibility i am doing something wrong.

I have been suggested that this may be caused by dependancy version difference.

I had some other problems, but resolved them all, i am not completely sure, but it would seem this is last thing to take care of to get librocket gui into panda.

main code file is x.cpp

Code that i am using is available at github.com/GrizzLyCRO/p3d_rocket

[Thread debugging using libthread_db enabled]
Known pipe types:
  glxGraphicsPipe
(all display modules loaded.)
sex
No font face defined on element #text < div#content < div#window < body.window < #root#default. Please specify a font-family in your RCSS.
No font face defined on element #text < span#title < handle < div#title_bar < body.window < #root#default. Please specify a font-family in your RCSS.
sex2222

Program received signal SIGSEGV, Segmentation fault.
0x00007fffef1641cb in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.270.41.06
(gdb) bt
#0  0x00007fffef1641cb in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.270.41.06
#1  0x00007fffef2a67b3 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.270.41.06
#2  0x00007fffef2a84d3 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.270.41.06
#3  0x00007fffef003e72 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.270.41.06
#4  0x00000000004036f2 in ShellRenderInterfaceOpenGL::RenderGeometry (this=0x7fffffffe650, vertices=0xaf00d0, 
    indices=0xaf8e10, num_indices=54, texture=1, translation=...) at ShellRenderInterfaceOpenGL.cpp:59
#5  0x00007ffff49b9555 in Rocket::Core::Geometry::Render(Rocket::Core::Vector2<float> const&) ()
   from /usr/local/lib/rocket/libRocketCore.so.1
#6  0x00007ffff4901975 in Rocket::Core::DecoratorTiledBox::RenderElement(Rocket::Core::Element*, unsigned long) () from /usr/local/lib/rocket/libRocketCore.so.1
#7  0x00007ffff491c338 in Rocket::Core::ElementDecoration::RenderDecorators() ()
   from /usr/local/lib/rocket/libRocketCore.so.1
#8  0x00007ffff4957a83 in Rocket::Core::Element::Render() () from /usr/local/lib/rocket/libRocketCore.so.1
#9  0x00007ffff4957a19 in Rocket::Core::Element::Render() () from /usr/local/lib/rocket/libRocketCore.so.1
#10 0x00007ffff4957a19 in Rocket::Core::Element::Render() () from /usr/local/lib/rocket/libRocketCore.so.1
#11 0x00007ffff4939b11 in Rocket::Core::Context::Render() () from /usr/local/lib/rocket/libRocketCore.so.1
#12 0x0000000000403ec1 in main (argc=1, argv=0x7fffffffe808) at x.cpp:77

I’m seeing all sorts of OpenGL calls, but I’m not seeing you open a window and OpenGL context anywhere. Does librocket do this for you?

It is now possible to render librocket gui in panda window , as long as some 3d model does not come into viewport. Anyway, i did not spend much time on this, but i feel i am really not able enough to integrate it into panda, someone with better understanding oh graphics systems will probably have easy time doing it. If all goes well, it should not be even full day of work.

Sorry for spamming forums, and good luck to anyone who decides to implement it :slight_smile: