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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Nuxt app EventListeners get added when changing page

When navigating between pages, our Nuxt application seems to be continuously adding EventListeners which eventually causes our application to slow down. We commented out all of our code relating to ...
Khaelem Watt's user avatar
0 votes
2 answers
82 views

Would a static variable in an instance class cause a memory leak in c#

I have the following class which I have simplified for this example public class SearchService : ISearchService { private static Dictionary<long, object> _resultCache = new Dictionary<...
JKennedy's user avatar
  • 18.3k
0 votes
2 answers
36 views

why my c code that checks if a binary search tree is complete or not (using array for checking) causes memory leak problem according to Valgrind

#include <stdio.h> #include <stdlib.h> typedef struct node { int value; struct node* left; struct node* right; }node; node* createNode(int n) { node* new = (node*)malloc(...
Nurana's user avatar
  • 1
0 votes
0 answers
23 views

Can this piece of VB.NET cause a memory increase / memory leak?

I'm facing a memory increase, looking like a memory leak, in a VB.NET process (see my latest other questions). Now I've seen that the memory usage increases every time this piece of code is executed. ...
Dominique's user avatar
  • 16.2k
0 votes
0 answers
7 views

File handle leak in windows while executing java file

Have been observing handles creeping up in windows while running a Java executable file. Even though there is no transactions the handles are getting increased when I check the handle type count using ...
venki's user avatar
  • 1
0 votes
0 answers
42 views

Problems using Cython and multiprocessing

I am having trouble while trying to use two Cython compiled modules (Fibril(...) and GetIntersect(...)). The specific behaviour seems to change upon every computer restart but, along with filling my ...
Conts's user avatar
  • 81
0 votes
0 answers
23 views

com.github.benmanes.caffeine.cache.SSLSMWA class of caffeine-cache consuming very high memory

I have initialized my cache in the following way: Cache<Key, Entry> sharedCache =Caffeine.newBuilder() .ticker (ticker::read) .expireAfter(new ExpirySetting()) ...
joy kishore's user avatar
0 votes
0 answers
45 views

Memory leak using V2 AWS DynamoDB SDK in SpringBoot application

We have a springboot application talking to a DynamoDB table which uses the V2 AWS SDK with DynamoDBEnhancedClient. On deploying the application to EKS and running a load test, we saw an issue where ...
Ace McCloud's user avatar
0 votes
1 answer
29 views

Memory Leak and WebGLContextLost

I have a TypeScript React component that loads multiple 3D models using Three.js and displays them in specific positions based on the values of an array from the backend (data[frame]). I create a ...
cmtrswtng's user avatar
1 vote
1 answer
21 views

How deal with org.bytedeco.opencv.opencv_core.Mat memory leak?

This is how I use org.bytedeco.opencv.opencv_core.Mat,core code: // image binary byte[] bytes; try (PointerScope pointerScope = new PointerScope(); Mat originImage = org.bytedeco.opencv.global....
言予鹿's user avatar
0 votes
0 answers
22 views

After writing any code in onClick, ClickableSpan, it's causing a memory leak

├─ android.app.assist.AssistStructure$ViewNodeText instance │ Leaking: UNKNOWN │ Retaining 347.6 kB in 6681 objects │ Library leak match: instance field android.app.assist. │ AssistStructure$...
Saeid Lotfi's user avatar
  • 2,061
-1 votes
0 answers
79 views

Why does my program always leak memory around item 20 on the line items? [closed]

I apologize for what's probably a dumb question. I'm relatively new to C. In any event, I was attempting to make a program that returns each permutation of a number. For some reason, my program ...
Ratdude's user avatar
  • 21
-2 votes
0 answers
103 views

Valgrind shows mutiple memory leak in copy constructor despite having a destructor [closed]

Status.h #ifndef SDDS_STATUS_H #define SDDS_STATUS_H #include<iostream> #include<cstring> namespace sdds { class Status { char* description; int status_code; ...
ShiShir 89's user avatar
0 votes
0 answers
22 views

How to resolve a memory leak? MainActivity leaked (Flutter)

I'm encountering a memory leak issue in my Flutter application, and LeakCanary has detected a potential problem. I'm having difficulty pinpointing the root cause. I am currently working with mapbox. I ...
Stephen Essoun's user avatar
0 votes
2 answers
82 views

C++ using extern C library, unexpected memory leak

I have created a simple C library is generated by one .c and one .h file. // test.c #include "test.h" #include "stdlib.h" void GetArray(int * array) { array = (int *) calloc(2, ...
Tucker's user avatar
  • 101
-6 votes
1 answer
129 views

Stumbling upon memory leaks in C++ [closed]

Why are memory leaks a big problem in C++ code and how can I detect them more easily? int foo() { char *buffer = (char *)malloc(10); if (checkError()) return 0; bar(buffer)...
Aman Gupta's user avatar
0 votes
0 answers
49 views

Memory leak openai library

async def ask(question,api_key,old): client = AsyncClient( api_key=api_key ) try: stream = await client.chat.completions.create( model="gpt-3.5-turbo-1106", messages=...
Myrsus Gap's user avatar
0 votes
0 answers
7 views

Android process has encountered a memory leak issue with messagequeue

By dumping the meminfo of the cameraserver process, it was discovered that Ashmem (anonymous shared memory) is consuming as much as 95MB of memory. Applications Memory Usage (in Kilobytes): Uptime: ...
Xiaodong Xu's user avatar
-1 votes
0 answers
24 views

jvm server memory leak troubleshooting: malloc of glibc has any bugs?

I have a java server running on jdk8, centos7 environment. The jvm heap on this server is set to 6GB, and when analyzed through native memory tracking, it uses about 9GB of memory, including off-heap ...
Eddy Kim's user avatar
0 votes
0 answers
24 views

PICOWH memory OSerror by Firebase and LCD

from machine import Pin,SPI,PWM import framebuf import time import os import gc ##################### FIREBASE ######################## import network import urequests BL = 13 DC = 8 RST = 12 MOSI = ...
user23003600's user avatar
-1 votes
0 answers
72 views

What could cause this weird memory leak if I call a function in a loop but not outside?

I currently have some super strange behaviour in my script. I am iterating over a list. I call a different function to perform some calculation using each element. Like so: def foo(some_list, n_items):...
Sandro Martens's user avatar
0 votes
0 answers
86 views

MongoDB / C# Driver in Unity causes memory leak

I'm trying to use MongoDB c# driver (2.18 and 2.22 were tested) in Unity (2022.3.10f1), but creating connection causes memory leak. I put this code in empty Unity project in Awake function: ...
Raildoc's user avatar
1 vote
0 answers
46 views

Valgrind + gdb to detect leak in multithreading process

I have a running program that allocates memory in a linear way in time, causing Linux to invoke the OOM killer. I followed this guide trying to spot the part of the program where this memory is ...
bui3's user avatar
  • 133
1 vote
0 answers
48 views

How can I prevent Memory overflow in the browser when rewriting a large string very often?

Background: I need to analyze and compare several large css.files that are generated by a less than perfect deployment process. Before cleaning up the whole CSS-mess I need to organize the deployment ...
iDad's user avatar
  • 59
0 votes
1 answer
54 views

Memory leak in iOS 17 in AnimatableModifier

I'm facing a memory leak problem in iOS 17, in earlier versions it works fine: import SwiftUI struct SkeletonModifier: ViewModifier { @State private var phase: CGFloat = 0 let animation: ...
Konstantin.Efimenko's user avatar
0 votes
0 answers
34 views

How to deal with Region cookie corrupted for region 0x160800000

I keep getting this memory issue during my programs runtime it keeps happening in different sections of the code. Most often when destructors are called gp_train_main(68648,0x1d9095ec0) malloc: Region ...
1 vote
0 answers
114 views

Delphi memory leakage: Does calling SomeForm.Free free up all dynamically allocated memory assigned during use of that instance of the form?

Say we have a Delphi application which creates an instance of a form- SomeForm, which has a few Label objects on it and a few class objects created to store data (some of which is not on the program's ...
user2814916's user avatar
0 votes
1 answer
62 views

Experiencing periodic issues in a C code , suspecting a memory allocation problem

The provided c code runs periodically , I checked the debugger it indicates that the problem is in the line : UUo[irx][i] += dt * dt * slice[i][it]; which is located in the first loop of ...
Fearless_Wolf's user avatar
0 votes
0 answers
38 views

Memory leaks detection in Intruments did not work

I'm facing some memory leaks here. These classes were retained when pushing <-> popping from particular view controller. Memory Graph allows me to see precisely where the classes are. However, ...
son's user avatar
  • 2,358
2 votes
0 answers
85 views

Potential memory leak on Springboot 3.x + Webflux on multipart upload

Since I've upgraded my application from spring-boot 2.7 to 3.x (Im currently using 3.1.0), I'm experiencing a constantly memory usage increase of the memory used by the application when uploading ...
Bruno Dias's user avatar
0 votes
0 answers
36 views

C# driver Cassandra possibly leaking memory. How can avoid running out of memory?

I am working with C# using the official Cassandra Driver. I have 5 tables and each table has around 300 columns. My requests are each for tens of thousands of rows. In total the data I consume is ...
Yohannes Kifle's user avatar
0 votes
1 answer
163 views

Memory not released in Azure DataBricks

In Azure DataBricks (12.2 LTS (includes Apache Spark 3.3.2, Scala 2.12) I am running the following code in the Notebook on compute Standard_DS5_v2: df_spark = spark.sql(my_qyery_to_delta_table) ...
RunTheGauntlet's user avatar
0 votes
0 answers
23 views

ERROR util.ResourceLeakDetector: LEAK: ByteBuf.release() Connection.getTable().put(List)

I am trying to do a lot of PUTs in Hbase, however, after some time of operation, a memory leak occurs due to the following error: ERROR util.ResourceLeakDetector: LEAK: ByteBuf.release() was not ...
Fabrissou's user avatar
0 votes
0 answers
75 views

negative refcount after running cudaHostRegister-cudaHostUnregister on mmap'ed DMA zone (result: memory leak)

Description A custom device allocates memory using dma_alloc_coherent() and returns it to userland using remap_pfn_range() on .mmap routine. User mmap() the device and pinned the memory using ...
Pan's user avatar
  • 9
2 votes
0 answers
93 views

What is the cause of the still reachable memory leak in C?

I am getting a still reachable memory leak of 472 bytes here. I don't really know how to look for it as it says that it is in fopen_internal. So my question is.. does this mean that this leak is not ...
dsdfs's user avatar
  • 21
0 votes
1 answer
24 views

Memory Leak when using Librdkafka to send messages to a kafka server

I am setting up a C application that is supposed to send sensor data to a kafka server. The message consists of only a JSON string containing all the sensor names and their values. The kafka producer ...
Sebastian's user avatar
1 vote
1 answer
45 views

Memory Leak when using open62541 to send a read request to OPCUA server

I am setting up a C application that is supposed to read data from an OPCUA server and convert it to a JSON message to be used somewhere else. Currently the OPCUA client is set up as follows: void ...
Sebastian's user avatar
1 vote
0 answers
80 views

How to avoid memory leaks when using Base64 images in Blazor

I am using the official version of .NET 8 for developing a Blazor MAUI hybrid app. I have a feature where the user can select an image and it is displayed to the user. I am using Base64, but I have ...
fairjm's user avatar
  • 1,137
-2 votes
0 answers
103 views

Metal compute shader produces unexpected behaviour and leaks

I am developing a project that will evaluate Fast Fourier Transform-based convolution performance and compare it to naive convolution in terms of computational speed on my M1 Macbook Pro 8/256. I have ...
Michael Shkarubski's user avatar
0 votes
1 answer
34 views

memory leak reading video frames to numpy array using ffmpeg as a python subprocess

I can stream videos frame by frame to an OpenGL Texture2D OK in python (pi3d module, example in pi3d_demos/VideoWalk.py) but I've noticed that it gradually leaks memory. Below is a stripped down ...
paddyg's user avatar
  • 2,183
0 votes
1 answer
85 views

Why do shared_ptr and unique_ptr have different behavior when dtors are not virtual?

So, I know that not making polymorphic classes destructors virtual will lead to undefined behavior, and the correct fix to this is to make them virtual. With that being said, why does shared_ptr "...
josh chatham's user avatar
1 vote
1 answer
83 views

Handle leak when running c# scripts

I have a .NET application in which the user can also input some c# script. The script is executed repeatedly in the application, and, when this happen, I see an handle leak. I use the static class ...
filtrow's user avatar
  • 17
0 votes
2 answers
65 views

How immutable objects' memory cleared?

I have some questions- As string constant pool is present in the heap memory and GC collects garbage from heap memory. Does it cleans the string constant pool as well, according to my info it does ...
Aliana's user avatar
  • 29
0 votes
0 answers
44 views

Error while doing node package installation using any Package Manager

I've ever tried to do this kind of thing for a while. But it starts throwing me error since 2 days ago. I don't really know what happened. I'm using Windows 11. At first, I was using npm and pnpm. ...
Senzawa's user avatar
1 vote
0 answers
24 views

C# ContextMenuScript cause GCHandle leak and Memory Leak in .Net Framework

I developed an application in .net framework 4.8, it can show, switch and close different .net displays via commands with many controls inside of the display again and again, I cannot hold them in ...
Atlas Liu's user avatar
0 votes
1 answer
64 views

Strdup free still result in memory leaks

I am still not able to get my head around why there is still memory leak here because of strdup (that's what the error says), I made sure I freed all the allocated memory of strdup before removing the ...
Jix's user avatar
  • 11
0 votes
0 answers
31 views

Memory leak in Python http server

I am running a server that accepts base64 encoded images, it takes those images and runs them through a tflite model. When I start sending images to a server (there are a lot because they are captured ...
Dennis L's user avatar
0 votes
1 answer
44 views

Memory Leak When Creating Image Buffers During Video Capture in iOS Swift App

I'm developing an iOS app in Swift that captures a video of a rotating view, but I'm facing a memory leak issue. After the video is exported, there's still an excess of 2GB stored in memory, which is ...
harry's user avatar
  • 85
2 votes
1 answer
87 views

Why does invoking System.gc() lead to a significant decrease in memory usage?

I have a long-running JVM Spring server application that undergoes continuous processing. I've noticed a gradual increase in memory usage over time, but it never leads to a JVM out-of-memory crash. ...
Yunus Emre Guney Student's user avatar
0 votes
0 answers
41 views

ios Can not find memory leak in viewcontroller

In my iOS Swift app, I have a WKWebView in my view controller. when I am push and pop the view controller WebView is not being deallocated, it remains in the memory. I checked in my memory debugger ...
Shivbaba's son's user avatar

1
2 3 4 5
406