DO NOT USE THIS TAG TO REFER TO THE Stack Overflow website. If you have a question regarding the site, please go to http://meta.stackoverflow.com, rather use this tag in reference to the error - Stack Overflow - which occurs when too much memory is used on the call stack.

learn more… | top users | synonyms (2)

0
votes
0answers
38 views

StackoverflowError from recursion method

I need help for my homework. The homework is to write a recursion method, which solve every simple level from the game "Sokoban". It should be done with the Cloneable interface and hashSets. That is ...
2
votes
2answers
36 views

Finding potential stack overflow issues in templates

I traced a recent crash in my application to a stack overflow problem, and having fixed the problem, I thought I'd do a re-check on the code for any similar potential bugs using the visual studio code ...
0
votes
1answer
60 views

Java, StackOverflowError when extending a class, or instantiating

Okay, at first, I know why I am getting this error, but just don't how to solve it. I have a couple classes, a main class, a layout class and a buttonClick class. The problem is in the buttonClick ...
0
votes
1answer
42 views

Pointer initialization string literals

Let's say I have a function that I need to call a couple of times which takes a string literal as its first and only parameter. Like so: func( "things_i_like\\turtles\\fresh_water" ); /* some code */...
1
vote
1answer
17 views

Eclipse Neon “Customize perspective” provokes a “StackOverflowError”

Eclipse "Customize perspective" provokes a "StackOverflowError" (see partial stacktrace below), the screen will never show and Eclipse can become unstable and may not start again. This happens on ...
0
votes
1answer
41 views

Tail recursion (@tailrec) recursive function vs non-recursive function scala stack overflow error?

My use-case is more complicated but basically below is the simplified example of what I am trying to achieve (my original code is for akka-stream): offset := 0 //pump data def pump(): Unit = { ...
-1
votes
0answers
36 views

Java DFS StackOverflow

I am trying emulate a game of backgammon, and use a branching dfs to generate data for a machine learning algorithm. I am trying to limit the branching as a way to reduce computational time, but for ...
0
votes
0answers
6 views

Who verifies correct answers on stack overflow? [migrated]

Is there anyone who checks the answers on stack overflow? I have seen several correct answers downvoted, even though i could verify the answers by copy-pasting the code into an IDE and running it. ...
0
votes
1answer
59 views

How do I resolve StackOverflow Error? [duplicate]

I wrote the code that pulls all the links on a web page. I check with Arraylist to prevent the same link from appearing. But I get stackoverflow error if there are too many links on the site. I keep ...
0
votes
0answers
17 views

Trying to login to SO with curl. 'Object moved'

I am trying to login into SO with Curl request. I did 'copy as curl' in Chrome Devtools but looks like not working. The Curl request is: curl 'https://stackoverflow.com/users/login?ssrc=head&...
1
vote
0answers
35 views

Stack Overflow when AutoMapper project a circular reference object

