1

Whenever I try to run some programs under bumblebee with optirun they crash before displaying any window. I particularly try to run supermeatboy because it doesn't support intel cards, but with bumblebee it doesn't get even to displaying a window unlike the intel one and crashes prematurely. I've attached the xorg log. http://paste.pocoo.org/show/540542/

Thanks in advance, Nikita.

3 Answers3

1

Your setup looks fine. I guess that you are affected by issue 42: [VGL] ERROR: Could not open display :8 if a program forks and exits optirun.

This bug occurs when running an application with optirun which detaches. Workaround: open a shell and then run the program:

optirun bash
yourprogram
Eliah Kagan
  • 117,780
Lekensteyn
  • 174,277
  • Tried it. Now I get a "Segementation Fault" in console. This is the log: http://paste.pocoo.org/show/540555/ – nikitautiu Jan 25 '12 at 16:22
  • What program are you trying to run? Do you get other errors in the console? If it's a 32-bit program, install the virtualgl-libs:i386 package. – Lekensteyn Jan 25 '12 at 16:35
  • As mentioned in the question it's supermeatboy. Apart from the segmentation fault nothing and virtualgl appear to be at the latest version – nikitautiu Jan 25 '12 at 16:45
  • Is there an entry in dmesg when the program segfaults? – Lekensteyn Jan 25 '12 at 17:01
  • This http://paste.pocoo.org/show/540581/ – nikitautiu Jan 25 '12 at 17:10
  • Try a debugger, after optirun bash, run gdb yourprogram. In the gdb shell, execute run and after the crash bt. To quit it, run quit (add the output to your question or pastebin). – Lekensteyn Jan 25 '12 at 17:52
  • http://paste.pocoo.org/show/540623/ I should get a loyal pastebin costumer badge after this :D. – nikitautiu Jan 25 '12 at 18:13
  • Please install virtualgl-libs-dbg:i386 and generate a new backtrace. – Lekensteyn Jan 25 '12 at 20:24
  • http://paste.pocoo.org/show/541028/ Sorry for the late response. – nikitautiu Jan 26 '12 at 13:43
  • It looks like a bug in Virtual GL. From what I've read, it's because an OpenGL context was not correctly established. What you can do about it? At most reporting it to the virtualgl bug tracker. – Lekensteyn Jan 26 '12 at 14:35
0

Do

optirun bash
sudo ./SuperMeatBoy

Using sudo helped me to avoid Segmentation fault

Eliah Kagan
  • 117,780
0

Using primusrun instead of optirun solves this problem.

Primus is a different bumblebee backend with better performance (less overhead) and less power usage (second GPU only used for OpenGL parts of the program).

You install primus with sudo aptitude install primus and run it with:

primusrun your_cool_program

This is far easier to use in scripts than the optirun workarounds.

JonnyJD
  • 138