Questions tagged [memory-leaks]

1

votes
1

answer
184

Views

NodeJS memory leak with buffers

I have a NodeJS server running and the memory consumption of it is increasing every day. I searched the internet to find out where the problem came from, so I used the node-heapdump module to analyze the memory. The size of the file at the start of the server was almost the same as what I took after...
JohnyBro
1

votes
0

answer
113

Views

What is the difference between parallel and CMS garbage collection

I am new to GC and have been to trying to understand by reading different articles. The more I read , I am getting more confused. I am having a hard time understand the difference between parallel and cms GC. some articles says ' the parallel uses multiple GC threads, while the CMS uses only one.'...
Neha
1

votes
0

answer
196

Views

python numpy memory leak inside loop

Memory leak issue in array1: for subdir, dirs, files in os.walk(dataset_path): for mfile in files: [...] for x in list: array1 = calculate_big_array() del array1 I tried: del array1 gc.collect() UPDATE: gc.set_debug(gc.DEBUG_LEAK) :Prints no uncollected items and also tried to define array1 outside...
Lara Larsen
1

votes
0

answer
80

Views

jQuery .getJSON() poll memory leak

I have a dashboard that presents some stats and until now it was quite static, i.e. if I wanted a fresh data I had to refresh the page. I have since moved to a more dynamic way with jquery to load stats on an interval. It works pretty good, I don't need to refresh the page anymore. However, I notice...
IlirB
1

votes
0

answer
222

Views

Flutter: Cloud_Firestore giving error “FlutterView.send called on a detached view, channel=plugins.flutter.io/cloud_firestore”

I am getting this error every time something changes in FireStore: D/FlutterNativeView(21656): FlutterView.send called on a detached view, channel=plugins.flutter.io/cloud_firestore And it's happening like 100 times, so I have some sort of memory leak, but I'm getting no details about WHERE this is...
Jus10
1

votes
0

answer
91

Views

Huge heap with very few allocations of Windows dump file

We have an application that has been running for more than 5 months and it is now using 3.5GB memory. We also noticed that the memory usage is slowly increasing day by day. So we suspect that there might be a memory leak somewhere and we used the DebugDiag tool to analyze the dump file we generated....
Optimus Prime
1

votes
2

answer
387

Views

How to Free Protocol Buffer memory

