memory-leaks

How to locate the source of my memory leak?

走远了吗. 提交于 2020-01-16 12:00:14
问题 I've got a Puppeteer project where I'm trying to record and analyze the structure of some online forms. I expect to see a list of each form input 's name attribute values printed to the console. But instead, I get the following error. (node:4014) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 Symbol(Events.FrameManager.FrameDetached) listeners added to [FrameManager]. Use emitter.setMaxListeners() to increase limit How can I locate the source of the memory leak or

Memory leak due to more number of instances of org.jboss.vfs.spi.JavaZipFileSystem

对着背影说爱祢 提交于 2020-01-16 11:08:05
问题 We are using JBoss eap 6.4. We are running into heap issues(out f memory error) when the application is deployed and accessed.Created a heap dump file to investigate more. Analyzed the heap dump file using Eclipse MAT tool. MAT tool is complaining abut the following leak. Problem Suspect 1 183 instances of "org.jboss.vfs.spi.JavaZipFileSystem", loaded by "org.jboss.modules.ModuleClassLoader @ 0xe0884088" occupy 24,507,432 (14.20%) bytes. Biggest instances: •org.jboss.vfs.spi.JavaZipFileSystem

memory leak while drawing many new images to canvas

為{幸葍}努か 提交于 2020-01-15 23:06:33
问题 I have written a "slide show" that displays images sequentially and quickly, much like a stop-frame movie. Once an image is displayed, I have no further use for it and would like to clear it from memory to free space for new images. However, while monitoring Google Chrome Helper in Activity Monitor, I see that the memory continues to increase steadily until the browser crashes. I noticed a chrome garbage collection issue that was submitted as a bug and I'm wondering if maybe I'm experiencing

Object sent - autorelease too many times, getting this leak for my iPhone app?

匆匆过客 提交于 2020-01-15 14:24:22
问题 I am getting too many Object sent - autorelease too many times, this memory leak for my iPhone app and dont know how to resolve it http://screencast.com/t/fPzMNewvq Above is screen shot for the same. SAAdvertiseCell has lot of objects which are releasing, so how is it possible to find where the exact problem is? Thanks 回答1: At first why don't you reuse cells? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { Cell* cell = [tableView

OpenCV memory leak issue

a 夏天 提交于 2020-01-15 12:14:13
问题 This function of drawItem is called multiple times through a loop, I'm facing a memory leak issue everytime it is called. I'm thinking that the problem is due to the resizeImage() function, but I can't seem to pinpoint the problem, this is C++\CLI with OpenCV library. drawItem() { imgItem = resizeImage(imgItem, newItemWidth, newItemHeight, false); imgMask = resizeImage(imgMask, newItemWidth, newItemHeight, false); cvSetImageROI(image3, cvRect(x1,y1,newItemWidth, newItemHeight)); cvCopy

How to detect memory leak when memory allocation number isn't always same?

孤人 提交于 2020-01-15 09:52:48
问题 I got a memory leak (55 bytes) on my program like this. I am using C++, MFC, Visual Studio 2010. Detected memory leaks! {13497} normal block at 0x0E44C248, 55 bytes long. Data: 44 3A 5C 46 44 41 53.... the problem is, the memory allocation number "13497" is not always same. it's always different number if I run the program again. I wanted to find where I didn't release the memory before the exit, with _crtBreakAlloc, but it seems not possible to break on a memory allocation number. I used

How to detect memory leak when memory allocation number isn't always same?

浪尽此生 提交于 2020-01-15 09:52:35
问题 I got a memory leak (55 bytes) on my program like this. I am using C++, MFC, Visual Studio 2010. Detected memory leaks! {13497} normal block at 0x0E44C248, 55 bytes long. Data: 44 3A 5C 46 44 41 53.... the problem is, the memory allocation number "13497" is not always same. it's always different number if I run the program again. I wanted to find where I didn't release the memory before the exit, with _crtBreakAlloc, but it seems not possible to break on a memory allocation number. I used

Memory error while using keras

放肆的年华 提交于 2020-01-15 09:11:34
问题 I am using keras for CNN but the problem is that there is memory leak. The error is anushreej@cpusrv-gpu-109:~/12EC35005/MTP_Workspace/MTP$ python cnn_implement.py Using Theano backend. [INFO] compiling model... Traceback (most recent call last): File "cnn_implement.py", line 23, in <module> model = CNNModel.build(width=150, height=150, depth=3) File "/home/ms/anushreej/12EC35005/MTP_Workspace/MTP/cnn/networks/model_define.py", line 27, in build model.add(Dense(depth*height*width)) File "

C - How can I free dynamically allocated memory?

爷,独闯天下 提交于 2020-01-15 08:32:06
问题 Have a look at this piece of codes, it's part of a linked list. int main() { List* head1 = NULL; insertFront(&head1, 1); insertFront(&head1, 2); print(head1); free(head1); return 0; } another function is: void insertFront(List** head, int value) { List* node = (List*)malloc(sizeof(List)); node->data = value; node->next = NULL; node->next = *head; *head = node; //free(node); essentially I am not freeing node } My questions are: Is my code going to cause memory leak problem? Should I need to

C - How can I free dynamically allocated memory?

断了今生、忘了曾经 提交于 2020-01-15 08:31:53
问题 Have a look at this piece of codes, it's part of a linked list. int main() { List* head1 = NULL; insertFront(&head1, 1); insertFront(&head1, 2); print(head1); free(head1); return 0; } another function is: void insertFront(List** head, int value) { List* node = (List*)malloc(sizeof(List)); node->data = value; node->next = NULL; node->next = *head; *head = node; //free(node); essentially I am not freeing node } My questions are: Is my code going to cause memory leak problem? Should I need to