Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
39 user(s) are online (18 user(s) are browsing Forum)

Members: 0
Guests: 39

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +0€

Current balance: 55€
(last updated 04/2021)

Please make a donation if you want to help keeping The-Starport online:

Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 33 users playing Freelancer on 47 servers.
November. 30, 2021

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

« 1 ... 10 11 12 (13) 14 15 »


Re: Crash Offsets
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1999
Offline
I'm pretty confident it's a ship loadout - the crash occurs after Loadout::Get (presumably returning NULL), called when a ship is created (int pub::SpaceObj::Create(UINT &,const pub::SpaceObj::ShipInfo &)). Perhaps there's a typo in a ship? Nothing in the spew?

Posted on: 2020/2/3 12:44
Top
Re: Crash Offsets
Home away from home
Joined:
2008/5/21 19:32
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 961
Offline
I think I had some issues once relating to a pilot somehow. Might want to get rid of all loadouts for all your encounters and see if the problem persists. If it does, look at your pilots.

If the problem goes away, start adding loadouts back in until the crashes resume.

Posted on: 2020/2/3 13:06
Gun control is like fighting drunk driving by making it harder for sober people to buy a car...
Top
Re: Crash Offsets
Quite a regular
Joined:
2008/2/14 21:37
From İstanbul, Turkey
Group:
Registered Users
Wiki editors
$$$ Supporters $$$
Posts: 153
Offline
As loadouts.ini is clean I can only assume its a typo in an encounter. Wouldn't this cause output in flspew though?

I'll take a bit of time to pull the mod apart and check for typos and report back.

Posted on: 2020/2/3 14:46
Top
Re: Crash Offsets
Quite a regular
Joined:
2008/2/14 21:37
From İstanbul, Turkey
Group:
Registered Users
Wiki editors
$$$ Supporters $$$
Posts: 153
Offline
Fixed this, but I have a new problem! The server app silently crashes on start (but only on my local machine) Offset is 0x00001c54 in flserver.exe. It doesn't seem consistent either. Sometimes it starts, sometimes it crashes:

Code:
Faulting application name: FLServer.exe, version: 1.35.1254.11, time stamp: 0x3ecbb13e
Faulting module name: jflp.dll, version: 1.2.0.3, time stamp: 0x5d9fe6dd
Exception code: 0xc0000005
Fault offset: 0x00001c54
Faulting process ID: 0xec4
Faulting application start time: 0x01d5e0d19a65c16e
Faulting application path: C:\Program Files (x86)\Microsoft Games\Freelancer\EXE\FLServer.exe
Faulting module path: C:\Program Files (x86)\Microsoft Games\Freelancer\EXE\jflp.dll
Report ID: 6e4291ec-560f-49ab-a349-6bf8a0fcee33
Faulting package full name: 
Faulting package-relative application ID: 

Posted on: 2020/2/11 11:56
Top
Re: Crash Offsets
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1999
Offline
The JFLP DLL is for the client, not the server.

Posted on: 2020/2/11 12:08
Top
Re: Crash Offsets
Quite a regular
Joined:
2008/2/14 21:37
From İstanbul, Turkey
Group:
Registered Users
Wiki editors
$$$ Supporters $$$
Posts: 153
Offline
I feel a bit silly here, but bizarrely this still occurs even when I comment jflp.dll out of dacom.ini! Feel like I'm missing something extremely obvious >.<

Posted on: 2020/2/11 12:15
Top
Re: Crash Offsets
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1999
Offline
The server uses dacomsrv.ini.

Posted on: 2020/2/11 12:15
Top
Re: Crash Offsets
Quite a regular
Joined:
2008/2/14 21:37
From İstanbul, Turkey
Group:
Registered Users
Wiki editors
$$$ Supporters $$$
Posts: 153
Offline
jflp.dll isn't defined in dacomsrv.ini either! I've mostly left that alone and the only non-vanilla dll files defined in there are FLHook and your excellent Ammo Limit plugin.

Posted on: 2020/2/11 12:18
Top
Re: Crash Offsets
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1999
Offline
Well then, that's got me stumped. FLHook isn't loading it, is it?

