stack-overflow Questions

1

When I am browsing stack overflow I keep getting a pop-up that asks me to login (only on stackoverflow). Is there a way to turn this off (besides removing the credentials and logging in)? pop...
Celestyn asked 26/3, 2024 at 22:39

2

I currently use this code: def f(): try: f() except RecursionError: f() try: f() except RecursionError: f() This results in a fatal stack overflow instantly. However, I was wondering if the...
Downbeat asked 27/7, 2018 at 4:5

2

I am using FreeRTOS and i want to use mac protocol which i made ! On a single task, I want to Send_Beacon() function(send beacon frame). When i call that function in task, there was a stack overf...
Nicely asked 24/10, 2016 at 17:41

3

Solved

Is there a way to keep my Ackerman function from creating a stack over flow is does it for relatively small numbers , i.e. (4,2). This is the error {Cannot evaluate expression because the curre...
Emory asked 29/8, 2012 at 21:18

10

Solved

I am getting the error "Uncaught RangeError: Maximum call stack size exceeded" on chrome. here is my jQuery function $('td').click(function () { if ($(this).context.id != null && $(this)....
Braun asked 5/10, 2011 at 8:48

3

Solved

I know what an Infinite Loop error is. Is a stack overflow error the same thing. If not, what is the difference? Can you give example code as well?
Diehl asked 30/11, 2014 at 21:58

1

Solved

In script.py: def f(n, memo={0:0, 1:1}): if n not in memo: memo[n] = sum(f(n - i) for i in [1, 2]) return memo[n] print(f(400)) python3.6 script.py correctly prints f(400), but with python3.7 ...
Oswin asked 10/4, 2023 at 18:26

10

Solved

What is the difference between a stack overflow and a buffer overflow in programming?
Elissa asked 13/7, 2009 at 16:30

1

[This is lengthy and full of details. My specific questions are introduced by the boldface word Question below.] Summary We are running some of our test suites under valgrind and encountering an ...
Matted asked 16/3, 2017 at 16:24

13

What can cause a java.lang.StackOverflowError? The stack printout that I get is not very deep at all (only 5 methods).
Maurizia asked 7/7, 2010 at 18:26

10

Solved

I have a recursive call to a method that throws a stack overflow exception. The first call is surrounded by a try catch block but the exception is not caught. Does the stack overflow exception be...
Shaeffer asked 21/10, 2009 at 7:15

6

Solved

I am trying to write a Java program to calculate factorial of a large number. It seems BigInteger is not able to hold such a large number. The below is the (straightforward) code I wrote. public...
Isar asked 24/1, 2012 at 18:57

9

Solved

How does a stack overflow occur and what are the ways to make sure it doesn't happen, or ways to prevent one?
Harragan asked 25/8, 2008 at 14:49

12

Solved

private static void Main(string[] args) { string str = null; Logger.InitUserLogWithRotation(); // <--- error occur ... } When I build project, it has no error. But When I execute it, it alw...
Vespasian asked 24/9, 2013 at 18:25

4

Solved

What is going on that allows the rest of the loop to execute, and then for requestAnimationFrame to execute next frame? I am misunderstanding how this method works, and can't see a clear explanatio...
Adkinson asked 18/2, 2014 at 21:57

12

Solved

When I run my code, Node.js throws a "RangeError: Maximum call stack size exceeded" exception caused by too many recursive calls. I tried to increase Node.js stack size by sudo node --stack-size=16...
Chiu asked 5/1, 2014 at 17:8

8

I am writing some C++ code in Linux where I have declared a few 2D arrays like so: double x[5000][500], y[5000][500], z[5000][500]; During compilation there is no error. When I execute it says ...
Omnivorous asked 12/5, 2009 at 4:22

15

Solved

What is a StackOverflowError, what causes it, and how should I deal with them?

3

Code: int str_join(char *a, const char *b) { int sz =0; while(*a++) sz++; char *st = a -1, c; *st = (char) 32; while((c = *b++)) *++st = c; *++st = 0; return sz; } .... char a[] = &quo...
Tearoom asked 4/11, 2016 at 6:23

1

Solved

To start I tried this def x(): try: 1/0 # just an division error to get an exception except: x() And this code behaves normally in 3.10 and I get RecursionError: maximum recursion depth exceed...
Superstructure asked 10/10, 2022 at 9:13

3

I am working with an application having totally work with Images and Videos. I am storing all the images and videos of device into database of application and this task is performing in a backgroun...
Helyn asked 19/5, 2016 at 7:39

15

Solved

It's my first question here on stack, so please be gentle :D I'm trying to create hibernate OneToMany relationship. When I try to fetch some data from my DB, I'm getting StackOverflowError. But whe...
Wreathe asked 3/7, 2013 at 10:30

2

Solved

I have 81K records of Long object and I am trying to store it in HashSet. My code snippet looks like this: private static HashSet<Long> hashSet = new HashSet<>(Arrays.asList(*81K record...
Proton asked 1/9, 2022 at 18:4

1

I have several files with an array inside and I need to concatenate these arrays. The problem is those files are a lot and quite big (around 5mb each, in total more than 100mb). I tried with PlayJ...
Enterovirus asked 4/1, 2019 at 13:53

2

The reason for stack overflow is because stack space runs out, but what if functions have no parameters so that no data has to be pushed onto the stack? That still leaves pushing the "return" addre...
Cheiro asked 15/3, 2014 at 12:31

© 2022 - 2025 — McMap. All rights reserved.