| View previous topic :: View next topic |
| Author |
Message |
wakandor How do I cheat?
Reputation: 0
Joined: 03 Sep 2024 Posts: 3
|
Posted: Tue Sep 03, 2024 12:31 am Post subject: LUA and ceserver memoryleak? |
|
|
Hi guys,
For training purposes, I created a script that searches for a string in a given process and if it finds it, it returns the number and performs an action, e.g. sends a message as a beep. The script generally works, but I noticed that after a few hours it stops scanning.
I use CheatEngine on Windows, but the process is on Linux, which is run on a virtual machine (VMWare Workstation) using ceserver. When this problem occurs, the ceserver console shows the following information:
recv returned -1
error during recvall: -1: errno=104
read error on socket 22 (104)
I tried different versions of CheatEngine, compiled from the latest sources, the same with ceserver - I even compiled ceserver_debug - but I can't find anywhere what causes this error.
Can you take a look at the script - maybe there is something wrong with it?
Last edited by wakandor on Mon Sep 09, 2024 2:26 pm; edited 1 time in total |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25807 Location: The netherlands
|
Posted: Tue Sep 03, 2024 1:26 am Post subject: |
|
|
the script looks ok to me.
what are ceserver and ce's memory usage at the time that it stops scanning _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
wakandor How do I cheat?
Reputation: 0
Joined: 03 Sep 2024 Posts: 3
|
Posted: Tue Sep 03, 2024 4:45 am Post subject: |
|
|
| Dark Byte wrote: | the script looks ok to me.
what are ceserver and ce's memory usage at the time that it stops scanning |
Yup. I think it's related with ceserver, coz memory of ceserver process still increasing (during the scan) |
|
| Back to top |
|
 |
wakandor How do I cheat?
Reputation: 0
Joined: 03 Sep 2024 Posts: 3
|
Posted: Wed Sep 04, 2024 10:44 am Post subject: |
|
|
| wakandor wrote: | | Dark Byte wrote: | the script looks ok to me.
what are ceserver and ce's memory usage at the time that it stops scanning |
Yup. I think it's related with ceserver, coz memory of ceserver process still increasing (during the scan) |
Result: ceserver process: ~1GB RAM and scan froze.
With each scan performed the RAM consumption increases. It seems that the results/scan are saved in ceserver but not flushed later. |
|
| Back to top |
|
 |
|