RHS Feedback - AFRF
View Issue Details
0000703AFRF[All Projects] Generalpublic2015-06-08 10:012015-06-24 18:37
Dorbedo 
Soul_Assassin 
highcrashalways
resolvedfixed 
LinuxDebianWheezy
0.3.7 
0.3.9 
No
1.44
Yes
CBA, ACE3, (Task_force_radio, BWA3, ASR_AI3)
0000703: Penetration of Missiles/Rockets causes segmentation fault on headless
Shooting any rhs missiles/rockets at an armored target causes a segfault on headless client.

the segfault happens when the rocket is penetrating.

100 % reproducible with the headless client.
If no headless is handeling the AI, the segfault can happen to the server itself, but it's less likely.
1. Start a Mission on a linux dedicated server with headless client connected
2. Place an armored unit
3. launch any RHS Rocket/Missile on it (AT4, Hellfire, ....)
Reproducible with only following mods activated:
RHS +
      ACE3,CBA_A3
      AGM, CBA
No tags attached.
rar Logs.rar (92,078) 2015-06-08 10:02
https://feedback.rhsmods.org/file_download.php?file_id=315&type=bug
Issue History
2015-06-08 10:01DorbedoNew Issue
2015-06-08 10:02DorbedoFile Added: Logs.rar
2015-06-08 19:08DorbedoNote Added: 0001541
2015-06-09 07:52RedPhoenixNote Added: 0001542
2015-06-09 11:37Bad TankmanNote Added: 0001543
2015-06-24 16:27DorbedoNote Added: 0001683
2015-06-24 16:29DorbedoNote Edited: 0001683bug_revision_view_page.php?bugnote_id=1683#r770
2015-06-24 16:29DorbedoNote Edited: 0001683bug_revision_view_page.php?bugnote_id=1683#r771
2015-06-24 17:08Soul_AssassinNote Added: 0001684
2015-06-24 17:08Soul_AssassinAssigned To => Soul_Assassin
2015-06-24 17:08Soul_AssassinStatusnew => feedback
2015-06-24 18:31DorbedoNote Added: 0001685
2015-06-24 18:31DorbedoStatusfeedback => new
2015-06-24 18:34DorbedoNote Edited: 0001685bug_revision_view_page.php?bugnote_id=1685#r773
2015-06-24 18:36Soul_AssassinNote Added: 0001686
2015-06-24 18:37Soul_AssassinStatusnew => resolved
2015-06-24 18:37Soul_AssassinFixed in Version => 0.3.9
2015-06-24 18:37Soul_AssassinResolutionopen => fixed

Notes
(0001541)
Dorbedo   
2015-06-08 19:08   
Seems to be fixed in 1.46
(0001542)
RedPhoenix   
2015-06-09 07:52   
"Reproducible with only following mods activated:"




C'mon....
(0001543)
Bad Tankman   
2015-06-09 11:37   
Talk with guys from AGM, its upt to them about compatibility between their mod and RHS
(0001683)
Dorbedo   
2015-06-24 16:27   
(edited on: 2015-06-24 16:29)
I did some more testing.
The segfault seems to be related to missing config entries.
This error is realy strange.

It seems like the headless client is loosing parts of the config during a mission.
At the start of a mission, the headless has a parent class for "rhsusf_ammo_basic_penetrator". After you have shot the first thing, wich uses any classes interhiting from "rhsusf_ammo_basic_penetrator_base" the entry is missing. He can not find the parent class for "rhsusf_ammo_basic_penetrator" anymore.

This is realy stange.
But since i knew this, there was an possible sollution for this: I've wrote an aditional config, which includes the same config like "rhsusf_c_heavyweapons\config.bin" for the two classes "rhsusf_ammo_basic_penetrator_base" and "rhsusf_ammo_basic_penetrator".
Now it seems like it's working properly.
Without this, there is always the segfault.

Another strange thing is that the server himself doesn't loose the config entries, but the headless does. This happened if they were using the same files and if they were using just copies.

(0001684)
Soul_Assassin   
2015-06-24 17:08   
Possibly connected to this: http://feedback.rhsmods.org/view.php?id=724 [^]

in attached files in that issue try the hotfix (server and clients) and see if resolves. If so then you can expect this to be fixed in next version.
(0001685)
Dorbedo   
2015-06-24 18:31   
(edited on: 2015-06-24 18:34)
Looks like it is fixed.... Amazing.

My I ask you, if you have spottet the issue, or is it just a side-effect of config changes?

Nonetheless thanks for the fix.

(0001686)
Soul_Assassin   
2015-06-24 18:36   
Its a deliberate fix. The problem was with not so explicit pbo dependencies and for some reason on Linux servers c_weapons would always load before c_heavyweapons which had the base penetrator defined. This has now been rearranged.