I have the folowing class and its dto: public class Node { public int NodeId { get; set; } public virtual ICollection<Node> ChildrenNode { get; set; } public virtual Node ...
66
votes
3answers
6k views

Why doesn't this statement throw a StackOverflowError?

I just saw this weird piece of code in another question. I thought it would result in a StackOverflowError being thrown, but it does not. public class Node { private Object one; private ...
0
votes
1answer
45 views

Stack differences between a signal handler being called directly and by raise()?

I'm trying to modify the return address on the stack within a segment fault handler, so that it skips over the faulting instruction. However, I get a segment fault whenever I try to modify the return ...
0
votes
0answers
10 views

Stackoverflow user id appears in search box? [migrated]

When i click on my stackoverflow reputation(profile) icon as shown in the below image the user id appears into the search box automatically, isn't it looks odd? or is this is expected.?
2
votes
2answers
68 views

Build project in VS2015: “csc.exe” exited with code -1073741571

I was using Visual studio 2013. Yesterday, I installed VS2015(enterprise update 3). The build process for my solution crashes in VS2015 for one of the projects. The same exception occurs with VS2017 ...
1
vote
1answer
102 views

JSON.NET StackOverflowException while serialization

My C# program is running into StackOverflowException, when I try to serialize object with similar structure like this: Object has members which reference each other can't be try catched (idk why) if ...
0
votes
1answer
42 views

Clisp “Program stack overflow. RESET” on a (cadr). How? [duplicate]

I'm (still) porting code from Franz Lisp to Common LISP. Now I seem to have pushed the interpreter into a strange corner where it blows up. [11]> (setq fff (cadr contextstack)) *** - Program ...
0
votes
0answers
25 views

Automatic shellcode doesn't work but manual shellcode works

I created (copied!) this simple example called nopattack.c #include <stdlib.h> #define DEFAULT_OFFSET 0 #define DEFAULT_BUFFER_SIZE 512 #define NOP 0x90 char shellcode[] = "\...
0
votes
1answer
23 views

Object pooling in C# throwing StackoverFlow Exception

I am trying to implement object pooling in C#. My requirement is to have a pool which can hold 100 active SqlConnection objects. If the pool is already having 100 connections and if user requests a ...
-1
votes
0answers
37 views

Java - Javax Swing - ActionListener -> StackOverFlowError [duplicate]

Why does my code give an StackOverflow error? The error occurred when I added the ActionListener to my buttons. Everything worked out fine before I added the ActionListeners, and I cannot tell where ...
0
votes
1answer
48 views

Can not find return address in gdb

I wrote that program in C (just for debugging purposes): void return_input(void) { char array[10]; gets(array); printf("%s\n", array); } main() { return_input(); return 0; } ...
1
vote
1answer
30 views

Java - StackOverflowError - access HashMaps

I am getting a java.lang.StackOverflowError when attempting to call a method within another class. I think the problem is due to each class being instantiated within each other but I'm not sure as to ...
-1
votes
1answer
69 views

static readonly field causes StackOverflowException

In ASP.NET website I have static readonly XGeoPhone provider = new XGeoPhone();. Inside of XGeoPhone class I have static readonly XPhoneInfo[] phoneInfo = new[] { new XPhoneInfo(......), ... 250000 ...
0
votes
0answers
11 views

java.lang.StackOverflowError error occor when using ArrayAdapter list view in tabhost

my activity code public class ActivityBarber extends TabActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
0
votes
1answer
26 views

Stack Overflow in Depth First Search

I'm writing a DFS connected component labelling, basic idea is really simple, just applying DFS to FOUR neighbours(left,right,up,down) recursively. The problem is that when the connected area is too ...
1
vote
1answer
34 views

PostSharp stackoverflow on aspect

Aspect class looks like this: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; using ...
3
votes
0answers
89 views

Large array, stack overflow, and dynamically allocated

I am wondering how could I create and initiate this large array without resorting to vector. Basically, I have been trying to create a large 1D array whose each element is a cell of a cubic with side ...
3
votes
4answers
176 views

What does typically happen in C due to stack overflow?

In Java there will be a stacktrace that says StackOverflowError and the whole system won't crash, only the program. In C I'm aware that an array index out of bounds will produce a segmentation fault....
-1
votes
1answer
48 views

StackOverflowError with Maven 3.3.9, Java 8 and Scala 2.12

I get an java.lang.StackOverflowError when I try to compile and package my code with mvn package and Java 1.8.0_112. My code compiles well with Java 7. I tried to set JAVA_OPTS=-Xss512m and tried ...
0
votes
1answer
25 views

Jmeter - Unknown Error Writing Event

I got an output error while running a JMeter test: Logging Error: Unknown error writing event. I've seen these before but they usually relate to Java being out of memory. However, this time the ...
2
votes
3answers
101 views

Initialize C++ struct on the heap instead of the stack

For reasons that I do not want to get into here, I have to integrate some code written elsewhere into our program with minimal changes to their code. The code has a constructor that creates a struct ...
-3
votes
0answers
32 views

Array of structs within an array of structs - malloc - stackoverflow

I've been writing this code all day long and im really puzzled. I looked over a lot of examples and i cant get to the aswer. When it reaches the "fseek(f, 0, SEEK_SET)" in the consultingClientData() ...
0
votes
1answer
25 views

pySpark gives a StackOverflowError when using too many window function to count distinct entities in groups

In order to calculate distinct entities in groups, we use max(dense_rank().over(window)) function, but it causes java.lang.StackOverflowError when use too many window functions in a dataframe. ...
0
votes
0answers
51 views

Why reverse_tcp Shellcode doesn't work?

I am using this shellcode: \x6a\x66\x58\x6a\x01\x5b\x31\xd2\x52\x53\x6a\x02\x89\xe1\xcd\x80\x92\xb0\x66\x68\xc0\xa8\x0f\x81\x66\x68\x05\x39\x43\x66\x53\x89\xe1\x6a\x10\x51\x52\x89\xe1\x43\xcd\x80\...
0
votes
0answers
36 views

Leetcode #179 largest Number printing weird output with my c++ code (it's not about algorithm)

So here is my code, I used recursion to compare the digits rather than the whole number class comparator{ public: bool operator()(int a, int b){ return cmp(a,b); } ...
0
votes
1answer
32 views

Bootstrap 4 JS Throwing Error on SO Embed Snippet Fiddle

Out of curiosity, any clue on why bootstrap 4 js is throwing the following: when embedding the snippet? (Checking same external Fiddle shows no errors) Tried adding tether.js but nothing (left it ...
0
votes
0answers
18 views

C++ defining variables ouside versus inside main [duplicate]

What exactly is the difference between defining variables inside and outside but before main (As a global variable)? My question comes from this occurrence: If i make a declaration int main(){ ...
-2
votes
0answers
24 views

How to stop stack overflow errors in simple paint program?

I'm building a simple paint program using DrawingPanel.java, and my program works, but after a while of using it, a stack overflow error inevitably happens. Exception in thread "AWT-EventQueue-0" ...
-1
votes
0answers
7 views

Can't change profile picture on Stack Overflow [migrated]

After dragging the picture i want into the area and clicking "Save Profile" at the bottom I am prompted with the following message: Oops! There was a problem updating your profile: Display name may ...
-2
votes
1answer
70 views

Web API Controller method executes to end. No HTTP response. Hangs

I am looking for an approach to debugging this scenario. I have verified in Fiddler that there is no HTTP response at all. To be clear, as I understand it a controller method should not simply hang, ...
-5
votes
1answer
53 views

Increase stack size c#

My code generates characters 'L' into 2D-Array on random place, but I need program to check if there isn't 'L' already and if it is there, program should go through process of generation again. But ...
0
votes
1answer
44 views

StackOverflowError on decision tree generating JAVA

I'm trying to write the ID3 algorithm that generates a Decision tree, but I get StackOverflowError when I run my code. When debugging I noticed that the looping begins when the attributes get down to ...
1
vote
1answer
56 views

Will this endless loop code cause stack-overflow?

I want to run a program continuously till the user stops it using control-C or closes the window. Will following loop cause memory stack overflow or will it be tail-optimized recursion? (define (f) ...
0
votes
0answers
34 views

How to avoid StackOverflowError when adding a column to the Cplex using Java

I am using column generation, but sometimes when I want to add a new column it results in java.lang.StackOverflowError at ilog.concert.IloColumn$Link.install(IloColumn.java:134) And when I click ...
1
vote
1answer
44 views

Rails: method_missing leads to StackOverflowError

When triggering a call to method_missing on a Rails server running in development mode, it dies with a StackOverflowError. This is a Rails5 on JRuby environment. We are not using multi-threading here. ...
0
votes
2answers
43 views

Any advice on how to fix this Stack Overflow error? Java

While developing a simple auto generating game of war in my free time, I ran into a "StackOverFlow" error. Here is my Deck class where the error occurs: It occurs in my compare() method. Any insight ...
0
votes
0answers
25 views

Diagnosing IronPython StackOverflowException

I have a program that essentially reads a temp sensor and writes the readings to a file in an infinite loop (i.e. keep running until I crash/exit the program). Worked great on first machine - Iron ...
-1
votes
2answers
54 views

Stack overflow for my code on Visual Studio

I have been writing solution to a problem on UVa Online Judge, and when testing my code on Visual Studio it gives the Unhandled exception at 0x01228249 in Light raods.exe: 0xC00000FD: Stack ...
6
votes
3answers
80 views

Stack Overflow when Disposing a Managed Resource

I have a simple wrapper for a Unity IoC container (a temporary use of Service Locator [anti-]Pattern to introduce DI to a legacy codebase), and since the IUnityContainer in Unity implements ...
0
votes
1answer
34 views

Android StackOverflow error on enabling MultiDex

I'm getting the following exception after enabling MultiDex. My custom Application class is as follows. public class PFApplication extends SugarApp { @Override public void onCreate() { ...