Skip to content

Conversation

@myk002
Copy link
Member

@myk002 myk002 commented Mar 29, 2022

the EventManager got a new event type for new active units, but the handler for the event was not added to the array of handlers in eventful so the wrong handlers were being called for some events. In particular, the onUnload event was being sent to the wrong handler and was causing a crash when a map was unloaded.

@myk002 myk002 merged commit 2df6980 into DFHack:develop Mar 29, 2022
@myk002 myk002 deleted the myk_eventful_crash branch March 29, 2022 19:51
@lethosor
Copy link
Member

To understand the severity: was this issue introduced in r4 or in #2056?

@myk002
Copy link
Member Author

myk002 commented Mar 29, 2022

To understand the severity: was this issue introduced in r4 or in #2056?

Dev issue only. It was introduced in #1876, merged after r4 was released. The release process would have caught this issue (crash on save).

@lethosor lethosor added the develop only Specific to current development (not stable) builds label Mar 30, 2022
@lethosor
Copy link
Member

Thanks! Sounds like something I'd use the develop only label for (at least if it's also labeled bug/crash)

@myk002 myk002 mentioned this pull request Apr 7, 2022
@cppcooper
Copy link
Contributor

To understand the severity: was this issue introduced in r4 or in #2056?

Dev issue only. It was introduced in #1876, merged after r4 was released. The release process would have caught this issue (crash on save).

actually he was right, #1876 updated eventful I'm pretty sure. I didn't think to update it in #2056 though after changing the enum name to be consistent with the other unit events.

@myk002
Copy link
Member Author

myk002 commented Apr 7, 2022

To understand the severity: was this issue introduced in r4 or in #2056?

Dev issue only. It was introduced in #1876, merged after r4 was released. The release process would have caught this issue (crash on save).

actually he was right, #1876 updated eventful I'm pretty sure. I didn't think to update it in #2056 though after changing the enum name to be consistent with the other unit events.

The array in eventful was updated for the new job started event, but not the new new unit event. So it ended up off by one instead of off by two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crash/hang develop only Specific to current development (not stable) builds

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants