-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix memory issues in firefox #1066
Comments
Note that memlab does not currently support firefox which would explain why this is not caught by our CI. |
Thank you for looking into this issue, Jesse. For testing, you can simply use the example from I tested on Firefox 115.10.0esr (32-bit) with the latest and older eye-js CDN scripts. Stack trace of the memory error:
|
Notes to self:
Now investigating the cause. |
The cause is somewhere in <!DOCTYPE html>
<html>
<body>
<textarea id="data" rows="10" cols="75">
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix : <http://example.org/socrates#>.
:Socrates a :Human.
:Human rdfs:subClassOf :Mortal.
{?A rdfs:subClassOf ?B. ?S a ?A} => {?S a ?B}.</textarea
>
<button id="execute">Execute</button>
<button id="clear">Clear</button>
<div id="result"></div>
</body>
<script src="/index.js"></script>
<script>
document.getElementById('execute').addEventListener("click", async () => {
try {
for (let i = 0; i < 1000; i += 1) {
if (i % 50 === 0) {
console.log(i)
}
await eyereasoner.SWIPL();
}
} catch (e) {
console.error(e)
}
});
document.getElementById('clear').addEventListener("click", async () => {
document.getElementById("result").innerHTML = '';
});
</script>
</html> and /* istanbul ignore file */
export * from './query';
export * from './transformers';
export { default as EYE_PVM } from './eye';
export { default as SWIPL } from 'swipl-wasm/dist/swipl/swipl-bundle-no-data'; |
Progress with this issue can now be tracked in emscripten-core/emscripten#21892. I will open a separate issue on this repo to add a test. |
This turned out to be an issue in Firefox - see https://bugzilla.mozilla.org/show_bug.cgi?id=1895309. |
Have been told there are still memory leaks in firefox. This is an issue to investigate.
Please supply details / repros here if you've experienced this issue.
The text was updated successfully, but these errors were encountered: