← Back to team overview

yade-dev team mailing list archive

[Bug 1685520] [NEW] Generation crashes when freeglut 3.0.0 is used

 

Public bug reported:

Steps to reproduce:

1. create a file with the next line: yade.qt.Controller()
2. run yade in console with that filename as argument
3. go to Generation tab
4. click Generation button
5. ...
6. 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

** Affects: yade
     Importance: Undecided
         Status: New

** Attachment added: "yade_gdb.log"
   https://bugs.launchpad.net/bugs/1685520/+attachment/4866440/+files/yade_gdb.log

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1685520

Title:
  Generation crashes when freeglut 3.0.0 is used

Status in Yade:
  New

Bug description:
  Steps to reproduce:

  1. create a file with the next line: yade.qt.Controller()
  2. run yade in console with that filename as argument
  3. go to Generation tab
  4. click Generation button
  5. ...
  6. 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

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1685520/+subscriptions


Follow ups