Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


LUA and ceserver memoryleak?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
wakandor
How do I cheat?
Reputation: 0

Joined: 03 Sep 2024
Posts: 3

PostPosted: Tue Sep 03, 2024 12:31 am    Post subject: LUA and ceserver memoryleak? Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25807
Location: The netherlands

PostPosted: Tue Sep 03, 2024 1:26 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
wakandor
How do I cheat?
Reputation: 0

Joined: 03 Sep 2024
Posts: 3

PostPosted: Tue Sep 03, 2024 4:45 am    Post subject: Reply with quote

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
View user's profile Send private message
wakandor
How do I cheat?
Reputation: 0

Joined: 03 Sep 2024
Posts: 3

PostPosted: Wed Sep 04, 2024 10:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites