Questions tagged [stack-overflow]

0

votes
0

answer
10

Views

Subset-AVG - Finding a subset of List Which Matches Known Rational Number

I've asked this on math overflow and used comments to clarify/overstate my question. I hope it has the intended effect and doesn't come off as jarring. I'm attempting to find what subset of numbers reach a known average. I have a list of known values, negative and possible decimals. They look somet...
Raymond Johnson
1

votes
1

answer
99

Views

how to know a c program's stack overflows?

i am simulating a problem(3d Ising Model) in c but when the problem size gets larger the program stop and the below error appears : Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) in the program I have a recursive function that does all the works, i suspect that the error is...
mehrdad
1

votes
2

answer
93

Views

Stack Overflow during Binary Search

I am using binary search to find a balance point between the planets. The method binaryBalance takes in Arraylist of planets which is an object with displacement and mass property. It also takes in the displacement of two planets between which I am trying to find a balance point of. Double x is the...
Maeror
1

votes
0

answer
402

Views

Stack based VS heap based buffer overflow

Why is heap-based buffer overflow difficult than stack-based? Also, what is the difference between them? I know that memory is allocated dynamically in case of heaps but, is that it?
abhishek bv
1

votes
1

answer
167

Views

Android Firebase Realtime Exception java.lang.StackOverflowError: stack size 8MB

Ihave a probleme Exception java.lang.StackOverflowError: stack size 8MB in my aplication , so i'm trying to add an object CAR have its attribuetes (Uri,brand,matricule... ) To a specific User in its chlid Cars This is My code public void uploadtothefirebase() { progressBar = findViewById(R.id.pro...
Farouk Benarous
1

votes
0

answer
46

Views

what triggers gcc -fsplit-stack option to allocate another stack segment

I'm trying to make sense of how this option works. In the source code of g++, it only says a segment of stack is allocated when a processor specific function is called. I'm wondering which processor function will trigger it. For reference, here is the source code of this option, https://sourceware.o...
L. Chen
1

votes
0

answer
60

Views

Internet Explorer causes stack overflow

I have a web application build on c# and ExtJS. While using Chrome/Firefox the app behaves as desired, but while using Internet Explorer, while using the scroll in certain tabs, the app crashes with an Internet Explorer has stopped working popup. Using Visual Studio to debug this error I get this er...
next_user
1

votes
1

answer
119

Views

stringbuilder characters find

