Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Killing unit via Zeus crashes the game (closes) #706

Open
l4ndl0rd opened this issue Feb 7, 2023 · 4 comments
Open

Killing unit via Zeus crashes the game (closes) #706

l4ndl0rd opened this issue Feb 7, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@l4ndl0rd
Copy link

l4ndl0rd commented Feb 7, 2023

Arma 3 Version: 2.10.149954 (stable)
CBA Version: 3.15.8 (stable)
ZEN Version: 1.12.2 (stable)

Mods:

- CBA_A3
- ZEN

Description:
When killing player off via zeus to trigger a respawn the game just crashes (closes itself) and writes a minidump for an access violation with code c0000005. Description is set to respawn = 5.

Expected behavior:
Respawn to different alive unit from those available.

Steps to reproduce:

  1. Place two or more units in the editor
  2. Place a Gamemaster-Module for #adminLogged
  3. Save mission
  4. Create descrition.ext
  5. In the description.ext set respawn = 5; - respawnDelay = whatever you want to
  6. Start the mission, get into the Zeus interface, select Playerunit and reduce health to zero => Game crashes

Where did the issue occur?

  • Editor (Multiplayer) & Dedicated

Additional information:
When testing, sometimes the crash also occured just hitting the respawn button, that was however not always the case

RPT log file:

@l4ndl0rd l4ndl0rd added the bug Something isn't working label Feb 7, 2023
@Kexanone
Copy link
Member

Kexanone commented Feb 7, 2023

Do your steps also leading to a crash without CBA and ZEN? If so, you should report it over at https://feedback.bistudio.com/ indead.

@l4ndl0rd
Copy link
Author

l4ndl0rd commented Feb 8, 2023

Can't really try the same exact steps cause I can't select myself in Vanilla. However the Respawn one that happened with Zen did not occur in Vanilla.

@Kexanone
Copy link
Member

Kexanone commented Feb 8, 2023

I can confirm that the health attribute one is 100% reproducible. Interestingly, directly executing player setDamage 1 in the script console does not trigger the crash.

@neilzar
Copy link
Contributor

neilzar commented Feb 8, 2023

Did a bunch of debugging with the repro. Seems it only happens in MP, not in SP, and only when you click the OK button; it doesn't happen if you press Enter to apply. There seems to be something funky with the garbage collection related to the button click.
Possible solution from ZEN side could be a frame delay on the setDamage call in initAttributes.sqf, so the interface is closed before the player is killed, but I'm not 100% certain that is going to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants