Home › Forums › Tech Support › Neverwinter Nights how-to
- This topic has 50 replies, 5 voices, and was last updated 8 years ago by
strider.
-
AuthorPosts
-
November 30, 2015 at 3:25 pm #75424
linuxgnuru
ParticipantQuote:…you’re running mesa drivers….. not on purpose
November 30, 2015 at 4:29 pm #75425strider
ParticipantThere is an issue with mesa indeed, I can reproduce it on the Zenbook
Running strace gives me:
Code:open(“/usr/lib/i386-linux-gnu/libtxc_dxtn.so”, O_RDONLY|O_CLOEXEC) = 13
read(13, “177ELF111 3 3 1 22010 004 ”…, 512) = 512
fstat64(13, {st_mode=S_IFREG|0644, st_size=218488, …}) = 0
mmap2(NULL, 221264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 13, 0) = 0xfffffffff03a4000
mmap2(0xf03d9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 13, 0x34000) = 0xfffffffff03d9000
close(13) = 0
mprotect(0xf03d9000, 4096, PROT_READ) = 0
futex(0xf7062b2c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0xf7062b34, FUTEX_WAKE_PRIVATE, 2147483647) = 0
— SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0xf7053afc} —
rt_sigaction(SIGSEGV, {SIG_DFL, [SEGV], SA_RESTART}, {0xf74528f0, [], 0}, 8) = 0
futex(0xf15afba8, FUTEX_WAIT, 13542, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
— SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} —
futex(0xf15afba8, FUTEX_WAIT, 13542, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
— SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} —
futex(0xf15afba8, FUTEX_WAIT, 13542, NULLNovember 30, 2015 at 4:38 pm #75426strider
ParticipantFound a workaround in the ARCH!1! Forums: https://bbs.archlinux.org/viewtopic.php?id=155009
On Ubuntu run:
Code:sudo apt-get remove libtxc-dxtn-s2tc0:i386The game should now launch
November 30, 2015 at 5:33 pm #75427Pedro Mateus
Keymasterstrider wrote:Found a workaround in the ARCH!1! Forums: https://bbs.archlinux.org/viewtopic.php?id=155009On Ubuntu run:
Code:sudo apt-get remove libtxc-dxtn-s2tc0:i386The game should now launch
And by doing that you won’t be able to play any other game that needs S3TC under linux.
November 30, 2015 at 6:17 pm #75428strider
ParticipantUnaccounted4 wrote:And by doing that you won’t be able to play any other game that needs S3TC under linux.Yes, that’s why it’s only a workaround and not a proper solution. The bug seems to happen only with recent versions of this lib so I might consider adding it to the lutris runtime (based on Ubuntu 14.04)
Update: I added libtxc-dxtn-s2tc0 to the runtime, reinstalled it on my laptop and the game still fails to launch. At this point, I don’t see any reliable solution, I wish there was some kind of LD_UNLOAD to prevent a lib from loading.
November 30, 2015 at 6:35 pm #75429strider
ParticipantThe gdb backtrace clearly points to something going wrong in mesa:
Code:#0 0xf7927b39 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#1 0xf789c34a in bool std::has_facet<std::ctype<char> >(std::locale const&) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#2 0xf788e1ef in std::basic_ios<char, std::char_traits<char> >::_M_cache_locale(std::locale const&) ()
from /usr/lib/i386-linux-gnu/libstdc++.so.6
#3 0xf788e3ab in std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*) ()
from /usr/lib/i386-linux-gnu/libstdc++.so.6
#4 0xf7833e7d in std::ios_base::Init::Init() () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#5 0xf0c788ae in ?? () from /usr/lib/i386-linux-gnu/libtxc_dxtn.so
#6 0xf7fe8dd0 in ?? () from /lib/ld-linux.so.2
#7 0xf7fe8ee0 in ?? () from /lib/ld-linux.so.2
#8 0xf7fed172 in ?? () from /lib/ld-linux.so.2
#9 0xf7fe8c75 in ?? () from /lib/ld-linux.so.2
#10 0xf7fec829 in ?? () from /lib/ld-linux.so.2
#11 0xf792ac65 in ?? () from /lib/i386-linux-gnu/libdl.so.2
#12 0xf7fe8c75 in ?? () from /lib/ld-linux.so.2
#13 0xf792b311 in ?? () from /lib/i386-linux-gnu/libdl.so.2
#14 0xf792ad0e in dlopen () from /lib/i386-linux-gnu/libdl.so.2
#15 0xf0335fa4 in ?? () from /usr/lib/i386-linux-gnu/dri/i965_dri.so
#16 0xf0258e69 in ?? () from /usr/lib/i386-linux-gnu/dri/i965_dri.so
#17 0xf05528b5 in ?? () from /usr/lib/i386-linux-gnu/dri/i965_dri.so
#18 0xf0500e73 in ?? () from /usr/lib/i386-linux-gnu/dri/i965_dri.so
#19 0xf0500fdf in ?? () from /usr/lib/i386-linux-gnu/dri/i965_dri.so
#20 0xf7ed532e in ?? () from /usr/lib/i386-linux-gnu/mesa/libGL.so.1
#21 0xf7eaa608 in ?? () from /usr/lib/i386-linux-gnu/mesa/libGL.so.1
#22 0xf7eaa8ce in glXCreateContext () from /usr/lib/i386-linux-gnu/mesa/libGL.so.1
#23 0xf7d4928f in ?? () from /usr/lib/i386-linux-gnu/libSDL-1.2.so.0
#24 0xf7d4ed6d in ?? () from /usr/lib/i386-linux-gnu/libSDL-1.2.so.0
#25 0xf7d4f360 in ?? () from /usr/lib/i386-linux-gnu/libSDL-1.2.so.0
#26 0xf7d3e2f0 in SDL_SetVideoMode () from /usr/lib/i386-linux-gnu/libSDL-1.2.so.0
#27 0x084d970d in ?? ()
#28 0x080508b5 in ?? ()
#29 0x0805d896 in ?? ()
#30 0x0805adc0 in ?? ()
#31 0x08059ae5 in ?? ()
#32 0x0804fb57 in ?? ()
#33 0xf7b6d72e in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#34 0x0804f851 in ?? ()November 30, 2015 at 6:54 pm #75430Pedro Mateus
KeymasterWhy is it calling stdc++6? The game needs stdc++5.
November 30, 2015 at 7:17 pm #75431strider
ParticipantUnaccounted4 wrote:Why is it calling stdc++6? The game needs stdc++5.The executable seems to be linked against libstdc++6:
Code:ldd nwmain | grep libstd
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf4e06000)Removing it makes the game complain about the lack of it.
November 30, 2015 at 9:29 pm #75433linuxgnuru
Participantbesides; by using
Code:sudo apt-get remove libtxc-dxtn-s2tc0:i386I get
Code:libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 32
Current serial number in output stream: 33i honestly didn’t realize i even had mesa installed;
November 30, 2015 at 9:44 pm #75435strider
ParticipantIf you’re not running the proprietary NVidia driver or AMD Catalyst then you’re running mesa, it’s the open source OpenGL implementation.
Try renaming nwn.ini to something else and run the game again to see if you get different results.
Also, can you paste the output of xrandr?
November 30, 2015 at 9:46 pm #75436linuxgnuru
Participantthat’s the thing; i’m using Nvidia’s 355.11 driver
xrandr:
Code:Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
LVDS-0 connected primary 1920×1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm
1920×1080 60.02*+
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)November 30, 2015 at 9:58 pm #75437strider
Participantwait, you’re on the nvidia driver? something’s very wrong then…
your monitor has only one resolution available, which is weird but instead of renaming nwn.ini try changing the resolution to 1920×1080
Code:[Display Options]
…
Height=1080
Width=1920December 1, 2015 at 12:27 am #75439linuxgnuru
Participantnot weird when it’s a laptop. I’m at work now; will try that when i get home
December 1, 2015 at 12:57 am #75440strider
ParticipantIs your laptop Nvidia only or does it also have an integrated GPU? That could explain why it tried using mesa. There’s an option to run games with primusrun in Lutris btw.
December 1, 2015 at 8:05 am #75442linuxgnuru
Participantnvidia only
-
AuthorPosts
- You must be logged in to reply to this topic.