|
|
#1 | ||||||
|
Registered User
Join Date: May 2008
Posts: 36
|
Hi there.
I've had this issue with driver versions 171.06, 173.08 and 173.14.05. Whenever I try to run a linux application that uses 3d, the application crashes. Here are some examples: linux-quake4: Quote:
Quote:
Quote:
and to be sure the linux libraries are installed: Quote:
I send in a bug report via mail a month ago or so, but since the issue still remains I'll give it another shot. Cheers. UPDATE: I did some more research and came upon a few more details concerning my problem. First of all the error message quake4 produces is due to the fact that the linux GL libraries couldn't be found. Unfortunately id hasn't really been good in putting proper error messages into their games. So "Fatal Error: Unable to initialize OpenGL" in this case means that the libraries couldn't be found and quake4 is trying to make use of the freebsd GL libraries which obviously won't work. The reason the linux GL libraries couldn't be found is, because all id games I tested so far (except linux-doom3) have a hardcoded RPATH which points to "/usr/local/lib". Since the nvidia drivers get installed into /compat/linux/usr/lib id games won't find them. I tested this with the linux-enemy-territory-quake-wars demo an got the following error message (thanks to id for finally improving their error messages): Quote:
Well. What happend after I performed the steps I described above was that all id games now output the same error message doom3 does. I checked a bit around and and signal 4 seems to be caused by missing SSE, SSE2 and SSE3 support. Now that's odd because I'm pretty sure my CPU supports all of those features: taken from dmegs: Quote:
|
||||||
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Nov 2006
Posts: 11
|
Hello,
gigiita wrote this about nvidia-driver and FreeBSD linuxator: http://www.nvnews.net/vbulletin/showthread.php?t=105545 In BSDGroup wie have spoken (in german language) about that too: https://forum.bsdgroup.de/showthread...=nvidia-driver OliverHerold wrote he can use the linuxator with compat.linux.osrelease: 2.4.2 and linux_base-fc-4_10 like in FreeBSD 6.x. But compat.linux.osrelease: 2.6.16 and linux_base-fc6 is the new default in FreeBSD 7 and nvidia-driver stopp work in FreeBSD 7 linuxator with compat.linux.osrelease: 2.6.16 and linux_base-fc6. ![]() Greetings, Fusselbaer |
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: May 2008
Posts: 36
|
oh dear. i didn't realise the linuxulator was that broken.
![]() maybe somebody running the HEAD branch could test the driver and see if linux apps work. i had a quick look at the linuxulator sources using webcvs and they comitted quite a lot of changes recently to it. i also did a bit of debugging and at least doom3 dies after issueing a linux_sys_futex syscall and that's exactly the syscall the recent commits to HEAD are dealing with. cheers. |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Nov 2006
Posts: 11
|
@arundel:
Oh no, i think it's not the linuxator, that is broken, FreeBSD 7 new linuxator seems only incompatible with linux part of nvidia-driver, or vice versa. I make my little experiments and put by hand the linux_dri in place of the nvidia-driver linux libs and the 3D linux games in FreeBSD 7 linuxator start, not realy "running", but i can start linux ut2004 3D game. ut2004 works realy slow with linux_dri, not realy playable. The libs from nvidia-driver linux part are: Code:
/usr/compat/linux/usr/lib/libGL.so.1 Code:
/usr/compat/linux/usr/lib/libGL.so.100.14.23 Greetings, Fusselbaer |
|
|
|
|
|
|
#5 | |
|
Registered User
Join Date: May 2008
Posts: 36
|
Thanks for the hint. After installing the linux_dri port I was able to actually play ut2004. It's very slow even in 320x200 but at least it works.
id games however complain about a missing linux version of libdrm. I still think the problem is with the linuxulator though. I downloaded the linux drivers and compared the libraries to the ones the freebsd driver installs into /compat/linux/lib. They are the same. So it's up to the linuxulator to properly map the linux syscalls to their counterparts in freebsd. And at least the linux_sys_futex syscall is either not implemented or isn't doing what it's supposed to do. Check out this warning I got while running ut2004: Quote:
|
|
|
|
|
|
|
#6 | ||
|
Registered User
Join Date: May 2008
Posts: 36
|
Ok. After recompiling the linuxulator with debugging support I found the exact position where all the id apps crash:
http://fxr.watson.org/fxr/source/i38...=FREEBSD7#L372 Code:
372 if (copyout(&frame, fp, sizeof(frame)) != 0) {
373 /*
374 * Process has trashed its stack; give it an illegal
375 * instruction to halt it in its tracks.
376 */
377 #ifdef DEBUG
378 if (ldebug(rt_sendsig))
379 printf(LMSG("rt_sendsig: bad stack %p, oonstack=%x"),
380 fp, oonstack);
381 #endif
382 PROC_LOCK(p);
383 sigexit(td, SIGILL);
384 }
Quote:
Quote:
It would really be interesting to see what happens on a system that's running CURRENT. cheers. |
||
|
|
|
|
|
#7 |
|
Registered User
Join Date: Jan 2008
Posts: 17
|
I will try it.
By the way, the linux version of glxinfo should say "direct rendering: no" Did you check it? |
|
|
|
|
|
#8 |
|
Registered User
Join Date: May 2008
Posts: 36
|
if i try to run linux-glxinfo it coredumps.
![]() |
|
|
|
|
|
#9 |
|
Registered User
Join Date: Jan 2008
Posts: 17
|
mm...mm..
I cannot compile a CURRENT system. Odd errors in make world.... At the moment i can't try anything. Sorry. |
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| nVidia Linux drivers with Linux on Mac, help? | Thetargos | NVIDIA Linux | 0 | 05-13-12 12:52 PM |
| Week in tech: Microsoft's Linux supernodes, Ubuntu's best apps, and more | News | Latest Tech And Game Headlines | 0 | 05-06-12 03:00 AM |
| Mandrake Linux 9.0 (Dolphin) now available | comments? | volt | General Linux | 10 | 10-19-02 10:13 PM |
| Unable to run Cg tree demo | wysiwyg | NVIDIA GeForce 7, 8, And 9 Series | 27 | 08-09-02 04:13 PM |