4,261 questions
-2
votes
0
answers
12
views
How can a new user post an answer to earn reputation if they need reputation points to answer? [migrated]
I am new here, it's literally my first day here as a registered user. I struggled with one error for 2 week, and I found the same error on stackoverflow and tried suggestions from the answers, some of ...
4
votes
1
answer
90
views
I expect my User Class to have an internal recursion error using accessors but it didn't. Why?
Before we begin, I'm running on a webpack-dev-server, and I'm building a to do list app. My goal is to improve my understanding of how accessors behave so that I can standardizing my writing style ...
1
vote
0
answers
105
views
Flutter stack overflow error on using python script
I was trying to integrate a basic network scanner using python into flutter. The scanner function returns a List in the format List[List, Int]. To call this I use MainActivity.kt like this
package com....
0
votes
1
answer
162
views
How much stack space is required for saving the function context in Go 1.24?
How much stack space is required for saving the function context in Go 1.24?
I wrote an go demo like this:
func getStackUsage() {
var recurse func(int)
recurse = func(n int) {
tmp := n
...
0
votes
0
answers
117
views
Does a local constexpr variable occupy the stack space? [duplicate]
constexpr int f(int idx) {
constexpr auto arr = std::array<int, 1'000'000'000>{}; // stack overflow?
return arr[idx];
}
int main() {
return f(1024);
}
Does arr occupy the stack ...
-3
votes
2
answers
245
views
Why does my recursive pow(x, n) implementation cause a stack overflow for large n? [duplicate]
I'm trying to implement a recursive power function in C++, but it fails with large n due to stack overflow. Here's the code:
class Solution {
public:
double myPow(double x, int n) {
long ...
17
votes
2
answers
2k
views
Is it safe to catch stack overflows? Can it leave objects in messy/intermediate states?
I've been reviewing ways to kill threads in Java, and the overwhelming conclusion is that it is never safe to stop code at arbitrary points - doing so may leave resources in messy intermediate states. ...
1
vote
2
answers
145
views
Multidimensional array stack overflow in Delphi 11.3
Suddenly we faced the following problem that the allocation of the multidimensional array consumes more memory than it is required for the array itself.
Minimal code to reproduce:
type
TConfig1 = ...
0
votes
1
answer
68
views
What is the appropriate value of the jvm -Xss parameter?
How does the -Xss play a key role in java program?
The size of the stack directly affects the program running.
As I know -Xss decides the thread stack size of jvm, includ local variables, operand ...
1
vote
1
answer
68
views
A lambda continuation with a generic type does not produce a stack overflow, but when I specify the type it results in a stack overflow. Why?
In a program I'm writing, I'm faced with a recursive type that I want to go through recursively (it seems necessary). Out of curiosity, I wanted to try and write a tail recursive version of my code, ...
0
votes
2
answers
145
views
Getting an infinite recursion error in java
I cannot find the reason why my code doesn't work. It keeps saying that there's a infinite recursion error. I'm basically trying to solve a maze recursively.
The start and end of the maze are ...
0
votes
0
answers
175
views
Why does a Pyside6 GUI crash after making multiple calls to matplotlib flush_events() in quick succession?
I would be very grateful for your help in explaining why this Pyside6 GUI crashes when making multiple calls to matplotlib's flush_events() method in quick succession. Minimal reproduceable code is ...
1
vote
1
answer
92
views
Error java.lang.StackOverflowError occur if I don't explicitly set -XX:ThreadStackSize
Error java.lang.StackOverflowError occur if I don't explicitly set -XX:ThreadStackSize.
As I do some research, the default value of ThreadStackSize is 1024K without explicitly set it. The confusing ...
0
votes
0
answers
64
views
How to prevent thread::Builder overflowing the stack
My application throws a stack overflow exception, so I added the stacker crate, and put debug statements in various places that print the amount of stack space remaining. This narrowed down the ...
0
votes
0
answers
97
views
manually modifying stack pointer inside a kernel module aarch64
I am writing a kernel module in Linux, on aarch64 architecture, that has, as a global, a structure. I am working on a Pixel 8 device (shiba), with callyxos, AOSP (android open source project) kernel [...
0
votes
0
answers
46
views
@SpringBootTest throws StackOverflowException
When setting environment for integration tests I get StackOverflowException:
14:58:19.614 [Test worker] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @...
1
vote
0
answers
28
views
Stack over flow when saving the files in a loop the kernel dies i have settled sleep but didn't help that much
import os
import random
import time
import gc
import librosa
import soundfile as sf
import logging
import asyncio
from scipy.signal import fftconvolve
import nest_asyncio
nest_asyncio.apply() # ...
0
votes
1
answer
75
views
In rust, How to allocate a large vector to a linked list without stack overflow?
I am doing problem 234 from LeetCode. I have a function which takes as its input a linked list:
impl Solution {
pub fn is_palindrome(mut head: Option<Box<ListNode>>) -> bool {
And ...
0
votes
1
answer
54
views
F# debugger crashed due to StackOverflow inside `sprintf "%A"`
I have the following discriminated union type:
type Value =
| Float of float
| Int of int
| String of string
| Function of (ContextStack -> Value -> Value)
| Action of (unit -...
-1
votes
1
answer
126
views
How do I fix stack overflow error in Golang?
I'm trying to learn Golang so I'm writing a "game".
The rooms in the game need to access each other for purposes of sending players to / from rooms. However, I am getting a stack overflow ...
0
votes
0
answers
39
views
Stack Overflow Error (0xC0000409) in Python Drawing App with Pressure Sensitive Stylus [duplicate]
I'm developing a drawing app in Python, and everything works smoothly with mouse input. However, when I use a pressure-sensitive stylus, the application crashes after a short period with the following ...
0
votes
3
answers
144
views
Circular dependency on TransactionManager Bean in Spring Batch
I'm working on a Spring Batch project and I have a StackOverflowError with this Bean.
@Bean
@Primary
public JtaTransactionManager transactionManager(UserTransaction userTransaction,
...
2
votes
2
answers
402
views
StackOverflowError when mocking static method with Mockito and JUnit
I'm practicing JUnit with Mockito, and trying to test a simple static method
class LessSimpleCalculatorImp implements LessSimpleCalculator {
@Override
public int power(int x, int y) {
...
1
vote
1
answer
55
views
StackOverflowError when constucting a struct from another in Julia
I get a StackOverflowError when I try to build a struct object from another, previously existing one in which one of the parameters depends on the others.
I define a type like the following:
using ...
-2
votes
1
answer
480
views
StackOverflow with Keycloak as login provider returns empty email address
In my Keycloak setup, StackOverflow is configured as one of the login providers. Recently, I noticed that new users are unable to register on my site via StackOverflow because the returned email is ...