Posted by
Zib on
URL: https://forum.jogamp.org/GLCanvas-in-SWT-Problem-with-a-Text-widget-tp4025739.html
Hi all!
I am trying to develop an app to display 3D grids and so I use OpenGL binding for this! I was on LWJGL before, but I find it quite complex to setup two different displays at a time, so I thought, why not JOGL ?
And here I am ... because my app crash for a reason I do not understand!
I started from the tutoriel available on the wiki (to display a triangle) and it worked quite well. Then I started adapting it to my needs and here come the problems ... my GUI is now very simple :
screenshotso two buttons and a Text field in a composite on the left, the GLCanvas on the right ...
Problems arrive when I use setText to set a default text in the Text field : the app crash, not even with a stacktrace :
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f06be507634, pid=8982, tid=139666918373120
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libpthread.so.0+0x9634] pthread_mutex_lock+0x4
#
# An error report file with more information is saved as:
# /home/zib/devJava/JMeshingTool/hs_err_pid8982.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
here is the link to the log file:
click!and here are the classes I use:
main class :
http://pastebin.com/WSuERCJUcomposite instanciating GLCanvas:
http://pastebin.com/vavduZLdthe crash happens when, in the main class, I uncomment one of the line 114 or 115. commented, everything works fine!
did someone already have this problem ? I googled it, but find nothing relevant about this (my googling skills might be bad as well)
Thanks!