LiveTL / HyperChat

Improved YouTube chat with CPU/RAM optimizations, customization options, and cutting-edge features!
https://livetl.app/hyperchat
GNU Affero General Public License v3.0
227 stars 24 forks source link

[Bug]: Live/Archive chat memory usage, Google Translate #132

Open Daxy7 opened 6 months ago

Daxy7 commented 6 months ago

Checklist

Describe the bug

Memory leak, about:performance slowly climbing every 5 seconds to ~.5 megabyte Left to idle for ~3 hours, 800+ mb usage. Mayhaps by using Google Translate API in settings

Why is kentonishi.com frame growing in size if there's no page visible? [21 mb to 250 mb]

Steps To Reproduce

https://www.youtube.com/watch?v=Bmx_XywekhA&t=3809s

Expected behavior

.

What browsers are you seeing the problem on?

Firefox

Anything else?

image

KentoNishi commented 5 months ago

This is a known issue with the translation engine, I haven't really gotten around to fixing it (since it involves reverse-engineering the memory leak happening in the underlying Google web translation api itself). I'll keep you in the loop

The translation engine's code is at https://github.com/KentoNishi/iframe-translator

Daxy7 commented 5 months ago

Thanks. Additional minor bugs:

  1. Translation icon without translating: There was nothing translated so why the error?

1.1 Update for point 1: may affect emoticons Update 2: May not. 1.2 And Translate API toggle on memberships … Moderator Links 1.3 Too many links here [4]. So here's a bundle.

  1. Translation is too extensive: 'Maori' language detected in lmaoo etc. Needs limiter to minimum three/five customizable languages. Will require API reverse engineering. https://github.com/LiveTL/HyperChat/assets/91396482/6b1cf926-7f94-4ccb-a7d2-c63d57937604