• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Cannot Confirm Sea Battles: Crash for virtual function call

Captain Tiems

Landlubber
My game crashes sometimes in battles, more often in the bigger battles.

Runtime error

Engine.exe

r6015
-pure virtual function call
 
Please post more information. For example log files, save games where this can be repeated and any details that might be relevant.
 
Last things in there are related to masts falling:
Code:
For character 0 fall Mast name mast3 has index 3
== Directsail called at 07:44
For character 0 fall Mast name mast2 has index 2
For character 0 fall Mast name mast4 has index 4
For character 2002 fall Mast name mast3 has index 3
Not entirely surprising, because missing masts are always tricky in many ways.

Also, you don't seem to have the latest update;
Code:
Build 14 Beta 3.5 WIP: 2 Jul 2015
Savegame Compatibility: 14.916
Newest version should be 9 July if I recall.
Anyway, I intend to make a new installer tonight so you can wait for next update, I suppose.
 
This could be caused by language files which are unloaded already if we are lucky.
else it's a pointer problem... Or reference problem.
 
This can happen for example when the reference or pointer to an object is pointing to a NULL location, and you use the object reference or pointer to call a virtual function in the class. For example:

std::vector<DerivedClass> objContainer;if(!objContainer.empty())constBaseClass& objRef = objContainer.front();// Do some processing using objRef and then you erase the first// element of objContainer
objContainer.erase(objContainer.begin());const std::string& name = objRef.name();// -> (name() is a pure virtual function in base class, // which has been implemented in DerivedClass).
At this point object stored in objContainer[0] does not exist. When the virtual table is indexed, no valid memory location is found. Hence, a run time error is issued saying "pure virtual function called".

So it could be an pointer is pointing to an object which is deleted. Or more likely a aref is made where the attribute is deleted later while the aref is called.
 
Started a new game on Standard and gave myself the Soleil Royal, then went to harass the Speighstown blockading squadron.
All seemed smooth enough.

Did get this in compile.log though:
Code:
XP ERROR: No officertype assigned to: Remy Gatien now set to: fighter
For character 993 fall Mast name mast4 has index 4
XP ERROR: No officertype assigned to: Begon Monchaty now set to: fighter
XP ERROR: No officertype assigned to: Yves Giner now set to: fighter

And I also got this: Confirmed Bug - Sea Battles: Crash for virtual function call | PiratesAhoy!

I got the same thing with Man-o-War...
Untitled.jpg
 
Since we didn't hear this being reported again for almost a month, I am marking it as "Cannot Confirm".
 
Hi, i got 3 of these today, all attacking forts, i don't know if related but i had lost masts in all times i think.
 

Attachments

  • compile.log
    311.3 KB · Views: 45
  • error.log
    2.5 KB · Views: 45
  • system.log
    285.2 KB · Views: 45
Back
Top