Skip to main content

Questions tagged [memory-leaks]

A memory leak occurs when a program fails to release memory that it has allocated but is no longer using and is not recoverable.

memory-leaks
Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

ResourceManager memory leak urlCache leak

My application running on Tomcat 8.5.79 and Java 11.0.15+10 seems to have ResurceManager memory leak, but I can not figure out where it is coming from. According to javadocs it should not be causing ...
CrazySabbath's user avatar
  • 1,314
0 votes
1 answer
26 views

SwiftUI property of type Color in a class ans memory leak

I have a problem of memory leak with a property of type Color declared in a class with SwiftUI in IOS 17. The project I'm using it on is much more complete than the example below. The project below is ...
Marc's user avatar
  • 11
0 votes
0 answers
31 views

Vue memory leaks in table using dynamic components

In our Vue/Vuetify 3 project we have generic table component which conditionally renders different components as table cells. Unfortunately, tables are causing big memory leaks. It is a big component, ...
Patryk Marchut's user avatar
-1 votes
0 answers
17 views

Is it normal that my macbook pro M3 max using more RAM than usual? [closed]

I recently upgraded from a MacBook Pro M1 Pro with 32 GB of RAM to a MacBook Pro M3 Max with 64 GB of RAM. However, I've noticed that my new laptop is using more RAM than my old one, even when ...
Dereck Angeles's user avatar
0 votes
0 answers
22 views

Delphi 12 isapi dll loading runtime package memory leak detection

I have a Delphi ISAPI DLL application that loads my actual web applications as package (BPL) files at runtime. I’d like to report memory leaks in my packages when the ISAPI DLL unloads. However I don’...
Steve Kramer's user avatar
3 votes
2 answers
113 views

Unable to understand why my program is using too much RAM

