Generation crashes when freeglut 3.0.0 is used
Steps to reproduce:
- create a file with the next line: yade.qt.Controller()
- run yade in console with that filename as argument
- go to Generation tab
- click Generation button
- ...
- yade will crash
It happens because yade doesn't create a glut window for rendering. Just call glutCreateWindow function, and it will be fixed. I'm attaching a list of glut functions which are called by yade and stacktrace.
% LANG=C dpkg -l yade libyade python-yade freeglut3
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==================-==============-==============-========================
ii freeglut3:amd64 3.0.0-1.1 amd64 OpenGL Utility Toolkit
ii libyade:amd64 2017.01a-8 amd64 Platform for discrete el
ii python-yade 2017.01a-8 amd64 Platform for discrete el
ii yade 2017.01a-8 amd64 Platform for discrete el
Original bug report by Nicholas Guriev on 2017-04-22 : https://bugs.launchpad.net/yade/+bug/1685520