Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enki leaks memory when editing html files containing javascript #436

Open
vi opened this issue Oct 9, 2017 · 7 comments
Open

Enki leaks memory when editing html files containing javascript #436

vi opened this issue Oct 9, 2017 · 7 comments

Comments

@vi
Copy link
Contributor

vi commented Oct 9, 2017

100 edits of a html file (adding and remiving a space) => +150MB of RSS that won't go away even if I close the file. 100 more edits => +150 more megabytes...

Sometimes it grows faster.

Preview is not even visible.

100 edits of a *.py or *.rs file => no leak.

Sample of a file where the leak is very pronounced:

<html>
<head>
    <script>
    var AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA = null;
    var AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA = null;
    ... (a lot of those)
    var AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA = null;
    </script>
</head>
<body>
</body>
</html>

qutepart from master: a869bf5b747de324c7881dbb1a6184cc2c7417a7

@bjones1
Copy link
Collaborator

bjones1 commented Oct 10, 2017

Ouch. I've seen some memory leaks, but haven't been able to pinpoint it. Your leaky HTML file is very helpful -- I'll see what I can find. What version of Qt are you using? What OS?

@andreikop
Copy link
Owner

@vi, could you please delete cParser...so, so Qutepart would not use C acceleration to highlight the code? Check if bug is reproducible without it.

@vi
Copy link
Contributor Author

vi commented Oct 10, 2017

Debian Stretch, amd64.

libqt5gui5:
  Installed: 5.7.1+dfsg-3+b1

No cParser.so => no leak.

@bjones1
Copy link
Collaborator

bjones1 commented Oct 10, 2017

Wow. @andreikop, thanks for asking the question and @vi, for the quick answer. I was planning on spending a lot of time looking at bizarre Qt / JS stuff.

@vi
Copy link
Contributor Author

vi commented Jun 20, 2018

What is status of this issue? (and Enki project in general)

Is it going to be fixed?

@andreikop
Copy link
Owner

Hi
I'm not sure this issue will be fixed.
Enki is not among my priorities now, and there are no other active developers

@vi
Copy link
Contributor Author

vi commented Jun 26, 2018

Maybe then officially write on the site, on README and repo description that the project is abandoned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants