View previous topic :: View next topic |
Author |
Message |
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Wed Jul 10, 2013 2:21 Post subject: Is nwnx crashing ntdll.dll? |
|
|
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 |
|
|
addicted2rpg
Joined: 01 Aug 2008 Posts: 106
|
Posted: Wed Jul 10, 2013 4:03 Post subject: |
|
|
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 |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Wed Jul 10, 2013 12:19 Post subject: |
|
|
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 |
|
|
addicted2rpg
Joined: 01 Aug 2008 Posts: 106
|
Posted: Fri Jul 19, 2013 0:03 Post subject: |
|
|
Generally that is averted by a prior call to VirtualProtect() |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Fri Jul 19, 2013 21:14 Post subject: |
|
|
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 |
|
|
Matt619
Joined: 14 Sep 2013 Posts: 1 Location: Faisalabad
|
|
Back to top |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Sat Sep 14, 2013 20:54 Post subject: |
|
|
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 |
|
|
|