[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnustep application not running on machines with NVIDIA Optimus chip
Re: gnustep application not running on machines with NVIDIA Optimus chipset
Wed, 14 Dec 2011 10:42:42 +0100
Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111105 Thunderbird/8.0
impressive how you come up with all these interesting issues :-)
I think this time the default screen selection of GNUstep is causing you
trouble. In most cases the default screen should be 0, but for this
optimus technology things seem to be different. You should have a look
at the code in XGServer.m, specifically at _initXContext, here we select
the default screen to use.
The first thing to test is to start the application with
This should report back which screen gets used. Best pipe the error
output stream into a file as we are currently a bit verbose (and also
get quite a few errors report that way that I will have to look into).
This is the line we are interested in:
Opened display :0, display 0 screen 0
Hope this helps to get you started
On 14.12.2011 03:42, Julian Mayer wrote:
so far i've had good success building a deployable binary package of my gnustep
using application. although there are some issues, the built package seems to
launch and run on all recent linux distributions - great!
there is one exception. recent nvidia based laptops have a technology called optimus  that
is supposed to seamlessly use a integrated and a discrete graphics card. there is no official
linux support, linux users currently have to resort to a 3rd party project . optimus users
are expected to launch GPU intensive applications (like my game) using
"optirun<command>" so that the app uses the nvidia instead of the integrated
however, launching a GNUstep based GUI applications seems to be impossible with
optirun, attached is a backtrace that shows that my app is crashing right
inside the gnustep window creation routines .
i am not sure if there is a problem in GNUstep here, but if someone has some
more details or insight that i could attach to the bugreport i am gonna open at
the Bumblebee project, that would be great.
Program received signal SIGSEGV, Segmentation fault.
0x00007f059f13d235 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#0 0x00007f059f13d235 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f05a2c8a107 in ?? () from /usr/lib/x86_64-linux-gnu/librrfaker.so
#2 0x00007f05a2c8b143 in ?? () from /usr/lib/x86_64-linux-gnu/librrfaker.so
#3 0x00007f05a2c7e9fa in XCreateSimpleWindow ()
#4 0x00007f05960d8eb8 in -[XGServer(WindowOps) _setupRootWindow]
#5 0x00007f05960cefca in -[XGServer _initXContext]
#6 0x00007f05960cf0be in -[XGServer initWithAttributes:]
#7 0x00007f05a2798ccd in +[GSDisplayServer serverWithAttributes:]
#8 0x00007f05a2620b67 in -[NSApplication _init]
#9 0x00007f05a1cac2e1 in -[NSObject(NSThreadPerformAdditions)
#10 0x00007f05a26211be in -[NSApplication init]
#11 0x00007f05a2620ad0 in +[NSApplication sharedApplication]
#12 0x00007f05a2606cb4 in NSApplicationMain
#13 0x0000000000461a8d in main ()