View previous topic :: View next topic |
Author |
Message |
bsworkman
Joined: 20 Sep 2006 Posts: 18
|
Posted: Mon Sep 03, 2007 20:36 Post subject: Getting stuck when exiting server |
|
|
I have just installed and tried out the reset plugin. Very nice, except I have a problem, which I have actually had all along manually shutting down the server. When I type exit in the console The server exits and then NWNX2Lib says its exiting and it hangs there. Nothing happens from that point onward. Any thoughts?
If I comment out the NWNx export LD Preload line it exits fine and even restarts when I place my while loop in. But after I uncomment it, it just hangs after NWNX2Lib exiting. I have tried to remove all the plugins except for the basic nwnx with no luck. I have even tried recompiling several times. The compile goes flawlessly but I still have the same problem. I have downloaded and made sure I have the latest version as of today, deleted the old .so files and recompiled. No Luck.
For now I'd be happy if it just would exit completely.
Using the reset plugin is kinda pointless if I can't get it to exit properly, any suggestions?
Thanks,
-B. |
|
Back to top |
|
|
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Thu Sep 06, 2007 2:15 Post subject: |
|
|
I had a similar problem, and it was solved by changing the version of reset plugin I was using, if I recall correctly. Maybe that's whats going on with you too. _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
bsworkman
Joined: 20 Sep 2006 Posts: 18
|
Posted: Thu Sep 06, 2007 4:26 Post subject: |
|
|
I am using 0.2 of the Linux Reset Plugin.
Which I believe is the latest version.
It shuts down the server just gets stuck at that NWNLib2 thing.
It does the same even if I get rid of the plugin and just use NWNx.
In fact it does that if I rid all the plugins and use just the base nwnx.
If I type exit in the console, it hangs there.
If I remove Nwnx, it closes or restarts fine depending on what startup script I use.
One thing I noticed is that if I misspell the module name when loading, it trys the reboot or shutdown according correct. It doesn't hang. Only if it loads a module, any module will it hang and only if nwnx is there.
Not sure, but I'm thinking I have an NWNx issue outside the realm of the reset plugin. Its actually triggering the shutdown, but never ending nwnxlib2.
-B. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Thu Sep 06, 2007 6:30 Post subject: |
|
|
What version of NWNX core are you using? Did you compile it yourself or got the binaries somewhere? |
|
Back to top |
|
|
bsworkman
Joined: 20 Sep 2006 Posts: 18
|
Posted: Thu Sep 06, 2007 18:22 Post subject: |
|
|
Version 2.6.1 which I just re-downloaded a few days ago to make sure.
And Yes, I compiled it myself. No errors on compile that I'm aware of.
All Plug-ins seem to function fine.
-Brian. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
|
Back to top |
|
|
bsworkman
Joined: 20 Sep 2006 Posts: 18
|
Posted: Fri Sep 07, 2007 0:39 Post subject: |
|
|
Same issue,
I both deleted and put the .so file in and also recompiled it and tried it that way, no luck. Still sticks. |
|
Back to top |
|
|
bsworkman
Joined: 20 Sep 2006 Posts: 18
|
Posted: Fri Sep 07, 2007 1:08 Post subject: |
|
|
./configure and make install outputs
Code: |
admin@nwn-forum:/usr/local/share/nwn/linnwnx2$ ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for fcntl.h... yes
checking for netinet/in.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/ioctl.h... yes
checking for sys/mman.h... yes
checking for sys/socket.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... (cached) yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for working malloc... yes
checking for bzero... yes
checking for getspnam... yes
checking for inflateEnd in -lz... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating db/Makefile
config.status: creating mnx/Makefile
config.status: creating functions/Makefile
config.status: creating hashset/Makefile
config.status: creating config.h
admin@nwn-forum:/usr/local/share/nwn/linnwnx2$ make install
g++ -w -fPIC -shared -W -Wall -o nwnx2.so nwnx2lib.o NWNXBase.o gline.o -ldl -DHAVE_CONFIG_H
make -C db
make[1]: Entering directory `/home/admin/.Trash/linnwnx2/db'
g++ -w -fPIC -shared -W -Wall -o nwnx_odbc.so NWNXmysql.o plugin-mysql.o data.o dbmysql.o -L/usr/lib/mysql -lmysqlclient -lz -DHAVE_CONFIG_H
make[1]: Leaving directory `/home/admin/.Trash/linnwnx2/db'
make -C mnx
make[1]: Entering directory `/home/admin/.Trash/linnwnx2/mnx'
g++ -w -fPIC -shared -W -Wall -o nwnx_mnx.so NWNXmnx.o plugin-mnx.o -DHAVE_CONFIG_Hmake[1]: Leaving directory `/home/admin/.Trash/linnwnx2/mnx'
make -C functions
make[1]: Entering directory `/home/admin/.Trash/linnwnx2/functions'
g++ -w -fPIC -shared -W -Wall -o nwnx_functions.so NWNXFunction.o plugin-functions.o-DHAVE_CONFIG_H
make[1]: Leaving directory `/home/admin/.Trash/linnwnx2/functions'
make -C hashset
make[1]: Entering directory `/home/admin/.Trash/linnwnx2/hashset'
g++ -w -fPIC -shared -W -Wall -o nwnx_hashset.so NWNXHashSet.o plugin-hashset.o -DHAVE_CONFIG_H
make[1]: Leaving directory `/home/admin/.Trash/linnwnx2/hashset'
for i in db mnx functions hashset ; do make -C $i install; done
make[1]: Entering directory `/home/admin/.Trash/linnwnx2/db'
mkdir -p /usr/local/share/nwn/ ; install nwnx_odbc.so /usr/local/share/nwn/
make[1]: Leaving directory `/home/admin/.Trash/linnwnx2/db'
make[1]: Entering directory `/home/admin/.Trash/linnwnx2/mnx'
mkdir -p /usr/local/share/nwn/ ; install nwnx_mnx.so /usr/local/share/nwn/
make[1]: Leaving directory `/home/admin/.Trash/linnwnx2/mnx'
make[1]: Entering directory `/home/admin/.Trash/linnwnx2/functions'
mkdir -p /usr/local/share/nwn/ ; install nwnx_functions.so /usr/local/share/nwn/make[1]: Leaving directory `/home/admin/.Trash/linnwnx2/functions'
make[1]: Entering directory `/home/admin/.Trash/linnwnx2/hashset'
mkdir -p /usr/local/share/nwn/ ; install nwnx_hashset.so /usr/local/share/nwn/make[1]: Leaving directory `/home/admin/.Trash/linnwnx2/hashset'
mkdir -p /usr/local/share/nwn/
install nwnx2.so /usr/local/share/nwn/
if [ ! -f /usr/local/share/nwn/nwnx2.ini ]; then install nwnx2.ini /usr/local/share/nwn/; fi
admin@nwn-forum:/usr/local/share/nwn/linnwnx2$
|
|
|
Back to top |
|
|
bsworkman
Joined: 20 Sep 2006 Posts: 18
|
Posted: Sat Sep 08, 2007 23:24 Post subject: |
|
|
Fixed It!!
I had to remove both the Leto and Reset Plugins completely and then recompile them from their sources.
For some reason the already compiled .so files work but cause this problem.
Removing just one didn't do it, they both caused the issue.
I guess rule of thumb, always compile from the sources your .so files. Never used a precompiled .so for nwnx. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sun Sep 09, 2007 20:23 Post subject: |
|
|
bsworkman wrote: | Fixed It!!I guess rule of thumb, always compile from the sources your .so files. Never used a precompiled .so for nwnx. | .. if something doesn't work. In most cases precompiled .so's work ok. |
|
Back to top |
|
|
|