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

Instant crash when switching to hotkey mode #4

Closed
Yawet330 opened this issue May 30, 2022 · 10 comments
Closed

Instant crash when switching to hotkey mode #4

Yawet330 opened this issue May 30, 2022 · 10 comments

Comments

@Yawet330
Copy link

Yawet330 commented May 30, 2022

Crash is entirely based on pressing tab or clicking the 'chat' button, Uncertain as to why. May submit a fix PR.

@Yawet330 Yawet330 changed the title Crashed based on HW Rendering Instant crash when switching to hotkey mode May 30, 2022
@Yawet330
Copy link
Author

This is just one /guaranteed/ crash. There are other random ones that occur as the round progresses. Testing experimental fixes to help stop this.

Seems to be due to command logging so far.

@Lyut
Copy link
Owner

Lyut commented Jun 1, 2022

Hey, would you please mind saying which server did you try this on? I can't seem to reproduce the issue neither on Goonstation nor Lifeweb, I've pressed tab and hotkey mode seems to switch on/off without crashing.

99% of crashes are due to the the CommandEvent hook, the command logging indeed on very rare occasions trips on access violations when reading the pointer to the command string retrieved from the EAX register.

@Yawet330
Copy link
Author

Yawet330 commented Jun 1, 2022

Hey, would you please mind saying which server did you try this on? I can't seem to reproduce the issue neither on Goonstation nor Lifeweb, I've pressed tab and hotkey mode seems to switch on/off without crashing.

99% of crashes are due to the the CommandEvent hook, the command logging indeed on very rare occasions trips on access violations when reading the pointer to the command string retrieved from the EAX register.

A variety of servers, ranging from Sojourn to Merchantstation, I tried on both the most recent beyond and the version showcased on the github, both crash instantaneously upon hotkey mode being activated.

This also seems to be related to just hotkey mode being activated, because once you do; any subsequent reconnects instantly crash once you get into the server.

@Lyut
Copy link
Owner

Lyut commented Jun 3, 2022

I can confirm this issue and I'm investigating, very weird.
I'm also focused at the moment on the 514.1584 update which somehow broke the CommandEvent hook and returns an invalid pointer even though nothing inside that function in byondcore.dll has changed. They are also now elevating dreamseeker.exe privileges, I suggest staying on 1583 as of now.

@Lyut
Copy link
Owner

Lyut commented Jun 3, 2022

Hello, please try upgrading to BYOND 514.1584 and compiling commit 22d0d55 and see if it fixes your issue.

Best Regards

@Lyut
Copy link
Owner

Lyut commented Jun 4, 2022

commit 0cc0de6 seems to finally get rid of the issue, including the rare occasional crashing. Please, let me know how it goes

@Yawet330
Copy link
Author

Yawet330 commented Jun 5, 2022

commit 0cc0de6 seems to finally get rid of the issue, including the rare occasional crashing. Please, let me know how it goes

Will try.

@Yawet330
Copy link
Author

Yawet330 commented Jun 5, 2022

image
Past the occasional bug (this), everything seems to now work fine.

Will re-open if new issues arise.

@Yawet330 Yawet330 closed this as completed Jun 5, 2022
@Lyut
Copy link
Owner

Lyut commented Jun 5, 2022

Alright, sorry to mention that but I believe that is not really a BYONDHook "bug", there's some servers where I can't understand why, multiple child processes of dreamseeker are started (depending on the server, sometimes only on the first join), then the parent process is terminated. The child processes don't have visible windows except for the last one which shows up the game, but it causes the console windows to be opened. I'm pushing a new update soon, by changing "AllocConsole = 1" to 0 in the config.ini file, you will be able to suppress the console window so that these won't show up anymore.

@Yawet330
Copy link
Author

Yawet330 commented Nov 26, 2023

Alright, sorry to mention that but I believe that is not really a BYONDHook "bug", there's some servers where I can't understand why, multiple child processes of dreamseeker are started (depending on the server, sometimes only on the first join), then the parent process is terminated. The child processes don't have visible windows except for the last one which shows up the game, but it causes the console windows to be opened. I'm pushing a new update soon, by changing "AllocConsole = 1" to 0 in the config.ini file, you will be able to suppress the console window so that these won't show up anymore.

Year later, can confirm this was a security measure to try and destroy people using CID spoofers (They forcefully relaunch your game to try and catch on-inject DLLs to see if your CID changes between each instance).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants