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

Icecon freezes when used from cmd #15

Open
rbarisic-lme opened this issue May 24, 2020 · 5 comments
Open

Icecon freezes when used from cmd #15

rbarisic-lme opened this issue May 24, 2020 · 5 comments

Comments

@rbarisic-lme
Copy link

On some occassions, but rather regularly, invoking icecon from commandline will freeze the process.

I'm using IceCon for my FiveM Dev Server, with the purpose to automatically restart the resources on file change. However, doing so will leave me with no method to exit the icecon process sometimes.

@icedream icedream added the bug label May 28, 2020
@icedream icedream self-assigned this May 28, 2020
@icedream icedream added this to the v1.0.1 milestone May 28, 2020
@icedream
Copy link
Owner

I'll take a look at this to see whether I can replicate it. Which OS version are you using this on?

@rbarisic-lme
Copy link
Author

Thanks for replying 👍
I'm using this on Windows 10. I've tried some stuff, and my script is not that complex.

test-script:

.\icecon.exe --command="restart xrlabs-server" 127.0.0.1:30120 <password>

old script that would get called by file-watcher (can be called manually):

cd "<<path>>"

icecon -g -c refresh localhost:30120 <<password>>

icecon -g -c "stopchat" localhost:30120 <<password>>
icecon -g -c "stop common-events" localhost:30120 <<password>>
icecon -g -c "start mymode" localhost:30120 <<password>>

rem icecon -g -c "start chat" localhost:30120 <<password>>
rem icecon -g -c "start common-events" localhost:30120 <<password>>
rem icecon -g -c "start mymode" localhost:30120 <<password>>

echo "succesfully completed reload script"
exit 0

this script would always get stuck, I think it's waiting on some reply. The behaviour was inconsistent. I was running the script from commandline, in a batfile, and through a vbs-file, with no luck

@icedream
Copy link
Owner

icedream commented Jul 6, 2020

I unfortunately don't have a working FiveM server setup myself at the moment (not really into FiveM myself), but I suspect this is some race condition with how quickly the server responds to the requests vs. the requests being sent. In the worst case, this is even a synchronization issue between client and server. There's many factors that will make this difficult to debug for me, as such I'll leave this issue open for now.

@Eager31
Copy link

Eager31 commented Jan 28, 2022

Same problem 🌵

@Eager31
Copy link

Eager31 commented Jan 28, 2022

Found the solution, you can run 4 cmd rcon instance at the same time.
If more, exec : ping -n 10 127.0.0.1 >nul --> to wait until previous ends

Repository owner deleted a comment from github-actions bot Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants