HyperChat icon indicating copy to clipboard operation
HyperChat copied to clipboard

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

Open Daxy7 opened this issue 2 years ago • 2 comments

Checklist

  • [X] This is an issue for Hyperchat, not LiveTL. I will go to the LiveTL repo to report an issue with LiveTL.
  • [X] This issue is not a matter of opinion. If it is, I will use the feature suggestion issue template.
  • [X] I have checked for a duplicate or similar issue. I made sure to check closed issues as well.
  • [X] I am still able to reproduce the issue after I reinstall the extension.
  • [X] I have clear instructions to reproduce the bug, even on another machine.
  • [X] I am not suggesting a feature. If I am, I will use the feature suggestion issue template.
  • [X] By submitting this issue, you agree to follow our Code of Conduct

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

Daxy7 avatar Jan 24 '24 04:01 Daxy7

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

KentoNishi avatar Jan 24 '24 16:01 KentoNishi

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

Daxy7 avatar Jan 25 '24 19:01 Daxy7