Find out the size of a .NET object

I'm trying to find out how much memory my objects take to see how many of them are ending up on the Large Object Heap (which is anything over 85,000 bytes). Is it as simple as adding 4 for an int,...

DOS conventional memory layout

Conventional memory under DOS (fist 640kB) contains the operating system, drivers, and possibly one executing program. How is this memory laid out to avoid conflict between those programs? For...

Upgraded to SDK 2.3 - now no emulators have connectivity

I've upgraded from 2.2 to 2.3. I originally thought that I had just a problem with my own Google maps application not working and posted a question link text I now realise that the problem is...

How do I access memory from one program in another

I have a closed-source 3rd party program, and I want to be able to Know what memory is allocated to the program Access that memory (read only is fine) Utilities like vmmap(1), heap(1), and...

Treeview populated from database

I have been trying to figure out how to create a treeview which is populated from a database using various examples I have come across but have not been successful so far. My database is...

Reference - What does this error mean in PHP?

What is this? This is a number of answers about warnings, errors, and notices you might encounter while programming PHP and have no clue how to fix them. This is also a Community Wiki, so everyone...

Why is memmove faster than memcpy?

I am investigating performance hotspots in an application which spends 50% of its time in memmove(3). The application inserts millions of 4-byte integers into sorted arrays, and uses memmove to...

Out of memory when drawing a path on canvas that is much larger than the screen

I have an Android view which is bigger than the visible portion of the view (e.g. 10000x6000 pixels) and I want to draw paths in the onDraw() method. Only paths which intersect the viewport are...

pandas 0.18: out of memory error when reading CSV file with categoricals

I am trying to read 3GB file (2.5 million rows, mostly categorical (string) data) into Pandas dataframe with read_csv function and get error: out of memory I am on PC with Pandas 0.18 version and...

What does `UnsafeMutablePointer.initialize()`actually do?

The following is base on my guess. Someone please point out the parts that I understand incorrectly. If I have a class, of which an instance occupies 128 bits, called Class128Bits. And my program...

SerialPort.BaseStream.ReadAsync drops or scrambles bytes when reading from a USB Serial Port

Edit: I've added the sending code and an example of the received output I'm getting. I am reading data from a USB "virtual" serial port connected to an embedded system. I have written two methods...

Cabal install criterion out of memory

I'm running on a container with 768MB ram and 512 MB swap space. I can't increase either of this. cabal install criterion always gives Failed during the building phase. The exception was:...

What are the pros and cons of using Nested mapping in Elasticsearch vs parent child relationship

Currently in my ES document structure, there is a field of type 'Object'. This is a json object which can have upto 3000 fields inside. The problem being that at times, my ES runs out of memory...

Read first line of huge Json file with Spark using Pyspark

I'm pretty new to Spark and to teach myself I have been using small json files, which work perfectly. I'm using Pyspark with Spark 2.2.1 However I don't get how to read in a single data line...

Executing 100K Promises in Javascript in small 50 Chunks

I have a function that makes a REST call to a service and returns a promise. lets call that function Execute(). The function takes an ID and sends the ID as a GET parameter to a REST end point...

Troubleshooting Java memory usage exception

I'm trying to troubleshoot a Java program that requires increasingly more memory until it cannot allocate any more and then it crashes. EDIT More information about the program. The program is an...

How to increase EsLint memory to avoid `JavaScript heap out of memory`?

I'm trying to run EsLint on a very large javascript file and the process is running out of memory. To give you an idea of how big the file is I ran Cloc on it and here's the output: $ cloc app.js...

How to fix "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" error

I'm trying to deploy a reactjs application to heroku. While compiling assets, the build fails and produces this error: -----> Ruby app detected -----> Compiling Ruby/Rails -----> Using Ruby...

Process finished with exit code 134 (interrupted by signal 6: SIGABRT) in Python and OpenCV

Consider: import numpy as np import cv2 cap = cv2.VideoCapture(0) while(True): # Capture frame-by-frame ret, frame = cap.read() # Our operations on the frame come here gray =...

CUDA cuSolver gesvdj with large matrix

I am running a slightly modified version of the code found here under section "G.2. SVD with singular vectors (via Jacobi method)" on a NVIDIA P6000. The slight modifications are to dynamically...

Invalid characters passed for attempted conversion, these have been ignored - Pushing Laravel project to heroku

I am not a php developer, but I am trying to take a laravel project from a server and move it to heroku following alll the provided steps, when pushing the repo to heroku; I encounter the...

Sometimes get the error "err == cudaSuccess || err == cudaErrorInvalidValue Unexpected CUDA error: out of memory"

I'm very lost on how to solve my particular problem, which is why I followed the getting help guideline in the Object Detection API and made a post here on Stack Overflow. To start off, my goal...

Display errors in MySQL Workbench

MySQL Workbench is displaying a series of boxes instead of characters in the results screen, and a number of elements are disappearing from the window when a query is run. I'm receiving a number...

How can I do memory profiling for a cgo library (Go library wth bindings to C library)?

I have a go program which does image processing using govips, a Go library which provides cgo bindings to libvips. How do I find out what's using memory here in which way? I'm 99% sure the actual...

Reduce memory usage of AVAssetWriter

As the title says, I am having some trouble with AVAssetWriter and memory. Some notes about my environment/requirements: I am NOT using ARC, but if there is a way to simply use it and get it all...

Using spacy v3 which parameter should I change in the config file to resolve CUDA out of memory problem ? batch_size vs max_length vs batcher.size

Using spacy v3, I try to train a classifier using camemBert and got CUDA out of memory problem. To resolve this issue I read that I should decrease the batch size but I'm confused which parameter...

Confused by Docker directory structure (file not found error)

I am getting a file not found error and even though I manually create the file in the Docker container it still reports as not found. Solving this is of course complicated by me being new to...

Getting "RuntimeError: CUDA error: out of memory" when memory is free

I'm trying to run a test code on GPU of a remote machine. The code is import torch foo = torch.tensor([1,2,3]) foo = foo.to('cuda') I'm getting the following error Traceback (most recent call...

In C or C++, when declaring variables for identical integers twice, do we end up with two distinct memory bocks for those two integers

If we have int a = 123 int b = 123 will we end up with two distinct memory bocks allocated for the integer 123 or we only end up with one memory block allocated for 123 and variable a and b are...