memory-leaks

Spyder does not realease memory for matplotlib plots

社会主义新天地 提交于 2020-04-11 16:11:22
问题 I use Spyder 3.3.6, with Pyhton 3.7.3 over IPyhton 7.7.0 cosole. For different reasons, Spyder has always been my IDE of choice, but now I have decided to drop it altogether and stick to command prompt only. The reason is that I have seen a serious memory leak while using matplotlib which is caused by Spyder. Memory increases linearly until all my 128 GB of memory is consumed to the extend that my Ubuntu machine halted completely and I had to hard reset it. I have had this issue in the past

Spyder does not realease memory for matplotlib plots

安稳与你 提交于 2020-04-11 16:11:03
问题 I use Spyder 3.3.6, with Pyhton 3.7.3 over IPyhton 7.7.0 cosole. For different reasons, Spyder has always been my IDE of choice, but now I have decided to drop it altogether and stick to command prompt only. The reason is that I have seen a serious memory leak while using matplotlib which is caused by Spyder. Memory increases linearly until all my 128 GB of memory is consumed to the extend that my Ubuntu machine halted completely and I had to hard reset it. I have had this issue in the past

SpriteKit/Metal memory leak with nothing happening

夙愿已清 提交于 2020-03-21 20:29:35
问题 I have a memory leak that I can't seem to trace. Instruments sees it, and reports it as jet_buffer_Metal, but I don't know what that is pointing me to specifically. It happens regularly. I have tried everything. Removing all my nodes, removing physicsBodies, but it still seems to be there. I don't have anything in Update or any other of the game cycle methods. I can post all that code there, but really I only add two nodes, that can only move on touch. I don't touch the screen, and the memory

Why is deinit not called until UIView is added to parent again?

旧街凉风 提交于 2020-03-20 06:25:50
问题 I have a UIView that am adding to a UIViewController and am generally testing de-initialization to make sure I am doing things right. But when I don't set the variable in my viewController to nil and only use .removeFromSuperView() , the deinit() method in UIView won't be called until I add the UIView another time then its called. But if I use removeFromSuperView() and set the variable to nil then deinit() is called right away. Why is that? Here's UIView() class: class TestView: UIView {

Why is deinit not called until UIView is added to parent again?

混江龙づ霸主 提交于 2020-03-20 06:25:38
问题 I have a UIView that am adding to a UIViewController and am generally testing de-initialization to make sure I am doing things right. But when I don't set the variable in my viewController to nil and only use .removeFromSuperView() , the deinit() method in UIView won't be called until I add the UIView another time then its called. But if I use removeFromSuperView() and set the variable to nil then deinit() is called right away. Why is that? Here's UIView() class: class TestView: UIView {

Why is deinit not called until UIView is added to parent again?

有些话、适合烂在心里 提交于 2020-03-20 06:25:34
问题 I have a UIView that am adding to a UIViewController and am generally testing de-initialization to make sure I am doing things right. But when I don't set the variable in my viewController to nil and only use .removeFromSuperView() , the deinit() method in UIView won't be called until I add the UIView another time then its called. But if I use removeFromSuperView() and set the variable to nil then deinit() is called right away. Why is that? Here's UIView() class: class TestView: UIView {

How to fix memory leaks in iOS applications?

落花浮王杯 提交于 2020-03-16 06:51:25
问题 I have found few memory leaks when I am running my application. For your reference, I am sharing the screenshots of Instrument debug logs and also Xcode Debugg memory graph tool. I am not getting what is going wrong here. Please help me to resolve memory leaks. Please help me to fix the memory shows in the image. Thank you. 回答1: You do NOT need to use Instruments. That's the old way. Use Xcode itself. See Visual Debugging with Xcode - 24:45 Watching the video is a MUST, but the summary of the

How to fix memory leaks in iOS applications?

北城以北 提交于 2020-03-16 06:51:08
问题 I have found few memory leaks when I am running my application. For your reference, I am sharing the screenshots of Instrument debug logs and also Xcode Debugg memory graph tool. I am not getting what is going wrong here. Please help me to resolve memory leaks. Please help me to fix the memory shows in the image. Thank you. 回答1: You do NOT need to use Instruments. That's the old way. Use Xcode itself. See Visual Debugging with Xcode - 24:45 Watching the video is a MUST, but the summary of the

Java: BufferedReader hangs forever on close() and StreamDecoder doesn't respect thread interrupt

五迷三道 提交于 2020-02-28 15:22:31
问题 I have a Java program which launches a separate subprocess represented by the Process class, and then attaches listeners which look at the stdout/stderr of the Process. In some cases, the Process will hang and stop being able to make progress, at which time the TimeLimiter will throw a TimeoutException, attempt to interrupt the underlying thread which is actually doing the readLine() call, and then kill the Process using kill -9 and close the stdout and stderr streams from the Process object.

NodeJS Sharp Node Package Memory Consumption Issue

落爺英雄遲暮 提交于 2020-02-25 13:22:30
问题 I am working on a NodeJS project that is using sharp node package for resizing JPEG/JPG images. The problem is Node process keeps adding the processed file in memory and never releases it. As a result, amount of memory consumed increases with every request & it never gets released. After debugging the application, I realised that sharp toBuffer API is causing the issue. I tried using alternative solution by creating a custom writable stream and piping it with sharp Duplex stream but it ends