20,480 questions
2
votes
1
answer
178
views
I can't find the memory leak [closed]
My function contain a memory leak, probably related to a failing malloc situation.
After extensive research and adding frees, I still can't find the edge case where the memory leak occurs.
Below is ...
3
votes
0
answers
135
views
Kivy RecycleView generates more and more objects that are not collected by Garbage Collector
I used the example from https://github.com/kivy/kivy/blob/master/examples/widgets/recycleview/basic_data.py and modified it only to provide some garbage collector stats. What I see is that objects are ...
1
vote
0
answers
76
views
Memory Leak in Flask-SQLAlchemy 2.5.1 with SQLALCHEMY_RECORD_QUERIES - sqlalchemy_queries List Growing Indefinitely
Environment
Flask: 2.0.3
Flask-SQLAlchemy: 2.5.1
SQLAlchemy: 1.4.41
Deployment: Gunicorn with thread workers
Traffic: ~4 RPS in production
Observed Issue: Memory grows from 35-40% to 90% over 30 ...
1313
votes
50
answers
711k
views
Activity has leaked window that was originally added
What is this error, and why does it happen?
05-17 18:24:57.069: ERROR/WindowManager(18850): Activity com.mypkg.myP has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44c46ff0 ...
0
votes
0
answers
35
views
java spring application - unhealthy heap behaviour
So i have a very relatively simple java application spring 2.3.7 on java 8 that microservice simply calls DB to save update or retrive base64 image string thats all.
So i have deployed that in my ...
1239
votes
34
answers
1.1m
views
Dealing with "java.lang.OutOfMemoryError: PermGen space" error
Recently I ran into this error in my web application:
java.lang.OutOfMemoryError: PermGen space
It's a typical Hibernate/JPA + IceFaces/JSF application running on Tomcat 6 and JDK 1.6.
Apparently ...
-3
votes
1
answer
36
views
Non JS objects leak in highcharts on continuous charts update [closed]
I tried to render charts using highcharts, but have been observing non js memory increase, when i was updating my charts continuously and calling redraw API.
i used below apis
series.setData(data, ...
0
votes
0
answers
60
views
After load testing, should memory return to baseline or stabilize higher? How to distinguish normal from a leak? [duplicate]
I’m trying to understand the expected memory behavior of a Python service (FastAPI in my case, but the question is more general).
Scenario:
Baseline memory: service starts around ~600 MB.
During load: ...
1
vote
0
answers
59
views
Python Flask app connected to Cassandra Astra DB RAM memory issue
I'm running a minimal Python Flask app with one API endpoint which make a simple call to retrieve data from the a Cassandra Datastax DB inside a for loop.
# Day-2-Day Power
@app.route("/d2d_new_2/...
377
votes
15
answers
155k
views
Is it necessary to unsubscribe from observables created by Http methods to avoid memory leaks?
Do you need to unsubscribe from Angular 2 http calls to prevent memory leak?
fetchFilm(index) {
var sub = this._http.get(`http://example.com`)
.map(result => result.json())
...
1
vote
1
answer
166
views
Direct memory is not released when downloading files
I have encountered a memory management problem in a Spring Boot application, and would like to get advice on how to properly clean up direct memory.
Configuration:
JDK: OpenJDK Runtime Environment (...
0
votes
0
answers
128
views
Python logging MemoryHandler leaks memory?
In a main.py file I have following code:
import time
from v1 import log, ServiceLogger
from logging.handlers import MemoryHandler
class Service:
h = MemoryHandler(1000)
id = None
log = ...
238
votes
49
answers
40k
views
Are memory leaks ever OK? [closed]
Is it ever acceptable to have a memory leak in your C or C++ application?
What if you allocate some memory and use it until the very last line of code in your application (for example, a global object'...
543
votes
16
answers
906k
views
What is a StackOverflowError?
What is a StackOverflowError, what causes it, and how should I deal with them?
14
votes
4
answers
2k
views
Visual Studio Code on KDE causes kdialog to allocate infinite memory until Linux freezes
When trying to open the "Save As" dialog to save any file in Visual Studio Code on KDE (Ubuntu 24.04, the dialog does not open, and a separate process "kdialog" starts using 100% ...
2
votes
1
answer
122
views
Using arrays to move large data in Excel VBA: how to find the memory leak in my macro?
In Excel, I am attempting to copy/paste a large range of data (~22,000 rows x 36 columns). My Excel is crashing when I just try to copy/paste manually, so I created a macro to move the data using ...
1
vote
1
answer
212
views
Antibot solver blackbox testing fails after 200 runs
My team has designed an antibot for a project and now I am testing its vulnerabilities. I have created a antibot solver bypass using some python and javascript. I am running into a super weird run ...
1
vote
0
answers
281
views
How to fix "vector memory limit of 100.0 Gb reached, see mem.maxVSize()" error? My R_MAX_VSIZE is already ridiculously high
I'm on MacOS 12.7.6, with R 4.4.0 and Rstudio 2023.06.1+524.
I've had this error pop out from time to time. I have searched it and all solutions are about setting R_MAX_SIZE to a number much larger ...
2
votes
1
answer
126
views
Python Label.config(text=string) leaks memory, but Label["text"]=string doesn't. What's going on here?
I have an example Python program that sets the text of a tkinter label, and the use of Label.config(text=string) is leaking memory. Other techniques for setting the text don't. Is something wrong here?...
7
votes
2
answers
246
views
C++ embedded TCL interpreter possible memory leaks
I have code which embeds a tcl interpreter in my c++ program. When running with valgrind it shows a bunch of possible memory leaks from the TCL interpreter. I am using Tcl_DeleteInterp(interp); to ...
1
vote
1
answer
82
views
why does cuda cudastreamCreateWithFlags cause memory leak?
These are my codes:
for(int i = 0; i < 100; i++){
cudaStream_t stream_default;
cudaError_t err = cudaStreamCreateWithFlags(&stream_default, cudaStreamDefault);
cudaStreamDestory(...
1
vote
1
answer
63
views
Python/TensorFlow: Persistent RAM increase in a long-running loop despite clear_session and gc.collect
I'm running a Python script on a VPS in a continuous loop. The script fetches stock data with yfinance, then trains a new TensorFlow/Keras model for each stock.
Problem: The process's RAM usage ...
317
votes
8
answers
148k
views
This Handler class should be static or leaks might occur: IncomingHandler
I'm developing an Android 2.3.3 application with a service. I have this inside that service to communicate with Main activity:
public class UDPListenerService extends Service
{
private static ...
3
votes
1
answer
160
views
JS Infinite loop with await creates memory leak [closed]
This piece of code creates a memory leak. I'm not sure why. This code is shortedned from a longer method that polls a redis list for messages (which returns either a message or null immidiately if ...
2
votes
1
answer
115
views
Memory leak after close angular/mat-dialog
When opening and then closing a mat-dialog, the elements linked to the mat-dialog and its contents remain in the DOM as detached elements in memory.
Each time a mat-dialog is opened/closed, the issue ...