logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Is nwnx crashing ntdll.dll?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support
View previous topic :: View next topic  
Author Message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Wed Jul 10, 2013 2:21    Post subject: Is nwnx crashing ntdll.dll? Reply with quote

Im hosting a server for someone, and its hosted on Windows Server 2008.
Litterally just a vanilla install.

With nwnx running the mod - the server crashes sporadically always saying that.

nwserver.exe stopped working, and that the faulting module was ntdll.dll


I've rebuilt the server (new OS etc) - but the crash continues.
Can anyone point me in the direction of a solution.

Faulting application nwserver.exe, version 1.6.9.0, time stamp 0x486cfaee, faulting module ntdll.dll, version 6.0.6002.18541, time stamp 0x4ec3e3d5, exception code 0xc0000005, fault offset 0x00067410, process id 0xd70, application start time 0x01ce7cfc932a7464.


Does nwnx need anything like visual c redistributables?


I've got the server running now, without nwnx, and it seems more stable.


nwnx dll's used include:

nwnx2.exe : version 2.6.1.0
nwnx_areas.dll : 0.0.0.3
nwnx_chat.dll : 0.3.4.0
nwnx_events.dll : 1.0.0.0
nwnx_fixes.dll : 1.0.5.0
nwnx_funcs.dll : 0.0.8.3
nwnx_leto.dll (no version showing)
nwnx_resetplugin.dll (no version showing)
nwnx_time.dll (no version showing)
nwnx_module.dll 2.7.0.0
Back to top
View user's profile Send private message
addicted2rpg



Joined: 01 Aug 2008
Posts: 106

PostPosted: Wed Jul 10, 2013 4:03    Post subject: Reply with quote

Baaleos, part of what I am doing with my fan edition of nwnx is to gain compatibility improvements with newer windows operating systems (64 bit systems, Win 2008, Professional-7, and so on).

I would be very interested if it my version crashes on your Windows Server 2008 system or not.

I am sorry I am not really solving your problem and am instead trying to enlist you as a beta tester for my buggy code (LOL) =-)

I'll PM you a link to my project since its not publically ready for release yet.
Back to top
View user's profile Send private message
Terra_777



Joined: 27 Jun 2008
Posts: 216
Location: Sweden

PostPosted: Wed Jul 10, 2013 12:19    Post subject: Reply with quote

Access violation during read/write using standard library functions/operators. ntdll is the native windows api library.
_________________
I dun have any signature, I'm happy anyway.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
addicted2rpg



Joined: 01 Aug 2008
Posts: 106

PostPosted: Fri Jul 19, 2013 0:03    Post subject: Reply with quote

Generally that is averted by a prior call to VirtualProtect()
Back to top
View user's profile Send private message
Terra_777



Joined: 27 Jun 2008
Posts: 216
Location: Sweden

PostPosted: Fri Jul 19, 2013 21:14    Post subject: Reply with quote

There is a reason you get access violations, you don't want to write to invalid sections of memory because it'll endup hanging/crashing anyway. If you're managing memory in nwn you want to allocate/deallocate you need to call nwns malloc and free functions. Also good practice to check for NULL returns from allocations (IE: malloc) and use try/catch blocks to catch exceptions in code that could flag access violation.

Only time you'd really wanna change the memory protection flags with VirtualProtects is when you're doing very targeted memory edits to the loaded assembly or stack.

Example on how to use try/catch to catch all exceptions: http://terrahnet.no-ip.org/terra/exceptions.cpp
_________________
I dun have any signature, I'm happy anyway.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Matt619



Joined: 14 Sep 2013
Posts: 1
Location: Faisalabad

PostPosted: Sat Sep 14, 2013 9:39    Post subject: poosting coomments................ Reply with quote

I've rebuilt the server (new OS etc) - but the crash continues.
Can anyone point me in the direction of a solution. Wink
_________________
www.pass-4sure.me.uk
http://www.eccouncil.org/
http://www.ucla.edu/
http://en.wikipedia.org/wiki/Alliant_International_University
Back to top
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Sat Sep 14, 2013 20:54    Post subject: Reply with quote

This issue was found to be an underlying incompatibility with Windows Server 2008.

When hosting on Windows Server 2003- the crash does not occur.
The offending plugin was found to be nwnx_chat.dll
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group