def ff(c: Char): Boolean = { while (cursor Boolean): Boolean = { ff(p) } Idea of the function is to start at the cursor and find the next occurrence of a character defined by a variable called c taken as a parameter to the function, doing it this way results in a stackoverflow when tested with J...
Mike Noel Higgs
1

votes
1

answer
40

Views

Stack Overflow after too many non-recursive Method Calls

I'm currently writing a console program that's split into many different tasks/methods. It roughly goes like this: static void method1() { //do something method2(); } static void method2() { //do something method3(); } ...... static void methodN() { //doesn't get executed because there's a StackOver...
Yiasmat
1

votes
1

answer
131

Views

STM32 VCP driver - pointer becomes invalid only with optimization

I am working on an embedded project with the STM32F405 microcontroller, and have some really confusing behavior. I am porting an existing (working) project from the STM32F1 to the STM32F4, but I have added ST's standard peripheral library USB stack for VCP. If I compile the program with -O0 optimiz...
superjax
1

votes
0

answer
92

Views

MVP dependency injection caused infinite loop

I'm working with WPF, MVP and Unity Framework for dependency injection. When I resolve IniciarSesionView, it comes to an infinite loop of creation of IniciarSesionView and IniciarSesionPresentador. App.cs Current.MainWindow = IoCFactory.Instance.CurrentContainer.Resolve(); Code behind public partial...
1

votes
1

answer
44

Views

Trying to make a graphing calculator, receiving Exception in thread “AWT-EventQueue-0” java.lang.StackOverflowError

I'm trying to make something like Desmos. I successfully made it plot some basic functions, such as e^x, sin (x), x^2, 1/x, etc. The problem is when I try to plot a function with another function as an argument. For example, I tried to plot sin (2x), and it showed me the aforementioned error, Except...
vejtics
1

votes
0

answer
65

Views

Recursive flood fill function triggering stack overflow error (sometimes)

As an exercise, I have implemented a simple pixel editor. One of the modes is flood fill which utilizes a recursive solution. It works without issue on grid sizes of less than approximately 40x40 pixels. When testing it on larger grid sizes however (such as 64x64) only part of the board will be cove...
Shadow43375
1

votes
0

answer
50

Views

Java Sandboxing Security Policy

I am following this tutorial tutorial on how to achieve sandboxing when plugins are used. This is my main class where I load the class from the Jar file and run the interface function: import java.io.File; import java.net.URL; import java.security.Policy; public class Main { public static void main(...
Ziad Halabi
1

votes
0

answer
182

Views

Entity Framework Core 2.1 - Getting StackOverflowException when executing queries with many columns

Since updating to Entity Framework Core 2.1 (currently on 2.1.1), I have run into a number of queries that now throw a StackOverflowException. These queries worked in v2.0.x. It is only on larger queries - 50+ columns. Most of the queries aren't complex - they are all a single select statement with...
Adam
1

votes
0

answer
431

Views

How can I get a stack overflow error in Python?

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 there is an easier way to do this which is much more Pythonic. P.S. Ignore the indentation errors, it's hard to ty...
shamilpython
1

votes
0

answer
56

Views

Building nested lambda expression as variable recursively, strange stackoverflow in specific situation. Unexpected behavior

First, some example code. I've made the following abstraction of my problem which you can put in linqpad. Func recursiveSomethingIntegers(int b){ if(b == 1){ return x => x * x; } if(b == 2){ return x => x * x + 1; } var intArray = new int[]{1, 2}; Func lExpression = null; Func someOtherExpression =...
Blanen
1

votes
1

answer
62

Views

Stack overflow exception with instances of classes

In my Main Menu class, I have a switch statement that calls the DisplaySellMenu method in the sell menu class(instance of the sell menu class was created in main menu class) when the user types the number to go to the sell menu. I then created a new instance of the Main menu class in the Sell Menu c...
Zack
1

votes
0

answer
67

Views

Cassandra 3.6.0 bug: StackOverflowError thrown by HashedWheelTimer on Connection.release

When running some inserts and updates on Cassandra database via the java driver version 3.6.0, I get the following StackOverflowError, of which I am showing here just the top, but it repeats the last 10 rows endlessly. There is no mention of any line in my code, so I don't know what was the specific...
dripp
1

votes
1

answer
106

Views

Loop in value animator cause in crash with java.lang.StackOverflowError: stack size 8MB

I using two value animation and in end of one i start another. It is work fine on my tested devices but get java.lang.StackOverflowError: stack size 8MB on many devices in live. this is how i used value animator: ObjectAnimator fadeOut = ObjectAnimator.ofInt(drawableIcon, 'alpha', 255, 0); ObjectAni...
Kenji
1

votes
0

answer
114

Views

AutoMapper 6.2.2 throwing StackOverflowException when mapping objects with circular references (although corresponding properties are NULL)

We use EntityFramework 6.2.0 in conjunction with Automapper 6.2.2 to map between entities and DTOs. Unfortunately, with some of these mappings the System.StackOverflowException occurs again and again. After extensive research we have already tried several things to fix the problem: Setting MaxDepth...
aahrendt
1

votes
0

answer
37

Views

StackOverflowException with too many commands in script?

I am creating a powershell script from a SQL query. The query creates a list of commands using the New-Item command. Total number of commands was about 450k, all exported to a .ps1 file. I could successfully execute this script. I later discovered that some of the commands failed, so I needed to add...
onejeremias
1

votes
0

answer
163

Views

Spark StackOverFlowError with distinct() and join operation

I'm performing the following operations: DataSet df1 = spark.read().format(AVRO_MODE).load(path1); DataSet distinctDf1 = df1.distinct() DataSet df2 = spark.read().format('com.databricks.spark.avro').load(path2); DataSet joinOutput = distinctDf1.join(df2,getColumnStrings(columnList), 'leftanti'); jo...
Kans
1

votes
1

answer
148

Views

JSON throwing java.lang.StackOverflowError in select all

Hello, I am writing to you with a question Well, I have java ee entity MestechnologyGroup, which is connected to MesTechnology. I am using JPA and hibernate and when I want to extract from the json database with data (select all) the browser throws me java.lang.StackOverflowError Here is Mestechno...
Sławek Adamiec
1

votes
0

answer
132

Views

React Native StackOverflowException

I'm having the following exception in my react-native app on Android E/unknown:ReactNative: Exception in native call com.facebook.react.uimanager.IllegalViewOperationException: StackOverflowException at com.facebook.react.ReactRootView.handleException(ReactRootView.java:563) at com.facebook.react.vi...
Faruk Yazıcı
1

votes
0

answer
16

Views

Is it possible to crash entire computer from a buffer overflow by overwriting entire stack?

Is it possible to crash the computer by an extremely long buffer overflow? This is more to understand the mechanics of the overflow than the actual consequences. Lets say I run a program without any buffer overflow protections. I keep overflowing and overwrite everything on the stack. When the prog...
ackbar03
1

votes
1

answer
83

Views

StackOverflow error with Firebase, while using setValue() method on my Android Project

I store each event that user attends and has created. I suppose, the lists that are stored in User cause StackOverflow error while using .setValue( user). public class User { //Field private String name; private String email; private List attending_events = new ArrayList(); private List created_even...
Exqra
1

votes
0

answer
48

Views

Can't generate big random number of integers without overflowing

I have created a sorting algorithms that uses multithreaded quicksorting. The input data is created randomly. 100million integers are randomized and inserted into an array and then they are sorted. the thing is, I want to test the rate at which the algorithm's complexity grows when more data is inpu...
John Abbrams
1

votes
1

answer
63

Views

How to fix: Sudoku solver Stack overflow problem

I'm trying to create a Sudoku solver in Java, in general I'm new to programming and to Java. I don't really know how to handle this kind of errors. I keep getting a stack overflow error. I tried diffrent codes for it , none of them worked but anyways here is my latest one: public class Sudoku { priv...
David
1

votes
2

answer
135

Views

List index out of bounds and stackover flow error

I am trying to get the max pair wise product using python this time around and the concepts of certain aspects are still new to me. I continue to get a list index out of bounds error and stackoverflows of which I do not know how to deal with given the fact that I can not choose types in Python. I l...
CAM
1

votes
2

answer
59

Views

Why do i get an stackoverflow error when using jackson even though using @JsonIgnoreProperties

I am trying to serialize a DefaultMutableTreeNode oject with jackson into a json string. Therefore i need to use a mix-in abstract class that is kind of a proxy to the DefaultMutableTreeNode class. This is probably because of self-reference fields but i am not able to recognize them. Mix-in class: @...
mclaus
1

votes
0

answer
34

Views

Stack overflow in recursion Python

I'm doing the Project Euler problem 78 Let p(n) represent the number of different ways in which n coins can be separated into piles. For example, five coins can be separated into piles in exactly seven different ways, so p(5)=7 Find the least value of n for which p(n) is divisible by one million. I'...
1

votes
3

answer
72

Views

QuickSort Algorithm “StackOverFlowError”

I am implementing the 'QuickSort' algorithm provided through GeeksForGeeks. I am sorting an input size of 50K random numbers, I get a error message saying 'StackOverFlowError'. Is this a case where the recursive call doesn't know when to reach its base case? The crash is happening at line 58. int pa...
Alex Brito
1

votes
1

answer
19

Views

Mapping objects with bi-directional relations with Mapstruct

I wonder if and how Mapstruct could help with mapping ojects with bi-directional relations (in my case one to many): public class A{ private Set listB; } public class B{ private A a; } Mapping from/to an entity yields a StackOverflowError. (i would expect this to happen). On the other hand the clos...
dermoritz
1

votes
1

answer
893

Views

flex combobox customize problem

I'm new to flex and i need to create item and subitems in combobox, where only subitem is clickable. similar to what is shown in the given link as under: http://blog.flexexamples.com/2007/09/25/creating-a-custom-combobox-item-renderer-in-flex/ but here both header and option are clicked at the sam...
Piyush Giri
1

votes
4

answer
1.9k

Views

Optimizing N Queens code to avoid stack overflow

i've been trying to write a java class to solve the n queens problem using some sort of stacking and recursion, the answers are stored in grids(two dimensionnal arrays), but i've hit a dead wall which is stack overflow for recursion at n=8 (max recursion depth reached 2298) So i've been wondering if...
user145296
1

votes
5

answer
2.5k

Views

Why is my swf causing the Flash Player to crash

I've got a flex-based swf, which is loading an AS 2-based swf and then, negotiating further activity via a LocalConnection. From time to time, the AS 2-swf can request that the flex-based swf load a movie. I've arranged this via on(release){} functions. The AS 2-swf, I'm making in Swish Max. In Sw...
Irwin
1

votes
3

answer
804

Views

DirectShow DVD playback

I have created a custom allocator/presenter that works fine for playback of normal media files. However, when I use the following code to try to playback a DVD, it fails with a stack overflow exception. vmr9_ap = new vmr9ap(); HMONITOR monitor = MonitorFromWindow(hwnd, NULL); IGraphBuilder *graph;...
Alex
1

votes
1

answer
596

Views

iTextSharp Crashes with a StackOverflowException when getting a font

iTextSharp really, really doesn't like it when I try to create Fonts: FontFactory.GetFont(Font.HELVETICA, 12) This gives me a user-friendly StackOverflowException. So I tried this: new Font(Font.HELVETICA, 12) which does the same thing. Tried Font.TIMES, and got the same thing, too. So I tried dropp...
TALlama
1

votes
1

answer
506

Views

glPushName + glPopName stack overflow and underflow

Can anybody explain me how to use glPushName and glPopName. I like to use them instead of glLoadName, but I laways get GL_STACK_OVERFLOW and GL_STACK_UNDERFLOW errors. (First, under then overflow). Example code would help me too. Note #1: My Rendering/selection_rednering code consists of multiple gl...
drahnr

View additional questions