EDIT2: TL;DR Version The following piece of code is causing huge memory burden. Library: Paruqet.NET using (ParquetReader reader = await ParquetReader.CreateAsync(filePath, null)) { string ...
Sreenath HS's user avatar
4 votes
0 answers
85 views
+150

Memory use of pickling/unpickling enum in Python

While investigating the memory use of an application that exchanges message through PyZMQ using tracemalloc, I noticed a weird behavior of pickling and unpickling enums: memory looks like it is ...
Matthieu Dartiailh's user avatar
0 votes
0 answers
40 views

Issue of readdir() reading the pointer to a directory [closed]

The basic logic in this problem is that the program scans over a directory for N times, and does some operation on specific file inside. The bug comes out as: program employs rewinddir() to put the ...
Yuming_J's user avatar
0 votes
0 answers
48 views

PHP memory issues with exceptions supporting __set

There is a custom exception class (which I have reduced to its minimum for this posting): <?php class MyException extends \Exception { public final function __set(String $member, $value) { }...
SlowFox's user avatar
  • 63
-1 votes
0 answers
20 views

Unexpected string found in memory snapshot of NestJS App with Fastify Adapter – Is there a memory leak

Started looking at memory snapshots (from node --inspect) for leaks in nest.js application and saw the following memory snapshot string After making a request to handler there is a string left in the ...
Green's user avatar
  • 1
0 votes
0 answers
45 views

PInvoke memory management: strings inside structs passed by reference

I have a question about the releasing of memory when marshalling structs containing strings across pInvoke I want to return a result struct by reference, since the calling code can not directly return ...
Hottemax's user avatar
  • 334
-3 votes
0 answers
93 views

Killing function without memory leak [closed]

Say I want to run a function and avoid it from memory leak, which may happen because the function actually result in memory leak, or because I need to kill it. I currently use a new process on linux ...
l4m2's user avatar
  • 1,169
0 votes
0 answers
28 views

Windows Memory Usage much larger than sum of managed heap objects [duplicate]

I have a proces which comsunes around 16GB of memory. I have made a dump file which has a size of around 20GB. When i analyse the file i get a total size of 1,7GB of used managed memory by my objects. ...
user13733292's user avatar
1 vote
0 answers
30 views

Keras memory leak when using custom DataGenerator

For the past 3 weeks I've been searching nonstop for a solution to this problem, when training a LSTM model with a custom DataGenerator, Keras ends up using all my RAM memory. The context of the ...
Omitg's user avatar
  • 11
0 votes
1 answer
17 views

How to suppress address sanitizer leak check for specific leak

I'm trying to use asan for a specific compiler version for a program build on Debian bookworm amd64. The trouble is that the program calls into OpenSSL which in turn uses strerror_l before even ...
TJahns's user avatar
  • 199
0 votes
0 answers
85 views

How to catch and fix a memory leakage?

I wrote a shell-like program and I have a memory leakage that I'm unable to fix. in case of invalid_command && command1 || command2 (and it happens only in this case, everything else working ...
Johnnie's user avatar
0 votes
0 answers
54 views

Why debugging leads to MetaSpace memory leak in Java?

Debugging a class loaded by a ClassLoader created by a user will cause the class to be referenced by JNI global, and the ClassLoader cannot be uninstalled. Repeating this operation for many times will ...
kyle wang's user avatar
0 votes
0 answers
44 views

Angular 18 - Browser tab memory usage

I'm currently working on a big Angular application and as the title says I've got problems with my browser tab memory usage. At the first opening of my app in a new tab, the memory usage is quite ok (≈...
Dorian A's user avatar
0 votes
0 answers
18 views

Excel File handling feature gets unresponsive after few days usage of the web app

We have a web app in AWS EC2 (t3.large) with a feature that lets users upload Excel files from the web UI (compress and store files in an S3 bucket) and later on, shows the data in Excel in a web view ...
Asela Wijesinghe's user avatar
0 votes
0 answers
22 views

Build valgrind to target LPC55S69(which is based on Armv8-m architecture)

I'm trying to build valgrind to target baremetal arm cortex-m (based on armv8-m architecture). The host is a x86 wsl environment. How do I specify this while trying to configure valgrind. For ex: To ...
randomranger409's user avatar
0 votes
1 answer
51 views

Segmentation fault (core dumped) in reading a binary file, memmove-vec-unaligned-erms.S: No such file or directory

I am trying to debug a piece of code that reads binary files I created. It seems that when the number of elements to read is higher than a certain treshold, the script I wrote fails. The file contains ...
TalJo's user avatar
  • 3
-1 votes
1 answer
35 views

Flutter not releasing memory (garbage collector not working)

I am making an application on flutter which shows a slideshow, but it is not releasing memory after the slideshow is over, below is the snippet of my code. It will be of great help if you could guide ...
Maaz Ahmed Khan's user avatar
0 votes
0 answers
31 views

CallDirectory Extension killed because using too much memory

I often get the following error when doing a read of a json file with more than 30,000 elements: The app “call direction extension” has been killed by the operating system because it is using too much ...
a programer's user avatar
0 votes
0 answers
64 views

Node.js 'JavaScript heap out of memory' error when building TypeScript app on EC2 instance

I'm encountering a "JavaScript heap out of memory" error while trying to build my Node.js TypeScript application on an EC2 instance. The build process fails with a fatal error related to ...
Sadat Hussain's user avatar
0 votes
0 answers
30 views

NodeJS is re-instantiating variables multiple times

I have a Node.js application with the following code structure: SqlUtils.js const queryMap = new Map([ // various query mappings => size over 20KB ]); function generateSQLQuery(select) { const ...
Souhaiel Riahi's user avatar
0 votes
0 answers
31 views

overflow on power for decimal number recursively in python [duplicate]

so im trying to do recursive call to solve function that take integer argument and do recursively, and each recursive call, it power to decimal number i.e 2.2 def f1(x): if x==0: return 3 ...
bezzzz098's user avatar
1 vote
0 answers
46 views

Objects are leaking into unmanaged memory

I am experiencing a very odd behavior as of now that I haven't seen anytime before. I try to find out why our ASP.NET Core app is using so much memory. Looking at Rider's performance monitor you can ...
SharpShade's user avatar
  • 2,101
0 votes
0 answers
14 views

Any methods to locate where an object was created that returned by python's garbage collection gc.get_objects()?

I am facing a memory leak when training models in physic simulators on different tasks. While the weird thing is that there are memory leaks on some certain task and some don't. So I am trying to ...
Carl CAI's user avatar
0 votes
1 answer
35 views

OOM : Memory Increase Issue in Model Training with Pytorch on WSL2

I am experiencing an issue with memory increase and saturation while training a deep learning model using PyTorch in WSL2. While it doesn't happen on a Linux OS with the exact same code. The only ...
Sébastien Chapeland's user avatar
0 votes
1 answer
45 views

Memory usage too high when working with large JS ArrayBuffers

I'm writing some browser code with a lot of large ArrayBuffers. I noticed the memory consumption is unexpectedly large and I'm not sure why that is. I've never worked with ArrayBuffers before and I ...
n-l-i's user avatar
  • 163
-1 votes
0 answers
38 views

Do I have to delete all variables in def function to prevent memory leak?

I am using While loop with tensorflow and keras. I have huge model of tensorflow and limit of memory capacity. When I run my code, it is ok for about 10 loop but after 10 loop, keras outputs "...
MCPMH's user avatar
  • 389
0 votes
2 answers
144 views

Haskell memory leak working with zoned times and adding / subtracting seconds

I am currently working on a sort of reservation system that needs to generate availabilities. A key requirement is thus to generate different lists of times in a given range. data TimeslotGenMode = ...
Josep Bigorra's user avatar
1 vote
0 answers
67 views

Memory leak in netty writeAndFlush

I'm currently developing a java package similar to .net signalr that utilizes netty. As I tried to benchmark it I realized that there's a memory leak in my application. I narrowed down my search to ...
Arshiya Kiani's user avatar
1 vote
0 answers
61 views

How can I resolve memory issues occurring with scipy's BDF integrator

I am attempting to propagate a physical system along a time-like axis. The solution is expected to be stiff, so I have opted to try scipy's solve_ivp function. The simulation works for three time ...
James Gray's user avatar
0 votes
0 answers
48 views

limit memory usage of python processes

I have Server written in Python / FastAPI + Gunicorn running for a prolonged periods of time. After a couple of hours we are noticing some peaks in memory consumption that we haven't been able to ...
Bashir Abdelwahed's user avatar
0 votes
1 answer
106 views

Memory leak using a static unique_ptr member [closed]

I'll try to summarize the usecase as much as possible. I have a class A (Defined in A.hpp): class A { public: static B& getB(); private: A(); static std::unique_ptr<B> m_b; }; that ...
Hussein Jaber's user avatar
0 votes
1 answer
62 views

High consumption of memory in WCF and .NET Framework 4.8

I'm struggling with problem of memory consumption I used a dotMemory and result looks like on the first screen. Memory consumption The most amount of memory take System, Castle (3.3.0) and NHibernate (...
Andyy's user avatar
  • 1
0 votes
0 answers
27 views

MaxListenersExceededWarning in discord.js despite only having one listener

I am creating a Discord bot using discord.js. One of the bot's commands requires it to send a large number of DMs to various different users. Whenever that command is run, I get a ...
Spencer Mowdy Hill's user avatar
0 votes
1 answer
97 views

Apache Echarts GPU memory consumption in Edge vs Chrome

I am using Apache ECharts (canvas renderer) to plot a basic line chart of 25 series of 100 datapoints each (so, 2500 total data points). In Edge, this runs up my GPU memory consumption by about 1GB ...
Paul W's user avatar
  • 9,726
1 vote
1 answer
21 views

android - simulate stack memory leak

I would like to simulate a stack memory leak. The stack means the value list in as dumpsys meminfo com.sample.demo (428Kb in below sample): App Summary Pss(KB) ...
lucky1928's user avatar
  • 8,611
0 votes
0 answers
51 views

Semaphore Leakage During MultiProcessing in the context of NLP

I set up some stack traceback and multiprocessing log statements zsh: bus error python3.10 -W 'default' circuit_gpt2.py > /opt/homebrew/Cellar/[email protected]/3.10.13_2/Frameworks/Python.framework/...
JadeHippo's user avatar
-1 votes
3 answers
116 views

Should I use free() after I return the pointer

the variable z is pointing to an address that has been freed free() if I use malloc again can it use the memory that has been freed I feel that this isn't right char *conc(char *a, char *b){ char *...
Sarvesh Pande's user avatar
2 votes
0 answers
71 views

I have a memory leak in a C function using NumPy C-API and i have no idea why

I tried to write a convolution function in C for 3d numpy arrays, the result i get is right but when i use the function in a big loop (let's say for example with a couple of millions of iterations) ...
samas69420's user avatar
0 votes
1 answer
37 views

free of struct 1 with an array of struct 2, inside of struct 2 there is an array of int

typedef struct partition_struct { int* elements; int last; //last element index int dim; //n allocated int } partition; typedef struct partitions_struct { partition* partitions; ...
SKOP_'s user avatar
  • 3
0 votes
1 answer
68 views

Possible memory leak with canvas npm package?

const { createCanvas } = require('canvas'); function renderImage() { const bgCanvas = createCanvas(800, 600); let bgCtx = bgCanvas.getContext('2d'); bgCtx = null; global.gc(); } console.log('...
Timbersquirrel's user avatar
2 votes
1 answer
93 views

Freeing non allocated memory (c)

In the get_next_line function, I am using the pointer temp to free the memory allocated for leftover after it is being modified by strchr. if I remove temp, the function leaks, but as it is now, I am ...
Clément's user avatar
-2 votes
1 answer
92 views

Why is this a potential memory leak?

typedef struct _MY_STRUCTURE_ { int param1; int param2; int param3; int param4; int param5; int param6; } MY_STRUCTURE, *pMY_STRUCTURE; class Test { public: void ...
Mart's user avatar
  • 523
0 votes
0 answers
17 views

.Net Memory Dump Analysis showing 5.08 GB for System.String instances

This is what I got when done memory analysis of Dump of .Net server. DotNetMemoryAnalysis CLR Memory Analysis for UAE B2C WC REVAMP EXPRESS SEARCH LIVE-Memory-High-Dump-14-May.DMP Type of Analysis ...
DotNetCoder's user avatar
1 vote
3 answers
188 views

Memory leak that GC doesn't fix regarding .Net Entity Framework version 8 (C# console app .Net8.02 )

For most things I write, I usually don't care about memory usage, however, I have a console app written in .Net8.02 using EF8, that leaks 2MB every time an EF transaction is called. I've tried every ...
MC9000's user avatar
  • 2,301
0 votes
1 answer
70 views

ASAN shows memory leak through CMAKE Debug config but does not show memory leak through CMAKE Release config. Why?

I am running a simple C++ main program that has a leak in it. When I build this program through CMAKE Debug config and run it. It shows me the leak properly. But when I build this program with CMAKE ...
Imagron's user avatar

1
2 3 4 5
409