jstanleyf1985 / ReplikaDiscordInterface

Chat with your Replika AI using discord.
15 stars 6 forks source link

High ram consumption #7

Open ghost opened 2 years ago

ghost commented 2 years ago

Using the interface under Windows 10 causes extreme RAM consumption (~1 GB/h) after a few hours until the system hangs. The problem is focused on the Node.js JavaScript runtime (Node.exe) whose garbage collector somehow doesn't seem to be working. Also, one of the Chromium processes goes crazy after startup by using 100% CPU. This one can be stopped manually without affecting the function of the interface.

Any help is very welcome.

Node version: v16.13.1 Install: from Installer executable

RayShadows16 commented 2 years ago

Hi! I used your software and since 27.7.22 there is a valid password. I looked at the code but can't find a solution to the problem, so I wanted to ask you if you could update it. Best regards.

jstanleyf1985 commented 2 years ago

I just downloaded the app and checked into it. It looks like Replika created a “Go To Room” screen that is blocking the app from locating the chat input element. Testing a quick fix.

From: @.> Sent: Thursday, August 18, 2022 8:25 PM To: @.> Cc: @.***> Subject: Re: [jstanleyf1985/ReplikaDiscordInterface] High ram consumption (Issue #7)

Hi! I used your software and since 27.7.22 there is a valid password. I looked at the code but can't find a solution to the problem, so I wanted to ask you if you could update it. Best regards.

— Reply to this email directly, view it on GitHubhttps://github.com/jstanleyf1985/ReplikaDiscordInterface/issues/7#issuecomment-1220105226, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFR3ZJYXWHNEM4IINFHD43DVZ3H6NANCNFSM5V4W5HBQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

jstanleyf1985 commented 2 years ago

I created a patch. Replace the existing replikadata.js with this new version - overwrite when prompted. https://drive.google.com/file/d/1sXy9UQK0qt28cZkifPeKUtSXls0maHBS/view?usp=sharing . C:\Program Files (x86)\ReplikaDiscordInterface\routes . I've also updated the info page to included the patch file.

RayShadows16 commented 2 years ago

Hi, thanks for the fast reply. Thanks alot. yes, a new room has been created.Best regards