Posted on: 2020/2/11 12:42
Top
Re: Crash Offsets
Quite a regular
Joined:
2008/2/14 21:37
From İstanbul, Turkey
Group:
Registered Users
Wiki editors
$$$ Supporters $$$
Posts: 153
Offline
FLHook starts loading, but flserver seems to crash while it's trying to load the name cache. What's really confusing about this is it's very inconsistent. I just had to start flserver 4 times to try and get it to crash!

It's got to be something on my system. It's not the end of the world as the server runs and starts just fine on our vps. It makes local testing a bit of a pain, but I was mostly just a bit concerned I'd introduced something that's going to cause more problems down the line.

Posted on: 2020/2/11 12:49
Top
Re: Crash Offsets
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1999
Offline
The crash is when JFLP removes the "Used Hostile Pick Assistance" message - flserver.exe isn't as big as freelancer.exe, so that memory doesn't exist. If jflp.dll is always being loaded and flserver.exe isn't always crashing, then it must be overwriting something that gets allocated; the alternative is that jflp.dll isn't always being loaded.

Posted on: 2020/2/11 13:02
Top
Re: Crash Offsets
Quite a regular
Joined:
2008/2/14 21:37
From İstanbul, Turkey
Group:
Registered Users
Wiki editors
$$$ Supporters $$$
Posts: 153
Offline
That's very odd! We've not made any adjustments to flserver at all bar a version number change. jflp.exe isn't being called in the server console as far as I can see.

A bit of an aside, How, in 2019 are you building jflp.dll with VC6? I want to play around with it a bit and see if I can understand it better, but I cannot for the life of me get it to build in Visual Studio. It seems to very consistently give me a line about there being too few arguments for call on line 319 so I assume I'm missing something important.

Posted on: 2020/2/11 15:47
Top
Re: Crash Offsets
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1999
Offline
I like VC6, generates small binaries. Newer compilers need the size:

Code:
      *len += vswprintf( buf + *len, 4096 - *len, value_fmt, args );

That compiles with 2010 (the latest I have) and seems to work.

Posted on: 2020/2/12 1:55
Top
Re: Crash Offsets
Quite a regular
Joined:
2008/2/14 21:37
From İstanbul, Turkey
Group:
Registered Users
Wiki editors
$$$ Supporters $$$
Posts: 153
Offline
Got it compiling, thanks!

New puzzle on this fault. If I physically remove jflp.dll from the EXE folder before I start the server client, I get this:

Code:
Faulting application name: FLServer.exe, version: 1.35.1254.11, time stamp: 0x3ecbb13e
Faulting module name: AmmoLimit.dll, version: 1.0.0.1, time stamp: 0x52830b5b
Exception code: 0xc0000005
Fault offset: 0x000013cb
Faulting process ID: 0x133c
Faulting application start time: 0x01d5e2414c11f657
Faulting application path: C:\Program Files (x86)\Microsoft Games\Freelancer\EXE\FLServer.exe
Faulting module path: C:\Program Files (x86)\Microsoft Games\Freelancer\EXE\AmmoLimit.dll
Report ID: 73b6b356-0539-4259-a3e6-1edad36ee994
Faulting package full name: 
Faulting package-relative application ID: 


However, if I remove both, the application still faults, citing jflp as the issue. Any ideas?

EDIT: commenting out flhook.dll actually seems to stop the crash. Have to assume this means it's something hook-related, which is probably out of the scope of this thread.
EDIT2: Leaving ammolimit.dll in still crashes the server! Console gets a line off about how it can't load the dll and is ignoring it, then a few seconds later, the application faults again.

Posted on: 2020/2/13 7:48
Top
Re: Crash Offsets
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1999
Offline
If you've deleted EXE\jflp.dll, but that's still crashing, then it must be loaded from somewhere else; if removing flhook.dll stops the crash, then at a guess it's in EXE\flhook_plugins.

AmmoLimit has a simple check to detect if it's running on the server or the client - it tests if the client memory exists. Apparently it sometimes exists on your server, too, so it's incorrectly making the client patches. If you'd like it to be a bit more robust, change:

Code:
  if (ProtectX( ADDR_LIMIT1, 6 ))
  {

to:

Code:
  if (GetModuleHandle("freelancer.exe"))
  {
    ProtectX( ADDR_LIMIT1, 6 );

and that should solve it (unless you've renamed the exe).

Posted on: 2020/2/13 8:22
Top
« 1 ... 10 11 12 (13) 14 15 »