message LongUserIdSeqIdMapData { map userid_seqid = 1; map sedid_userid = 2; } void GetUserIdSeqId(const std::string &user_id_seq_id_file) { std::ifstream infile(user_id_seq_id_file); infile.seekg(0, infile.end); size_t length = infile.tellg(); infile.seekg(0, infile.beg); auto *buffer = new char[le...
Zheming Wang
1

votes
1

answer
195

Views

Python raspberry Pi timelapse memory leak?

I am using my raspberry Pi3 to create timelapse videos. I have a cron that runs a python script every minute that decides how many photos to take and then imports a function from another python script that takes the actual photos. The problem is that after running for about 4 hours the camera stops...
ic198
1

votes
0

answer
90

Views

memory leaks detection: mallinfo, _heapwalk

My goal is to write platform-independent free memory checker. Something like: std::size_t before = MemoryAllocated(); do_stuff(); //some algorithm that uses malloc, free, new, delete, etc std::size_t after = MemoryAllocated(); if( after != before ) printf( 'ALARM! MEMORY LEAKS!\n' ); On POSIX there...
Vasyl Demianov
1

votes
0

answer
96

Views

Javafx gif memory leak

I am using 4 different animated GIF(640x360) file on my javafx(version 8 update 144) program, but they causes high memory usage and programa crashes. Why GIF files causes to memory leak? If I use PNG or other formats program works normal. When it crashes prints this message java.lang.OutOfMemoryErro...
1

votes
0

answer
48

Views

TCPTransportConnection memory leak

I'm troubleshooting my app memory leak overtime. I start my app and leave it alone for a couple of days without sending a single request. App is a simple one, it has some CFX-endpoints raised and Camel-routes listening to them. When I start my app, heap grows rapidly and reaches maximum at about 30...
Ermintar
1

votes
0

answer
51

Views

Memory leak in python code

I am trying to make my own dataset with torch in Python. However, the memory usage leaks in every file open. The memory leak is occurred during the below for loop for subj, _file in enumerate(filelist): I deleted unnecessary in the code like import parser.add_argument('--stddev', dest='stddev', defa...
조수호
1

votes
0

answer
137

Views

Tab layout possibly causing memory leak

Condition : I have two activities where both of them has a tab layout. Activity one has a tab layout that has one button that will lead user to second activity. Activity two has a tab layout that has one button that will lead user to one activity Problem : In my android profiler it is shown that the...
user3125487
1

votes
1

answer
124

Views

Memory leaking for NSEvent.addLocalMonitorForEvents

Greetings: Instruments is telling me that I have memory leaks (3 Bytes a-piece) from the two addLocalMonitor calls in viewDidLoad. I am happy to be shown my error(s) and why this is (may be) leaking. Any help is greatly appreciated! Environment: Swift: 4 Xcode: 9.4 Deployment Target: 10.11 Code ov...
Mike Manzo
1

votes
0

answer
76

Views

Memory leak submitting lambda to thread with copied list

I have some simple code that polls for messages in a dedicated thread, batches them in a list and then passes said list to a different thread in order to do something which involves blocking. Here's a simplified rough approximation: class MessageProcessor extends MessagePoller implements Runnable {...
JSelser
1

votes
0

answer
190

Views

Celery keeps task in memory after finish

I am using Django with Celery to offload long-running tasks. This all works beautifully, except that when a task is done, Celery seems to keep data in memory. @shared_task def export_xlsx(): tmpfile = settings.FILE + '.tmp' with open(tmpfile, 'w') as datafile: datafile.write(to_xlsx()) os.rename...
1

votes
1

answer
702

Views

Debugging Memory leak - org.hibernate.engine.StatefulPersistenceContext

There is a service that connects to Oracle DB for reading data and it uses Hibernate-3.6 and SpringData-JPA-1.10.x. Heap dumps are getting generated frequently which results in out of memory on the hosts. After analyzing few heapdumps using Eclipse MAT, found that the majority of the memory is accum...
Saravanan
1

votes
1

answer
56

Views

NSPopupButton in an NSTableCellView View causing a leak

Environment Xcode: 9.4.1 Swift: 4 Target Platform: 10.11 Problem I have these ridiculously simplistic NSViewController and NSTableViewCell subclasses that when combined give me very peculiar memory leaks (as reported by both the Debug Memory Graph and the Memory Leak Instrument) when I include a s...
Mike Manzo
1

votes
0

answer
139

Views

Avoiding Memory Leak while referencing Activity from onResponse of Retrofit2 callback

Suppose we have a retrofit Callback as follows: Callback callback = new Callback() { @Override public void onResponse(Call call, Response response) { mProgressBar.dismiss(); if (response.code() == 401) { Toast.makeText(getApplicationContext(), 'Invalid session, logging out', Toast.LENGTH_LONG).show(...
Josh
1

votes
0

answer
28

Views

how to understand javascript memory leak in this circumstance

I am trying to understand memory leak and I have read blogs as following: How to handle 4 common memory leaks Avoiding Memory Leaks in JavaScript Unfortunately, I still feel confused on this issue. So, I try to make a test like this: Firstly, I create a pure HTML containing a huge table within a div...
1Cr18Ni9
1

votes
0

answer
118

Views

VBA Userform (with activex date control) Memory Issues

I created a date selector thats been giving me problems. The date selector is a userform with a couple activex controls called 'LDdate' which is basically a pop up calendar for the user to select a date. I have a command button on the sheet that calls .show on the userform. The only code that I wrot...
rorybell21
1

votes
0

answer
87

Views

Delete navigation cache in UWP

In my UWP app, i constantly navigate from page1 to page 2 and again from page2 to page1 and again this navigation loop repeats on submit button in both the pages. In the application starting it's performance is good but while the page navigates further it is taking more memory and app gets slow afte...
1

votes
0

answer
53

Views

Memory leak with init(coder:)

This is the SignInViewController : import UIKit import Material import SwiftyUserDefaults import Alamofire /// Protocol containing the functions to be called in the coordinator. protocol SignInViewControllerDelegate: class { func loginButtonTapped(controller: SignInViewController) func setRootTabC...
Nitish
1

votes
0

answer
189

Views

Memory leaks with absolutely no reason

So I have this simplest socket.io example: 'use strict'; const server = require('http').createServer(); const io = require('socket.io')(server); server.listen(8080, function () { }); io.on('connection',function(socket){ socket.on('disconnect', function (data) { }); socket.on('sync', function(data) {...
Petro Koval
1

votes
1

answer
59

Views

Memory leak issues in Fragment

I have implemented MVP pattern in my app. And I'm using WeakReferences to store View's reference in my Presenter. But still my fragments are not being claimed by GC upon destroying. Below is the screenshot of problem. Any idea what is causing this and how to remove this issue? Below is the code for...
1

votes
0

answer
111

Views

ImagePickerController function memory leak problems

I am new to programming in general and was having trouble with memory leak problems with the following code specifically involving the 'imagePickerController.' The leaks only occur after the UIimagePickerController is dismissed after selecting an image. Thank you for any help fixing this. let image...
Hayden Kreuter
1

votes
0

answer
192

Views

material dialog causing memory leak

My app stack is angular5 and electron2, using also angular material 2. Trying to solve a memory leak, I notice that each time a material dialog is opened, another detached DOM tree is added. I can't find anything different in my code comparing to other similar projects, which do not have this kind o...
Shaniqwa
1

votes
1

answer
53

Views

Change Thread to Process in Java

in view of the fact that the library what use has a memory leak I would like to disregard my implementation from thread to process which I will be able to close and reopen the process after a specified time from start. My implementation : public class MyClass { private MyClassAgent myClassAgent ; pr...
n23good
1

votes
0

answer
63

Views

NSItemProvider loadItemForTypeIdentifier causing a memory leak?

I have the following issue: I am trying to share an image from Messenger (I have implemented a share-extension) to my application and I am using this code to load the image: [provider loadItemForTypeIdentifier:identifier options:nil completionHandler:^(id _Nullable item, NSError * _Null_unspecified...
scourGINHO
1

votes
0

answer
182

Views

Trying to understand the Memory Consumption of ConcurrentQueue<T>

I have a simple Producer / Consumer Pattern, where the producer produces data every 1 ms. The Consumer consumes the data every 3 ms. So I need a Queue to store the data temporary. Everything fine untill now. The Queue gets filled with the following code: private ConcurrentQueue _queue = new Concurre...
Toberto
1

votes
0

answer
69

Views

Memory leak and C wrapper

I am currently using the sbrl() function from the sbrl library. The function does the job of any supervised statistical learning algorithm: it takes data, and generates a predictive model. I have a memory leak issue when using it. If I run the function in a loop, my RAM will get filled more and mor...
Xavier
1

votes
1

answer
221

Views

Python mysql memory leak in insertion

I'm inserting millions of rows in MySQL using Python3 but I found the memory usage keeps growing and finally reached 64GB. I tried to diagnose the problem and here is a reproduction of the problem: say I have 100 CSV files. Each file contains 50000 rows and I want to insert them into the database. H...
Ruoxi
1

votes
0

answer
507

Views

ASP.NET Core memory inscrease on every request and GC does not free it

in one of our ASP.NET Core services we noticed that the memory is increasing after every request. It is reaching about 2GB in 2 days. I tried to investigate the issue and I discovered that the issue is (probably) with the Garbage collector that it is not getting triggered. To make investigation easi...
Dhia Louhichi
1

votes
1

answer
68

Views

Memory buildup with dask using function with large intermediates

I have a general question about dask.compute() that's motivated by a memory buildup I've been experiencing with the function. I'm using dask.compute() and map_partitions() (have tried with dask.distributed and dask.multiprocessing (the later with both with pool=ThreadPool and pool=multiprocessing.po...
bluejay505
1

votes
0

answer
176

Views

How to Handle Memory Leak Issues Due to INotifyPropertyChanged Events?

I have been working on a project with UWP and it has a lot of INotifyPropertyChanged events attached to a lot of properties. Now what happens is that when I navigate from page to page it causes a huge fluctuation in memory, in the diagnostic tool thing. To avoid that I have used two things, Enabled...
Skynet094
1

votes
0

answer
40

Views

How to build JavaFX styleable objects properly, that can be GC

I decided to refactor my application because of hugh memory leaks in the old version. For visualization objects, I decide to not more using fxml, but Styleable interface. So I created a class Sim Photo like this : public class SimPhoto extends Control { private static final String DEFAULT_CLASS_NA...
VANILKA
1

votes
0

answer
36

Views

Memory leak when memory usage memory not big

I had a memory leak in my app so I was started to play around with memory stuff. my code looks roughly as follows: for(int i=0;i
exe
1

votes
0

answer
100

Views

Is it memory safe to pass View Model instance for custom views?

How safe it is to pass View Model instance for custom views? Will it cause memory leaks? Should I set the instance to null when the view is removed from the layout? I have also tried to pass the View Model instance with data binding, but the code won't compile. You can see the example how I implemen...
1

votes
1

answer
263

Views

React Native - android - Memory is not released

We have a production app and using 'adb shell dumpsys meminfo' to measure the memory. We see the memory is continuously growing while taking dumps in this tool. We see the Unknown category is growing and never comes down. When we attach debugger and perform JS memory snapshot we see that memory is d...
1

votes
1

answer
273

Views

Keras Memory Leak

I am using Keras TensorFlow 1.8 and having a memory leak in my gpu (1080 ti). After training the network, my memory is used even after closing python completely. In nvidia-smi it no longer shows the python but the memory usage is still there. I cannot restart the computer because other users are r...
Punisher

View additional questions