Author Topic: Crash by Multiplayer New Problem  (Read 1867 times)

0 Members and 1 Guest are viewing this topic.

Offline Eiswolf

  • 26
Crash by Multiplayer New Problem
When the player will change the ship FS2 crash...
This is the Error Message. How can i fixe it??? I have no any idea....


Assert: offset < max_size
File: missionscreencommon.cpp
Line: 1369

KERNELBASE.dll! IsNLSDefinedString + 3231 bytes
KERNELBASE.dll! WaitForSingleObjectEx + 139 bytes
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_7_0_SSE-DEBUG.exe! <no symbol>
fs2_open_3_7_0_SSE-DEBUG.exe! <no symbol>
fs2_open_3_7_0_SSE-DEBUG.exe! <no symbol>
fs2_open_3_7_0_SSE-DEBUG.exe! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
fs2_open_3_7_0_SSE-DEBUG.exe! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
fs2_open_3_7_0_SSE-DEBUG.exe! <no symbol>
« Last Edit: August 22, 2014, 02:08:02 pm by Eiswolf »
Aerotech Alpha v 0.1 download here ---> http://www.hard-light.net/forums/index.php?topic=87385.0

It plays in Battletech Univers

Aerotech Concept click here ---> http://www.hard-light.net/forums/index.php?topic=81572.0

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Crash by Multiplayer Map Ship Loadout...
fs2_open_3_7_0_SSE-DEBUG.exe
Does the same problem occur with a more recent version, like 3.7.2 RC3?
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Eiswolf

  • 26
Re: Crash by Multiplayer Map Ship Loadout...
I´ve tested with RC3... but it is the same problem.
Is the problem the Mission there was created in FRED? Have i any errors made by create the mission in FRED?
Or is the discription of ship to long???
I have no any Ideas.

Assert: offset < max_size
File: missionscreencommon.cpp
Line: 1394

fs2_open_3_7_2_RC3-DEBUG.exe! <no symbol>
fs2_open_3_7_2_RC3-DEBUG.exe! <no symbol>
fs2_open_3_7_2_RC3-DEBUG.exe! <no symbol>
fs2_open_3_7_2_RC3-DEBUG.exe! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
fs2_open_3_7_2_RC3-DEBUG.exe! <no symbol>
<no module>! <no symbol>
fs2_open_3_7_2_RC3-DEBUG.exe! <no symbol>
Aerotech Alpha v 0.1 download here ---> http://www.hard-light.net/forums/index.php?topic=87385.0

It plays in Battletech Univers

Aerotech Concept click here ---> http://www.hard-light.net/forums/index.php?topic=81572.0

 

Offline niffiwan

  • 211
  • Eluder Class
Re: Crash by Multiplayer Map Ship Loadout...
I've tried to reproduce the bug by running a locally-hosted multiplayer mission and changing the ship classes.  So far I haven't been able to reproduce it.

The assert only occurs in one place (int store_wss_data(ubyte *block, int max_size, int sound,int player_index)) which makes tracking down a possible cause a bit easier. Just as a guess, how many ship classes and how many weapon types are available to be selected in the mission you created? 

If I'm reading the code correctly, there are two bytes per ship class, three bytes per weapon, plus a whole bunch of other mostly fixed number of bytes (4 + 12 + 12*7*3 = 268), and the sum of all that needs to be less than 482 (i.e. 512-20) or else the assert is triggered.  i.e. 107+ ships with no weapons, or 71+ weapons with no ships would seem to trigger the assert.
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Eiswolf

  • 26
Re: Crash by Multiplayer Map Ship Loadout...
In other Word. Too many ships and weapon are in the multiplayer mission? But in singleplayer mission i have also activated all weapons (90) and all ships (32)...
And the singleplayer mission works whitout any errors...


EDIT: It is for the Aerotech Conversion...
Aerotech Alpha v 0.1 download here ---> http://www.hard-light.net/forums/index.php?topic=87385.0

It plays in Battletech Univers

Aerotech Concept click here ---> http://www.hard-light.net/forums/index.php?topic=81572.0

 

Offline niffiwan

  • 211
  • Eluder Class
Re: Crash by Multiplayer Map Ship Loadout...
Unfortunately multi-player has a lower limit ship/weapon limit than single player (which I didn't know about until I saw this).  It's trying to pack all the ship & weapon data into a single network 512 byte packet.  I can see some obvious efficiencies where less useless data could be added to the packet (i.e. it sends all 7 possible weapon slots for each ship when, at least in retail FS2, very few ships have all 7 banks. But even with that I don't think it'd be enough to allow all 32 ships & 90 weapons in your mod to be in a multi-player mission. The better solution would be to allow this data to be split across multiple packets.  At least I think that's what would be a good idea, someone who knows the network code better than I (like Karajorma) do may have a different idea.

In other words, for now reducing the number of types of allowed ships/weapons in the mission would be the only way to get it to work.
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Eiswolf

  • 26
Re: Crash by Multiplayer Map Ship Loadout...
Okay. Thx :)
This help me make my Multiplayer Mission.
I can´t C++
i can´t work with the Source Code...

Hmmm... this is eventually a proposal for a feature request for the hard working SCP Team.
Aerotech Alpha v 0.1 download here ---> http://www.hard-light.net/forums/index.php?topic=87385.0

It plays in Battletech Univers

Aerotech Concept click here ---> http://www.hard-light.net/forums/index.php?topic=81572.0

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Crash by Multiplayer Map Ship Loadout...
The better solution would be to allow this data to be split across multiple packets.  At least I think that's what would be a good idea, someone who knows the network code better than I (like Karajorma) do may have a different idea.

I tend to agree that would be the best way to do things. In fact that's exactly how we fixed the crash that was limiting multiplayer to 130 ships (and thereby made the normal/inferno build split unnecessary). While we could indeed limit the amount of data being sent by checking how many banks a ship has, etc, that wouldn't be much of a long term solution.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Eiswolf

  • 26
Re: Crash by Multiplayer New Problem
I have a new Problem.
A friend and I would be test Aerotech Alpha in Multiplayer.
The Mission starts and it runs.
I Host the Mission and have no Problem by my friend frozen the game after the launch.
He plays in Window Mode.
And this is the Error Message.

Could not retrieve net object for signature 256!

ntdll.dll! ZwWaitForSingleObject + 21 bytes
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_7_2_RC3.exe! <no symbol>
fs2_open_3_7_2_RC3.exe! <no symbol>
fs2_open_3_7_2_RC3.exe! <no symbol>
fs2_open_3_7_2_RC3.exe! <no symbol>
fs2_open_3_7_2_RC3.exe! <no symbol>
fs2_open_3_7_2_RC3.exe! <no symbol>
fs2_open_3_7_2_RC3.exe! <no symbol>
fs2_open_3_7_2_RC3.exe! <no symbol>
fs2_open_3_7_2_RC3.exe! <no symbol>
fs2_open_3_7_2_RC3.exe! <no symbol>
fs2_open_3_7_2_RC3.exe! <no symbol>
fs2_open_3_7_2_RC3.exe! <no symbol>
kernel32.dll! BaseThreadInitThunk + 18 bytes
ntdll.dll! RtlInitializeExceptionChain + 99 bytes
ntdll.dll! RtlInitializeExceptionChain + 54 bytes

where we can fix this problem.
Aerotech Alpha v 0.1 download here ---> http://www.hard-light.net/forums/index.php?topic=87385.0

It plays in Battletech Univers

Aerotech Concept click here ---> http://www.hard-light.net/forums/index.php?topic=81572.0