Closed 7flash closed 10 months ago
This error prevents my app from running. If there is any way to increase the limit? I have enough RAM on my computer.
Probably should move this issue to webui-deno since these logs appears on backend, not frontend.
Because my backend is reading some files from local file system into memory before actually rendering web app
It's hard to know what's going on without the logs. So, please replace the lib with the debug version one and share the logs.
I mean in this case it's pretty clear what's the issue, the question is how to resolve, how to increase memory limit in Deno.
async function loadFilesAsync(pathList: string[]): Promise<MemoryFiles> {
const files = new Map();
for (const path of pathList) {
for await (const entry of Deno.readDir(path)) {
if (entry.isFile) {
const fileContent = await Deno.readFile(`${path}/${entry.name}`);
console.log(entry.name, fileContent.length);
files.set(entry.name, fileContent);
}
}
}
return files;
}
This is the way my script is reading lots of files to make sure frontend has access to them from memory.
Why not simply use myWindow.show("/path/to/your/folder")
?
I don't see any WebUI usage in the example. This issue is related to Deno-WebUI or Deno.